NAGIOS 3: Adjusting fields which appear in the default nagios log

Traiano Welcome Traiano.Welcome at mtnbusiness.co.za
Wed Mar 17 11:29:05 CET 2010


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.

Thanks in Advance
Traiano
________________________________
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100317/e0b34222/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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