custom notification script

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Jan 23 13:32:28 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/01/08 05:49 AM, Rilawich Ango wrote:
> Hi all,
> In the templates.cfg, there is a notification command called
> notify-host-by-email.  Where to define that command?
> How can I write my own command when there is a problem?
> ango

Look for files named "commands.cfg", "misccommands.cfg" or
"checkcommands.cfg" or grep for "notify-" in your config directory.

That command is defined by a "define command" definition. You can
obviously change it and use custom scripts to send notifications. You
should look at the documentation too so see which macros you can use:

http://nagios.sourceforge.net/docs/2_0/macros.html

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlzPc6dZ+Kt5BchYRAhKZAKCyabgF6ajCLwLD979CQzjgPukeBACgqG1X
ogz1pGCQs2P4vsP0p9/BmLw=
=h4b0
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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