Additional Fields in Notifications
Marc Powell
marc at ena.com
Tue Jun 15 18:33:28 CEST 2004
Jason Branscum <mailto:jasonb at teletouch.net> wrote:
> Greets all
>
> When replacing WhatsUp with Nagios, I neglected to check for a
> certain functionality that some of my staff rely on. Currently in
> WhatsUp, there are "Notes" fields which contain text, we use them to
> store contact information on sites; ie circuit numbers, contact phone
> numbers, etc.
> We're all paged with this information and need not logon to a PC to
> look this information up; its just handy.
>
> I've come up with only one solution; to recode check_ping to parse a
> txt file for a site name and include the site information whenever a
> return is WARN or CRIT. Before I went out coding this, I wanted to
> see if anyone had any bright ideas on how to email out extra fields
> per host.
Nagios does have the ability to add host/service specific external
information links but they're can't be included in the notifications.
Why not modify the host/service_notify_by_email command? It's just a
script and so can be as simple or as complicated as you need it to be.
Given the parameters you can pass to the notification script
(http://nagios.sourceforge.net/docs/1_0/macros.html), it should be a
fairly trivial task to pull whatever other additional information you
require in your notifications from a flat file or DB or wherever you
store it. It could be as simple as duplicating the WhatsUp information
in flat files named after the host_name in Nagios and just cat it into
the email you're sending.
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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