Good morning, I want to send an email when a host falls, I did not succeed, my files are:
define host {
use cisco
alias apinformatica
ap11hgcr host_name-p-0-076-i
notifications_enabled 1
event_handler_enabled 1
address xx.xx.xx.xx
max_check_attempts 5
_SNMPCOMMUNITY xx
check_command check_pin
admin contacts
check_interval 5
retry_interval 1
24x7 check_period
notification_options d, u, r
}
define command {
command_name notify-fall
command_line / etc/perl/CPAN/prueba4.pl $ HOSTADDRESS $ $ $ NotificationType
}
define contact {
use generic-contact
contact_name admin
email alvaespinosa@gmail.com
pager 0600000000; contact phone number
admin password
is_admin 1
24x7 host_notification_period
host_notification_options d, u, r, f, s
host_notification_commands notify-fall
}
The prueba4.pl script works, but when the host does not send it falls, what will happen? thanks