FW: Nagios father, script son ??

Balestra, Roberto Roberto.Balestra at getronics.com
Fri Nov 18 13:32:43 CET 2005


Sorry I wrong the previous mail address

-----Original Message-----
From: Balestra, Roberto 
Sent: venerdì 18 novembre 2005 13.27
To: 'nagios-users-admin at lists.sourceforge.net'
Subject: RE: [Nagios-users] Nagios father, script son ??


Hi,
why don't you try nrpe on localhost.
When your script stop nagios, check_nrpe end with an error, but your called script should go ahead

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of enrico
> fanti
> Sent: venerdì 18 novembre 2005 13.19
> To: jpratt at norwich.edu; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios father, script son ??
> 
> 
> Hi,
> I tried that but it doesn't work..
> 
> It seems to be very stange case...
> 
> 
> 
> 
> Jamie Pratt wrote:
> 
> > did you try tagging an & on the end of the command line to 
> fork it off
> > into the background? sometimes this will help..
> >
> > regards,
> > jamie
> >
> > -- 
> >
> > James Pratt
> > Unix Systems Administrator
> > Norwich University - Information Technology
> > jpratt at norwich.edu | 1-802-485-2532
> >
> >
> >
> > enrico fanti wrote:
> >
> >> Hi to all
> >>
> >> I have this problem
> >>
> >> Nagios executes a script.
> >> This script have to restart the Nagios process in this way:
> >>
> >> /etc/init.d/nagios stop
> >> /etc/init.d/sendmail restart
> >> /etc/init.d/named
> >> /etc/init.d/nagios start
> >>
> >> The problem is that when the script execute this sequence, it
> >> executes only:
> >>
> >> /etc/init.d/nagios stop
> >> /etc/init.d/sendmail stop
> >>
> >> It seems that the father Nagios execute the son script, but this
> >> script dies when the father dies (Nagios).
> >>
> >>
> >> Is there a way to run the son script separately from the father
> >> Thak you
> >>
> >> Enrico
> >>
> >
> >
> >
> 
> -- 
> =======================================
> Enrico Fanti
> PointerCom s.p.a - http://www.pointercom.it
> Via Francesco De Sanctis, 9
> 00195 Roma - ITALY
> tel. +39-06-37591259
> fax +39-06-37591202
> e.fanti at pointercom.it
> ================================ 
> 
> 
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
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