init script

James Lockie bjlockie at lockie.ca
Fri Feb 22 03:39:20 CET 2008


mark.potter at academy.com wrote:
>
>
> nagios-users-bounces at lists.sourceforge.net wrote on 02/21/2008 
> 03:53:22 PM:
>
> > Can someone please send me the init script?
> > I didn't install it before I got rid of the source.
> >
> >
> Here is one for CentOS: http://www.unixservers.us/content/view/51/69/
>
> Of course I imagine that http:www.google.com has more. As for sending 
> one it's sort of hard because you haven't said whether you are running 
> on Linux (what distro), BDS, Solaris, etc. I could send you mine but 
> we are a SLES shop and I don't know what you run. I hope the CentOS 
> one helps you out.
The CentOS one was easy to adapt.
I added a check before start to see if it is running:
                if [[ `status_nagios nagios` ]]
                then
                        echo "Nagios is already running"
                else


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/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