Pandora FMS Community

Problems with SNMP Walk

lauerdk · 15 jul 2008, 3:05 · 5 mensajes · 59 visitas

  1. Inicio del debate

    Hey 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 result

    Warning: 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 Laursen

  2. Be sure you have installed all PHP SNMP dependencies. By the way, which your OS and Pandora version are? Raúl

  3. Take a look at that page: (Link not available anymore), create a php file with the suggested content. Raúl

  4. Yes, the PHP SNMP module is installed. It works fine on other modules. I am running Pandora 1.3.1 on Ubuntu 8 LTE. But I can see that it is only a problem when requesting snmpwalk on a device using UPS-MIB. Maybe the problem i that mib and not php/pandora.

  5. I remember there was a bug in PHP a long time ago with snmpwalkoid() and SNMP v1, but this should be solved in new PHP binaries :-D Raúl

Entra en tu cuenta para publicar.