update nrpe checks

add smb credentials
all credentials/secrets will eventually go into vault.
this is not a huge security concern since none of this is
production
This commit is contained in:
Pi
2019-03-13 13:12:17 -04:00
parent 88a36c542d
commit 0e8a36b1a4
4 changed files with 16 additions and 4 deletions

2
hosts
View File

@@ -31,7 +31,7 @@ sdwcltm6
sdwcltm7
sdwsrvl
sdwcltm4
#192.168.200.163 ansible_user=ubuntu
sdwcltm9
[public]
ubuntu-server-1

View File

@@ -3,8 +3,9 @@
######################################
command[check_test_file_100M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 50000000 -C 10 -f '/home/pi/Documents/smb/test_file_100M'
command[check_test_file_200M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 100000000 -C 10 -f '/home/pi/Documents/smb/test_file_200M'
command[check_test_file_500M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 250000000 -C 10 -f '/home/pi/Documents/smb/test_file_500M'
command[check_test_file_1G]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 500000000 -C 10 -f '/home/pi/Documents/smb/test_file_1G'
command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mmcblk0p7
command[check_test_file_500M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 172800 -c 1570000 -W 250000000 -C 10 -f '/home/pi/Documents/smb/test_file_500M'
command[check_test_file_1G]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 172800 -c 1570000 -W 500000000 -C 10 -f '/home/pi/Documents/smb/test_file_1G'
command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
command[check_mem]=/usr/lib/nagios/plugins/check_mem.pl -u -C -w 85 -c 95
command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 30% -c 10%

View File

@@ -0,0 +1,4 @@
username=demo
password=Demo123
domain=DEMO

View File

@@ -15,3 +15,10 @@
group: pi
mode: a+x
tags: smbtraff_script
- name: copy credentials to user directory
copy:
src: "{{ role_path }}/files/.credentials"
dest: /home/pi
owner: pi
group: pi
tags: smbtraff_credentials