Good day. Recently, I tried to enable domain expiry check on my nagios core 4.1.1, but it seems like it won't work. I believe, i messed up with declaration of host/hostgroup/service. mine "domain.cfg":
define hostgroup{
<------>hostgroup_name<><------>world-wide-services; The name of the hostgroup
<------>alias<-><------><------>Outer Space; Long name of the group
<------>}
define host{
<------>use<---><------><------>windows-server<>; Inherit default values from a template
<------>host_name<-----><------>domain; The name we're giving to this host
<------>alias<-><------><------>domain; A longer name associated with the host
<------>address><------><------>domain-ip; IP address of the host
<------>}
define servce{
<------>service_description<--->Domain Expiry
<------>check_command<-><------>check_domain -d domain-name -w 30 -c 15
<------>max_check_attempts<---->5
<------>check_interval<><------>5
<------>retry_interval<><------>1
<------>check_period<--><------>24x7
<------>notification_interval<->60
<------>notification_period<--->24x7
<------>contacts<------><------>nagiosadmin
<------>register<------><------>1
<------>hostgroup_name<><------>world-wide-services
<------>}
It might be some obvious things I didnt know.