Page 1 of 1
Nagios monitoring engine not starting after fresh install
Posted: Tue Oct 02, 2018 9:06 am
by andrewatmacys
Just installed Nagios fresh on a new RHEL 7.5, using the manual installation instructions using this guide:
https://assets.nagios.com/downloads/nag ... -Linux.pdf
Including the enabling of the optional channel for RHEL 7.x.
I noticed this morning that the monitoring engine isn't started. On trying to start it, it fails. Trying to reload any config snapshot also fails.
I'm not really sure why on a fresh install this is failing, but any help would be great. I can send a system profile if needed.
Re: Nagios monitoring engine not starting after fresh instal
Posted: Tue Oct 02, 2018 12:43 pm
by benjaminsmith
Hi Andrew,
Fresh installations on RHEL are normally very straightforward. I would suggest stopping Nagios, running the reconfiguraiton script and starting it back up and see if this resolves the issue. Let me know if you see any errors when running the configuration script. Otherwise, if you are able, it's probably best to try re-install it or you can send over the system profile, and we'll take a look.
To stop Nagios XI processes run:
Code: Select all
service nagios stop
killall -9 nagios
Reconfigure
Restart Nagios:
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 9:20 am
by andrewatmacys
Sorry for the late reply, I had to get help from someone with root access as they won't let anyone outside the Unix team have root access. The commands above didn't start the monitoring engine up, so it looks like a reinstall is in the cards.
How would you recommend I go about the reinstall process? The only other time I tried a reinstall it was on a server that was so broken we had to rebuild it, so I'm not sure of the steps because that was a last ditch effort.
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 9:22 am
by andrewatmacys
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 10:37 am
by benjaminsmith
Hi Andrew,
Good morning. I would like to try and stop nagios and the backend database, remove the locks files, re-start the system, and see if this can resolve the issue.
Code: Select all
service nagios stop
service ndo2db stop
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service ndo2db start
service nagios start
If that does not correct the problem, please post the output to following commmand:
or if you are running MySQL
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 10:38 am
by andrewatmacys
I'll update as soon as I get the help, thanks!
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 1:56 pm
by andrewatmacys
I've notified you that I've opened a ticket, but am updating this as it has just gotten to me:
Redirecting to /bin/systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-09-10 06:59:02 EDT; 3 weeks 3 days ago
Process: 1279 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 1183 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 1277 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─1277 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─1697 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid ...
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 2:40 pm
by benjaminsmith
Sounds good Andrew. Thanks for your patience.
I see your ticket and I've made a reference to this original posting.
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 2:42 pm
by andrewatmacys
Great, thank you! To be clear, I should be thanking you for your patience! Just want to eliminate the disconnects on my end!
Re: Nagios monitoring engine not starting after fresh instal
Posted: Thu Oct 04, 2018 3:18 pm
by tgriep
I just posted some questions to the ticket for you.
Do you want me to update this post as well or can we close it?