Windows Service notification issues
Posted: Thu Sep 27, 2018 6:08 am
Hi there,
Firstly let me apologize if this is a simple mistake, I am brand new to using Linux/Nagios! So far I have everything configured and working in regards to monitoring Windows servers with the exception of notifications for SERVICESTATE alerts for things like W3SVC etc.
The issue I am having is that despite using the same generic-service template for my services, anything I attempt to monitor and get alerts from that uses SERVICESTATE doesn't work correctly.
I know the email works as if I send custom service notifications they fire off, as they do automatically for host or process alerts (PROCSTATE for Explorer.exe etc). For services though I seem to get a single soft alert initially then nothing else as per below:
The attempts register in the web gui as hitting 3/3 but there aren't any notifications sent at this point.
I believe all the config of my definitions and templates are correct:
and as mentioned when these are used elsewhere like on a PROCSTATE/CPULOAD/USEDDISKSPACE it works fine.
Nagios version is 4.4.1 and using NSclient++ 0.5.2.35 for the Windows side.
Any help is appreciated!
Thanks,
LS
Firstly let me apologize if this is a simple mistake, I am brand new to using Linux/Nagios! So far I have everything configured and working in regards to monitoring Windows servers with the exception of notifications for SERVICESTATE alerts for things like W3SVC etc.
The issue I am having is that despite using the same generic-service template for my services, anything I attempt to monitor and get alerts from that uses SERVICESTATE doesn't work correctly.
I know the email works as if I send custom service notifications they fire off, as they do automatically for host or process alerts (PROCSTATE for Explorer.exe etc). For services though I seem to get a single soft alert initially then nothing else as per below:
The attempts register in the web gui as hitting 3/3 but there aren't any notifications sent at this point.
I believe all the config of my definitions and templates are correct:
Code: Select all
define contact {
name generic-contact
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
register 0
}
Code: Select all
define service {
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain nonstatus information 1
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is volatile 0
check_period 24x7
max_check_attempts 3
check interval 10
retry_interval 2
contact_groups admins
notification_options w,u,c,r
notification interval 60
notification_period 24x7
register 0
}
Code: Select all
define service {
use generic-service
host_name IT01199
service_description W3SVC
check command check_nt!SERVICESTATE!-d SHOWALL -I W3SVC
}
Code: Select all
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12989 -s passwordhere -v $ARG1$ $ARG2$
}
Nagios version is 4.4.1 and using NSclient++ 0.5.2.35 for the Windows side.
Any help is appreciated!
Thanks,
LS