LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2010, 05:17 AM   #1
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 493

Rep: Reputation: 75
Nagios check_snmp V3 timeout


Hello There,

I'm having a timeout issue with the command check_snmp:
Where I don't understand is that when I tipe the command on the command line it's working fine but not when I put it in the host configuration file.

The following is working fine:
Code:
# ./check_snmp -H IP-TO-CHECK -o ".1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2" -U USER -A PASSWORD -x AES -X PASSWORD_SNMP -L authPriv -P 3 -a MD5 -u W -w 1000 -c 1050
SNMP OK - 859 W | iso.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2=859

The same line in the config file:
Code:
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       IP-TO-CHECK-BladeCenter
        service_description             Power Domain 1 Utilization
        check_command                   check_snmp!-o ".1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2" -U USER -A PASSWORD -x AES -X PASSWORD_SNMP -L authPriv -P 3 -a MD5 -u W -w 1000 -c 1050
        }
Give me this:
Code:
    External command error: Timeout: No Response from IP-TO-CHECK:161.
and if I do specify a timeout value with the "-t" option it give me a timeout critical error.

Any idea/lead?

Last edited by angel115; 10-08-2010 at 05:19 AM.
 
Old 10-08-2010, 06:44 AM   #2
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
Have you tried it without the ""?

I think the problem you are having is related to how the command is parsed. I looked through my Nagios configs and I don't use "" anywhere in the command strings.

Try from the command line:
Code:
# ./check_snmp -H IP-TO-CHECK -o .1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2 -U USER -A PASSWORD -x AES -X PASSWORD_SNMP -L authPriv -P 3 -a MD5 -u W -w 1000 -c 1050
and this in your Nagios Config:
Code:
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       IP-TO-CHECK-BladeCenter
        service_description             Power Domain 1 Utilization
        check_command                   check_snmp!-o .1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2 -U USER -A PASSWORD -x AES -X PASSWORD_SNMP -L authPriv -P 3 -a MD5 -u W -w 1000 -c 1050
        }
 
Old 10-08-2010, 07:04 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 493

Original Poster
Rep: Reputation: 75
Yes, I did and it, but just re-test it again, and it is the same.

Code:
External command error: Timeout: No Response from IP-TO-CHECK:161.
One thing that I don't understand is that it's working fine from command line.
I do monitor over 1000 services and hosts on our network and everything works.

Only the three SNMPV3 check on this host doesn't.

Last edited by angel115; 10-08-2010 at 07:10 AM.
 
Old 10-08-2010, 07:41 AM   #4
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
The other thing that comes to mind may be your User / Password. Do they have any special characters that could be intercepted rather than passed in some way (a $ for example).

If it is all related to one host, it has to be something common to those entries. Look for special characters in the Username and password, that is the only other thing I can think of.
 
Old 10-08-2010, 07:52 AM   #5
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 493

Original Poster
Rep: Reputation: 75
Yes, I just figured out.

I've got a "!" in one password.

after testing wrapping the password with single or double quote give me a "Null" result, so I change my password and remove the exclamation mark character.

Doing so solved my issue.

Thanks you for helping
 
  


Reply

Tags
nagios, snmp, timeout


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios plugin check_snmp not returning correct information DrStrangepork Linux - Software 2 09-25-2009 10:43 AM
using nagios check_snmp plugin to get snmp info from computer umarzuki Linux - Networking 2 09-08-2009 03:12 AM
socket timeout error in nagios ravis.1808@gmail.com Linux - Networking 4 07-03-2009 03:51 AM
nagios check_snmp not found sp149 Linux - Server 8 06-11-2009 09:50 PM
Nagios check_snmp plugin not found ataru Linux - Server 8 04-10-2009 02:18 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration