Nagios stopped working after system reboot
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Nagios stopped working after system reboot
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.
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
Are you able to add this to /etc/inittab? Depending on how you would like to do it, something like:
Scripted solution:
You could also directly modfy and call /etc/rc.local with similar su and export commands, then just add the following to /etc/inittab:
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.
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 -dCode: Select all
#add to /etc/inittab
su nagios -c "/path/to/start-nrpe.sh"Code: Select all
rclocal:2:wait:/etc/rc.local > /dev/console 2>&1 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
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
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
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
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
This link is not working
http://www.assets.nagios.com/downloads/ ... ies.tar.gz
Any thing changed in the documnet ?
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
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
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.
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
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.
"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
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
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.
"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.