Service linked to hostgroup / notifications
Kevin Keane
subscription at kkeane.com
Fri Feb 27 10:24:39 CET 2009
This isn't really a Nagios issue any more - but here is my experience
with this issue:
I used to have the same problem with VMWare Server 1.x. Haven't seen it
happen in version 2.x, so upgrading might be a good idea if there is no
reason for you not to do it. In 1.x, the problem of clock
desynchronization really was quite dramatic.
The real problem was that the clock drifts so fast that it exceeds ntp's
threshold for how much it will adjust. IOW, ntp just plain can't keep up
with the extreme clock drift by VMWare. My workaround: create a cron job
that as much as every ten minutes restarted the ntp daemon. On restart,
ntp will synchronize the time regardless of what the differential is. Of
course, the ten minute interval would sometimes be substantially
different from actual ten minutes, but that doesn't really matter much
here. During these ten minutes, the clock may still drift quite a bit,
but at least it will get corrected fairly quickly.
David Fontaine wrote:
> NTP is configured for every server, except for some virtual machines
> synchronizing their clocks with the host on which they are running.
>
> It happened once or twice that the clock got desynchronized, even
> using NTP so I just want to make sure everything is in sync by
> monitoring the servers with nagios.
>
> On Thu, Feb 26, 2009 at 7:48 PM, Lee Azzarello <lee at dropio.com
> <mailto:lee at dropio.com>> wrote:
>
> On Thu, Feb 26, 2009 at 1:17 PM, David Fontaine
> <dav.fontaine at gmail.com <mailto:dav.fontaine at gmail.com>> wrote:
> > Hello,
> >
> > I am monitoring a few dozen of servers and I'm really satisfied
> with nagios.
> > This is a great tool.
> >
> > However, there's one (actually more than one) thing that I can't
> figure out
> > :
> >
> > I define a service :
> >
> > define service{
> > use generic-service
> > hostgroup_name linux-servers
> > service_description Time
> > check_command check_time!public
> > }
> >
> > This service applies to a host group so that I don't have to
> define the
> > service for each server. The command doesn't matter but for
> completeness
> > here's what it does : it compares the time on a remote server
> (snmp) to the
> > local time and report the difference.
>
> Going out on a limb here...have you considered using the Network Time
> Protocol to keep all your host's clocks in sync with an Internet scale
> network of federated time servers available to you for free?
>
> I'm using NTP on a network of 40 hosts and I never have worried about
> their clocks getting out of sync.
>
> -lee
>
--
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About
Office: 866-642-7116
http://www.4nettech.com
This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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