nagios notification
Posted: Thu Oct 31, 2013 3:28 pm
Could somebody look at my config's and say why nagios does NOT send notifications for a remote host state?
Host is pingable, and can connect via ssh.
myhost.cfg
__________________________________
define host {
use generic-host
host_name centos
alias CentOS on my VM
address 192.168.1.148
notifications_enabled 1
event_handler_enabled 1
failure_prediction_enabled 1
process_perf_data 1
notification_options d,u,r,s
check_period 24x7
notification_interval 1
notification_period 24x7
contacts vvz
}
define service{
use generic-service
host_name centos
service_description Disk Space
check_command check_all_disks!80%!90%
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description Current users logged in
check_command check_users!4!6
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description Curren Load
check_command check_load!0.80!0.80!0.80!10.0!6.0!4.0
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description PING
check_command check_ping!100.0,20%!500.0,60%
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description SSH
check_command check_ssh
register 1
notifications_enabled 1
}
mycontact.cfg
______________________________________________________________________________
define contact{
contact_name vvz
alias Admin of local machine
service_notification_period 24x7
host_notification_period 24x7
service_notification_options s,w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email [email protected]
}
_________________________________________________________________________________--
enable-notificatios = 1 in nagios.cfg
Thank you
_____________________________________________________________________________________
Host is pingable, and can connect via ssh.
myhost.cfg
__________________________________
define host {
use generic-host
host_name centos
alias CentOS on my VM
address 192.168.1.148
notifications_enabled 1
event_handler_enabled 1
failure_prediction_enabled 1
process_perf_data 1
notification_options d,u,r,s
check_period 24x7
notification_interval 1
notification_period 24x7
contacts vvz
}
define service{
use generic-service
host_name centos
service_description Disk Space
check_command check_all_disks!80%!90%
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description Current users logged in
check_command check_users!4!6
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description Curren Load
check_command check_load!0.80!0.80!0.80!10.0!6.0!4.0
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description PING
check_command check_ping!100.0,20%!500.0,60%
notifications_enabled 1
}
define service{
use generic-service
host_name centos
service_description SSH
check_command check_ssh
register 1
notifications_enabled 1
}
mycontact.cfg
______________________________________________________________________________
define contact{
contact_name vvz
alias Admin of local machine
service_notification_period 24x7
host_notification_period 24x7
service_notification_options s,w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email [email protected]
}
_________________________________________________________________________________--
enable-notificatios = 1 in nagios.cfg
Thank you
_____________________________________________________________________________________