Need to Modify BPI component view

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Need to Modify BPI component view

Post 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 ?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need to Modify BPI component view

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Need to Modify BPI component view

Post 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".
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need to Modify BPI component view

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Need to Modify BPI component view

Post by bsivavani »

Hi,

Please find attached BPI settings and version.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need to Modify BPI component view

Post 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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked