Re: [Nagios-devel] Additional macros for service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Additional macros for service

Post by Guest »

Hi Jason.
what you need to do is to modify xdata/xodtemplate.c,
common/objects.c, & common/objects.h
to add your extra fields.

to add extra macros you need to modify utils.c.. see
http://svn.webperf.org/WebSVN/diff.php? ... ev=62&sc=1
for an example of how I did it

On Fri, 6 Aug 2004 10:51:01 -0700, Jason Martin wrote:
> On Fri, Aug 06, 2004 at 10:45:04AM -0700, Jason Martin wrote:
> > On Fri, Aug 06, 2004 at 12:30:31PM -0500, Marc Powell wrote:
> > > An alternative would be to alter your notification command to suit your
> > > specific needs and grab that extra info from a flat file, db or other
> > > data source before sending the alert.
> >
> > I thought about that, but the problem is that I'd have to
> > maintain two seperate config files. It would be much easier to
> > maintain syncronization if they stayed in the same file.
> Another thought is that only one of the two sets of data would
> benefit from Nagios's templating, so the 'other' file would not
> even correspond 1:1 with the Nagios file.
>
>
>
> -Jason Martin
> --
> If voting changed anything, they'd make it illegal.
> This message is PGP/MIME signed.
>
>
>





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked