Search found 10 matches

by csptra
Tue Feb 14, 2017 6:00 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Thank you rkennedy.

I appreciate all your help. I consider this thread closed and will open another one if I need any additional help.
by csptra
Tue Feb 14, 2017 4:20 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Hello, I am needing to write a script, (I wrote it in bourne shell but need to re-write it in perl) to check to use mailq to see the message count and if it is over the warning or critcal thresh hold, then print a custom error or warning message depending on if it is a warning or critical or unknown...
by csptra
Tue Feb 14, 2017 1:34 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Hello, One last question,it would seem to me that -l "text" wouldn't dynamically change for the various exit codes. examples: Message queue OK: Message Count Message Queue Warning: Message Count Message Queue Critical: Message count I think I would have to write a shell script or perl scri...
by csptra
Tue Feb 14, 2017 1:19 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Thanks!

I will try that if my script doesn't work. I'm testing it now.
by csptra
Tue Feb 14, 2017 1:03 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Hello,

I think so, I am working on writing my own wrapper to check_snmp so I can get a custom message and message count into nagios. (like check_qmailq)

other than that, it is just

Code: Select all

SNMP CRITICAL - *32* 
which 32 is the message count, but not very descriptive with SNMP critical.
by csptra
Tue Feb 14, 2017 10:23 am
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

I found out how to define my own definition, now I can get it in a format like this:

Code: Select all

$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2
even figured out the error I was getting when restarting!
by csptra
Tue Feb 14, 2017 9:27 am
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

OK, I found the problem, it works now. I was using a lowercase 'c' vs capital 'C' for the community string. Thanks for the help. (found via man page for check_snmp) this might be there as well, but I need to find out how to translate this into the nagios interface for the check command: check_snmp $...
by csptra
Mon Feb 13, 2017 6:43 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Hello tgriep, Here are the results # ./check_snmp -H <DNS host> -P 2c -o <OID> -v /usr/local/bin/snmpget -Le -t 3 -r 5 -m '' -v 2c [authpriv] <DNS_HOST>:161 <OID> CRITICAL - Plugin timed out while executing system call to me, it appears that its timing out due to possible credential problems. But th...
by csptra
Mon Feb 13, 2017 2:54 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

Re: check_snmp plugin timeout error

Hello rkennedy, Thanks for your help, I found that I can snmpwalk via DNS name but not IP address. This made me think that I should try it again with check_snmp with DNS name (I had been with IP address only). However, it still failed. I tried adding -t 200, but still failed. Here is my snmpwalk com...
by csptra
Mon Feb 13, 2017 12:24 pm
Forum: Open Source Nagios Projects
Topic: check_snmp plugin timeout error
Replies: 17
Views: 12573

check_snmp plugin timeout error

Hello, I am completely new to setting up nagios to monitor snmpd. I have a freebsd nagios box and centos machine running snmpd. I used the exec to run check_mailq on the centos machine. I can use snmpwalk/snmpget to query it, but when I check_snmp found in nagios, it just gets plugin time out error....