b889 [Solved] jail related nagios issues - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 6th, 2009, 00:42
dvl@'s Avatar
dvl@ dvl@ is offline
FreshPorts Guru
 
Join Date: Nov 2008
Location: Near Philadelphia PA, USA
Posts: 196
Thanks: 17
Thanked 12 Times in 10 Posts
Default jail related nagios issues

I am not really sure of why there was a problem or convinced that the solution was the correct one.

I recently upgraded a jail server to 8.0-stable. The jail userland was also updated. The jail runs the net-mgmt/nrpe port which Nagios communicates with to determine various system status.

The following command is run within the jail and connects to itself:

Code:
[root@ducky /usr/local/libexec/nagios]# ./check_nrpe2 -H 10.55.0.20 -c check_disks
DISK OK - free space: / 54451 MB (42% inode=93%);| /=75156MB;140858;140868;0;140878
[root@ducky /usr/local/libexec/nagios]#
From the host system:

Code:
$ ./check_nrpe2 -H 10.55.0.20 -c check_disks
CHECK_NRPE: Socket timeout after 10 seconds.
With the following added to /var/log/messages on the jail (10.55.0.20):

Code:
Dec  5 23:19:22 ducky nrpe[540]: Could not read request from client, bailing out...
Here come the clue.

From another system, the same command fails:

Code:
$ ./check_nrpe2 -H 10.55.0.20 -c check_disks
CHECK_NRPE: Error - Could not complete SSL handshake.
Checking the logs this time:

Code:
Dec  5 23:25:52 ducky nrpe[8060]: Host 10.55.0.23 is not allowed to talk to us!
Altering /usr/local/etc/nrpe.cfg to add the above host and restarting nrpe2 in the jail, we get:

Code:
./check_nrpe2 -H 10.55.0.20 -c check_disks
DISK OK - free space: / 54451 MB (42% inode=93%);| /=75156MB;140858;140868;0;140878

So.. We can access the jail from another system, but not from the jail host system.

solution: recompile nrpe and start it. This solution worked on two jails on two diferent jail hosts.
__________________
--
Dan Langille

Last edited by DutchDaemon; December 6th, 2009 at 00:53. Reason: use [code] tags - http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
The Following User Says Thank You to dvl@ For This Useful Post:
liontaur (December 9th, 2012)
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!! problem with configuring nagios web interface mikoloy Web & Network Services 1 October 20th, 2009 14:59
[Solved] Two quick PF questions (table/macro related) Voltar Firewalls 4 June 27th, 2009 23:20
sh & fifo related question graudeejs Userland Programming & Scripting 1 June 18th, 2009 00:15
Gnome Issues and Possibly X issues haibane X.Org 61 June 8th, 2009 17:47
Nagios Instant Message Notifications? dave Web & Network Services 6 December 22nd, 2008 09:29


All times are GMT +1. The time now is 15:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0