Page 1 of 1

Nagios stopped working after system reboot

Posted: Mon May 13, 2013 9:22 am
by srikanth.kallu
We have no issues for about 6 months now since Nagios is installed on my AIX server.

We reboot this box every Friday Night, nrpe did not start after the reboot

Because this is production and critical server, I cannot play much with this server.

# lssrc -s nrpe
Subsystem Group PID Status
nrpe inoperative


I had the similar issue on another AIX server, but i was able to reslove that by doing this.

# export LIBPATH=/usr/linux/lib:$LIBPATH
# /opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d

But it is not working with this server.

Please help.

Re: Nagios stopped working after system reboot

Posted: Mon May 13, 2013 10:06 am
by sreinhardt
Are you able to add this to /etc/inittab? Depending on how you would like to do it, something like:

Scripted solution:

Code: Select all

#!/bin/bash
#start-nrpe.sh
echo starting nrpe
export LIBPATH=/usr/linux/lib:$LIBPATH
/opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d

Code: Select all

#add to /etc/inittab
su nagios -c "/path/to/start-nrpe.sh"
You could also directly modfy and call /etc/rc.local with similar su and export commands, then just add the following to /etc/inittab:

Code: Select all

rclocal:2:wait:/etc/rc.local > /dev/console 2>&1 
In either case, you may have to play around with the su being executed directly from /etc/inittab or the script you create depending on how and when bash may drop su permissions.

Re: Nagios stopped working after system reboot

Posted: Mon May 13, 2013 10:10 am
by srikanth.kallu
I would have made that as a script and put it on inittab if it works manually, but those commands wont help me.

Also i tried to uninstall and install nagios agent on that server, but it says installation complete.

I have also attached logs-all-steps-20130513-102857.tar.gz
logs-all-steps-20130513-102857.tar.gz

Re: Nagios stopped working after system reboot

Posted: Mon May 13, 2013 12:11 pm
by slansing
Let us know if this issue was resolved by using the document I sent you during our phone/remote session, that should take care of the problem.

Re: Nagios stopped working after system reboot

Posted: Mon May 13, 2013 12:15 pm
by srikanth.kallu
This link is not working

http://www.assets.nagios.com/downloads/ ... ies.tar.gz

Any thing changed in the documnet ?

Re: Nagios stopped working after system reboot

Posted: Mon May 13, 2013 12:45 pm
by slansing
I sent you a new email, please verify all of the packages listed in the document I sent. And reply via either email, or here, thanks!

Re: Nagios stopped working after system reboot

Posted: Mon Jun 17, 2013 11:20 am
by srikanth.kallu
Just want to give you an update on this.

I have unistalled nagios on this server and almost gave up with nagios.

But i tried to install once again to check it for the last time. Guess what ? it worked. I did not make any changes i just followed the document and also on all my remianing clients i need to restart nagiso by doint this statsrc -s nrpe.

but on this it starts automatically.

I dont know if you people started working on this to make improvements but it started working.

Re: Nagios stopped working after system reboot

Posted: Mon Jun 17, 2013 12:28 pm
by abrist
It is good to hear nagios is behaving once again. Any other issues, or is this thread lock-ready?

Re: Nagios stopped working after system reboot

Posted: Mon Jun 17, 2013 12:31 pm
by srikanth.kallu
U can lock it, but please let Scot know about this because he tried to help me on this to make to make it work.

Re: Nagios stopped working after system reboot

Posted: Mon Jun 17, 2013 12:55 pm
by abrist
Will do.