check_ntp offsets

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Aug 19 04:38:55 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18/08/09 09:55 PM, Chris wrote:
> I am running check_ntp plugin and I have setup an offset threshold of
> -w 200 -c 300 but Nagios is still showing "Offset -102.234564 secs"
> (Warning)
> 
> Running check_ntp from command line shows NTP OK
> (/usr/lib/nagios/plugins/check_ntp -H hostname -w 200 -c 300)
> 
> Output: NTP OK: Offset -102.234564
> secs|offset=-102.234564s;200.000000;300.000000;
> 
> Here is what I have added:
> 
> edit /etc/nagios/objetcs/command.cfg and add:
> 
> define command{
>         command_name check_ntp
>         command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
> }
> 
> edit /etc/nagios/objetcs/server.cfg and add:
> 
> define service{
>         use                             critical-service
>         host_name  			hostname
>         service_description             NTP
>         check_command                   check_ntp!200!300
>         }
> 

That's odd. Please check the following:
1. Check that $USER1$ is /usr/lib/nagios/plugins/
2. Please check your check_ntp version. If it's older than 1.4.13 you
should try the latest version.
3. Check that you're checking the same host. A trick to verify commands
is to add echo in front of $USER1$, and grab the command from the web
interface.


- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKi2W/6dZ+Kt5BchYRAvn7AJoD7OjhjFakLduGLGP2SXyv22UlNgCdFNFZ
sHZw1z8go6a/ukJU6T4DevU=
=QOx9
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list