BPI Errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

BPI Errors

Post 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=
}
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: BPI Errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

Re: BPI Errors

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: BPI Errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

Re: BPI Errors

Post 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
}
Last edited by askewdread on Mon May 01, 2017 4:35 pm, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Errors

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: BPI Errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

Re: BPI Errors

Post 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
}
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: BPI Errors

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

Re: BPI Errors

Post 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
Last edited by tgriep on Tue May 02, 2017 2:48 pm, edited 1 time in total.
Reason: Added Code Wraps around large output.
Locked