add rudimentary check for unowned files
authorMartin Zobel-Helas <zobel@debian.org>
Mon, 2 Jan 2012 15:47:03 +0000 (16:47 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Mon, 2 Jan 2012 15:47:03 +0000 (16:47 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
dsa-nagios-checks/debian/changelog
dsa-nagios-checks/debian/cron.d
dsa-nagios-checks/sbin/dsa-update-unowned-file-status [new file with mode: 0755]

index b983c42..cba4afc 100644 (file)
@@ -16,7 +16,10 @@ dsa-nagios-checks (9X) Xnstable; urgency=low
   * Add event_handler to restart services
   * Add dsa-check-raid-megactl for awkward PeRC controllers
 
- -- Peter Palfrader <weasel@debian.org>  Sat, 24 Dec 2011 16:25:32 +0100
+  [ Martin Zobel-Helas ]
+  * add rudimentary check for unowned files 
+
+ -- Martin Zobel-Helas <zobel@debian.org>  Mon, 02 Jan 2012 16:46:33 +0100
 
 dsa-nagios-checks (89) unstable; urgency=low
 
index 031d3d5..4e897b4 100644 (file)
@@ -4,4 +4,5 @@
 @hourly  root [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status
 13 */4 * * * root [ -x /usr/sbin/dsa-update-samhain-status ] && /usr/sbin/dsa-update-samhain-status
 
+4 4 1 * *   root [ -x /usr/sbin/dsa-update-unowned-file-status ] && /usr/sbin/dsa-update-unowned-file-status
 # vim:ft=crontab:
diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status
new file mode 100755 (executable)
index 0000000..746d3b2
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+#  Copyright (C) 2012 Martin Zobel-Helas 
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+
+find / -nouser > /var/cache/dsa/nagios/nouser