Page 1 of 1

Double unit in Graph presentation

Posted: Wed Jan 10, 2018 5:15 am
by nms
Hi,

I have a script checking the diskspace utilization. The script returns a correct structure for performance data

Code: Select all

DISK / OK - total: 98G - used: 2.8G (6%) - free 53G (94%) | Percentage_used=6%;80;90;
When checked in Nagios, the performance data is also correct (see attachment). However when checking the performance graph it displays a double unit, i.e a %% (see attachment)

Of course if we remove the unit from the performance data output, the graph will take the value (example: 6) as a y-axis title.

Rgds,

Matthew

Re: Double unit in Graph presentation

Posted: Wed Jan 10, 2018 11:29 am
by npolovenko
Hello, @nms. Would you be able to share the script with us? That way we could test it in our environment in order to better understand whats going on.

Re: Double unit in Graph presentation

Posted: Mon Jan 15, 2018 12:51 pm
by nms
Hi,

The issue is whenever there is a percentage unit present, being from a script or else directly by command.
For example if you just add a host using the ssh proxy wizard, and check the performance graph of the host the packet loss (pl) will show you %%.

Matt

Re: Double unit in Graph presentation

Posted: Mon Jan 15, 2018 12:58 pm
by dwhitfield
Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44

Re: Double unit in Graph presentation

Posted: Mon Jan 15, 2018 1:12 pm
by npolovenko
@nms, I think that is actually a known bug and it is going to be fixed in XI 5.4.12. I was able to see those double percent signs in the ping graph also. XI 5.4.12 is scheduled to be released tomorrow. Thanks for your input!

Re: Double unit in Graph presentation

Posted: Thu Jan 18, 2018 12:32 pm
by nms
Confirmed working after upgrade.

Thanks, you may close this ticket.

Matt

Re: Double unit in Graph presentation

Posted: Thu Jan 18, 2018 1:06 pm
by npolovenko
@nms, Sounds good, thanks for your input!