diff --git a/README.txt b/README.txt
index f38acf0..217b31f 100644
--- a/README.txt
+++ b/README.txt
@@ -1,3 +1,4 @@
+; $Id: README.txt,v 1.1.2.1 2009/10/02 08:58:49 mcgo Exp $
 Munin Drupal plugin
 Author:   McGo (Mirko Haaser)
 Website:  http://drupalist.de
diff --git a/munin_api.info b/munin_api.info
index b17480b..53d36a7 100644
--- a/munin_api.info
+++ b/munin_api.info
@@ -1,5 +1,6 @@
 name = Munin API
 description = This module contains the munin monitoring API for generating munin plugin files
 package = Munin
-core = 6.x
-version = 6.x-1.0
+core = 7.x
+version = 7.x-1.0
+configure = admin/config/munin
\ No newline at end of file
diff --git a/munin_api.module b/munin_api.module
index a2cee96..df8118e 100644
--- a/munin_api.module
+++ b/munin_api.module
@@ -1,4 +1,5 @@
 <?php
+// $Id: munin_api.module,v 1.1 2009/10/02 08:36:25 mcgo Exp $
 
 /**
  * @file
@@ -16,7 +17,7 @@
  */
 function munin_api_menu() {
   $items = array();
-  $items['admin/settings/munin'] = array(
+  $items['admin/config/munin'] = array(
     'title' => 'Munin Plugin',
     'description' => "Generate a munin plugin shell script with this gui.",
     'page callback' => '_munin_api_generate',
@@ -37,10 +38,14 @@ function munin_api_theme() {
 }
 
 /**
- * Implementation of hook_perm().
+ * Implementation of hook_permission().
  */
-function munin_api_perm() {
-  return array('generate munin plugin');
+function munin_api_permission() {
+  return array(
+    'generate munin plugin' => array(
+      'title' => 'Generate munin plugin',
+    )    
+  );
 }
 
 
@@ -84,7 +89,7 @@ function _munin_api_render_mapielement() {
   // Call the API Hooks
   $plugins = module_invoke_all('muninplugin');
   // Let other modules alter the definition.
-  module_invoke_all('muninplugin_alter', &$plugins);
+  drupal_alter('muninplugin', &$plugins);
 
   if (count($plugins) == 0) {
     $form['message'] = array(
@@ -137,7 +142,7 @@ function _munin_api_parse_selection($values) {
   $return = array();
 
   $plugins = module_invoke_all('muninplugin');
-  module_invoke_all('muninplugin_alter', &$plugins);
+  drupal_alter('muninplugin', &$plugins);
 
   foreach ($values as $key => $value) {
     foreach ($value as $name => $active) {
@@ -199,6 +204,7 @@ function _munin_api_renderheader($header, $meta, $values) {
 CONF_MYSQL_USER="'.$header['db']['db_user'].'"
 CONF_MYSQL_PASS="'.$header['db']['db_pass'].'"
 CONF_DATABASE="'.$header['db']['db_dbase'].'"
+CONF_HOST="'.$header['db']['db_host'].'"
 
 # config settings
 case $1 in
@@ -223,7 +229,7 @@ function _munin_api_renderelements($definition) {
     $line .= '<pre>
 # Stats for '.$value['#label'].'
 # '.$value['#description'].'
-echo "'.db_prefix_tables($value['#statement']).'" | mysql --user=$CONF_MYSQL_USER --password=$CONF_MYSQL_PASS --database $CONF_DATABASE | tail -n+2 | {
+echo "'. Database::getConnection()->prefixTables($value['#statement']).'" | mysql --user=$CONF_MYSQL_USER --password=$CONF_MYSQL_PASS --database $CONF_DATABASE --host $CONF_HOST | tail -n+2 | {
   read VALUE ; echo "'.$key.'.value $VALUE.00"
 }</pre>';
   }
diff --git a/munin_default.info b/munin_default.info
index 61cb180..0a40b34 100644
--- a/munin_default.info
+++ b/munin_default.info
@@ -1,6 +1,6 @@
 name = Munin Default Plugins
 description = Provides default plugins for the munin monitoring tool
 package = Munin
-core = 6.x
-version = 6.x-1.0
-dependencies[] = munin_api
+core = 7.x
+version = 7.x-1.0
+dependencies[] = munin_api
\ No newline at end of file
diff --git a/munin_default.module b/munin_default.module
index 0d99fae..88e9286 100644
--- a/munin_default.module
+++ b/munin_default.module
@@ -1,5 +1,6 @@
 <?php
 
+// $Id: munin_default.module,v 1.1.2.3 2009/10/14 19:39:02 mcgo Exp $
 
 /**
  * @file
@@ -26,7 +27,7 @@ function munin_default_muninplugin() {
   $plugins['user']['curuser'] = array(
     '#label' => t('Currently logged in user'),
     '#description' => t('This item shows the number of currently logged in users.'),
-    '#type' => 'GAUGE ',
+    '#type' => 'GAUGE',
     '#statement' => 'select count(uid) from {users} where unix_timestamp() - access < (60*5)',
   );
   $plugins['user']['newuser'] = array(
@@ -45,7 +46,25 @@ function munin_default_muninplugin() {
     '#label' => t('Existing nodes'),
     '#description' => t('Number of existing nodes on this site.'),
     '#type' => 'GAUGE',
-    '#statement' => 'select count(nid) from node',
+    '#statement' => 'select count(nid) from {node}',
+  );
+  $plugins['content']['curcmnt'] = array(
+    '#label' => t('Existing comments'),
+    '#description' => t('Number of existing comments on this site.'),
+    '#type' => 'GAUGE',
+    '#statement' => 'select count(cid) from {comments}',
+  );
+  $plugins['content']['newnodes'] = array(
+    '#label' => t('New nodes'),
+    '#description' => t('Number of new nodes on this site.'),
+    '#type' => 'GAUGE',
+    '#statement' => 'select count(nid) from {node} where unix_timestamp() - created < (60*5)',
+  );
+  $plugins['content']['newcmnt'] = array(
+    '#label' => t('New Comments'),
+    '#description' => t('Number of new comments on this site.'),
+    '#type' => 'GAUGE',
+    '#statement' => 'select count(cid) from {comments} where unix_timestamp() - timestamp < (60*5)',
   );
 
   return $plugins;
@@ -60,4 +79,3 @@ function munin_default_muninplugin_alter(&$plugins) {
 
 
 ?>
-
