check_ntp

Rich West Rich.West at wesmo.com
Fri Aug 15 21:15:05 CEST 2003


nevermind.. turned out to be a problem with the check_ntp script.. I 
didn't realize it was a perl script.

I had to update line 65 to point to the plugins directory for it to get 
the utils.pm perl module.

After that, it worked like expected. :)

-Rich


Rich West wrote:

> This might be obvious to some, but the reason/solution escapes me.
>
> I'm running check_ntp against two hosts, and, although (as the nagios 
> user) I can run it successfully from the command line:
> ./check_ntp -H localhost
> NTP OK: Offset 0.000001 secs, jitter 3.797 msec, peer is stratum 1
>
> Nagios itself is complaining that it is getting "No output!".
>
> Thinking that it would be with the way I have it configured in the 
> nagios config files, I checked them and they _look_ ok:
> In checkcommands.cfg:
> define command{
>        command_name    checkntp
>        command_line    /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$
>        }
>
> In services.cfg:
> # Service definition
> define service{
>        use                             generic-service         ; Name 
> of service template to use
>
>        host_name                       myhost
>        service_description             NTP
>        is_volatile                     0
>        check_period                    24x7
>        max_check_attempts              3
>        normal_check_interval           3
>        retry_check_interval            1
>        contact_groups                  linux-admins
>        notification_interval           120
>        notification_period             24x7
>        notification_options            w,u,c,r
>        check_command                   checkntp
>        }
>
> Not that NTP is a critical process (I haven't gotten to the point of 
> fine tuning the config), but I cannot even get nagios to monitor it.  
> Now, Nagios is happily monitoring a bunch of other services, though...
>
> Any ideas as to where to start to debug this?  I would be great to see 
> what command it is acutally executing as it might help in the debugging..
>
> -Rich
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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