Can I configure my own shell scripts
Marcel
webknowledge at gmail.com
Tue May 27 00:23:35 CEST 2008
#!/bin/bash
# nusers.sh
WARN_T=$1;
CRIT_T=$2;
UPTIME="/usr/bin/uptime";
NUSERS_NOW=`$UPTIME|awk '{print $4}'`;
[[ $NUSERS_NOW -lt $WARN_T ]] || ( echo "WARNING"; exit 1);
[[ $NUSERS_NOW -gt $CRIT_T ]] && (echo "CRITICAL"; exit 2);
echo "UKNOWN"; exit 3;
#end nusers.sh
On Mon, May 26, 2008 at 12:39 PM, Andy Shellam <
andy.shellam-lists at mailnetwork.co.uk> wrote:
> Install the Nagios sample configuration files and you will see how the
> configuration is laid out.
> The documentation (supplied with the installation) is really decent; at
> least have a look and then come back with specific questions.
>
> Andy
>
> Mangesh Dhamale wrote:
> > hi,
> >
> > Can you give me any example.
> >
> > Regards,
> >
> > Mangesh Dhamale
> > -----------------------------------------------------------------
> > System Administrator
> > Suma Soft Pvt. Ltd.
> > Suma Center, IInd Floor, Opp. Himali Society,
> > Near Mangeshkar Hospital, Erandwane, Pune - 411004
> > Ph : +91-20-40130400 Extn : 327
> > Cell : +91-98508 87775
> > www.sumasoft.com
> > ------------------------------------------------------------------
> >
> > ----- Original Message -----
> > From: "Andreas Ericsson" <ae at op5.se>
> > To: "Mangesh Dhamale" <mangesh.dhamale at sumasoft.net>
> > Cc: <nagios-users at lists.sourceforge.net>
> > Sent: Monday, May 26, 2008 3:46 PM
> > Subject: Re: [Nagios-users] Can I configure my own shell scripts
> >
> >
> >
> >> Mangesh Dhamale wrote:
> >>
> >>> Hello Everyone,
> >>>
> >>> I have one query, can I monitor my own shell scripts.
> >>>
> >>>
> >> Yes.
> >>
> >> --
> >> Andreas Ericsson andreas.ericsson at op5.se
> >> OP5 AB www.op5.se
> >> Tel: +46 8-230225 Fax: +46 8-230231
> >>
> >>
> > ----------------------------------------------
> > Confidentiality Note: This e-mail message and any attachments to it are
> > intended only for the named recipients and may contain legally privileged
> > and/or confidential information. If you are not one of the intended
> > recipients, please forward this mail to abuse at sumasoft.net and do not
> duplicate or forward this
> > e-mail message and immediately delete it from your computer.
> > ----------------------------------------------
> >
> > -------------------------------------------------------------------------
> > 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
> >
>
> -------------------------------------------------------------------------
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080526/2dfcbc93/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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