Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

Custom Nagios notify-host-by-email

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.

Custom Nagios notify-host-by-email

Postby permier_andersen » Mon Feb 06, 2023 3:53 am

HI All, I'm having trouble customizing the notify email issues. For the time being, I'm defining the hostgroup as "Alisa" with a group name. On the hosts file, define the hostgroup member. The issue now is retrieving the $hostgroupalias$ value and having it return the same value. How can I get the value back with HKG Group 1?

define host{
use passive_host
host_name ADC01
hostgroups HKG1,Windows

define hostgroup{
hostgroup_name HKG1
alias HKG Group 1
define hostgroup{
hostgroup_name Windows
alias Windows

command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHostgroup: $HOSTGROUPNAMES$ \nHostgroup: $HOSTGROUPNAMES\n HostGroup Name :$HOSTGROUPALIAS$ .....>

The output result will show windows only.

Thx all
Posts: 1
Joined: Mon Feb 06, 2023 3:42 am

Return to Open Source Nagios Projects

Who is online

Users browsing this forum: No registered users and 13 guests