Page 1 of 2
BPI Errors
Posted: Mon May 01, 2017 1:46 pm
by askewdread
Hi,
we are trying to setup some BPI groups, and while i have 1 setup im having issues setting the second one up....
One of them will be a child group of the 3rd one...
but im getting the attached errors and when i click the Edit Group button all i get is the edit page with the Group name and then everything else including group members is blank
i look at the config file and it all appears to be there and correct, so im not sure what the issue is
Code: Select all
}define NagiosProxyEnv {
title=Nagios XI Proxy Environment
desc=
primary=0
info=
members=servernamemgt02.fqdn.local;NULL;&, servernamemgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt02.fqdn.local;Nagios Proxy Service NSCP;&, servernamemgt03.fqdn.local;NULL;&, servernamemgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt03.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt02.fqdn.local;NULL;&, servername1mgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt02.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt03.fqdn.local;NULL;&, servername1mgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt03.fqdn.local;Nagios Proxy Service NSCP;&,
warning_threshold=70
critical_threshold=50
priority=1
type=default
auth_users=
}define NagiosEnv {
title=Nagios XI Environment
desc=Nagios XI
primary=1
info=
members=servernamelnx11.fqdn.local;NULL;|, servernamelnx11.fqdn.local;MySQL Check;|, servernamelnx11.fqdn.local;Root Partition;&, localhost;NULL;|, localhost;Nagios Partition;&, localhost;Root Partition;&,
warning_threshold=90
critical_threshold=80
priority=1
type=default
auth_users=
}
Re: BPI Errors
Posted: Mon May 01, 2017 4:10 pm
by tgriep
The define option needs top be on it's own line in the config file and not have the leading } on it.
Try changing the config like the example below.
Code: Select all
define NagiosProxyEnv {
title=Nagios XI Proxy Environment
desc=
primary=0
info=
members=servernamemgt02.fqdn.local;NULL;&, servernamemgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt02.fqdn.local;Nagios Proxy Service NSCP;&, servernamemgt03.fqdn.local;NULL;&, servernamemgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt03.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt02.fqdn.local;NULL;&, servername1mgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt02.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt03.fqdn.local;NULL;&, servername1mgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt03.fqdn.local;Nagios Proxy Service NSCP;&,
warning_threshold=70
critical_threshold=50
priority=1
type=default
auth_users=
}
define NagiosEnv {
title=Nagios XI Environment
desc=Nagios XI
primary=1
info=
members=servernamelnx11.fqdn.local;NULL;|, servernamelnx11.fqdn.local;MySQL Check;|, servernamelnx11.fqdn.local;Root Partition;&, localhost;NULL;|, localhost;Nagios Partition;&, localhost;Root Partition;&,
warning_threshold=90
critical_threshold=80
priority=1
type=default
auth_users=
}
Let us know how it works out.
Re: BPI Errors
Posted: Mon May 01, 2017 4:12 pm
by askewdread
tgriep wrote:The define option needs top be on it's own line in the config file and not have the leading } on it.
Try changing the config like the example below.
Code: Select all
define NagiosProxyEnv {
title=Nagios XI Proxy Environment
desc=
primary=0
info=
members=servernamemgt02.fqdn.local;NULL;&, servernamemgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt02.fqdn.local;Nagios Proxy Service NSCP;&, servernamemgt03.fqdn.local;NULL;&, servernamemgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servernamemgt03.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt02.fqdn.local;NULL;&, servername1mgt02.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt02.fqdn.local;Nagios Proxy Service NSCP;&, servername1mgt03.fqdn.local;NULL;&, servername1mgt03.fqdn.local;Check Port 5666 - Nagios Agent;&, servername1mgt03.fqdn.local;Nagios Proxy Service NSCP;&,
warning_threshold=70
critical_threshold=50
priority=1
type=default
auth_users=
}
define NagiosEnv {
title=Nagios XI Environment
desc=Nagios XI
primary=1
info=
members=servernamelnx11.fqdn.local;NULL;|, servernamelnx11.fqdn.local;MySQL Check;|, servernamelnx11.fqdn.local;Root Partition;&, localhost;NULL;|, localhost;Nagios Partition;&, localhost;Root Partition;&,
warning_threshold=90
critical_threshold=80
priority=1
type=default
auth_users=
}
Let us know how it works out.
heh SNAP, i was just looking at it and noticed that

works fine once i change that....
i made that using the create BPI service page, so i suspect there might be a bug in that? - the first one it happened on was one that wasnt a parent service
Re: BPI Errors
Posted: Mon May 01, 2017 4:26 pm
by tgriep
What version of Nagios XI are you running?
I used the "Create New BPI Group" link and the BPI Wizard and could not create the issue you have.
There are some recent bug fixes in XI that may solve the issue for you.
See if you can upgrade to the latest version of XI and try it again to see if the error is recreated.
Re: BPI Errors
Posted: Mon May 01, 2017 4:29 pm
by askewdread
tgriep wrote:What version of Nagios XI are you running?
I used the "Create New BPI Group" link and the BPI Wizard and could not create the issue you have.
There are some recent bug fixes in XI that may solve the issue for you.
See if you can upgrade to the latest version of XI and try it again to see if the error is recreated.
we are on 5.4.4 - just tried to create the below using the create new bpi ggroup link and it did the same again
Code: Select all
}define test {
title=test1
desc=
primary=1
info=
members=servername;DAS - CCM Exec Service Status;&,
warning_threshold=90
critical_threshold=80
priority=2
type=default
auth_users=username
}
Re: BPI Errors
Posted: Mon May 01, 2017 4:34 pm
by ssax
Please attach or PM one of us this file:
Code: Select all
/usr/local/nagiosxi/etc/components/bpi.conf
I tried with 5.4.4 and it worked as expected.
Thank you
Re: BPI Errors
Posted: Mon May 01, 2017 4:36 pm
by tgriep
Try manually editing the config and add a few blank lines in the bottom and then see if creating 2 new BPI Groups work for you.
Re: BPI Errors
Posted: Mon May 01, 2017 4:39 pm
by askewdread
tgriep wrote:Try manually editing the config and add a few blank lines in the bottom and then see if creating 2 new BPI Groups work for you.
first one worked fine, second one failed...
config came out looking like this:
Code: Select all
}
define test1 {
title=test1
desc=
primary=1
info=
members=server;MSSQL RTCLOCAL;&,
warning_threshold=90
critical_threshold=80
priority=2
type=default
auth_users=user
}define test2 {
title=test2
desc=
primary=1
info=
members=server;Drive C: Disk Usage;&,
warning_threshold=90
critical_threshold=80
priority=2
type=default
auth_users=user
}
Re: BPI Errors
Posted: Tue May 02, 2017 9:10 am
by tgriep
Can you go to the Admin > Manage Components menu in the XI GUI and post the version of the Nagios BPI component?
Then login as root on the Nagios server, run the following command and post the output.
Code: Select all
ls -lR /usr/local/nagiosxi/html/includes/components/nagiosbpi
Re: BPI Errors
Posted: Tue May 02, 2017 12:32 pm
by askewdread
tgriep wrote:Can you go to the Admin > Manage Components menu in the XI GUI and post the version of the Nagios BPI component?
Then login as root on the Nagios server, run the following command and post the output.
Code: Select all
ls -lR /usr/local/nagiosxi/html/includes/components/nagiosbpi
The BPI component is 2.5.3
results of the ls:
Code: Select all
/usr/local/nagiosxi/html/includes/components/nagiosbpi:
total 100
-rw-r-----. 1 nagios nagios 8651 Apr 26 07:45 api_tool.php
-rw-r-----. 1 nagios nagios 2405 Apr 26 07:45 bpi.conf
-rw-r-----. 1 nagios nagios 3812 Apr 26 07:45 bpi_display.php
-rw-r-----. 1 nagios nagios 13926 Apr 26 07:45 bpi.js
-rw-r-----. 1 nagios nagios 5388 Apr 26 07:45 bpi_style.css
-rw-r-----. 1 nagios nagios 5089 Apr 26 07:45 CHANGELOG.txt
-rw-r-----. 1 nagios nagios 2242 Apr 26 07:45 check_bpi.php
drwxr-x---. 2 nagios nagios 4096 Nov 11 09:38 classes
drwxr-x---. 2 nagios nagios 4096 Nov 11 09:38 functions
drwxr-x---. 2 nagios nagios 4096 Nov 11 09:38 images
-rw-r-----. 1 nagios nagios 3995 Apr 26 07:45 inc.inc.php
-rw-r-----. 1 nagios nagios 5227 Apr 26 07:45 index.php
-rw-r-----. 1 nagios nagios 13462 Apr 26 07:45 nagiosbpi.inc.php
-rw-r-----. 1 nagios nagios 2217 Apr 26 07:45 README
/usr/local/nagiosxi/html/includes/components/nagiosbpi/classes:
total 208
-rw-r-----. 1 nagios nagios 209393 Apr 26 07:45 BpGroup_class.php
/usr/local/nagiosxi/html/includes/components/nagiosbpi/functions:
total 148
-rw-r-----. 1 nagios nagios 3405 Apr 26 07:45 add_group.inc.php
-rw-r-----. 1 nagios nagios 4324 Apr 26 07:45 bpi_commands.php
-rw-r-----. 1 nagios nagios 11587 Apr 26 07:45 bpi_functions.php
-rw-r-----. 1 nagios nagios 5275 Apr 26 07:45 bpi_init.php
-rw-r-----. 1 nagios nagios 6373 Apr 26 07:45 bpi_page_router.php
-rw-r-----. 1 nagios nagios 6103 Apr 26 07:45 bpi_view_object_html.php
-rw-r-----. 1 nagios nagios 17013 Apr 26 07:45 build_form.inc.php
-rw-r-----. 1 nagios nagios 4729 Apr 26 07:45 delete_group.inc.php
-rw-r-----. 1 nagios nagios 144 Apr 26 07:45 dependencies.inc.php
-rw-r-----. 1 nagios nagios 3465 Apr 26 07:45 edit_group.inc.php
-rw-r-----. 1 nagios nagios 4645 Apr 26 07:45 fix_config.inc.php
-rw-r-----. 1 nagios nagios 3711 Apr 26 07:45 get_config_array.inc.php
-rw-r-----. 1 nagios nagios 3290 Apr 26 07:45 get_config_string.inc.php
-rw-r-----. 1 nagios nagios 4434 Apr 26 07:45 grab_status_details.php
-rw-r-----. 1 nagios nagios 5464 Apr 26 07:45 hostgroups.php
-rw-r-----. 1 nagios nagios 3188 Apr 26 07:45 init_constants.inc.php
-rw-r-----. 1 nagios nagios 3546 Apr 26 07:45 parse_bpi_conf.inc.php
-rw-r-----. 1 nagios nagios 5781 Apr 26 07:45 process_post.inc.php
-rw-r-----. 1 nagios nagios 5258 Apr 26 07:45 read_service_status.php
-rw-r-----. 1 nagios nagios 5462 Apr 26 07:45 servicegroups.inc.php
/usr/local/nagiosxi/html/includes/components/nagiosbpi/images:
total 80
-rw-r-----. 1 nagios nagios 32765 Apr 26 07:45 BPI-logo.png
-rw-r-----. 1 nagios nagios 413 Apr 26 07:45 enable_small2.png
-rw-r-----. 1 nagios nagios 317 Apr 26 07:45 expand1.png
-rw-r-----. 1 nagios nagios 161 Apr 26 07:45 expand.gif
-rw-r-----. 1 nagios nagios 293 Apr 26 07:45 expand.png
-rw-r-----. 1 nagios nagios 686 Apr 26 07:45 sort1.png
-rw-r-----. 1 nagios nagios 22260 Apr 26 07:45 throbber1.gif
-rw-r-----. 1 nagios nagios 1080 Apr 26 07:45 tip.gif