Update Nagios/Icinga checks.
authorChris Sharp <csharp@georgialibraries.org>
Sat, 20 Jan 2018 20:14:05 +0000 (15:14 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Sat, 20 Jan 2018 20:14:05 +0000 (15:14 -0500)
Added checks for the following:

 - clark-kent.pl file lock checking
 - memcache port and process checking
 - OpenSRF diagnostic check

Still to be done:

 - I added a sudoers file for the OpenSRF check,
   but we need to put it into place

templates/check_osrf.sudoers [new file with mode: 0644]
templates/monitor/nrpe_local.cfg
templates/monitor/services.cfg

diff --git a/templates/check_osrf.sudoers b/templates/check_osrf.sudoers
new file mode 100644 (file)
index 0000000..4fcd354
--- /dev/null
@@ -0,0 +1 @@
+nagios ALL=(root) NOPASSWD:/usr/lib/nagios/plugins/check_osrf
index 642cc0c..234da2c 100755 (executable)
@@ -14,17 +14,25 @@ command[check_storage_disk]=/usr/lib/nagios/plugins/check_disk -u GB -w $ARG1$ -
 ### Check Processes
 command[check_proc]=/usr/lib/nagios/plugins/check_procs -w $ARG2$ -c $ARG3$ -C $ARG1$
 
+## OpenSRF
+command[check_osrf]=sudo /usr/lib/nagios/plugins/check_osrf
+
 ### Clark
 command[check_clark]=/usr/lib/nagios/plugins/check_procs -w1:5 -c1:5 -C Clark
 
 ### Lock File Check
 command[check_holdlock]=/usr/lib/nagios/plugins/check_lock /tmp/hold_targeter-LOCK hold_targeter.pl
 command[check_finelock]=/usr/lib/nagios/plugins/check_lock /tmp/generate_fines-LOCK fine_generator.pl
+command[check_clarklock]=/usr/lib/nagios/plugins/check_lock /tmp/reporter-LOCK clark-kent.pl
 
 ### Lock File Age Check
 command[hold_lock_age]=/usr/lib/nagios/plugins/check_file_age -w 10800 -c 14400 -i /tmp/hold_targeter-LOCK
 command[fines_lock_age]=/usr/lib/nagios/plugins/check_file_age -w 10800 -c 14400 -i /tmp/generate_fines-LOCK
 
+# Check Memcache
+command[check_memcache_port]=/usr/lib/nagios/plugins/check_tcp -H localhost -p 11211
+command[check_memcache_proc]=/usr/lib/nagios/plugins/check_procs -C memcached -c 0:2
+
 # CPU I/O
 command[check_cpu_io]=/usr/lib/nagios/plugins/check_cpu.sh -iw 30 -ic 50
 
index 026c572..dbc6830 100755 (executable)
@@ -53,7 +53,7 @@ define service {
         service_description             Jabber processes
         use                             generic-service
         notification_interval           240
-        check_command                   CHECK_NRPE!check_proc!beam!1:2!1:2 
+        check_command                   CHECK_NRPE!check_proc!beam.smp!1:2!1:2 
 }
 
 define service {