Page 3 of 5
Re: Services issues
Posted: Fri Feb 13, 2015 8:17 pm
by Box293
What are the permissions of check_snmp_time ???
Code: Select all
ll /usr/local/nagios/libexec/check_snmp_time
Re: Services issues
Posted: Mon Feb 16, 2015 10:42 am
by imran_khan
Hello,
Thanks for the reply.
Permission of check_snmp_time is as below.
[root@NAGIOS ~]# ll /usr/local/nagios/libexec/check_snmp_time
-rwxr-xr-x 1 root root 3749 Aug 5 2014 /usr/local/nagios/libexec/check_snmp_time
Thanks,
Imran Khan.
Re: Services issues
Posted: Mon Feb 16, 2015 11:48 am
by abrist
Where did you you download check_snmp_time? I would like to test this specific plugin.
Re: Services issues
Posted: Mon Feb 16, 2015 12:29 pm
by imran_khan
Hello,
I have downloaded it from below link.
http://meinit.nl/nagios-time-check-using-snmp
Thanks,
Imran Khan.
Re: Services issues
Posted: Mon Feb 16, 2015 12:42 pm
by abrist
Odd, the following works for me:
Code: Select all
[root@nagiosxi libexec]# ./check_snmp_time.sh -H localhost -C public; echo $?
Time difference is less than 60 seconds: 0|diff=0
0
[root@nagiosxi libexec]# ./negate -o CRITICAL /usr/local/nagios/libexec/check_snmp_time.sh -H localhost -C public; echo $?
Time difference is less than 60 seconds: 0|diff=0
2
[root@nagiosxi libexec]#
What version of negate are you using?
Re: Services issues
Posted: Mon Feb 16, 2015 2:14 pm
by imran_khan
Hello,
I am using Negate version 2.0.3.
[root@NAGIOS libexec]# ./negate -V
negate v2.0.3 (nagios-plugins 2.0.3)
Thanks,
Imran Khan.
Re: Services issues
Posted: Mon Feb 16, 2015 2:19 pm
by abrist
Well, I am at a loss, it runs fine with negate on 3 of my test systems. It must be a character issue with your community name.
Re: Services issues
Posted: Mon Feb 16, 2015 5:39 pm
by imran_khan
Hello,
There is no special character in community name. My community name is combination of small and capital alphabet.
e.g.:- ComMUnItY
Thanks,
Imran Khan.
Re: Services issues
Posted: Mon Feb 16, 2015 5:57 pm
by scottwilkerson
Can you run these as abrist did
Code: Select all
cd /usr/local/nagios/libexec
./check_snmp_time.sh -H localhost -C public; echo $?
./negate -o CRITICAL /usr/local/nagios/libexec/check_snmp_time.sh -H localhost -C public; echo $?
Re: Services issues
Posted: Tue Feb 17, 2015 12:56 pm
by imran_khan
Hello,
SNMP Service is not running on Nagios box, so above mentioned command will not work.
Thanks,
Imran Khan.