Check ports - NRPE portaudit check

From TykWiki
Revision as of 10:42, 16 January 2010 by Tykling (talk | contribs)
Jump to navigationJump to search

It is possible to monitor servers for outdated or vulnerable ports using Nagios and NRPE:

$ cat /usr/ports/net-mgmt/nagios-check_ports/pkg-descr
Nagios Plugin to monitor your FreeBSD Ports Tree for updates or
installed packages with known security vulnerabilities.

Install the port:

sudo portmaster /usr/ports/net-mgmt/nagios-check_ports/

Add the following line to /usr/local/etc/nrpe.cfg:

command[check_ports]=/usr/local/libexec/nagios/check_ports


Remember to restart NRPE after changing the config:

sudo /usr/local/etc/rc.d/nrpe2 restart

Remember to add the check to the host on the Nagios server as well. In my install this is as simple as making the server a member of the freebsd_servers group.