Nagiosxi tables
Nagiosxi tables
Hey guys,
My nagiosxi table (nagios_servicechecks) is empty and I want to know is it the way it suppose to be.
Thanks
My nagiosxi table (nagios_servicechecks) is empty and I want to know is it the way it suppose to be.
Thanks
Re: Nagiosxi tables
Try running the database repair procedure, you might have corruption in that table.
http://assets.nagios.com/downloads/nagi ... tabase.pdf
http://assets.nagios.com/downloads/nagi ... tabase.pdf
Re: Nagiosxi tables
i did run the script to repair the database and it was complete successfully, however, i am still not seeing data in the nagios_servicechecks table.
Re: Nagiosxi tables
Can you post the output from the following?
Code: Select all
cd /usr/local/nagiosxi/scripts
rm -f ../var/dbmaint.lock
./dbmaint.phpRe: Nagiosxi tables
Do you want me to run the command above?
By the way I did not see DBmaint.php command in the scripts directory.
By the way I did not see DBmaint.php command in the scripts directory.
Re: Nagiosxi tables
Oops, sorry about that. Wrong directory.
Code: Select all
cd /usr/local/nagiosxi/cron
rm -f ../var/dbmaint.lock
./dbmaint.phpRe: Nagiosxi tables
there is no dbmaint.lock in the cron directory.
my nagios_servicechecks and nagios_hostchecks tables still did not get any data. is that normal or is there a solution for it?
my nagios_servicechecks and nagios_hostchecks tables still did not get any data. is that normal or is there a solution for it?
Re: Nagiosxi tables
Indeed, the dbmaint.lock file is located in /usr/local/nagiosxi/var, hence the "../var"there is no dbmaint.lock in the cron directory.
We still need to see the output from that script.my nagios_servicechecks and nagios_hostchecks tables still did not get any data
I would also suggest running the following:
Code: Select all
service mysqld stop
myisamchk -r -f /var/lib/mysql/nagios_*.MYI
service mysqld start
service nagios restart
service ndo2db restartRe: Nagiosxi tables
Here is the output of the repaimysql.sh script. As you see it went successful but I am still not seeing data.
You do not have the required permissions to view the files attached to this post.
Re: Nagiosxi tables
What I need to know is whether or not the repair run is actually succeeding. The way that I can identify that is by seeing the output from the below commands:
The above message is the output from the actual repair run, which doesn't always succeed.
Code: Select all
cd /usr/local/nagiosxi/cron
rm -f ../var/dbmaint.lock
./dbmaint.php