Page 2 of 2

Re: Nagios gui in accessible after upgrade.

Posted: Wed Dec 14, 2016 7:30 pm
by netaura
Hey guys this last suggestion almost messed up our nagios database, the system at to prompt me to run a command.
Below are the output of the suggested commands;

Code: Select all

ls -ld /usr/local/nagiosxi/html/includes/
drwxr-x--- 11 nagios nagios 4096 Dec 15 00:11 /usr/local/nagiosxi/html/includes/

Code: Select all

grep nag /etc/group
nagios:x:1002:nagios,apache,snmptt
nagcmd:x:1003:nagios,apache,snmptt

Code: Select all

 ls -l /usr/local/nagiosxi/html/includes/
total 2776
-rwxr-x---  1 nagios nagios   5980 Dec 15 00:11 auth.inc.php
-rwxr-x---  1 nagios nagios    807 Dec 15 00:11 common.inc.php
drwxr-x--- 60 nagios nagios   4096 Dec 15 00:11 components
-rwxr-x---  1 nagios nagios   1060 Dec 15 00:11 components.inc.php
drwxr-x--- 63 nagios nagios   4096 Feb 10  2016 configwizards
-rwxr-x---  1 nagios nagios    619 Dec 15 00:11 configwizards.inc.php
-rwxr-x---  1 nagios nagios  21886 Dec 15 00:11 constants.inc.php
-rwxr-x---  1 nagios nagios  24962 Dec 15 00:11 constants-nagioscore.inc.php
drwxr-x---  3 nagios nagios   4096 Dec 15 00:11 css
drwxr-x--- 12 nagios nagios   4096 Feb 10  2016 dashlets
-rwxr-x---  1 nagios nagios    680 Dec 15 00:11 dashlets.inc.php
-rwxr-x---  1 nagios nagios 245017 Dec 15 00:11 dbauth.inc.php
-rwxr-x---  1 nagios nagios  16251 Dec 15 00:11 db.inc.php
-rwxr-x---  1 nagios nagios 104785 Dec 15 00:11 dbl.inc.php
-rwxr-x---  1 nagios nagios    763 Dec 15 00:11 errors.inc.php
drwxr-x---  2 nagios nagios   4096 Feb 10  2016 fonts
-rwxr-x---  1 nagios nagios     56 Dec 15 00:11 footer-child.inc.php
-rwxr-x---  1 nagios nagios   7349 Dec 15 00:11 footer.inc.php
drwxr-x---  5 nagios nagios    112 Feb 10  2016 fpdf
-rwxr-x---  1 nagios nagios    564 Dec 15 00:11 header-child.inc.php
-rwxr-x---  1 nagios nagios  20209 Dec 15 00:11 header.inc.php
drwxr-x---  6 nagios nagios   4096 Dec 15 00:11 js
drwxr-x---  3 nagios nagios     64 Feb 10  2016 lang
-rwxr-x---  1 nagios nagios    163 Dec 15 00:11 notificationmethods.inc.php
-rw-r-----  1 nagios nagios  17692 Dec 15 00:11 page-default-splash.php
-rwxr-x---  1 nagios nagios   2428 Dec 15 00:11 page-home-main.php
-rwxr-x---  1 nagios nagios    789 Dec 15 00:11 page-home.php
-rwxr-x---  1 nagios nagios    835 Dec 15 00:11 page-missing.php
-rwxr-x---  1 nagios nagios  30699 Dec 15 00:11 pageparts.inc.php
drwxr-x---  2 nagios nagios     74 Feb 10  2016 phpmailer
-rwxr-x---  1 nagios nagios   4054 Dec 15 00:11 utils-auditlog.inc.php
-rwxr-x---  1 nagios nagios  62681 Dec 15 00:11 utils-backend.inc.php
-rwxr-x---  1 nagios nagios  13188 Dec 15 00:11 utils-ccm.inc.php
-rwxr-x---  1 nagios nagios  31557 Dec 15 00:11 utils-commands.inc.php
-rwxr-x---  1 nagios nagios   3797 Dec 15 00:11 utils-components.inc.php
-rwxr-x---  1 nagios nagios  12064 Dec 15 00:11 utils-configwizards.inc.php
-rwxr-x---  1 nagios nagios 133425 Dec 15 00:11 utils-dashboards.inc.php
-rwxr-x---  1 nagios nagios 110053 Dec 15 00:11 utils-dashlets.inc.php
-rwxr-x---  1 nagios nagios   6502 Dec 15 00:11 utils-email.inc.php
-rwxr-x---  1 nagios nagios  21745 Dec 15 00:11 utils-events.inc.php
-rwxr-x---  1 nagios nagios   2036 Dec 15 00:11 utils-graphtemplates.inc.php
-rwxr-x---  1 nagios nagios  38164 Dec 15 00:11 utils.inc.php
-rwxr-x---  1 nagios nagios 822161 Dec 15 00:11 utilsl.inc.php
-rwxr-x---  1 nagios nagios   9328 Dec 15 00:11 utils-links.inc.php
-rwxr-x---  1 nagios nagios  75902 Dec 15 00:11 utils-menu.inc.php
-rwxr-x---  1 nagios nagios  27445 Dec 15 00:11 utils-metrics.inc.php
-rwxr-x---  1 nagios nagios   1998 Dec 15 00:11 utils-mibs.inc.php
-rwxr-x---  1 nagios nagios 246321 Dec 15 00:11 utils-nagioscore.inc.php
-rwxr-x---  1 nagios nagios   2080 Dec 15 00:11 utils-notificationmethods.inc.php
-rwxr-x---  1 nagios nagios 115801 Dec 15 00:11 utils-notifications.inc.php
-rwxr-x---  1 nagios nagios  38660 Dec 15 00:11 utils-objects.inc.php
-rwxr-x---  1 nagios nagios   2442 Dec 15 00:11 utils-perms.inc.php
-rw-r-----  1 nagios nagios   4103 Dec 15 00:11 utils-reports-export.inc.php
-rwxr-x---  1 nagios nagios  45445 Dec 15 00:11 utils-reports.inc.php
-rw-------  1 nagios nagios   6054 Dec 15 00:11 utils-rrdexport.inc.php
-rw-r-----  1 nagios nagios   1392 Dec 15 00:11 utils-rss.inc.php
-rwxr-x---  1 nagios nagios   5473 Dec 15 00:11 utils-status.inc.php
-rwxr-x---  1 nagios nagios   2379 Dec 15 00:11 utils-systat.inc.php
-rwxr-x---  1 nagios nagios  14349 Dec 15 00:11 utils-tables.inc.php
-rwxr-x---  1 nagios nagios    726 Dec 15 00:11 utils-themes.inc.php
-rw-------  1 nagios nagios   9530 Dec 15 00:11 utils-time.inc.php
-rw-r-----  1 nagios nagios   7751 Aug  3 19:52 utils-timezones.inc.php
-rwxr-x---  1 nagios nagios   4299 Dec 15 00:11 utils-tools.inc.php
-rwxr-x---  1 nagios nagios   3738 Dec 15 00:11 utils-updatecheck.inc.php
-rwxr-x---  1 nagios nagios  31615 Dec 15 00:11 utils-users.inc.php
-rwxr-x---  1 nagios nagios  38085 Dec 15 00:11 utils-views.inc.php
-rwxr-x---  1 nagios nagios   6705 Dec 15 00:11 utils-wizards.inc.php
-rwxr-x---  1 nagios nagios  18071 Dec 15 00:11 utilsx.inc.php
-rwxr-x---  1 nagios nagios  34326 Dec 15 00:11 utilsx-json.php
-rwxr-x---  1 nagios nagios   4364 Dec 15 00:11 utils-xmlauditlog.inc.php
-rwxr-x---  1 nagios nagios  37057 Dec 15 00:11 utils-xmlobjects.inc.php
-rwxr-x---  1 nagios nagios  33960 Dec 15 00:11 utils-xmlreports.inc.php
-rwxr-x---  1 nagios nagios  62753 Dec 15 00:11 utils-xmlstatus.inc.php
-rwxr-x---  1 nagios nagios   7753 Dec 15 00:11 utils-xmlsysstat.inc.php
-rwxr-x---  1 nagios nagios   1947 Dec 15 00:11 utils-xmlusers.inc.php
Thanks!

Re: Nagios gui in accessible after upgrade.

Posted: Thu Dec 15, 2016 2:16 pm
by rkennedy
Hey guys this last suggestion almost messed up our nagios database, the system at to prompt me to run a command.
A database crash can happen, it's not too much of an issue as long as you're not out of disk space. Simply run the script and that will repair the databases.

Everything looks fine on what you've posted for permissions.

After you did what @ssax mentioned - what errors were you seeing?

Re: Nagios gui in accessible after upgrade.

Posted: Thu Dec 15, 2016 6:17 pm
by netaura
Same issue as before that after the upgrade, the gui becomes inaccessible, then I have to revert back to snapshot.
Thanks!

Re: Nagios gui in accessible after upgrade.

Posted: Fri Dec 16, 2016 11:04 am
by rkennedy
If the apache changes didn't help, could you show us the full upgrade.log?

The error_log points to permissions, but 500 points to an apache configuration issue - the upgrade log should show us if something failed.