make munin script work again
authorChristian Weiske <cweiske@cweiske.de>
Fri, 10 Dec 2010 17:27:48 +0000 (18:27 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 10 Dec 2010 17:27:48 +0000 (18:27 +0100)
scripts/munin.php

index 184f889..7dafaae 100755 (executable)
@@ -49,8 +49,11 @@ TXT;
 
 
 try {
-    $w = new Wrt3g();
-    $arStatus = $w->getStatus();
+    $router = new Wrt3g();
+    $router->host     = $GLOBALS['linksys-wrt3g-tools']['host'];
+    $router->user     = $GLOBALS['linksys-wrt3g-tools']['user'];
+    $router->password = $GLOBALS['linksys-wrt3g-tools']['password'];
+    $arStatus = $router->getStatus();
 
     $conn = $arStatus['connection'];
     if ($conn == 'disconnected') {