<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Re: [Nagios-users] NAGIOS 3: Adjusting fields which appear in the default nagios log</title>
</head>
<body>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Hmmm. Thanks, good suggestions all, I’ll investigate each one :-)<br>
<br>
Thanks,<br>
Traiano<br>
<br>
<br>
<hr align="CENTER" size="3" width="95%">
<b>From: </b>Stuart Browne <<a href="stuart.browne@ausregistry.com.au">stuart.browne@ausregistry.com.au</a>><br>
<b>Reply-To: </b>Nagios Users List <<a href="nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
<b>Date: </b>Thu, 18 Mar 2010 00:01:08 +0200<br>
<b>To: </b>Nagios Users List <<a href="nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
<b>Subject: </b>Re: [Nagios-users] NAGIOS 3: Adjusting fields which appear in the default nagios log<br>
<br>
> -----Original Message-----<br>
> From: Morris, Patrick [<a href="mailto:patrick.morris@hp.com">mailto:patrick.morris@hp.com</a>]<br>
> Traiano Welcome wrote:<br>
> > Hi All<br>
> ><br>
> > I'm sending nagios logs to a 3rd party application (Netcool) for<br>
> > processing, and there is a requirement for the IP address of the<br>
> > monitored device to appear in the ALERT and NOTIFY log lines for host<br>
> > and service statuses. Where would I adjust which fields appear in the<br>
> > nagios log lines?<br>
> ><br>
> > A typical host ALERT log line on my installation looks like this:<br>
> ><br>
> > ---<br>
> > Mar 17 11:51:42 nagserver nagios: HOST ALERT:<br>
> > <hostname-x>;UP;SOFT;2;PING OK - Packet loss = 0%, RTA = 260.81 ms<br>
> > ---<br>
> ><br>
> > I'd like an extra field to appear after <hostname-x> indicating the<br>
> IP<br>
> > of the host. If possible, I'd even like to insert  $PARENT for the<br>
> > host as a field somewhere here.<br>
><br>
> If I had to do this, I'd just modify my notification command to<br>
> generate<br>
> a separate log with the fields required, using the provided macros.<br>
<br>
What about the obsessive compulsive service/host command?  Completely customizable, and easy to implement.<br>
<br>
Stuart<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
</span></font><br>
<hr>
<font face="Arial" color="Gray" size="1">NOTE: This e-mail message and all attachments thereto contain confidential information intended for a specific addressee and purpose. If you are not the addressee (a) you may not disclose, copy, distribute or take any
 action based on the contents hereof; (b) kindly inform the sender immediately and destroy all copies hereof. Any copying, publication or disclosure of this message, or part hereof, in any form whatsoever, without the sender's express written consent, is prohibited.
 No opinion expressed or implied by the sender necessarily constitutes the opinion of MTN. This message does not constitute a guarantee or proof of the facts mentioned herein. No Employee or intermediary is authorised to conclude a binding agreement on behalf
 of MTN Group Limited, or any of its subsidiary companies, by e-mail without the express written confirmation by a duly authorised representative of MTN Group Limited.<br>
</font>
</body>
</html>