Nagios Crashed - DB Error - Root 100%

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rredmond
Posts: 48
Joined: Mon Feb 28, 2011 10:17 am
Location: New Hartford, NY

Nagios Crashed - DB Error - Root 100%

Post by rredmond »

Nagios XI crashed over the weekend due to what I was told was a database error. I was able to reboot the machine and putty in and quickly saw root full. Deleted logs, cleared messages but only got 99%. Noticed /var/log/messages.log was huge! Cleared it but it filled back up almost immediately. Any ideas???????

Randy J Redmond
[email protected]
rredmond
Posts: 48
Joined: Mon Feb 28, 2011 10:17 am
Location: New Hartford, NY

Re: Nagios Crashed - DB Error - Root 100%

Post by rredmond »

Well, the more I dig it looks like DB corruption in MySql....and its fighting my attempts to repair....any help would be much appreciated
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Crashed - DB Error - Root 100%

Post by abrist »

XI provides a script for repairing mysql:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
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.
rredmond
Posts: 48
Joined: Mon Feb 28, 2011 10:17 am
Location: New Hartford, NY

Re: Nagios Crashed - DB Error - Root 100%

Post by rredmond »

Well, I do not have that script in that directory or anywhere else that I could find! I tried repairing mysql database nagios which worked until sometime last night at which time it must have corrupted again and once again filled the drive. Please advise...................Randy
rredmond
Posts: 48
Joined: Mon Feb 28, 2011 10:17 am
Location: New Hartford, NY

Re: Nagios Crashed - DB Error - Root 100%

Post by rredmond »

t 1Im looking at some of the mail messages Im getting and Im now seeing:

SNMPGET Problem for ifInOctets.1 ifOutOctets.1 on [email protected]

Received SNP response error code
error status: noSuchName
SNMPv1_Session (remote host: "172.19.1.2" [172.19.1.2].161)

over and over again for different ips

172.19.1.2 is our gateway router and Im told is accepting SNMP requests.......PLEASE advise!

Randy
rredmond
Posts: 48
Joined: Mon Feb 28, 2011 10:17 am
Location: New Hartford, NY

Re: Nagios Crashed - DB Error - Root 100%

Post by rredmond »

PostGres logs also large.....told we have to Vacuum? logs are indeed huge....very confused
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Crashed - DB Error - Root 100%

Post by lmiltchev »

First, try to delete as many old logs as you can in "/var/log" directory and sub-directories. Check what you have in the "/tmp". You can probably delete some old backups that you don't need in "/store/backups/". After you clear some room, run the database repair script:

Code: Select all

cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
./repairmysql.sh nagiosql
Then add some disk space. If this is a VM, you can follow the steps, outlined in this document:

http://assets.nagios.com/downloads/nagi ... M_Disk.pdf

Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked