Updating Nagios XI after migrating to a new Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lakeshorelearning
Posts: 11
Joined: Mon Jul 21, 2014 9:55 pm

Re: Updating Nagios XI after migrating to a new Linux

Post by lakeshorelearning »

Ok I ran it. At the end I received this:

===============
REPAIR COMPLETE
===============
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.

=======================
nagios database repair succeeded
nagiosql database repair succeeded
nagiosxi database repair succeeded

It looks like I made it out but is the 'Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.' something I should be concerned about?

Tried updating to 5.6.9 & was met wi/:

Code: Select all

Check your configuration file(s) to ensure that they contain valid
directives and data definitions.  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.
nagios.service: control process exited, code=exited status=1
Failed to start Nagios Core 4.4.5.
Unit nagios.service entered failed state.
nagios.service failed.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Updating Nagios XI after migrating to a new Linux

Post by gsmith »

Hi.

Yeah, that's an issue.

Run the repair again. If you get the 'Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details after the second repair then run these commands:

Code: Select all

systemctl status nagios.service
journalctl -xe
And send me the output.

Also, try to login and let me know if that is working.

Finally run:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file This is the way
to get a System Profile when you are not able to login.

Thanks
lakeshorelearning
Posts: 11
Joined: Mon Jul 21, 2014 9:55 pm

Re: Updating Nagios XI after migrating to a new Linux

Post by lakeshorelearning »

After running the repair again, i still received the same thing. Ran the 2 commands. This is the output:

Code: Select all

Check your configuration file(s) to ensure that they contain valid
directives and data definitions.  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.
nagios.service: control process exited, code=exited status=1
Failed to start Nagios Core 4.4.5.
Unit nagios.service entered failed state.
nagios.service failed.

Code: Select all

-- Subject: Unit session-195.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-195.scope has finished starting up.
--
-- The start-up result is done.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Starting Session 195 of user nagios.
-- Subject: Unit session-195.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-195.scope has begun starting up.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Started Session 190 of user root.
-- Subject: Unit session-190.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-190.scope has finished starting up.
--
-- The start-up result is done.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Starting Session 190 of user root.
-- Subject: Unit session-190.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-190.scope has begun starting up.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Started Session 191 of user nagios.
-- Subject: Unit session-191.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-191.scope has finished starting up.
--
-- The start-up result is done.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Starting Session 191 of user nagios.
-- Subject: Unit session-191.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-191.scope has begun starting up.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Started Session 201 of user nagios.
-- Subject: Unit session-201.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-201.scope has finished starting up.
--
-- The start-up result is done.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com systemd[1]: Starting Session 201 of user nagios.
-- Subject: Unit session-201.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-201.scope has begun starting up.
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14280]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14279]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14282]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14283]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14281]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14291]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14289]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14290]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php >> /usr/local/nagiosxi/var/deadpool.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14292]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14295]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14296]: (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 --user=nagios --group=nagios)
Oct 15 08:55:01 colo-nagiosxi.llmhq.com CROND[14301]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1)
Oct 15 08:55:02 colo-nagiosxi.llmhq.com sudo[14371]:   nagios : TTY=unknown ; PWD=/home/nagios ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status nagios
Oct 15 08:55:02 colo-nagiosxi.llmhq.com sudo[14401]:   nagios : TTY=unknown ; PWD=/home/nagios ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status npcd
Oct 15 08:55:02 colo-nagiosxi.llmhq.com sudo[14413]:   nagios : TTY=unknown ; PWD=/home/nagios ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db
lakeshorelearning
Posts: 11
Joined: Mon Jul 21, 2014 9:55 pm

Re: Updating Nagios XI after migrating to a new Linux

Post by lakeshorelearning »

Here's the profile.zip
You do not have the required permissions to view the files attached to this post.
lakeshorelearning
Posts: 11
Joined: Mon Jul 21, 2014 9:55 pm

Re: Updating Nagios XI after migrating to a new Linux

Post by lakeshorelearning »

in the .cfg file, I also do see this:

Code: Select all

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/b.cfg', starting on line 16)
   Error processing object config files!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Updating Nagios XI after migrating to a new Linux

Post by gsmith »

Hi

Were you able to login? I'd like to get that
service description in your cfg file fixed.

Thanks
Locked