Include host notes in notifications

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Return to Community Support

Who is online

Users browsing this forum: Bing [Bot] and 29 guests