Include host notes in notifications

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Include host notes in notifications

Postby joedetroit » Wed Jul 20, 2011 9:22 am

---edit: discovered custom variables and made one to do what I need ---

Hi all--

I just started at a company which has a Nagios3 Core installation, and I've been tasked with adding notes to some of the hosts (specifically routers with circuit IDs, etc.)

How can I add the 'notes' field from the host definition to the notification email that goes out when a host is down?

I tried $HOSTNOTES$ hoping to get lucky, but it didn't work ;-)

Here's a host definition I set up for testing---

# 'TEST HOST' host definition
define host{
use generic-host ; Name of host template to use
host_name it3nb
alias Notebook for Notification Test
address 111.111.111.111
check_command check-host-alive
max_check_attempts 5
notification_interval 3
notification_period workhours_remote
notification_options d,u,r
contact_groups server-admins
notes TESTING HOST NOTES <----this is what I want to add to the emails
}


Thanks for any help,
Joe
joedetroit
 
Posts: 1
Joined: Tue Jul 19, 2011 4:28 pm

Return to Nagios Core

Who is online

Users browsing this forum: bugmenot and 38 guests