error general time-out (alarm signal)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

I changed the t value to 60 in the command.cfg file and also change the value of service_chceck_timeout=60 but having same error
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: error general time-out (alarm signal)

Post by tgriep »

Are you getting the "Invalid timeout value" error or the "Invalid timeout value" error?
Be sure to check out our Knowledgebase for helpful articles and solutions!
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

getting "error general time-out (alarm signal)"
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

I am not sure where do I need to specify the SNMP version for the check_snmp plugin's command line and what version should I put it.

Code: Select all

[root@ams900 ~]# nmap 10.180.50.100 -p 161 -sU

Starting Nmap 7.01 ( https://nmap.org ) at 2019-01-09 09:01 CST
Nmap scan report for asftp900.enclave.local (10.180.50.100)
Host is up (0.00035s latency).
PORT    STATE  SERVICE
161/udp open snmp

Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
[root@ams900 ~]#
This is the 10.180.50.100 server

Code: Select all

[root@aus50ltasftp900 ~]# snmpd -v

NET-SNMP version:  5.7.2
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

[root@aus50ltasftp900 ~]#
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: error general time-out (alarm signal)

Post by tgriep »

The default snmpd.conf config file needs to be edited to allow certain OID's to be polled so it has to be changed to allow that.
I attached a copy of the file with pretty much all of the settings you may need so on the remote server, replace the /etc/snmp/snmpd.conf file with the attached copy.
Restart the snmpd daemon and test the command again.
Attachments
snmpd.conf
(18.54 KiB) Downloaded 249 times
Be sure to check out our Knowledgebase for helpful articles and solutions!
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

I replaced the snmpd.conf file with your file and still seeing the same error
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: error general time-out (alarm signal)

Post by tgriep »

Sorry, I forgot to mention this, the file I posted you have to use public as the community string and it is also setup to only use SNMP version 2 so you will have to add a -2 to the command and change the community string.
Try this example

Code: Select all

./check_snmp_storage.pl -H 10.180.50.100 -C public -t 60 -m / -r -q FixedDisk -w90 -c95 -G -2
Be sure to check out our Knowledgebase for helpful articles and solutions!
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

@tgriep, I tried the command that you gave me and it works like charm :)

Code: Select all

[root@ams900 plugins]# ./check_snmp_storage.pl -H 10.180.50.100 -C public -t 60 -m / -r -q FixedDisk -w90 -c95 -G -2
/: 10%used(2GB/18GB) (<90%) : OK
I was wondering can't I keep nag9899 instead of public.

Code: Select all

[root@ams900 plugins]# ./check_snmp_storage.pl -H 10.180.50.100 -C nag9899 -t 60 -m / -r -q FixedDisk -w90 -c95 -G -2
ERROR: General time-out (Alarm signal)
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: error general time-out (alarm signal)

Post by tgriep »

Edit the snmpd.conf file and change these lines from

Code: Select all

com2sec notConfigUser  default       public
rocommunity public
to

Code: Select all

com2sec notConfigUser  default       nag9899
rocommunity nag9899
Save the file and restart the snmpd daemon so the changes take affect.
Be sure to check out our Knowledgebase for helpful articles and solutions!
shamrozkadiwal
Posts: 74
Joined: Thu Jan 25, 2018 1:13 am

Re: error general time-out (alarm signal)

Post by shamrozkadiwal »

Awesome! Everything looks good now. Thanks for help
Locked