custom fields

Aaron Segura Aaron.Segura at cabelas.com
Mon Oct 16 17:07:18 CEST 2006


We accomplish this same thing using a script called 'oncall', which will
output the contact information for whoever is on call currently, in
conjunction with a script I posted on nagiosexchange called
'nagios_notify'.  It allows you to easily execute a command and include
the output in your notifications, among a few other neat little tricks.
 
http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1[
p_view]=627

</plug>

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Steve
Shipway
Sent: Sunday, October 15, 2006 3:14 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] custom fields

Az wrote:
> Kyle Vorster wrote:
> > What i am trying to do is give a more detailed email 
> notification to my
> > clients.
> You can define your notification commands 
> (http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command) with

> whatever you want in them using the relevant macros 

I think the idea was to get a more detailed description on a
*per-service* basis.  This was our problem, also.

The way I managed to get around it was to create a new program -
'buster'.

This has two parts - one, a web frontend that stores messages in a mysql
database, and two, an extraction utility that, when given hostname and
servicename, will spit out a message deduced from the database.  This
utility is embedded in the notify command.

The web frontend unfortunately doesnt have any extra security in it, so
anyone can edit any of the match templates.  Also, the extracted
messages are fixed text and dont have embedded replaceable symbols;  but
they can match on host, hstgroup, servicename, status, and using
wildcards.

I havent posted to Nagiosexchange because it would require a bit more
work to be generic enough for everyone else to use it easily; however if
youre perl-savvy email me and you can have a copy.

The name 'buster' comes from 'ghostbuster', since it is supposed to use
this extra text to tell the night ops who they're gonna call...

Steve

--
Steve Shipway
ITSS, University of Auckland 
(09) 3737 599 x 86487
s.shipway at auckland.ac.nz

 

------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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