Configuration
Last Updated: Mon Jan 18 19:51:27 PST 2021
Nagios® Core™ 3.5.1 -
www.nagios.org
Logged in as
nagiosadmin
Object Type:
Hosts
Host Dependencies
Host Escalations
Host Groups
Services
Service Groups
Service Dependencies
Service Escalations
Contacts
Contact Groups
Timeperiods
Commands
Command Expansion
Command Expansion
Command Name
Command Line
To expand:
notify-host-by-email
notify-host-by-email
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
->
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$
\nHost:
$HOSTNAME$
\nState:
$HOSTSTATE$
\nAddress:
$HOSTADDRESS$
\nInfo:
$HOSTOUTPUT$
\n\nDate/Time:
$LONGDATETIME$
\n" | /usr/bin/mail -s "**
$NOTIFICATIONTYPE$
Host Alert:
$HOSTNAME$
is
$HOSTSTATE$
**"
$CONTACTEMAIL$
Enter the command_check definition from a host or service definition and press Go to see the expansion of the command
To expand: