fix munin.php
[linksys-wrt3g-tools.git] / munin.php
index 9b94cc334a0295f32428a867d62e96a693ed964e..2b7a9e93f81c2076378efd43c35d9e440e1b4a8a 100755 (executable)
--- 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";