git.cweiske.de
/
linksys-wrt3g-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b326c2
)
make munin script work again
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 10 Dec 2010 17:27:48 +0000
(18:27 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 10 Dec 2010 17:27:48 +0000
(18:27 +0100)
scripts/munin.php
patch
|
blob
|
history
diff --git
a/scripts/munin.php
b/scripts/munin.php
index 184f889a8ab7d6df77df1ce73a6d9eca28f91195..7dafaae48699d9c3d9dcb02e6f82bda6d79e79ec 100755
(executable)
--- 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') {