Page 1 of 2

The current BPI config has x missing objects. Missing object

Posted: Fri Dec 21, 2018 1:07 pm
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

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

Posted: Fri Dec 21, 2018 2:08 pm
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.

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

Posted: Mon Jan 07, 2019 3:45 am
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

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

Posted: Mon Jan 07, 2019 12:32 pm
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.

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

Posted: Thu Jan 10, 2019 8:26 am
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

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

Posted: Thu Jan 10, 2019 5:43 pm
by ssax
Please post a screenshot of where that error is appearing on the page?

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

Posted: Tue Jan 15, 2019 8:27 am
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...

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

Posted: Wed Jan 16, 2019 5:05 pm
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.

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

Posted: Wed Jan 16, 2019 5:11 pm
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.

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

Posted: Thu Jan 24, 2019 7:36 am
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