performance graph not load when upgrade to 5.11.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

performance graph not load when upgrade to 5.11.3

Post by dimsum »

Hi,

I have a problem with the performance graph with the name in space e.g. abc123 is working but abc 123 is not working see my picture ss.

My point: If the hostname has space all of the service is not working. It has affected with old host and the new host also.

Any idea please advise.
You do not have the required permissions to view the files attached to this post.
User avatar
danderson
Posts: 234
Joined: Wed Aug 09, 2023 10:05 am

Re: performance graph not load when upgrade to 5.11.3

Post by danderson »

Thanks for reaching out,

This is a known bug and is being worked on.
vlions
Posts: 1
Joined: Sat Jun 27, 2020 7:53 am

Re: performance graph not load when upgrade to 5.11.3

Post by vlions »

Hi,

Do you have an update for us yet?

It is not solved in the new version 2024R1, it doesn't seem like a very difficult problem to me.
sgardil
Posts: 326
Joined: Wed Aug 09, 2023 9:58 am

Re: performance graph not load when upgrade to 5.11.3

Post by sgardil »

We do not give an time frame for updates as there are many things being worked on. If you would like to keep an eye out for a potential fix then you can check out our change log whenever new versions are released.
https://www.nagios.com/changelog/
vappukuttan
Posts: 52
Joined: Tue Mar 05, 2019 7:43 am

Re: performance graph not load when upgrade to 5.11.3

Post by vappukuttan »

Hello,

I am hoping this is being worked on as a priority bug. Not sure why this would not be on the top of the list (and why it didnt come out in the 2024R1 already). How can you work/use Nagios XI, if the timeline/performance graphs are broken.

Atleast a work-around or steps to put a work-around would be great.

Thanks,
Vinod
gwesterman
Posts: 258
Joined: Wed Aug 23, 2023 11:29 am

Re: performance graph not load when upgrade to 5.11.3

Post by gwesterman »

Hi y'all,

To fix this issue, you can edit the file

Code: Select all

nagiosxi/html/includes/components/graphexplorer/graphexplorer.inc.php
and add the line

Code: Select all

$host = pnp_convert_object_name($host);
to line 97. Between these two chunks of code:

Code: Select all

// Bail if we don't have permissions
if (!is_authorized_for_host(0, $host) && !is_authorized_for_service(0, $host, $service)) {
    return;
}
<-- PUT CODE HERE -->
//clean input 
$host = urlencode($host);
$service = urlencode($service);
$service = empty($service) ? '_HOST_' : $service;
If you don't feel comfortable making this change, the fix will be in XI 2024R1.0.1.

Thank you!
vappukuttan
Posts: 52
Joined: Tue Mar 05, 2019 7:43 am

Re: performance graph not load when upgrade to 5.11.3

Post by vappukuttan »

Hello,

Thank you very much. My Nagios XI instance is good again :).

Thank you,