GUI Issues - Applying updates and System Status info

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

Unfortunately our security requirements will not allow us to remove the password aging for a non-attributable account.

I have added the suggested entries to /etc/sudoers, restarted nagios and rebooted the instance to no avail.

Mysqld.log is still pumping out the same errors.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: GUI Issues - Applying updates and System Status info

Post by rkennedy »

Can you please run ps -ef | grep 'nagios' and post the result?
Former Nagios Employee
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

nagios 1865 1 0 20:35 ? 00:00:00 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
nagios 1879 1 0 20:35 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2008 1 0 20:35 ? 00:00:12 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 2010 2008 1 20:35 ? 00:00:20 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2011 2008 1 20:35 ? 00:00:20 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2012 2008 1 20:35 ? 00:00:32 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2013 2008 1 20:35 ? 00:00:32 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2014 2008 2 20:35 ? 00:00:35 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2015 2008 2 20:35 ? 00:00:34 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2016 2008 2 20:35 ? 00:00:34 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2018 2008 1 20:35 ? 00:00:31 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2019 2008 1 20:35 ? 00:00:23 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2020 2008 2 20:35 ? 00:00:36 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2021 2008 1 20:35 ? 00:00:28 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2022 2008 2 20:35 ? 00:00:37 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2024 1879 0 20:35 ? 00:00:01 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2025 2024 1 20:35 ? 00:00:33 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2051 2008 0 20:35 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 17212 17207 0 21:03 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios 17213 17209 0 21:03 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios 17214 17211 0 21:03 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios 17216 17212 0 21:03 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios 17217 17213 0 21:03 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios 17218 17208 0 21:03 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios 17221 17214 0 21:03 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios 17225 17210 0 21:03 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios 17226 17225 0 21:03 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios 17227 17218 0 21:03 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: GUI Issues - Applying updates and System Status info

Post by tgriep »

Can you login to the XI server and run the following commands and post the output?

Code: Select all

cd /usr/local/nagiosxi/scripts
su nagios
./reconfigure_nagios.sh
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=********' -O nagiosql.login--2016-03-07 15:10:21--
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

[ <=> ] 36,732 --.-K/s in 0.05s

2016-03-07 15:10:21 (789 KB/s) - “nagiosql.login” saved [36732]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL:
Array
(
)
RESETTING PERMS
URL:
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=********' -O nagiosql.login--2016-03-07 15:10:22--
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

[ <=> ] 36,732 --.-K/s in 0.06s

2016-03-07 15:10:23 (639 KB/s) - “nagiosql.login” saved [36732]

LOGIN SUCCESSFUL!
URL:
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2016-03-07 15:10:23--
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”

[ <=> ] 14,824 8.49K/s in 1.7s

2016-03-07 15:10:25 (8.49 KB/s) - “nagiosql.export.monitoring” saved [14824]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 2062 services.
Checked 267 hosts.
Checked 9 host groups.
Checked 3 service groups.
Checked 10 contacts.
Checked 3 contact groups.
Checked 135 commands.
Checked 17 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 267 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 17 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

Looking through some logs today I discovered in the yum.log that nagiosxi-deps was erased when postfix was uninstalled. We were re-configuring postfix from scratch and nagiosxi-deps was listed as one of the dependent packages.

However when I list this package with the nagios-base and nagiosxi-deps repositories enabled it returns "No package nagiosxi-deps available".

Is this the cause of the problems?
Is it fixable?

The issues started around this time as well.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: GUI Issues - Applying updates and System Status info

Post by hsmith »

What's the output of a yum repolist command?
Former Nagios Employee.
me.
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

Loaded plugins: amazon-id, protectbase, rhui-lb, security
0 packages excluded due to repository protections
repo id repo name status
nagios-base Nagios 151
nagiosxi-deps Nagios XI Dependencies 33
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: GUI Issues - Applying updates and System Status info

Post by rkennedy »

Is this an Amazon install? You seem to be missing quite a few repos. As a comparison, this is what I have on one of my XI machines -

Code: Select all

repo id               repo name                                              status
base                  CentOS-6 - Base                                         6,575
cr                    CentOS-6 - CR                                               0
epel                  Extra Packages for Enterprise Linux 6 - x86_64         12,024
extras                CentOS-6 - Extras                                          50
nagios-base           Nagios                                                    151
nagiosxi-deps         Nagios XI Dependencies                                     33
rpmforge              RHEL 6 - RPMforge.net - dag                             4,718
updates               CentOS-6 - Updates                                      1,230
Do you know where the remaining repositories went? Also. what is the output of getenforce?
Former Nagios Employee
gazoo1997
Posts: 18
Joined: Fri Jan 30, 2015 9:03 am

Re: GUI Issues - Applying updates and System Status info

Post by gazoo1997 »

This is a RHEL6 install and we disable outside repositories by default when running normal operations.
Locked