RES: Custom Objects

Bruno Nagano Bruno.Nagano at grupont.com.br
Thu Jul 13 19:04:38 CEST 2006


At this moment I am inclined to use the alias field to place my extra data. I know I will have a weird value on my nagios page, but I won´t be changing any of the nagios default behavior. I would greatly appreciate to have your wrapper, which seems to be the best solution.

Thanks in advance

-----Mensagem original-----
De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Chet Luther
Enviada em: quinta-feira, 13 de julho de 2006 11:24
Para: nagios-users at lists.sourceforge.net
Assunto: Re: [Nagios-users] Custom Objects

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


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