Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7
Posted: Wed Jun 20, 2018 11:50 am
Nope, As latest version was installed, don't think about that let me give a hit that as well and update you.. by tomorrow.
Support for Nagios products and services
https://support.nagios.com/forum/
Thanksrtsupport wrote:Nope, As latest version was installed, don't think about that let me give a hit that as well and update you.. by tomorrow.
Code: Select all
/usr/local/nagios/etc/nagios.cfg
#check_result_path=/u01/var/nagiosramdisk/spool/checkresults
check_result_path=/usr/local/nagios/var/spool
#temp_path=/u01/var/nagiosramdisk/tmp
temp_path=/tmp
Code: Select all
===============
REPAIR COMPLETE
===============
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
You have new mail in /var/spool/mail/root
Code: Select all
systemclt status nagios
-bash: systemclt: command not found
[root@localhost ~]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: failed (Result: resources) since Thu 2018-06-21 10:18:19 EDT; 1min 7s ago
Docs: man:systemd-sysv-generator(8)
Process: 5076 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
Jun 21 10:18:16 localhost.localdomain systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Jun 21 10:18:17 localhost.localdomain systemd[1]: PID 5097 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jun 21 10:18:17 localhost.localdomain nagios[5076]: Starting nagios: done.
Jun 21 10:18:19 localhost.localdomain systemd[1]: nagios.service never wrote its PID file. Failing.
Jun 21 10:18:19 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jun 21 10:18:19 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 21 10:18:19 localhost.localdomain systemd[1]: nagios.service failed.
root@localhost ~]# systemctl start nagios
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
You have new mail in /var/spool/mail/root
[code]
[root@localhost ~]# cd /usr/local/nagios/var/
[root@localhost var]# ls -l
total 57152
drwxrwxr-x. 3 nagios nagios 4096 Jun 17 23:59 archives
-rw-r--r--. 1 nagios nagios 0 May 7 2015 host-perfdata
-rw-r--r--. 1 nagios nagios 83357 Jun 21 10:20 nagios.configtest
-rw-r--r--. 1 nagios nagios 9858070 Jun 21 10:20 nagios.log
-rw-------. 1 nagios nagios 6651904 Jul 7 2016 nagios.tmp1RpUDd
-rw-------. 1 nagios nagios 3391488 Dec 28 10:10 nagios.tmpgzaZTN
-rw-------. 1 nagios nagios 0 Jul 17 2015 nagios.tmpWuH0UY
-rw-------. 1 nagios nagios 3604480 Jul 7 2016 nagios.tmpXDgzxV
-rw-r--r--. 1 nagios nagios 0 Jun 29 2015 ndo2db.debug
-rw-r--r-- 1 nagios nagios 5 Jun 21 10:18 ndo2db.lock
-rw-r--r--. 1 nagios nagios 0 Jun 18 05:24 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Jun 21 10:18 ndo.sock
-rw-r--r--. 1 nagios nagios 1328032 Jun 21 09:45 npcd.log
-rw-r--r--. 1 nagios nagios 10485894 Dec 20 2017 npcd.log.old
-rw-r--r--. 1 nagios nagios 31094 May 6 2015 objects.cache
-rw-r--r--. 1 nagios nagios 7020114 Jun 21 10:20 objects.precache
-rw-rw-r--. 1 nagios nagios 4930879 Jun 20 05:44 perfdata.log
-rw-------. 1 nagios nagios 11116490 Jun 21 10:20 retention.dat
drwxrwsr-x. 2 nagios nagcmd 23 Jun 21 10:20 rw
-rw-r--r--. 1 nagios nagios 0 May 7 2015 service-perfdata
drwxr-xr-x. 5 nagios nagios 55 Jun 21 10:20 spool
drwxr-xr-x. 2 nagios nagios 48 Sep 12 2015 stats
Code: Select all
[root@localhost scripts]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Host 'usa7061vm328' has no default contacts or contactgroups defined!
Warning: Host 'website' has no default contacts or contactgroups defined!
Warning: Host 'xtrcecm-records.corp.xerox.com' has no default contacts or contactgroups defined!
Checked 827 hosts.
Checked 575 host groups.
Checked 3 service groups.
Checked 386 contacts.
Checked 559 contact groups.
Checked 433 commands.
Checked 406 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 827 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 406 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 716
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Code: Select all
systemctl restart nagios
scottwilkerson wrote:This is getting closer
do you get the same when trying to restart nagiosAlso, you may want to check all the spots where the ramdisk changes filesCode: Select all
systemctl restart nagios
https://assets.nagios.com/downloads/nag ... giosXI.pdf
Or re-implement a ramdisk on the new system
Code: Select all
[root@localhost tmp]# ./install_ramdisk.sh
======================================== IMPORTANT! ========================================
This script automates the process of setting up a RAM Disk in Nagios XI.
If you don't want to install RAM Disk automatically, you could exit the script and install
it manually, however keep in mind that manual setup of RAM Disk will be a bit more involved.
============================================================================================
Do you want to continue with automatic install? [Y/n] Y
Proceeding with setting up RAM Disk in Nagios XI...
Checking for existing RAM Disk...
service_perfdata_file=/u01/var/nagiosramdisk/service-perfdata
host_perfdata_file=/u01/var/nagiosramdisk/host-perfdata
#check_result_path=/u01/var/nagiosramdisk/spool/checkresults
object_cache_file=/u01/var/nagiosramdisk/objects.cache
status_file=/u01/var/nagiosramdisk/status.dat
#temp_path=/u01/var/nagiosramdisk/tmp
Old RAM Disk found... Exiting...
Code: Select all
[root@localhost tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 28G 25G 3.4G 88% /
devtmpfs 548M 0 548M 0% /dev
tmpfs 559M 0 559M 0% /dev/shm
tmpfs 559M 22M 537M 4% /run
tmpfs 559M 0 559M 0% /sys/fs/cgroup
/dev/sda1 1014M 138M 877M 14% /boot
tmpfs 112M 0 112M 0% /run/user/0
Code: Select all
[root@localhost scripts]# df -h /var/nagiosramdisk/
Filesystem Size Used Avail Use% Mounted on
tmpfs 100M 0 100M 0% /var/nagiosramdisk
Code: Select all
===============
REPAIR COMPLETE
===============
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
You have new mail in /var/spool/mail/root
Code: Select all
[root@localhost var]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Host 'website' has no default contacts or contactgroups defined!
Warning: Host 'xtrcecm-records.corp.xerox.com' has no default contacts or contactgroups defined!
Checked 827 hosts.
Checked 575 host groups.
Checked 3 service groups.
Checked 386 contacts.
Checked 559 contact groups.
Checked 433 commands.
Checked 406 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 827 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 406 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 716
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Code: Select all
[root@localhost ~]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: failed (Result: resources) since Fri 2018-06-22 06:51:09 EDT; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 2732 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
Jun 22 06:51:06 localhost.localdomain systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Jun 22 06:51:07 localhost.localdomain nagios[2732]: Starting nagios: done.
Jun 22 06:51:07 localhost.localdomain systemd[1]: PID 2758 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jun 22 06:51:09 localhost.localdomain systemd[1]: nagios.service never wrote its PID file. Failing.
Jun 22 06:51:09 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jun 22 06:51:09 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 22 06:51:09 localhost.localdomain systemd[1]: nagios.service failed.
Code: Select all
[root@localhost ~]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-77.scope has finished starting up.
--
-- The start-up result is done.
Jun 22 06:57:01 localhost.localdomain systemd[1]: Starting Session 77 of user nagios.
-- Subject: Unit session-77.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-77.scope has begun starting up.
Jun 22 06:57:01 localhost.localdomain CROND[3030]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Jun 22 06:57:01 localhost.localdomain systemd[1]: Started Session 80 of user nagios.
-- Subject: Unit session-80.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-80.scope has finished starting up.
--
-- The start-up result is done.
Jun 22 06:57:01 localhost.localdomain systemd[1]: Starting Session 80 of user nagios.
-- Subject: Unit session-80.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-80.scope has begun starting up.
Jun 22 06:57:01 localhost.localdomain CROND[3032]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
Jun 22 06:57:01 localhost.localdomain CROND[3035]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2
Jun 22 06:57:01 localhost.localdomain CROND[3037]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2
Jun 22 06:57:01 localhost.localdomain CROND[3039]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log
Jun 22 06:57:01 localhost.localdomain CROND[3041]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
Jun 22 06:57:01 localhost.localdomain CROND[3042]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
Jun 22 06:57:02 localhost.localdomain systemd[1]: Removed slice user-1000.slice.
-- Subject: Unit user-1000.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-1000.slice has finished shutting down.
Jun 22 06:57:02 localhost.localdomain systemd[1]: Stopping user-1000.slice.
-- Subject: Unit user-1000.slice has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-1000.slice has begun shutting down.
Code: Select all
[root@localhost scripts]# ./reconfigure_nagios.sh
PHP Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres64.inc.php on line 682
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, please contact Nagios support.<br /><br />Run the following from the CLI as root to attempt to repair the DB<br /><br /><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre>PHP Notice: Undefined variable: result in /usr/local/nagiosxi/html/includes/db.inc.php on line 241
ERROR CONNECTING TO DATABASES!
NAGIOSQL LOGIN FAILED!
Code: Select all
systemctl enable postgresql
systemctl start postgresql
Code: Select all
ls -al /usr/local/nagios
ls -al /usr/local/nagios/var
grep lock_file /usr/local/nagios/etc/nagios.cfg
Code: Select all
[root@localhost ~]# systemctl enable postgresql
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql.serv ice to /usr/lib/systemd/system/postgresql.service.
[root@localhost ~]# systemctl enable postgresql
[root@localhost ~]# systemclt start postgresql
-bash: systemclt: command not found
Code: Select all
[root@localhost ~]# ls -al /usr/local/nagios
total 20
drwxr-xr-x 10 root root 109 Jan 12 2015 .
drwxr-xr-x. 17 root root 207 Jun 22 07:22 ..
drwxrwxr-x 2 nagios nagios 219 Sep 2 2015 bin
drwsrwsr-x 8 apache nagios 4096 Jun 16 08:22 etc
drwxrwxr-x 2 nagios nagios 6 Nov 24 2014 include
drwxrwxr-x 2 nagios nagios 8192 Jan 31 08:37 libexec
drwxrwxr-x 2 nagios nagios 4096 May 13 2015 sbin
drwxrwxr-x 2 nagios nagios 35 Aug 21 2015 scripts
drwxrwxr-x 6 nagios nagios 203 May 26 2015 share
drwxrwxr-x 6 nagios nagios 334 Jun 22 12:36 var
Code: Select all
[root@localhost ~]# ls -al /usr/local/nagios/var
total 37628
drwxrwxr-x 6 nagios nagios 334 Jun 22 12:36 .
drwxr-xr-x 10 root root 109 Jan 12 2015 ..
drwxr-xr-x 3 nagios nagios 4096 Jun 17 23:59 archives
-rw-r--r-- 1 nagios nagios 22656 Jun 22 12:36 nagios.configtest
-rw-r--r-- 1 nagios nagios 6036986 Jun 22 12:36 nagios.log
-rw------- 1 nagios nagios 0 Oct 18 2015 nagios.tmp7uuN2T
-rw------- 1 nagios nagios 8105984 Sep 7 2016 nagios.tmpKUVnNE
-rw-r--r-- 1 nagios nagios 6 Jan 17 2017 nagios@usa7061lv955
-rw-r--r-- 1 nagios nagios 0 May 12 2015 ndo2db.debug
-rw-r--r-- 1 nagios nagios 5 Jun 8 23:22 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Jun 16 09:24 ndomod.tmp
-rw-r--r-- 1 nagios nagios 4712154 Jun 22 12:38 npcd.log
-rw-r--r-- 1 nagios nagios 411 Jun 17 18:04 npcd.log.old
-rw-r--r-- 1 nagios nagios 6820779 Jun 22 12:36 objects.precache
-rw-rw-rw- 1 nagios nagios 740779 Jun 18 06:23 perfdata.log
-rw------- 1 nagios nagios 12059012 Jun 22 12:36 retention.dat
drwxrws--- 2 nagios nagcmd 23 Jun 22 12:36 rw
drwxrwxr-x 5 nagios nagios 55 Nov 24 2014 spool
drwxrwxr-x 2 nagios nagios 22 May 13 2015 stats
Code: Select all
[root@localhost ~]# grep lock_file /usr/local/nagios/etc/nagios.cfg
lock_file=/usr/local/nagios/var/nagios.lock