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 184f889a8ab7d6df77df1ce73a6d9eca28f91195..7dafaae48699d9c3d9dcb02e6f82bda6d79e79ec 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') {