[Nagios-users] SNMP Question
I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Thanks, Mike Mike Egan Enterprise Network Engineer Capital Safety 3833 Sala Way Red Wing, MN 55066 651-385-6254 Office 651-247-5719 Cell [EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED] Home of DBI-Sala and Protecta Brands. Visit us on the web at www.capitalsafety.com blocked::http://www.capitalsafety.com/ - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SNMP Question
[EMAIL PROTECTED] wrote on 12/14/2007 01:15:33 PM: I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Thanks, Mike Are you running the command as the nagios user when you run it from the command line?- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SNMP Question
I am running it as root. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, December 14, 2007 1:27 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] SNMP Question [EMAIL PROTECTED] wrote on 12/14/2007 01:15:33 PM: I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Thanks, Mike Are you running the command as the nagios user when you run it from the command line? - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SNMP Question
On Dec 14, 2007, at 1:15 PM, Michael Egan wrote: I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Beyond nagios not being able to execute check_snmp due to permissions on snmpget/snmpgetnext, my next guess would be that the MIB isn't being loaded properly. Does it work if you manually specify the MIB is -m or use a numeric OID? -- Marc - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SNMP Question
I forgot to mention that I am able to monitor up time via SNMP...so I don't think it is a permissions issue. Thanks, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Friday, December 14, 2007 1:33 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] SNMP Question On Dec 14, 2007, at 1:15 PM, Michael Egan wrote: I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Beyond nagios not being able to execute check_snmp due to permissions on snmpget/snmpgetnext, my next guess would be that the MIB isn't being loaded properly. Does it work if you manually specify the MIB is -m or use a numeric OID? -- Marc - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp lace ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SNMP Question
Reformatted due to top posting. [EMAIL PROTECTED] wrote on 12/14/2007 01:15:33 PM: I am trying to view the status of port 1 on a Cisco 2970 switch. However, Nagios is giving me an UNKNOWN error. I tried running the following from a command prompt: ./check_snmp -H IP of the switch -C string -o ifOperStatus.1 -r 1 I get the following response: SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) If I am getting this response at the command prompt, why isn't the monitor coming up green in Nagios? Thanks, Mike Are you running the command as the nagios user when you run it from the command line? I am running it as root. You will not be able to troubleshoot when running plugins as root. Root has different permissions than the nagios user. Try running it as the nagios user. Also, you will have to put the MIB somewhere nagios can use it otherwise use the numeric for SNMP. - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] snmp question
Hi I'm new to nagios, and I'd like to get some snmp requests. It's Ok for some requests (Uptime for example) But I can't get Disk Space. (No Data received from Host) I tried to used snmpget in a console, and get the same bad result. May be the Oids are wrong.. Could someone give me a clue ? Thanks R. Reynaud - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null