Nagios xi 5.8.5 Monitoring engine not starting

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Alecassa
Posts: 5
Joined: Mon Aug 02, 2021 3:34 am

Nagios xi 5.8.5 Monitoring engine not starting

Post by Alecassa »

Dear,

I'm new in Nagios xi, and this morning happened to restart the nagios server VM but after that the monitoring engine won't start.
https://ibb.co/Fx2Y9m8
Image

Any idea what happened and how can I fix this? All the monitoring has of course stopped working.

Also out of the blue I'm unable to add new hosts to my environment, maybe this error in the config file management has something to do with it?
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/WB-S218.wb.local.cfg', starting on line 16)
Thanks in advance,

Alessio
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello Alessio,

Thanks for reaching out and would like to take a look at the System Profile so we can see what is going on.

Hello,

Thanks for reaching out and would like to take a look at your Nagios xi System Profile so we can see what is going on.

To send us your system profile.
  • Login to the Nagios xi GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via private message
Thanks,
Perry
Alecassa
Posts: 5
Joined: Mon Aug 02, 2021 3:34 am

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by Alecassa »

Hi Perry,

Thanks for your reply, it seems that I've no authorization to send private messages. How do I get the permission?

Alessio
Alecassa
Posts: 5
Joined: Mon Aug 02, 2021 3:34 am

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by Alecassa »

Hi Perry,

It seems like I have no permission to send private messages on the forum. What can I do about it?

Alessio
pbroste wrote:Hello Alessio,

Thanks for reaching out and would like to take a look at the System Profile so we can see what is going on.

Hello,

Thanks for reaching out and would like to take a look at your Nagios xi System Profile so we can see what is going on.

To send us your system profile.
  • Login to the Nagios xi GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via private message
Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello @Alecassa

It is based on the number of replies/responses to the post, you should be able to send it now.

Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello @Alecassa

Thanks for following up and sending over the System Profile and want to have you go through the following steps.

Let's find out if you have multiple instances of nagios running?

Code: Select all

ps -ef | grep bin/nagios
We will go ahead and end the running processes on /bin/nagios and bounce the services.

Code: Select all

pkill nagios

Code: Select all

service nagios stop

service nagios start
Bring up your Nagiosxi web console and make your way over to CCM:
1. Configure > Core Configuration Manager > Config File Management:
2. Running the "Write Config Files" tool in the exact same order - Delete->Write->Verify->Apply Configuration
3. Stopping/starting services.

Code: Select all

service nagios stop
service nagios start
4. CCM pre-flight check:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg[/code]

Looking for following results:
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0
If you are still receiving this message:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/WB-S218.wb.local.cfg', starting on line 16)
Use your editor to edit: '/usr/local/nagios/etc/services/WB-S218.wb.local.cfg' look to see what service is on line 16 to figure out what service check is failing and to what host it belongs.

Change the line on the failing service from "register 1" to "register 0" and save. By making this change to the 'WB-S218.wb.local.cfg' you will need to run through the config import. And Rinse/repeat....

Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello @Alecassa

Also, to follow up on my previous post, to let you know that you can also go ahead and make the necessary changes on the services or the related host from the CCM > Configure > Core Configuration Manager on web GUI as a more desirable option.

Thanks,
Perry
Alecassa
Posts: 5
Joined: Mon Aug 02, 2021 3:34 am

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by Alecassa »

Hi Perry,

Thanks for your reply.

Nothing that you suggested seemed to work... please see screenshots.

Also i don't really understand what step 4 is, and what am I supposed to do with the pre-flight check?

Image
Image

Apply configuration won't work either.
Image

This one about line 16, error says no host/service description but all I see is the service getting defined?
Image

Thanks

Alessio


pbroste wrote:Hello @Alecassa

Thanks for following up and sending over the System Profile and want to have you go through the following steps.

Let's find out if you have multiple instances of nagios running?

Code: Select all

ps -ef | grep bin/nagios
We will go ahead and end the running processes on /bin/nagios and bounce the services.

Code: Select all

pkill nagios

Code: Select all

service nagios stop

service nagios start
Bring up your Nagiosxi web console and make your way over to CCM:
1. Configure > Core Configuration Manager > Config File Management:
2. Running the "Write Config Files" tool in the exact same order - Delete->Write->Verify->Apply Configuration
3. Stopping/starting services.

Code: Select all

service nagios stop
service nagios start
4. CCM pre-flight check:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg[/code]

Looking for following results:
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0
If you are still receiving this message:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/WB-S218.wb.local.cfg', starting on line 16)
Use your editor to edit: '/usr/local/nagios/etc/services/WB-S218.wb.local.cfg' look to see what service is on line 16 to figure out what service check is failing and to what host it belongs.

Change the line on the failing service from "register 1" to "register 0" and save. By making this change to the 'WB-S218.wb.local.cfg' you will need to run through the config import. And Rinse/repeat....

Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello @Alecassa

I don't see a host or a service config listed for 'WB-S218.wb.local.cfg' in '/usr/local/nagios/etc/... or your database.

Let's have you run through the database repair and follow up with the results on that.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Nagios xi 5.8.5 Monitoring engine not starting

Post by pbroste »

Hello @Alecassa

I do not see any host or service configuration for WB-S218.wb.local in the configs, and I don't see anything listed in the database as well.

Let's go ahead and have you run a repair on your database and let me know the results.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Thanks,
Perry