Page 1 of 1

Need to Modify BPI component view

Posted: Fri Mar 09, 2018 6:11 am
by bsivavani
Hi,

We would like to modify BPI component view as highlighted in attachment.

Need to modify label Low Priority to text Silver
And we need to remove Group health message info from right side of group.

Kindly advice ?

Re: Need to Modify BPI component view

Posted: Fri Mar 09, 2018 12:09 pm
by lmiltchev
In order to change the label "Low Priority" to "Silver", do the following:

1. Make a backup of the original index.php file:

Code: Select all

cd /usr/local/nagiosxi/html/includes/components/nagiosbpi
cp -p index.php index.php.backup
2. Open the index.php in a text editor, e.g. "vi":

Code: Select all

vi index.php
and change this line (approximately line 84):

Code: Select all

<a class="ui-tabs-anchor" id='tablow' href='index.php?tab=low' title="View Low Priority Processes"><?php echo _(" Low Priority"); ?></a>
to this:

Code: Select all

<a class="ui-tabs-anchor" id='tablow' href='index.php?tab=low' title="View Low Priority Processes"><?php echo _("Silver"); ?></a>
Save and exit:

Code: Select all

:wq
Keep in mind that these changes will be lost after an upgrade of Nagios XI.

In order to remove Group health message info from right side of group, do the following:

1. Go to Home > BPI, and click on the "Edit BPI Setting" button in the upper right corner.

2. Delete the text from the OK/WARNING/CRITICAL Status Test fields on the bottom, and click on "Apply Settings".

Tip: If you decide to revert to defaults at one point in the future, you could always click on "Reset BPI Status Texts to Defaults" button.

Let us know if this helped.

Re: Need to Modify BPI component view

Posted: Mon Mar 12, 2018 3:41 am
by bsivavani
Hi,

I am able to change label from "Low Priority" to "Silver".

But I am not able to find second option for removing Group health message info from right side of group. Please find attached settings which I have under Edit BPI Setting.

2. Delete the text from the OK/WARNING/CRITICAL Status Test fields on the bottom, and click on "Apply Settings".

Re: Need to Modify BPI component view

Posted: Mon Mar 12, 2018 8:49 am
by lmiltchev
Please find attached settings which I have under Edit BPI Setting.
Did you forget to include a screenshot? I see nothing attached...

What is the version of the Nagios BPI component that you are currently using? You can view it by going to Admin > System Extensions > Manage Components.

Here's a screenshot of the Nagios BPI settings on my system with text removed from the status text-boxes:
example01.PNG
Note: I am using Nagios BPI ver. 2.6.2.

Re: Need to Modify BPI component view

Posted: Mon Mar 12, 2018 12:32 pm
by bsivavani
Hi,

Please find attached BPI settings and version.

Re: Need to Modify BPI component view

Posted: Mon Mar 12, 2018 1:18 pm
by lmiltchev
You are running a very old version of the Nagios BPI component. I would recommend upgrading your Nagios XI instance to the latest - this would upgrade the BPI component as well, as it is a "core" component.

Note: The ability to 2.5.0 to edit status text was added in Nagios XI 5.3.0 (Nagios BPI ver. 2.5.0).