Hi
Still getting same error message from system profile after downloading and also providing other details below for verification. Please check and suggest us
PROFILE BUILD FAILED
Array
(
)
CODE: 1
Note: We are facing this issue while doing fresh installation and we not upgrading.
We followed below URL document while installation time.
https://assets.nagios.com/downloads/nag ... 1493894600
As I told in earlier got below error message while doing installation time then later created file "installed.importnagiosql" using touch command. After doing this it moved to next step.
Here files are not imported. May be due this I are facing other issues.
Also getting error message {could not find any host matching 'bhusprv024' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 16)} while checking version. Output provided below.
[root@bhusprv024 nagiosxi]# ./E-importnagiosql
./E-importnagiosql: line 21: killall: command not found
Applying patches to Apache configs for Apache 2.4.x syntax...
Redirecting to /bin/systemctl start httpd.service
Sleeping...
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
ERROR: No files to import - exiting. Were Nagios Core and NagiosQL installed
[root@bhusprv024 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[root@bhusprv024 ~]#
[root@bhusprv024 ~]# /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...
Error: Could not find any host matching 'bhusprv024' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 16)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
[root@bhusprv024 ~]#
[root@bhusprv024 ~]# /etc/init.d/nagios stop
Stopping nagios (via systemctl): [ OK ]
[root@bhusprv024 ~]# /etc/init.d/nagios start
Starting nagios (via systemctl): Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[FAILED]
[root@bhusprv024 ~]#
[root@bhusprv024 ~]# 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: exit-code) since Tue 2017-05-09 22:24:01 EDT; 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 14779 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: Check your configuration file(s) to ensure that they contain valid
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: directives and data defintions. If you are upgrading from a previous
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: version of Nagios, you should be aware that some variables/definitions
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: may have been removed or modified in this version. Make sure to read
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: the HTML documentation regarding the config files, as well as the
May 09 22:24:01 bhusprv024.bhprod.ibm.com nagios[14779]: 'Whats New' section to find out what has changed.
May 09 22:24:01 bhusprv024.bhprod.ibm.com systemd[1]: nagios.service: control process exited, code=exited status=8
May 09 22:24:01 bhusprv024.bhprod.ibm.com systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
May 09 22:24:01 bhusprv024.bhprod.ibm.com systemd[1]: Unit nagios.service entered failed state.
May 09 22:24:01 bhusprv024.bhprod.ibm.com systemd[1]: nagios.service failed.
[root@bhusprv024 ~]#
[root@bhusprv024 ~]# journalctl -xe
-- Unit session-8408.scope has begun starting up.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Started Session 8410 of user nagios.
-- Subject: Unit session-8410.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8410.scope has finished starting up.
--
-- The start-up result is done.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Starting Session 8410 of user nagios.
-- Subject: Unit session-8410.scope has begun start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8410.scope has begun starting up.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Started Session 8409 of user nagios.
-- Subject: Unit session-8409.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8409.scope has finished starting up.
--
-- The start-up result is done.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Starting Session 8409 of user nagios.
-- Subject: Unit session-8409.scope has begun start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8409.scope has begun starting up.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Started Session 8411 of user nagios.
-- Subject: Unit session-8411.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8411.scope has finished starting up.
--
-- The start-up result is done.
May 09 22:25:01 bhusprv024.bhprod.ibm.com systemd[1]: Starting Session 8411 of user nagios.
-- Subject: Unit session-8411.scope has begun start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-8411.scope has begun starting up.
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15075]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15076]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15077]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15078]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15083]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15086]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15084]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15082]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
May 09 22:25:01 bhusprv024.bhprod.ibm.com CROND[15089]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
System profile issue.jpg
System Status issue.jpg