## SIMPLE SERVICES FOR HOSTGROUPS ## (These are services for which there is only one service ## with a particular service_description; i.e. there is no ## other service with the same service description but a ## different hostgroup_name.) define service { service_description ssh hostset_exp linux-hosts use template-for-linux check_command check-ssh } define service { service_description disk hostset_exp linux-hosts use template-for-linux check_command check-disk } define service { service_description postfix-master hostset_exp linux-hosts use template-for-linux check_command check-postfix-master } define service { service_description postfix-mailq hostset_exp linux-hosts use template-for-linux check_command check-postfix-mailq!1!2 } define service { service_description upgradable hostset_exp linux-hosts use template-for-linux check_command check-upgradable } define service { service_description fs-writable hostset_exp linux-hosts use template-for-linux check_command check-fs-writable } define service { service_description swap hostset_exp linux-hosts - ssd-hosts use template-for-linux check_command check-swap } define service { service_description swap-activity hostset_exp linux-hosts use template-for-linux check_command check-swap-activity } define service { service_description imap hostset_exp mail-hosts use template-for-linux check_command check-imap!-p 993 -S } define service { service_description smtp hostset_exp mail-hosts use template-for-linux check_command check-smtp } define service { service_description http-router hostset_exp fritzbox-hosts use template-for-linux check_command check-http-router!-a notused:gheiggye } ## SIMPLE SERVICES FOR HOSTS ## (These are services for which there is only one service ## with a particular service_description; i.e. there is no ## other service with the same service description but a ## different host_name.) define service { service_description svn host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/svn/!smalltools } define service { service_description jira host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/jira/secure/BrowseProjects.jspa#all!Huxley } define service { service_description wordpress host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/wordpress/!Poetry } define service { service_description mailman host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/cgi-bin/mailman/listinfo!unadvertised } define service { service_description debian host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/debian/pool/!ahuxley-keyring_0.0.2-1_all.deb } define service { service_description redhat host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/redhat/6/x86_64/!ahuxley-keyring-0.0.1-5.noarch.rpm } define service { service_description sources host_name ravioli use template-for-linux check_command check-http-via-reflector!http://dione.no-ip.org/sources/!ahuxley-keyring-0.0.1.tar.gz } define service { service_description ypbind hostset_exp nis-client-hosts use template-for-linux check_command check-procs-ypbind } define service { service_description openvpn hostset_exp openvpn-hosts use template-for-linux check_command check-procs-openvpn } define service { service_description ypserv hostset_exp nis-server-hosts use template-for-linux check_command check-procs-ypserv } define service { service_description ntp hostset_exp linux-hosts use template-for-linux check_command check-ntp } define service { service_description nonis hostset_exp linux-hosts - (nis-client-hosts | nis-server-hosts) use template-for-linux check_command check-nonis } define service { service_description i2p host_name gigli use template-for-linux check_command check-http!7657!/console!Console } #define service { # service_description i2psnark-permissions # host_name gigli # use template-for-linux # check_command check-i2psnark-permissions!/usr/local/opt/i2p/.i2p/i2psnark/ # # This is a heavy test, which we don't want to execute too often. (This is 720 times # # the interval_length, which nagios docs suggests defaults to 60 seconds, so a # # check interval of 12 hours.) # check_interval 720 #} ## COMPLEX SERVICES ## (These are services for which there are *multiple* services ## with a particular service_description. But note that it is ## for one of the services with the same service_description to ## apply to more than one host; icinga does not complain but, ## by experimentation, we see it has inconsistent results.) ## Service: check_raid #define service { # service_description raid # hostset_exp lenny-hosts & md-hosts # use template-for-linux # check_command check-raid-lenny #} #define service { # service_description raid # hostset_exp squeeze-hosts & md-hosts # use template-for-linux # check_command check-raid-squeeze #} #define service { # service_description raid # hostset_exp wheezy-hosts & md-hosts # use template-for-linux # check_command check-raid-wheezy #} ## Service: DRBD define service { service_description drbd hostset_exp drbd-hosts use template-for-linux check_command check-drbd!-d 0,1,2 } ## Service: OCFS2 define service { service_description ocfs2 hostset_exp ocfs2-hosts use template-for-linux check_command check-ocfs2!ocfs2 } ## Service: check_total_procs define service { service_description procs-total hostset_exp login-hosts & storage-hosts use template-for-linux check_command check-procs-total!400!600 } define service { service_description procs-total hostset_exp mail-hosts use template-for-linux check_command check-procs-total!160!180 } define service { service_description procs-total hostset_exp login-hosts - storage-hosts use template-for-linux check_command check-procs-total!400!600 } # 22/05/2014: currently storage-hosts and login-hosts are the same and so # 'storage-hosts - login-hosts' is expanded to an empty list, which Icinga # does not like. The solution is to modify the expand-hostsets script so # that the *entire* stanza is not outputted if the list is empty. #define service { # service_description procs-total # hostset_exp storage-hosts - login-hosts # use template-for-linux # check_command check-procs-total!200!300 #} define service { service_description procs-total hostset_exp linux-hosts - (login-hosts | storage-hosts | mail-hosts) use template-for-linux check_command check-procs-total!160!200 } define service { service_description users hostset_exp login-hosts use template-for-linux check_command check-users!40!80 } define service { service_description users hostset_exp linux-hosts - login-hosts use template-for-linux check_command check-users!5!10 } ## Service: links up on physical machines define service { service_description link-up hostset_exp physical-hosts use template-for-linux check_command check-dmesg-link-down } ## Service: libvirt definitions define service { service_description alignment-of-defined-vms hostset_exp vm-server-hosts use template-for-linux check_command check-alignment-of-defined-vms } ## Service: iplayer # Check that cercis is receiving from bbc define service { service_description iplayer-download host_name cercis use template-for-linux check_command check-age!-w 48h -c 72h /scratch/alexis/get_iplayer/complete } # Check that torchio is receiving from cercis define service { service_description iplayer-transfer host_name lasagne use template-for-linux check_command check-age!-w 48h -c 72h --change --youngest /pub/incoming/iplayer/* /pub/incoming/iplayer } # Check that cercis->torchio queue is not blocked (make sure oldest item is not too old 'cos it # should have been deleted) define service { service_description iplayer-transfer-clearing host_name cercis use template-for-linux check_command check-age!-w 3d -c 7d --oldest /scratch/alexis/get_iplayer/complete/* /scratch/alexis/get_iplayer/complete } define service { service_description cpu hostset_exp windows-hosts use template-for-windows check_command check-nrpe!check_cpu } define service { service_description drivesize hostset_exp windows-hosts use template-for-windows check_command check-nrpe!check_drivesize } define service { service_description eventlog hostset_exp windows-hosts use template-for-windows check_command check-nrpe!check_eventlog } define service { service_description memory hostset_exp windows-hosts use template-for-windows check_command check-nrpe!check_memory } define service { service_description process hostset_exp windows-hosts use template-for-windows check_command check-nrpe!check_process } define service { service_description xmpp-c2s hostset_exp xmpp-hosts use template-for-linux check_command check-xmpp-c2s } define service { service_description xmpp-s2s hostset_exp xmpp-hosts use template-for-linux check_command check-xmpp-s2s } define service { service_description dhcp-server hostset_exp dhcp-server-hosts use template-for-linux check_command check-dhcp-server }