Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

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:05

    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

    raul replied 16 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • raul

    Member
    July 15, 2008 at 04:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

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

    Raúl

  • raul

    Member
    July 15, 2008 at 04:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Take a look at that page: http://algorytmy.pl/doc/php/function.snmpwalkoid.php, create a php file with the suggested content.

    Raúl

  • lauerdk

    Member
    July 15, 2008 at 06:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • raul

    Member
    July 15, 2008 at 10:48
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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 😀

    Raúl