Welcome to Pandora FMS Community › Forums › Community support › Problems with SNMP Walk
-
Problems with SNMP Walk
Posted by lauerdk on July 15, 2008 at 03:05Hey
I have some problems with the SNMP Walk feature.
I just get an “Cannot read from snmp source” when I click on the button “SNMP Walk” on Agent – Modules.It works fine if I run this command in the unix shell.
snmpwalk -c public -v 1
But it fails if I run the following PHP code
php -r “var_dump(snmpwalkoid(‘‘, ‘public’, ”));”
with this resultWarning: snmpwalkoid(): Error in packet: (noSuchName) There is no such variable name in this MIB. in Command line code on line 1 Warning: snmpwalkoid(): This name does not exist: UPS-MIB::lastError.0 in Command line code on line 1 bool(false)
If I use the snmpwalk() function, I get a fine result, but without any OID description.
I don’t know if the problem is only PHP or the problem also could be solved in some hack by pandora.
Kind regards
Jesper Laursenraul replied 16 years, 7 months ago 2 Members · 4 Replies -
4 Replies
-
-
::
Take a look at that page: http://algorytmy.pl/doc/php/function.snmpwalkoid.php, create a php file with the suggested content.
Raúl
-
-