Reader small image

You're reading from  Nagios Core Administration Cookbook Second Edition - Second Edition

Product typeBook
Published inFeb 2016
Publisher
ISBN-139781785889332
Edition2nd Edition
Tools
Right arrow
Author (1)
Tom Ryder
Tom Ryder
author image
Tom Ryder

Tom Ryder is a systems administrator living in New Zealand who works for an internet services provider. He loves terminals, text editors, network monitoring and security, Unix and GNU/Linux, shell script, and programming in general. He is also the author of the Nagios Core Administration Cookbook.
Read more about Tom Ryder

Right arrow

Setting the listening address for NRPE


In this recipe, we'll learn how to make NRPE listen on a specific IP address on a target host. This might be done on hosts with multiple interfaces in order to prevent spurious requests made to the nrpe daemon from untrusted interfaces, perhaps the public Internet. It could also be appropriate for making the daemon only listen on a trusted VPN interface.

This setup can be particularly useful when the server has an interface into a dedicated management network to which the monitoring server also has access, preventing the nrpe daemon from responding to requests on other interfaces unnecessarily and thereby closing a possible security hole.

Getting ready

You should have a target host configured for checking in a Nagios Core 4.0 or later monitoring server. The target host should be running the nrpe daemon and listening on all interfaces (which we'll fix). You can verify that nrpe is running with pgrep(1) or ps(1):

# pgrep nrpe
29964
# ps -e | grep [n]rpe...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Nagios Core Administration Cookbook Second Edition - Second Edition
Published in: Feb 2016Publisher: ISBN-13: 9781785889332

Author (1)

author image
Tom Ryder

Tom Ryder is a systems administrator living in New Zealand who works for an internet services provider. He loves terminals, text editors, network monitoring and security, Unix and GNU/Linux, shell script, and programming in general. He is also the author of the Nagios Core Administration Cookbook.
Read more about Tom Ryder