Notifications Escalations
Posted: Fri Dec 07, 2018 9:37 am
Hi guys,
We are having problems to send an sms when a service control fails.
If i test through prompt we get the sms successfully:
But with nagios flux not.
My config is:
Serviceescalation
HostGroup
Commands
Services
Hosts
Thanks for all
We are having problems to send an sms when a service control fails.
If i test through prompt we get the sms successfully:
Code: Select all
/usr/local/nagios/libexec/sendsms.sh service <number>My config is:
Serviceescalation
Code: Select all
define hostescalation {
# config_name host_dummy
hostgroup_name Host_Dummy_Escalation
contacts MORABANC
first_notification 1
last_notification 3
notification_interval 15
escalation_period 24x7
}Code: Select all
define hostgroup {
hostgroup_name Host_Dummy_Escalation
alias Host_Dummy_Escalation
members host_dummy
}Code: Select all
define command {
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$
}
define command {
command_name host-notify-by-sms
command_line $USER1$/sendsms.sh host $CONTACTPAGER$
}
define command {
command_name service-notify-by-sms
command_line $USER1$/sendsms.sh service $CONTACTPAGER$
}Code: Select all
define service {
host_name host_dummy
service_description check_dummy
use generic-service
check_command check_dummy!0!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 5
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
flap_detection_enabled 0
notification_interval 60
notification_period 24x7
notification_options w,c,u,r,
notifications_enabled 1
contacts MORABANC
register 1
}Code: Select all
define host {
host_name host_dummy
alias host_dummy
address 127.0.0.1
hostgroups Servidores
check_command check_dummy!0!!!!!!!
max_check_attempts 3
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 0
contacts MORABANC
notification_interval 60
notification_period 24x7
notification_options d,u,r,
notifications_enabled 1
register 1
}