[Nagios-users]

Sanderson, Andrew Andrew.Sanderson at ahsys.org
Fri Jul 11 15:54:39 CEST 2003


Can somebody help me with a shell script I am trying to write for
nagios.
I am new to nagios and linux.

I can restart a failed nt service from nagios by hardcoding the server
name into an eventhandler script such as this.

/usr/bin/rsh thentservername net start \"Spooler\"

How can I have nagios enter the servername by reading the value of the
$HOSTADRESS$ variable ?

I have 30 servers I would like to monitor and would have to have 30
separate scripts and checkcommands at present.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030711/87238fb3/attachment.html>


More information about the Users mailing list