Adding a Custom Field to notifications

Marc Powell marc at ena.com
Mon Aug 2 03:09:18 CEST 2004


The notification command can be anything. For simplicity's sake the default is just to pipe a few things to /bin/mail(x). You could make the command a simple script that pulls all the additional information you'd like to include in the email from whatever data source you use in the format you like and send _that_ to mail(x). The data source could be grep'ing the host name out of a text file formatted like 'hostname: other info' (but not very practical for upkeep). In that way you're not limited to just those few things that can be included in Nagios.

--
Marc

p.s. Please try to post to the list in plain text. Not only will more people be able to see it and respond but it makes replying in context easier and doesn't clutter the digests with useless HTML.
________________________________________
From: Edwards, Thomas W. [mailto:TWEdwards at cimplify.net] 
Sent: Sunday, August 01, 2004 6:39 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Adding a Custom Field to notifications

Was doing some research into finding how to add a custom field to the notifications?  Is there a way to make it also include say a phone number for a downed site when paging?  

Thanks for the help.



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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