check_ntp
Irene Sakellarakis
irenes at wolfram.com
Tue May 20 22:12:18 CEST 2003
I added that and restarted Nagios. I'm afraid there's no change. Ntp is
run as a cron job only on the Nagios host. Host1 is running ntpd as a
daemon.
-Irene
On Mon, 19 May 2003, Subhendu Ghosh wrote:
>
> You are missing the -H in the command definition. It may have worked
> without it in older versions, but release 1.3.0 requires the option.
>
> You mentioned that nptd is being run from cron - is that the case for
> host1 or is ntpd running as a daemon.
>
> -sg
>
>
> On Fri, 16 May 2003, Irene Sakellarakis wrote:
>
> > The host is running an ntp server.
> >
> > >From checkcommands.cfg:
> > # 'check_ntp' command definition
> > define command{
> > command_name check_ntp
> > command_line /usr/local/nagios/libexec/check_ntp $HOSTADDRESS$
> > -w 60 -c 180
> > }
> >
> > >From services.cfg
> > # Service definition
> > define service{
> > use generic-service ; Name of
> > service template to use
> >
> > host_name host1
> > service_description NTP
> > is_volatile 0
> > check_period 24x7
> > max_check_attempts 3
> > normal_check_interval 3
> > retry_check_interval 1
> > contact_groups unix-high
> > notification_interval 120
> > notification_period 24x7
> > notification_options w,u,c,r
> > check_command check_ntp
> >
> >
> > OS on host1 is Red Hat 6.1, kernel 2.2.19
> >
> > Thanks,
> > Irene
> > On Fri, 16 May 2003, Subhendu Ghosh wrote:
> >
> > >
> > > check_ntp -H host1
> > >
> > > - requires that host1 be running a ntp server.
> > >
> > > What is the command config?
> > >
> > > -sg
> > >
> > >
> > > On Fri, 16 May 2003, Irene Sakellarakis wrote:
> > >
> > > > check_ntp -H $HOSTNAME$ works just fine from the command line of the
> > > > nagios server. I cannot get the web interface to display a check. I'm
> > > > confused as to whether the check occurs at all (since it works from
> > > > the command line) or if Nagios is, in effect, not updating this
> > > > particular service.
> > > >
> > > > The error message I get is: "NTP CRITICAL: No suitable peer server found -
> > > > Server for ntp probably down"
> > > >
> > > > What I've done so far:
> > > >
> > > > *Updated all my plugins to the latest version from sourceforge.
> > > >
> > > > *Specified the location of ntpdate in utils.pm to reflect the location on
> > > > the nagios server (this location is different on the client I'm checking).
> > > >
> > > > *ntpd seemed to be problematic on the host server, so I've stopped ntpd as
> > > > a daemon and am running a cron job every 60 seconds to synchronize with my
> > > > time server (stratum 2 server).
> > > >
> > > > Any assistance is greatly appreciated,
> > > > Irene
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> > > > The only event dedicated to issues related to Linux enterprise solutions
> > > > www.enterpriselinuxforum.com
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> > >
> >
>
>
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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