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.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Fri Feb 13, 2015 8:17 pm
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
Post
by imran_khan » Mon Feb 16, 2015 10:42 am
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
Post
by abrist » Mon Feb 16, 2015 11:48 am
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 .
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Mon Feb 16, 2015 12:42 pm
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?
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
Post
by imran_khan » Mon Feb 16, 2015 2:14 pm
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
Post
by abrist » Mon Feb 16, 2015 2:19 pm
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
Post
by imran_khan » Mon Feb 16, 2015 5:39 pm
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:
Post
by scottwilkerson » Mon Feb 16, 2015 5:57 pm
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 $?
imran_khan
Posts: 196 Joined: Mon May 27, 2013 3:16 pm
Post
by imran_khan » Tue Feb 17, 2015 12:56 pm
Hello,
SNMP Service is not running on Nagios box, so above mentioned command will not work.
Thanks,
Imran Khan.