Services issues

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Services issues

Post by Box293 »

What are the permissions of check_snmp_time ???

Code: Select all

ll /usr/local/nagios/libexec/check_snmp_time
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Services issues

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services issues

Post by abrist »

Where did you you download check_snmp_time? I would like to test this specific plugin.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Services issues

Post by imran_khan »

Hello,

I have downloaded it from below link.

http://meinit.nl/nagios-time-check-using-snmp

Thanks,
Imran Khan.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services issues

Post 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?

Code: Select all

./negate -V
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Services issues

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services issues

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Services issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Services issues

Post 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 $?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Services issues

Post by imran_khan »

Hello,

SNMP Service is not running on Nagios box, so above mentioned command will not work.

Thanks,
Imran Khan.
Locked