Check for unexpected apt sources.list files
authorPaul Wise <pabs@debian.org>
Tue, 10 Nov 2015 03:47:07 +0000 (11:47 +0800)
committerPaul Wise <pabs@debian.org>
Tue, 10 Nov 2015 03:50:46 +0000 (11:50 +0800)
I discovered one on master and want to check for more.

config/nagios-master.cfg

index fb9fc03..6e260d3 100644 (file)
@@ -1668,6 +1668,11 @@ services:
     hostgroups: computers
     normal_check_interval:  60
     retry_check_interval: 15
+  -
+    name: unexpected file - apt sources.list
+    servicegroups: apt
+    nrpe: "/usr/lib/nagios/plugins/negate /usr/lib/nagios/plugins/dsa-check-file -f /etc/apt/sources.list"
+    hostgroups: computers
   -
     name: upgraded libraries
     servicegroups: security