Alert messages as files?
Marc Powell
marc at ena.com
Mon Feb 27 21:06:26 CET 2006
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of John R. Daily
> Sent: Saturday, February 25, 2006 6:54 AM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Alert messages as files?
>
> I'm in the early stages of evaluating Nagios 2.0 for broader use in
> our environment, and one of the negative aspects for me is the
> current approach for defining alert messages. I would much rather
> have them defined individually outside the configuration files, but
> still (obviously) allowed to reference macros.
Many people already do this by making their notification commands a
custom script instead of using /bin/mail[x] directly, passing the
necessary macros as command line options. The sample notification
commands are just that, samples. They get the job done in most cases but
can be enhanced or replaced as needed by more advanced users.
> It occurred to me that one relatively straightforward solution would
> be to define an external helper that could parse alert files, looking
> for macro invocations and replacing the values with data from the
> NAGIOS_ environment variables.
>
> Rather than reinvent the wheel: are there any such tools floating
> around in the Nagios ecosystem?
None that I am aware of that are public/OSS. Reliable Response's product
may do something similar as part of it's bag of tricks.
>
> Alternatively, is anyone aware of a good reason to not take this
> approach?
It should be fine. Macros as environment variables is a new feature with
2.0 and I don't recall anyone specifically saying they're using them or
having problems with them so YMMV. I'll probably start using them in the
future as we transition to 2.0.
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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