jeroen.se
by jnieuwen
using nrpe to check a network behind NAT
This weekend I had the problem that I had to check several hosts on a network behind NAT with nagios. One solution would be to add portforwardings on the NAT firewall for each host and use check_nrpe with different port settings from the nagios machine. This is of course a maintenance nightmare.
The solution that I choose was therefor a little different. I installed nrpe server and the nrpe plugins on all hosts. Then a portforwarding to port 5666 of one host (irobot) was added in the firewall. In the nrpe config of irobot I added the checks for irobot and checks for the other hosts by adding lines like these to the nrpe.cfg of irobot:
cammand[vacdepot_fs_root]=/usr/lib/nagios/plugins/check_nrpe -H vacdepot -c check_fs_root
In the nrpe.cfg of vacdepot check_fs_root is defined of course.
So I am using nested nrpe calls to get the data I want. The advantage being that I do not have to have a portforwaring for every host I want to monitor behind the NAT firewall.
0 comments

Nick:
Email:
Make your own addition with integers (needed to make sure you aint a spambot):
+ =
Categories
Cycling (2)
Gadgets (3)
Misc (22)
Scripting (23)
Travel (7)
Unix (24)
Archive
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)