On 25 May 2010 09:39, Jatin Davey <[email protected]> wrote: > how do i run the same command by logging into the system with that user.
Try logging into that system as yourself, If you can run the command as you, then that's probably OK. >> So >> "snmpwalk -v 2c -c xxxx XXXX NET-SNMP-EXTEND-MIB::nsExtendObjects" >> >> gives "Permission denied" - nothing else? >> > > [Jatin] Output from the nagios server when i use the check_snmp plugin to > retrieve the extended MIB data is : > [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -C xxxx -o extOutput.1 > SNMP OK - /home/xxx_xxx/xxxx: Permission denied | > > Output from the command mentioned above (snmpwalk command) when i execute > from the Nagios server is : > [r...@pc-fedora-1 libexec]# snmpwalk -v 2c -c public 171.69.37.175 > NET-SNMP-EXTEND-MIB::nsExtendObjects > NET-SNMP-EXTEND-MIB::nsExtendObjects = No more variables left in this MIB > View (It is past the end of the MIB tree) Right - so the "Permission denied" is an output of the nagios script. I suggest you forget about that until the 'snmpwalk' command works as expected. The fact that you are not seeing *anything* in this tree (not even nsExtendNumEntries) makes me suspect that this is an access control problem. >> It would definitely be worth seeing the snmpd.conf file, >> so we can confirm there's nothing wrong there. >> > > [Jatin] I dont think there would be anything wrong here as i follow the same > set of steps on all the boxes to deploy the script. Anyways i will paste > them here: > view systemview included .1.3.6.1.2.1.1 > view systemview included .1.3.6.1.2.1.25 > view systemview included .1.3.6.1.2.1.2 > view systemview included .1.3.6.1.4.1.2021 > > I only use the view access control and no else configuration is done. I do hope that is not true! "view" on it's own would not give you access to anything. At the very least, you'll need "com2sec", "group" and "access" lines. (or possible "rocommunity -V systemview public") Please post (as an attachment) the *whole* of your snmpd.conf file. I don't have time to waste guessing what might or might not be in the rest of the config. Dave ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
