Created
November 7, 2017 19:32
-
-
Save anonymous/fc5e7df3b3b5e07050e1c2515a296bf2 to your computer and use it in GitHub Desktop.
trying to add lines 3-5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% set nrpe = salt['grains.filter_by']({ | |
'Debian': { | |
{% if grains.['lsb_distrib_release'] >= '9' %} | |
'plugins': ['nagios-plugins-basic', 'nagios-plugins-contrib', 'sudo', 'cron-apt', 'libmonitoring-plugin-perl'], | |
{% endif %} | |
'plugins': ['nagios-plugins-basic', 'nagios-plugins-contrib', 'sudo', 'cron-apt', 'libnagios-plugin-perl'], | |
'server': 'nagios-nrpe-server', | |
'service': 'nagios-nrpe-server', | |
'user': 'nagios', | |
'group': 'nagios', | |
'cfg_dir': '/etc/nagios/nrpe.d', | |
'plugin_dir': '/usr/lib/nagios/plugins', | |
'allowed_hosts': '127.0.0.1', | |
'nrpe_commands_core': [ | |
'command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20', | |
'command[check_all_disks]=/usr/lib/nagios/plugins/check_disk -e -X tmpfs -X devtmpfs -X proc -X sysfs -X rpc_pipefs -X tracefs -X gvfs-fuse-daemon -l -w 10% -c 5%', | |
'command[check_updates]=/usr/lib/nagios/plugins/check_apt -t 60', | |
'command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 80% -c 50%', | |
'command[check_memory]=/usr/lib/nagios/plugins/check_memory -w 20% -c 10%', | |
'command[check_mta]=/usr/lib/nagios/plugins/check_procs --ereg-argument-array "nullmailer-send|qmgr" -w 1:', | |
] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment