Service perfdata not displayed for as specific HOSTNAME

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Hello,

I have a very interesting case.
Service perfdata is not shown in nagiosxi for a specific HOST, if reconfigure this host and rename it the service performance data graphs are displayed, but if I rename the host back to primary name, the service performance graphs are gone again, while HOST performance data (ping) is always displayed.

I dont see any issues with RRD files.

My old post:
https://support.nagios.com/forum/viewto ... 16&t=60226
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Re: Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Hello guys,

I have an update on the issue.
I managed to find a workaround but is acceptable only as a temporary solution.
If I change the service descrition from ex. "Obremenitev-Izhodna L1:" to "Obremenitev-Izhodna_L1:" than the perfdata chart is displayed.
If I change it back to "Obremenitev-Izhodna L1:" the performance graph is gone.
Y?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service perfdata not displayed for as specific HOSTNAME

Post by ssax »

What XI version are you running? You can find it on the bottom left hand side after logging in.

Generally though, if you change the service name or host name they will stop graphing because the backend filesystem is referenced by the hostname and the service name for the graph RRDs /usr/local/nagios/share/perfdata/THEHOSTNAME/THESERVICENAME.rrd, that's why I referred to that in my post in that other thread. But it should automatically create the new graph RRD files after it receives another check result and some time has gone by (usually occurs within 5-15 minutes depending on your check settings).

I'm wondering if it doesn't like something in that name if it's not creating the graphs even after forcing a check and waiting 5-15 minutes.
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Re: Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Hi,

the version is 5.7.1
I deleted all the folders in /usr/local/nagios/share/perfdata/
New folders are created almost immediately but the charts are still not displayed.
I dont have any special characters in the names, I thougt also it might be something in the name, but after I change the name (add a number, or some other symbol) the charts are immediately displayed.
Is the perfdata only reference for the charts or is some stored in a database or somewhere else?
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Re: Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Here is a nice example, some services having charts, some dont.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Service perfdata not displayed for as specific HOSTNAME

Post by benjaminsmith »

Hi,

Let's log into the CLI and go to the folder with those files and check the permissions.

Code: Select all

cd /usr/local/nagios/share/perfdata/
# Then cd into the host directory and run
ls -lh
Also, please PM the system profile and we can review the settings for you. Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Re: Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Hi,

the files in the /usr/local/nagios/share/perfdata have owner nagios and group nagios
The same goes for rrd and xml files inside hosts folders (see pic.)
On the screenshot you can see old and new renamed service files, both have same owner.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service perfdata not displayed for as specific HOSTNAME

Post by ssax »

What is the full output of this command?

Code: Select all

ls -l /usr/local/nagios/share/perfdata/ups_ljubljana_01_p09_socs6.krka.si
Please attach all files from:

Code: Select all

/usr/local/nagios/share/perfdata/ups_ljubljana_01_p09_socs6.krka.si
Your last screenshot is shows it was named with a dash and then renamed to have a space on the 12th.

Which one doesn't work for Baterija-Kapaciteta?

Please send me a FRESH copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.
Tadej_Vretic
Posts: 12
Joined: Thu Sep 24, 2020 3:36 am

Re: Service perfdata not displayed for as specific HOSTNAME

Post by Tadej_Vretic »

Hi,

the output for the command

Code: Select all

ls -l /usr/local/nagios/share/perfdata/ups_ljubljana_01_p09_socs6.krka.si
is shown in the screenshot
For the files I cannot give you a genereal rule how I renamed them, some files I replaced "space" with "_"on some files I replaced "-" with "_".
For example before was "Baterija-Kapaciteta" after "Baterija_Kapaciteta" but for example "Napetost-Izhodna L1" was renamed "Napetos-Izhodna_L1".
Anyway the chart are drawn emediatelly no matter how I change the name, even if I add for example "A" at the end.
The charts will also be drawn if I rename the host (but this is not acceptable for customer)
I will send you the profile and the xml + rrd files via pm.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service perfdata not displayed for as specific HOSTNAME

Post by ssax »

I notice that all of those services have an extra space on the end of the service description, try removing the extra space from the end of one of them, force a check, then wait 15 and see if it's graphing.

If it's not, please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Thank you!
Locked