RES: Custom Objects

John P. Rouillard rouilj at cs.umb.edu
Thu Jul 13 04:30:32 CEST 2006


In message <Pine.LNX.4.58.0607122155580.8713 at gandalf.hugo.vanderkooij.org>,
Hugo van der Kooij writes:
>On Wed, 12 Jul 2006, Bruno Nagano wrote:
>> I am trying to add a code field to the server template:
>>
>>....
>>
>>       cd_object               1     ;New field in order to place a
>> constant                                     value
>
>You can't just make up fields. If it ain't in the manual you are not
>allowed to add it.

I think nagios 3 is scheduled to have this capability.

However if you are just using this parameter in commands
(notification, check commands etc) you can do some of what you want by
creating a script that takes two arguments: the hostname and the
parameter.

Then invoke the script in the command definition as `get_custom_fields
$HOSTNAME$ cd_object`. I put together a longer writeup on the
nagios-users list a few months back with the subject "per host custom
macros", but I can't find it right now.

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.


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