not getting email notifications
Posted: Fri Aug 14, 2020 7:52 am
Hi
we are using nagios core as a monitoring tool for our windows server and we have followed the docs and configured the windows host machine and the server is up and running but we tried to configure email notification m not getting any mail when the server is down below is how my contacts.cfg looks like
define contact {
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email [email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
define contact {
contact_name prasad
use generic-contact
alias durga prasad
email [email protected]
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_options d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
define contactgroup {
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
define contactgroup {
contactgroup_name windows-admin
alias windows admins dept
members prasad, nagiosadmin
here is how my windows.cfg looks like for notifications
define host {
use windows-server ; Inherit default values from a template
host_name abcccdd ; The name we're giving to this host
alias My Windows Server ; A longer name associated with the host
address xxx.xxx.xxx.xxx ; IP address of the host
contact_groups windows-admin
}
but m not sure why m not getting any notifications
Note: m running nagios as a docker.
we are using nagios core as a monitoring tool for our windows server and we have followed the docs and configured the windows host machine and the server is up and running but we tried to configure email notification m not getting any mail when the server is down below is how my contacts.cfg looks like
define contact {
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email [email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
define contact {
contact_name prasad
use generic-contact
alias durga prasad
email [email protected]
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_options d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
define contactgroup {
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
define contactgroup {
contactgroup_name windows-admin
alias windows admins dept
members prasad, nagiosadmin
here is how my windows.cfg looks like for notifications
define host {
use windows-server ; Inherit default values from a template
host_name abcccdd ; The name we're giving to this host
alias My Windows Server ; A longer name associated with the host
address xxx.xxx.xxx.xxx ; IP address of the host
contact_groups windows-admin
}
but m not sure why m not getting any notifications
Note: m running nagios as a docker.