Custom Objects

Chet Luther chet.luther at gmail.com
Thu Jul 13 16:24:19 CEST 2006


On 7/12/06, Bruno Nagano <Bruno.Nagano at grupont.com.br> wrote:
> I would like to know if it is possible to create a custom object in Nagios.
> I want to add a couple of fields to the server template, but when I try to
> insert a new field, the nagios service will not start. Can I add a text
> field to an object template?

As you've already been told, Nagios doesn't support this natively. I
needed the same functionality so I built a Perl wrapper to allow abitrary
metadata to be added to any config file definition like so:

define host{
    host_name router1a
#=  snmp_community public
    }

The whole config gets serialized into a Perl cache whenever Nagios is
reloaded and all of my scripts (notification/service checks) have access
to this additional data.

If you're comfortable with Perl and interested, I can send you the code.

-- 
Chet Luther
chet.luther at gmail.com


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