nagios notification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

nagios notification

Post 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 vassiliy.vins@gmail.com
}
_________________________________________________________________________________--

enable-notificatios = 1 in nagios.cfg


Thank you



_____________________________________________________________________________________
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nagios notification

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: nagios notification

Post by vvz »

thnk you for your reply but I've already figured out the problem
thank you again for your respond
Locked