Small Mosaic


Categories:

/books
/career
/codinghorrors
/events
/geekstuff
/justdont
/languages
/languages/bash
/linkshot
/magazines
/meta
/misctech
/movies
/nottech
/operatingsystems
/operatingsystems/linux
/operatingsystems/linux/debian
/operatingsystems/solaris
/perl
/presentations
/programming
/python
/ruby
/security
/security/apache
/security/tools
/serversmells
/services
/services/dns
/sites
/specifications
/sysadmin
/testing
/tools
/tools/commandline
/tools/firefox
/tools/gui
/tools/network
/tools/online
/tools/online/greasemonkey
/tools/puppet
/unixdaemon

Archives:

July 20111
June 20112
May 20113
April 20112
March 20117
January 20111
December 20103
November 20103
August 20101
July 20101
June 20104
May 20102
April 20101
March 20108
February 20101
January 20102
Full Archives

Fri, 01 Sep 2006

Debian Packages Requiring Updates - Via Nagios
I've recently needed a way to see, via the Nagios web front end, which Debian machines need their packages updating. So I wrote the check_debian_updates.sh Nagios plugin. This is the initial release (which hasn't been hit too hard yet) so be careful about deploying it anywhere but your testing environment for now. I've played with it in my small test environment and it seems to work so feel free to have a look at it. I'll be stressing it, and possibly tidying the code up a little, next week.

In its basic operation, the script just reports how many packages (if any) need updating and returns a CRIT or a WARN to Nagios based upon your thresholds. If you call the script with a -v it will also output the name of all packages that need updating. Which may consume a lot of Nagios front end screen real estate. Due to it running apt-get update it needs some root privileges. I'll be setting up sudo to let the Nagios user run this as root with no password for both the apt-get update and apt-get upgrade -s (note the '-s' for simulation.) And only for those!

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2006/09/01 22:57 | /tools/commandline | Permanent link to this entry | This entry and same date


books career codinghorrors events geekstuff justdont magazines meta misctech movies nottech operatingsystems/linux operatingsystems/linux/debian operatingsystems/solaris perl programming python ruby security security/apache security/tools serversmells services/dns sites sysadmin testing tools tools/commandline tools/firefox tools/gui tools/network tools/online tools/online/greasemonkey tools/puppet unixdaemon

Copyright © 2000-2010 Dean Wilson XML feed logo