1. > The issue started when the inode on the “/” partition of our Nagios server became 100% full, which further corrupted 2 tables in Nagios Database.
MySQL logs on 14th Nov:-
161114 21:05:08 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed
161114 21:05:08 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_statehistory' is marked as crashed and last (automatic?) repair failed
In order to fix the tables we implemented force repair of these 2 tables, the details we explain in the below forum post.
https://support.nagios.com/kb/article.php?id=24
-bash-4.1$ myisamchk -r -f nagios_logentries
- recovering (with sort) MyISAM-table 'nagios_logentries'
Data records: 2242983
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
-bash-4.1$
-bash-4.1$ myisamchk -r -f nagios_statehistory
- recovering (with sort) MyISAM-table 'nagios_statehistory'
Data records: 4165809
- Fixing index 1
- Fixing index 2
- Fixing index 3
-bash-4.1$
2.> Running Processes:
[nagios@eems-monitor ~]/etc/init.d/nagios status
nagios (pid 15804) is running...
[nagios@eems-monitor ~]/etc/init.d/ndo2db status
ndo2db (pid 10125) is running...
3.> The Nagios user on this host is not a local user (Can’t have local user as per company policy), rather it’s a generic NIS user.
[nagios@eems-monitor ~]getent passwd Nagios
nagios:VAS:900986:25:nagios:/users/nagios:/bin/bash
[xxxx@eems-monitor log]# chage -l apache
Last password change : Aug 11, 2015
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
eems-monitor:156> sudo cat /etc/group | grep nag
nagios

56049:nagios,apache
nagcmd

56050:nagios,apache
eems-monitor:157> sudo cat /etc/group | grep apache
apache

48:
nagios

56049:nagios,apache
nagcmd

56050:nagios,apache
4.> Nagios Config Check. (1181 Warnings, have hosts with no contacts/contact groups defined.)
Warning: Host 'uwsa-app-dev-001' has no default contacts or contactgroups defined!
Warning: Host 'uwsa-app-lt-001' has no default contacts or contactgroups defined!
Warning: Host 'uwsa-app-stg-001' has no default contacts or contactgroups defined!
Warning: Host 'vm-piranha' has no default contacts or contactgroups defined!
Warning: Host 'vm-sdt-um-005' has no default contacts or contactgroups defined!
Warning: Host 'vm18-piranha' has no default contacts or contactgroups defined!
Warning: Host 'vm2-piranha' has no default contacts or contactgroups defined!
Checked 834 hosts.
Checked 40 host groups.
Checked 4 service groups.
Checked 42 contacts.
Checked 29 contact groups.
Checked 218 commands.
Checked 47 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 834 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 47 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1181
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
You do not have the required permissions to view the files attached to this post.