Nagios stopped working after system reboot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Nagios stopped working after system reboot

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios stopped working after system reboot

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios stopped working after system reboot

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios stopped working after system reboot

Post 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.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios stopped working after system reboot

Post by srikanth.kallu »

This link is not working

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

Any thing changed in the documnet ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios stopped working after system reboot

Post 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!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios stopped working after system reboot

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios stopped working after system reboot

Post by abrist »

It is good to hear nagios is behaving once again. Any other issues, or is this thread lock-ready?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios stopped working after system reboot

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios stopped working after system reboot

Post by abrist »

Will do.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked