Check ports - NRPE portaudit check: Difference between revisions

From TykWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 18: Line 18:
</pre>
</pre>


And restart NRPE. 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.
 
Remember to restart NRPE after changing the config:
<pre>
sudo /usr/local/etc/rc.d/nrpe2 restart
</pre>
 
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.

Revision as of 10:42, 16 January 2010

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.