Nagios is Frozen
Nagios is Frozen
Hello everybody, i am using nagios core 4.0.6 on centos 6.x. last wednesday we had a power shortage and as soon as the power returned nagios server was restarted , but the problem i am facing now is that web interace is accessebile but its frozen. what i mean by frozen is : no email notifications, log file not updating since last wednesday, cannot commit restart from web page, cannot commit scheduling queue. personally i have tried every possibile thing which i could, like checking any unwanted process, killing process. restarting service nagios, restarting apache, restarting syslog.
and i dont have any idea what and how it went wrong. please try to reply me even if you know anything closer to that.
thankyou
and i dont have any idea what and how it went wrong. please try to reply me even if you know anything closer to that.
thankyou
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios is Frozen
What is the current output of:
You said that the web interface is accessible, but what happens when you do try to use it? Do you get strange error messages? Can you not actually click links or buttons? Can you scroll through a page which has a scroll bar? Does the nagios log say anything at all? From around that time?:
tail -30 /var/log/httpd/error_log
Please use CODE wraps, highlight any of the text that you are pasting from your SSH session and click the "Code" button above your reply's text box.
Code: Select all
service nagios status
service ndo2db status
Code: Select all
tail -50 /var/log/messages
Code: Select all
tail -30 /usr/local/nagios/var/nagios.log
Please use CODE wraps, highlight any of the text that you are pasting from your SSH session and click the "Code" button above your reply's text box.
Re: Nagios is Frozen
Code: Select all
service nagios status
is running
service ndo2db status
unrecognized service
[img] [/img]
[img] [/img]
[img] [/img]
i am sorry i was unable to copy it so i upload some screen shots.
thanks a million for your support.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios is Frozen
In your last image, you are showing a nagios version of 3.5.1, could you show what you did to install 4.0.6 and where it is showing you that it is that version? /var/log/messages, doesn't seem to show anything in particular pertaining to nagios, unless you have vastly changed the directory names. I would agree though, that your nagios log does not show any activity since 4/30 for one reason or another.
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.
Re: Nagios is Frozen
followed this link to upgrade http://nagios.sourceforge.net/docs/3_0/upgrading.html . followed each step except first two. and yes i didnt change any directory, and i say i have an upgraded version because i see it on my web interface (homepage), anyway i dont get any solution or any hint how to solve this issue. If you can find me any solution i would be very thankful.
Re: Nagios is Frozen
Can you run the following commands and show us the output in code wraps?
Note: Modify the paths to nagios and nagios.cfg if you need to.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Code: Select all
grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios is Frozen
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[img] [/img]
Code: Select all
grep nag /etc/group
Code: Select all
nagios:x:500:apache
nagcmd:x:501:nagios,apache
Re: Nagios is Frozen
Well checking the archive log messages in /var/log
that server is only executing checks on the localhost.
btw i am sending you the logs from the moment it stopped working, there are several thousands line which i dont understand. please help me if they are comprehensive for you.
i am attaching the file because it has too many characters.
hint:power went off at this hour Apr 30 12:05:33.
Want to add one more thing, i tried to execute checks on remote hosts via terminal and they work fine.
that server is only executing checks on the localhost.
btw i am sending you the logs from the moment it stopped working, there are several thousands line which i dont understand. please help me if they are comprehensive for you.
i am attaching the file because it has too many characters.
hint:power went off at this hour Apr 30 12:05:33.
Want to add one more thing, i tried to execute checks on remote hosts via terminal and they work fine.
- Attachments
-
- messages-.txt
- (144.97 KiB) Downloaded 182 times
Last edited by slansing on Wed May 07, 2014 9:24 am, edited 3 times in total.
Reason: Please do not multi-post, you will bump yourself lower on the to-be-replied-to list. Edit your previous post to add new information if you are the last poster.
Reason: Please do not multi-post, you will bump yourself lower on the to-be-replied-to list. Edit your previous post to add new information if you are the last poster.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios is Frozen
When you installed nagios previously, or the past tech did, was this done via source install or rpm? If you aren't sure, the easiest way to tell is:
Code: Select all
rpm -qa | grep -i nagios
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.
Re: Nagios is Frozen
i tried this command and i the results, i am sorry that everytime i attach a screen shot , just because i am unable to copy and paste from terminal.
[img] [/img]
i am available for any further information.
[img] [/img]
i am available for any further information.