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:
2
hosts
2
hosts
@@ -31,7 +31,7 @@ sdwcltm6
|
|||||||
sdwcltm7
|
sdwcltm7
|
||||||
sdwsrvl
|
sdwsrvl
|
||||||
sdwcltm4
|
sdwcltm4
|
||||||
#192.168.200.163 ansible_user=ubuntu
|
sdwcltm9
|
||||||
|
|
||||||
[public]
|
[public]
|
||||||
ubuntu-server-1
|
ubuntu-server-1
|
||||||
|
|||||||
@@ -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_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_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_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 86400 -c 1570000 -W 500000000 -C 10 -f '/home/pi/Documents/smb/test_file_1G'
|
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 /dev/mmcblk0p7
|
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_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%
|
||||||
|
|
||||||
|
|||||||
4
roles/smbclient/files/.credentials
Normal file
4
roles/smbclient/files/.credentials
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
username=demo
|
||||||
|
password=Demo123
|
||||||
|
domain=DEMO
|
||||||
|
|
||||||
@@ -15,3 +15,10 @@
|
|||||||
group: pi
|
group: pi
|
||||||
mode: a+x
|
mode: a+x
|
||||||
tags: smbtraff_script
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user