The current BPI config has x missing objects. Missing object

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

The current BPI config has x missing objects. Missing object

Post by scharft »

Hi,

the bpi do weired things.
After deletion of a host, i always finde one or more entries in the bpi the are missing.
The weired stuff on this, the host that shows up, were definitly never onboarded.
If i open the bpi configuration manually i'll find the entry.
And most incomprehensible situation is, after deletion a host, everytime bpi shows new hosts that are missed and they have no relationshiop to the deleted hosts.
Very unsatisfad, this never stops...

XI is updated to 5.5.8.

best Thomas
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The current BPI config has x missing objects. Missing ob

Post by ssax »

First, please PM me this file:

Code: Select all

/usr/local/nagiosxi/etc/components/bpi.conf
Then go to Home > BPI:
- Click the edit BPI settings button
- Are both of these checked?

Sync all hostgroups and servicegroups on apply config.

Remove missing hosts and services from all groups.

You can try blanking out your bpi.conf by running these two commands:

Code: Select all

echo "" > /usr/local/nagiosxi/etc/components/bpi.conf
echo "" > /usr/local/nagiosxi/etc/components/bpi.conf.backup
Then apply configuration again.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: The current BPI config has x missing objects. Missing ob

Post by scharft »

Hi & Happy new Year,

i've send you the file via pm.
Yes, both options are checked in the bpi settings.
how can i undo blanking the bpi config?

Best Regards
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The current BPI config has x missing objects. Missing ob

Post by ssax »

File received.

You can undo the blanking by copying the contents of the file you PM'ed me into Home > BPI > Manually Edit Config and then click the Save Configuration button.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: The current BPI config has x missing objects. Missing ob

Post by scharft »

blanking out the bpi config was a bad idea.
All services realted to a bpi group shows periodically "unknown state" and send multiple notifications.
So, whats the next step?
I undo the blacking and at the moment bpi shows me

udo service SGBSPICTX100
SGBS-MFG-PROD sudo service SGBSPICTX100
SGBS-MFG sudo service SGBSPICTX100
SGBS sudo service SGBSPICTX100
ManufacturingEnvironment sudo service mfgwas72
AUSTRIA-RDC ateuwinps0001
AT-RDC-PROD ateuwinps0001
VIENNA-RDC ateuwinps0001
STD-WINDOWS-SERVERS sudo service ateuoew8002
SingaporeWoodland sudo service SGBSPICTX100
ManufacturingandCORP sudo service chnedbsebm001

Really, no one configured a hostname with "sudo"....

Best Regards
thomas
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The current BPI config has x missing objects. Missing ob

Post by ssax »

Please post a screenshot of where that error is appearing on the page?
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: The current BPI config has x missing objects. Missing ob

Post by scharft »

if i delete the shown hosts from the bpi configuration manually and save it, nagios shows me new more hosts that are missing. it's look like a never ending story...
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The current BPI config has x missing objects. Missing ob

Post by ssax »

Please try this, run these commands:

Code: Select all

echo "" > /usr/local/nagiosxi/etc/components/bpi.conf
echo "" > /usr/local/nagiosxi/etc/components/bpi.conf.backup
Then go to Home > BPI > Hostgroups:
- Click the Sync Hostgroups button

Then go to Home > BPI > Servicegroups:
- Click the Sync Servicegroups button

Once it's complete, validate that it's not showing any more missing objects.


You can undo the blanking by copying the contents of the file you PM'ed me into Home > BPI > Manually Edit Config and then click the Save Configuration button.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The current BPI config has x missing objects. Missing ob

Post by ssax »

In addition to my previous post, if it's still having issues, please run this tail command (and leave it running):

Code: Select all

tail -F /usr/local/nagiosxi/var/cmdsubsys.log
Then try to apply configuration through the web interface and once it completes/errors (wait until it says CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall) send me the full output from the tail command above.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: The current BPI config has x missing objects. Missing ob

Post by scharft »

no sucessful result:

tail -F /usr/local/nagiosxi/var/cmdsubsys.log

PROCESSED 0 COMMANDS

PROCESSED 0 COMMANDS



BPI Group Host
SINGAPORE-RDC sudo service SGBSPICTX100
SGBS-MFG-PROD sudo service SGBSPICTX100
SGBS-MFG sudo service SGBSPICTX100
SGBS sudo service SGBSPICTX100
SERVICE-CHROMA atoraektar926
ManufacturingEnvironment atoraektac933
AUSTRIA-RDC ateuwinps0001
VIENNA-RDC atoraektac927
STD-WINDOWS-SERVERS sudo service ateuoew8002
STD-MFG-HOSTS atoraektac921
SingaporeWoodland sudo service SGBSPICTX100
ManufacturingandCORP atoraektac911
BPI Group Host Service
Disk_Check chnedbsalt011 DISK-D


Today all DISK-D checks were damaged, i had to create a new one for all D-Drives, the weird cases are piling up
Locked