aboutsummaryrefslogtreecommitdiff
path: root/munin.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-12-08 20:13:53 +0100
committerChristian Weiske <cweiske@cweiske.de>2010-12-08 20:13:53 +0100
commitba12040537e4907e428f84d7de67d5f58604f5f2 (patch)
tree854d164f146eb0b9873ad0f30efbaae222aa611d /munin.php
parentceb9f52f0765af2f0eebca575d6107bf984b8cdb (diff)
downloadlinksys-wrt3g-tools-ba12040537e4907e428f84d7de67d5f58604f5f2.tar.gz
linksys-wrt3g-tools-ba12040537e4907e428f84d7de67d5f58604f5f2.zip
fix munin.php
Diffstat (limited to 'munin.php')
-rwxr-xr-xmunin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/munin.php b/munin.php
index 9b94cc3..2b7a9e9 100755
--- a/munin.php
+++ b/munin.php
@@ -48,8 +48,10 @@ TXT;
}
-$arStatus = wrt3g_getStatus();
try {
+ $w = new Wrt3g();
+ $arStatus = $w->getStatus();
+
$conn = $arStatus['connection'];
if ($conn == 'disconnected') {
echo "conn_disconnected.value 1\n";