2016-07-28 11:17:24 +02:00
#
2015-05-28 11:32:57 +02:00
command[global_check_disk]={{ nagios_plugins_dir }}/check_disk -w {{ nagios_check_disk_w }}% -c {{ nagios_check_disk_c }}% -X tmpfs -X proc -X sysfs -X devpts -X dev -A -i /mnt/.*
2017-10-11 16:19:41 +02:00
command[global_check_load]={{ nagios_plugins_dir }}/check_load {% if nagios_load_per_cpu %}-r{% endif %} -w {{ nagios_load_w }} -c {{ nagios_load_c }}
2018-05-03 12:23:34 +02:00
{% if ansible_distribution_release == 'xenial' %}
command[global_check_memory]={{ nagios_plugins_dir }}/check_memory.xenial -u M -w 5% -c 1%
{% else %}
2017-10-26 13:02:08 +02:00
command[global_check_memory]={{ nagios_plugins_dir }}/check_memory -u M -w 5% -c 1%
2018-05-03 12:23:34 +02:00
{% endif %}
2018-05-04 20:02:36 +02:00
2018-05-04 17:06:49 +02:00
command[global_check_swap]={{ nagios_plugins_dir }}/check_swap -w 20% -c 5% {% if ansible_distribution_release == 'xenial' %}-n ok{% endif %}
2018-05-04 20:02:36 +02:00
2015-05-28 11:32:57 +02:00
command[global_check_zombie_procs]={{ nagios_plugins_dir }}/check_procs -w 5 -c 10 -s Z
command[global_check_total_procs]={{ nagios_plugins_dir }}/check_procs -w 800 -c 1000
# Ganglia gmond server
command[global_check_gmond]={{ nagios_plugins_dir }}/check_procs -w 1:1 -c 1:1 -C gmond
# Munin node
command[global_check_munin]={{ nagios_plugins_dir }}/check_procs -w 1:1 -c 1:1 -C munin-node
# Show number and username of the logged users
2015-07-15 13:53:12 +02:00
{% if nagios_multiple_allowed_users %}
command[global_show_users]={{ nagios_isti_plugdir }}/show_users -a {% if nagios_multiple_users_allow_root %}root,{% endif %}{% for u in users_system_users %}{{ u.login }}{% if not loop.last %},{% endif %}{% endfor %}
{% else %}
2015-05-28 11:32:57 +02:00
command[global_show_users]={{ nagios_isti_plugdir }}/show_users -a {{ nagios_allowed_users }}
2015-07-15 13:53:12 +02:00
{% endif %}
2015-05-28 11:32:57 +02:00
# Generic script that monitors the existance of a given processes list
command[global_check_system_pp]={{ nagios_isti_plugdir }}/check_system_pp
# Linux RAID check
2016-02-10 12:57:15 +01:00
#command[global_check_linux_raid]={{ nagios_isti_plugdir }}/check_linux_raid
2016-02-10 13:41:07 +01:00
{% if nagios_soft_raid_mdstat is defined and nagios_soft_raid_mdstat %}
command[global_check_linux_raid]={{ nagios_plugins_dir }}/check_raid -p mdstat
{% else %}
command[global_check_linux_raid]={{ nagios_plugins_dir }}/check_raid
{% endif %}
2015-05-28 11:32:57 +02:00
# Disks S.M.A.R.T. check
command[global_check_smart]={{ nagios_isti_plugdir }}/check_smart -d $ARG1$ -i $ARG2$
# Network interfaces
2017-11-23 16:54:10 +01:00
#command[global_net_interfaces]={{ nagios_isti_plugdir }}/check_netint.pl -K -f -e
command[global_net_interfaces]={{ nagios_isti_plugdir }}/check_netint.pl -K -f -e -D -S -n \(l\|eth\|p\|bond\)
2015-05-28 11:32:57 +02:00
# Restart ntp (via handler)
command[global_restart_ntp]=/usr/bin/sudo /etc/init.d/ntp start
# Restart gmond (via handler)
command[global_restart_gmond]=/usr/bin/sudo /etc/init.d/ganglia-monitor start
# Restart munin node (via handler)
command[global_restart_munin]=/usr/bin/sudo /etc/init.d/munin-node start