nagiosbounce.sh
Jason Lancaster
jlancaster at affinity.com
Fri Jun 20 20:44:34 CEST 2003
Also, keep in mind that unless you use status retention you'll receive (a
second time) all of your notifications and alerts for "down" services and
hosts. I've never seen nagios run duplicate processes unless I use the
nagios init.d script to restart, therefore I'd opt to disable status
retention and have nagios run 24x7 rather than enable status retention and
have nagios restart once daily.
How often do you see duplicate processes running? You could take your
restart-daily script a step further and write a custom nagios monitor which
would perform a ps and search for duplicate nagios processes that have been
running more than 30 minutes. I needed a script to do this (and a little bit
more) anyway, so I wrote one that should work for your situation. I attached
it to this email but you may also find it at
http://jasonplancaster.com/projects/scripts/check_duplicate_proc.pl
Cheers,
-Jason
----- Original Message -----
From: "Tom DE BLENDE" <Tom.DeBlende at dhl.com>
To: <jamie.baddeley at vpc.co.nz>
Cc: "Martin Jeremy" <jmartin at gsi-kc.com>;
<nagios-users at lists.sourceforge.net>
Sent: Friday, June 20, 2003 3:19
Subject: Re: [Nagios-users] nagiosbounce.sh
> Dear,
>
> One thing I could see as a setback, is that -if you have set
> inter_check_delay_method to smart- you will have services that don't
> get checked right after the restart every day...
>
> Kind regards,
> Tom
>
>
> Jamie Baddeley wrote:
> > Hi Jeremy,
> >
> > Technically I don't see any problems with this, but it does beg the
question
> > - why do you need to do this?
> >
> > Linux is not the environment to practise the ctrl-alt-del school of
> > networking.
> >
> > :-)
> >
> > jamie
> >
> > On Fri, 20 Jun 2003 09:17, Martin, Jeremy wrote:
> >
> >>For the past few days I have been running this script at 4:00 PM every
day
> >>(so I will notice if it messes anything up before I leave work)... It
has
> >>worked great to prevent rogue nagios instances from running. I just
wanted
> >>to run this by the list real quick to see if anyone thinks doing this
might
> >>cause any problems.
> >>
> >>#################################
> >>#!/bin/sh
> >>/etc/rc.d/init.d/nagios stop
> >>killall nagios
> >>/etc/rc.d/init.d/nagios start
> >>#################################
> >>
> >>Thanks,
> >>Jeremy
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by: INetU
> >>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> >>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> >>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> >>_______________________________________________
> >>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: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > 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: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_duplicate_proc.pl
Type: application/octet-stream
Size: 4476 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030620/ad449d16/attachment.obj>
More information about the Users
mailing list