aboutsummaryrefslogtreecommitdiff
path: root/scripts/munin.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/munin.php')
-rwxr-xr-xscripts/munin.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/munin.php b/scripts/munin.php
index 184f889..7dafaae 100755
--- a/scripts/munin.php
+++ b/scripts/munin.php
@@ -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') {