Nagios crashed??
-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Nagios crashed??
I can add or delete service/host. please see screen shot of message when I try to remove a service/device. thanks
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagios crashed??
First off, what's the output of the following? Please put the output in a code block. The button is the fifth from the left on the post input screen (between Quote and List).
It's possible you are out of space.
Please run through https://assets.nagios.com/downloads/nag ... tabase.pdf and report any errors. If you stop at any point, please know at which point you stop.
If the repair script and other instructions in the document do not work, please continue.
Regarding the instructions below, if you do not have killall, you can install it via the following command:
If psmisc is not in your repos, then instead you can check to make sure nagios is not running with
If that document does not resolve your issue, please run the following commands in order and report any errors. You must use mariadb instead of mysqld in this case, if you have mariadb.
Code: Select all
df -i
df -hPlease run through https://assets.nagios.com/downloads/nag ... tabase.pdf and report any errors. If you stop at any point, please know at which point you stop.
If the repair script and other instructions in the document do not work, please continue.
Regarding the instructions below, if you do not have killall, you can install it via the following command:
Code: Select all
yum install psmisc
Code: Select all
ps -aef | grep nagios
Code: Select all
service nagios stop
service ndo2db stop
service mysqld stop
service crond stop
service httpd stop
killall -9 nagios
killall -9 ndo2db
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagios/var/ndo2db.lock
service ndo2db start
service nagios start
service mysqld start
service crond start
service httpd start-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Re: Nagios crashed??
it turns out that I ran out of disk space. i increased the volume but now I lost all my host/services. Please take a look at screen shot and let me know how to restore host/services. thanks
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagios crashed??
Did you run through the repair script in the first link I gave? The error message says you have crashed tables, so you should run through the rest of the PDF if the script itself didn't resolve the issue.
It's also possible you'll need https://assets.nagios.com/downloads/nag ... ios-XI.pdf
It's also possible you'll need https://assets.nagios.com/downloads/nag ... ios-XI.pdf
-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Re: Nagios crashed??
I followed the pdf document to repair the database and it is still not working. I still get erro when i try to delete a service. Please review the screenshoot. Does it makes sense to backup the database and restore to new installation?
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagios crashed??
Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
The most important piece in the profile is the config.inc.php file, but please give as much of it as you can.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
The most important piece in the profile is the config.inc.php file, but please give as much of it as you can.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.