Page 1 of 1

nagios not accessible anymore

Posted: Mon Feb 17, 2014 11:21 am
by nanz28v
Today when I try to access Nagios web console by "http://<ip address>" it leads to the welcome page. When I clicked on "Access Nagios XI" it leads me to a blank page "http://<ip address>/nagiosxi/". This was working last week and I don't know who could changed stuff on it. Thank you for your help.

Re: nagios not accessible anymore

Posted: Mon Feb 17, 2014 11:30 am
by tmcdonald
Usually that blank page is due to MySQL db corruption, typically caused by an unclean VM shutdown. The following doc should help you out:

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

Re: nagios not accessible anymore

Posted: Mon Feb 17, 2014 12:45 pm
by nanz28v
I'm still having the blank page. Here's an excerpt from putty log:

- Fixing index 3
- Fixing index 4
Data records: 91654

---------

- recovering (with sort) MyISAM-table 'nagios_notifications.MYI'
Data records: 2445
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_objects.MYI'
Data records: 295
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5

---------

- recovering (with sort) MyISAM-table 'nagios_processevents.MYI'
Data records: 300
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_programstatus.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_runtimevariables.MYI'
Data records: 18
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_scheduleddowntime.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicechecks.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_service_contactgroups.MYI'
Data records: 8
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_service_contacts.MYI'
Data records: 115
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicedependencies.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalation_contactgroups.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalation_contacts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalations.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicegroup_members.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicegroups.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_services.MYI'
Data records: 131
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_servicestatus.MYI'
Data records: 131
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
- Fixing index 9
- Fixing index 10
- Fixing index 11
- Fixing index 12
- Fixing index 13
- Fixing index 14
- Fixing index 15
- Fixing index 16
- Fixing index 17
- Fixing index 18
- Fixing index 19

---------

- recovering (with sort) MyISAM-table 'nagios_statehistory.MYI'
Data records: 2658
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_systemcommands.MYI'
Data records: 306
- Fixing index 1
Found block that points outside data file at 77660
- Fixing index 2
- Fixing index 3
Data records: 308

---------

- recovering (with sort) MyISAM-table 'nagios_timedeventqueue.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6

---------

- recovering (with sort) MyISAM-table 'nagios_timedevents.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6

---------

- recovering (with sort) MyISAM-table 'nagios_timeperiods.MYI'
Data records: 10
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_timeperiod_timeranges.MYI'
Data records: 47
- Fixing index 1
- Fixing index 2
Another MySQL daemon already running with the same unix socket.
Starting mysqld: [FAILED]
~

===============
REPAIR COMPLETE
===============
[root@SM5NAG01 ~]# service mysqld start
Another MySQL daemon already running with the same unix socket.
Starting mysqld: [FAILED]
[root@SM5NAG01 ~]# shutdown -r now
[root@SM5NAG01 ~]#
Broadcast message from root@SM5NAG01
(/dev/pts/0) at 12:38 ...

The system is going down for reboot NOW!
login as: root
[email protected]'s password:
Last login: Mon Feb 17 12:37:35 2014 from 10.27.13.172
[root@SM5NAG01 ~]# service mysqld start
Another MySQL daemon already running with the same unix socket.
Starting mysqld: [FAILED]
[root@SM5NAG01 ~]#

Re: nagios not accessible anymore

Posted: Mon Feb 17, 2014 12:59 pm
by slansing
Looks like the mysql socket got stuck, lets do this:

Code: Select all

service mysqld stop

rm -rf /var/lib/mysql/mysql.sock

service mysqld start

Re: nagios not accessible anymore

Posted: Mon Feb 17, 2014 1:21 pm
by nanz28v
wow that worked, thank you so much!

Re: nagios not accessible anymore

Posted: Mon Feb 17, 2014 1:27 pm
by tmcdonald
Closing.