Display Hostname with Warning or Critical


#1

Is there a way to also show the hostname of a computer when there is a warning or critical error that gets sent out via email? Right now it is only displaying the IP address.

Thanks


#2

have a look here:

nagios.sourceforge.net/docs/3_0/macros.html

and modify your host/service-notify-by-email command accordingly :slight_smile:


#3

Thanks. I figured out that I needed to have the alias in the define host part the same as the computer name. Not Windows Server.