NAGIOS 3: Adjusting fields which appear in the default nagios log
Stuart Browne
stuart.browne at ausregistry.com.au
Wed Mar 17 23:01:08 CET 2010
> -----Original Message-----
> From: Morris, Patrick [mailto:patrick.morris at hp.com]
> Traiano Welcome wrote:
> > Hi All
> >
> > I'm sending nagios logs to a 3rd party application (Netcool) for
> > processing, and there is a requirement for the IP address of the
> > monitored device to appear in the ALERT and NOTIFY log lines for host
> > and service statuses. Where would I adjust which fields appear in the
> > nagios log lines?
> >
> > A typical host ALERT log line on my installation looks like this:
> >
> > ---
> > Mar 17 11:51:42 nagserver nagios: HOST ALERT:
> > <hostname-x>;UP;SOFT;2;PING OK - Packet loss = 0%, RTA = 260.81 ms
> > ---
> >
> > I'd like an extra field to appear after <hostname-x> indicating the
> IP
> > of the host. If possible, I'd even like to insert $PARENT for the
> > host as a field somewhere here.
>
> If I had to do this, I'd just modify my notification command to
> generate
> a separate log with the fields required, using the provided macros.
What about the obsessive compulsive service/host command? Completely customizable, and easy to implement.
Stuart
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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