Include host notes in notifications

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
joedetroit
Posts: 1
Joined: Tue Jul 19, 2011 4:28 pm

Include host notes in notifications

Post by joedetroit »

---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
Locked