make it executable
[linksys-wrt3g-tools.git] / scripts / munin.php
index 184f889a8ab7d6df77df1ce73a6d9eca28f91195..f9bf147a4577f72f94951ec0de80b652787cc85b 100755 (executable)
@@ -49,8 +49,12 @@ 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') {