Page 1 of 1

nagios notification

Posted: Thu Oct 31, 2013 3:28 pm
by vvz
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



_____________________________________________________________________________________

Re: nagios notification

Posted: Fri Nov 01, 2013 12:01 pm
by sreinhardt
Have you confirmed that they are not actually being sent in any way? You nagios config looks fine, however when it comes to mail there is much more that can be happening. Do you have your local mta configured to send mail? is it configured to use a relay at any point? does your isp block port 25?

Re: nagios notification

Posted: Sat Nov 02, 2013 7:26 pm
by vvz
thnk you for your reply but I've already figured out the problem
thank you again for your respond