Thursday, January 24, 2008

Nagios 3-RC1 in a jail

I configrued a Nagios 3-RC1 in a jail on a FreeBSD 6.3. At first the nagios daemon spawned a second process and then wouldn't exit, had to kill it with a kill -9. Eventhough it hanged the web interface displayed the data but service & host checks remained in a pending state.
After some googling i found a thread in the nagios mailing list for a similar problem. I created a file "/etc/libmap.conf" and added.

[/usr/local/bin/nagios]
libpthread.so.2 libthr.so.2
libpthread.so libthr.so


This made the nagios start and execute the service checks. However due to being in a jail nagios could not do some checks like pinging, due to the jail limitation. Adding thefollowing line in sysctl.conf

security.jail.allow_raw_sockets=1

Will allow ping to function inside a jail.

Wednesday, January 02, 2008

Changes

After 4 years I changed job and now work as a sysadmin for another company. It was time to change since there was no chance of improvement or new opportunities. In short the working environment was bad,it seemed like people were "praised" for doing nothing. Bringing improvement was not noticed.