Nagios monitoring engine not starting after fresh install
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Nagios monitoring engine not starting after fresh install
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.
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.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios monitoring engine not starting after fresh instal
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:
Reconfigure
Restart Nagios:
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
Code: Select all
cd /usr/local/nagiosxi/scripts/Code: Select all
./reconfigure_nagios.shCode: Select all
service nagios startAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Re: Nagios monitoring engine not starting after fresh instal
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.
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.
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios monitoring engine not starting after fresh instal
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.
If that does not correct the problem, please post the output to following commmand:
or if you are running MySQL
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
Code: Select all
service mariadb status
Code: Select all
service mysqld status
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Re: Nagios monitoring engine not starting after fresh instal
I'll update as soon as I get the help, thanks!
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Re: Nagios monitoring engine not starting after fresh instal
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.
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.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios monitoring engine not starting after fresh instal
Sounds good Andrew. Thanks for your patience.
I see your ticket and I've made a reference to this original posting.
I see your ticket and I've made a reference to this original posting.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Re: Nagios monitoring engine not starting after fresh instal
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
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?
Do you want me to update this post as well or can we close it?
Be sure to check out our Knowledgebase for helpful articles and solutions!