How to Monitor Domain Expire Date With Nagios Devops Nagios Ubuntu Domain 1 minute to read (172 words) () Overview Prerequisites Nagios Host Groups Nagios Services Nagios Commands Prerequisites $ wget -O /usr/local/nagios/libexec/check_domain.sh https://raw.githubusercontent.com/glensc/monitoring-plugin-check_domain/master/check_domain.sh $ chmod a+x /usr/local/nagios/libexec/domain.sh Nagios Host Groups $ vim /usr/local/nagios/etc/hostgroups/domain.cfg define hostgroup{ hostgroup_name CHECK_DOMAIN alias Domain Expiry Check members example.com,test.com } Nagios Services $ vim /usr/local/nagios/etc/services/domain.cfg define service{ use local-service ; Name of service template to use service_description Domain Expiry is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups oncall-admins hostgroup_name CHECK_DOMAIN notification_interval 30 notification_period 24x7 notification_options c,r check_command check_domain } Nagios Commands $ vim /usr/local/nagios/etc/commands/domain.cfg define command{ command_name check_domain command_line $USER1$/check_domain.sh -d $HOSTADDRESS$ -w30 -c 15 #-a 1 -C /usr/local/nagios/cache -w 30 -c 15 } Email Address Post Navigation How to Configure Remote System for Nagios Monitoring How to Monitor SSL & SSL Labs Summary With Nagios