Nagios can be configured to send notifications by various ways and in various formats.
If you need to personalize that please refer to your commands.cfg.
This is an example to show you how to receive a short notification by sms using gnokii:
define command{
command_name notify-host-by-sms
command_line /usr/bin/printf "%.120s" "$HOSTALIAS$ is $HOSTSTATE$" |/usr/local/bin/gnokii --sendsms $CONTACTPAGER$ -r
}
define command{
command_name notify-service-by-sms
command_line /usr/bin/printf "%.120s" "$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" | /usr/local/bin/gnokii --sendsms $CONTACTPAGER$ -r
}
The output is like this "hostname is up"
I know it's an old post, but I just ran across this question while I was looking for something else. I'm not much of a nagios expert, but I do love it.
Any check that you place in a hostgroup will apply to any host in that hostgroup (which you knew already). If you create the same check in the host cfg, then it'll override the hostgroup check.
Anyhow, the way I do this is to:
1. Set up a hostgroup cfg file with the checks in it.
Here's my basic C: drive space check.
define service{
use generic-service
hostgroup_name windows-servers
service_description C: Drive Space
notification_period workhours
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
2. However, one server runs with much less free space than the norm. So in it's host cfg, I have:
define service{
use generic-service
host_name ServerName
service_description C: Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 95 -c 99
notification_period workhours
}
Now the service check is going to alert you for 80% and 90% for all hosts in the hostgroup, except for the host that you added the check with the change values in it.
Arranging it this way allows me to only add custom services, and service checks that aren't the norm in the host definition.
I'm not sure if this is common use or not, but this article blew my mind when it came to setting up the config files. I was already tired of editing these humongous text files, and this just made it so easy.
Anyway, I hope that helps.
Best Answer
You need to thoroughly look at your configuration and your logs - I have never seen Nagios ignoring a scheduled downtime.
Note that there is a bug which might be related here, and is fixed in versions > 3.4.1.