Home Directory Plugins Operating Systems Linux check debian packages

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check debian packages

Rating
2 votes
Favoured:
0
Hits
171157
Files:
FileDescription
check_debian_packagescheck_debian_packages
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin checks if there are debian updates available. If so, it issues a warning, if the packages are from security it raises a critical.
This plugin doesn\'t update the apt database, you\'re supposed to have a cron line that already does an apt-get update.

It also needs sudo, add something like this to /etc/sudoers:

nagios servername=NOPASSWD:/usr/lib/nagios/plugins/check_debian_packages
Reviews (2)
byBenjamin, December 14, 2011
thanks; dodok1
there should be apt-get replaced with aptitude and you don't need sudo anymore (and held packages are ignored).

This is the change

my $CMD_APT = "/usr/bin/aptitude -v -s -y safe-upgrade";