graph data for some nagiosxi checks are missing.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bseuser
Posts: 39
Joined: Thu Jul 02, 2020 2:33 am

graph data for some nagiosxi checks are missing.

Post by bseuser »

Hello,

I noticed the graph for some nagiosxi checks was missing, i went through some posts and renamed the .rrd file located at the below path.

/usr/local/nagios/share/perfdata/{hostname}/{check_name.rrd}

After renaming i see new {check_name.rrd} is created and now the nagiosxi check graphs are having data and plotting the graph. But with this method, i am losing the old data which is needed.

When i checked the status of rrdcached service i noticed the below message for few hosts.

Code: Select all

----------------------
systemctl status rrd* -l

argument: 100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100:100)
Sep 07 11:41:33 nagiosxi-emea-01 rrdcached[35768]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/{hostname}/{check_name.rrd}) failed with status -1. (/usr/local/nagios/share/perfdata/{hostname}/{check_name.rrd}: found extra data on update argument: 8282)
----------------------
I went through few posts and was not able to find an answer for this. I am looking for suggestions to fix the graph with existing/old {check_name.rrd} file rather than renaming/deleting the existing {check_name.rrd} file.
phred
Posts: 11
Joined: Tue Jun 01, 2021 5:19 pm

Re: graph data for some nagiosxi checks are missing.

Post by phred »

Hey @bseuser:
What did you rename from and to?

We've recently discovered that you can't embed plus signs (+) in host names, or the performance data won't show in the performance graphs. The solution seems to be rename the host, via the CCM in XI. Did you try renaming the hosts in XI, before renaming the .rdd files?

Also, object names go through some transformations to convert certain characters in the names ([:~`!@$%^&*()\/ "=|]) to underlines. The .rdd file directories reflect this. Perhaps your renaming doesn't match what the system expects things to be called.

Phred
Let us know if you have additional questions.

Phred
kg2857
Posts: 359
Joined: Wed Apr 12, 2023 5:48 pm

Re: graph data for some nagiosxi checks are missing.

Post by kg2857 »

According to the hostname RFC valid hostnames are alphanumeric and the only valid other character is a dash.
If a check is changed it may change the perfdata and the system may stop writing the rrd/xml files.
User avatar
swolf
Developer
Posts: 361
Joined: Tue Jun 06, 2017 9:48 am

Re: graph data for some nagiosxi checks are missing.

Post by swolf »

Hi @bseuser, thanks for reaching out.

Since you mentioned rrdcached, I'm going to assume you or someone on your team is a fairly advanced user. It sounds like you're at least comfortable looking "under the hood" a bit.

Rather than trying to choose between the old and the new RRD files, I would recommend using something like this merging tool. Of course, make sure you have backups of your old and new RRD files before you use this. Worst case, I would expect that you can take your "old" RRD data and export or reformat it so that it matches/merges with the schema of your newer RRD. Without looking at both RRD files I can't tell you exactly what that would look like, but I do think it'd be more feasible for you, and you could probably avoid losing any data.

Let me know if that gets you on the right track, or if you have any further concerns.

-Sebastian Wolf
Developer @ Nagios 2017-05-15 thru 2024-08-06
bseuser
Posts: 39
Joined: Thu Jul 02, 2020 2:33 am

Re: graph data for some nagiosxi checks are missing.

Post by bseuser »

phred wrote: Mon Sep 11, 2023 4:35 pm Hey @bseuser:
What did you rename from and to?

We've recently discovered that you can't embed plus signs (+) in host names, or the performance data won't show in the performance graphs. The solution seems to be rename the host, via the CCM in XI. Did you try renaming the hosts in XI, before renaming the .rdd files?

Also, object names go through some transformations to convert certain characters in the names ([:~`!@$%^&*()\/ "=|]) to underlines. The .rdd file directories reflect this. Perhaps your renaming doesn't match what the system expects things to be called.

Phred
Hi @phred:

I moved the .rrd file of the disk usage check located under /usr/local/nagios/share/perfdata/{hostname}/{check_name.rrd} to check_name.rrd.old for the nagios to generate a new file.

Our hostnames doesn't contain plus (+) character.

I sent you what i renamed and the "rrdcached" service status before movinf the {check_name}.rrd file in the private message for reference.

Thanks,
bseuser
bseuser
Posts: 39
Joined: Thu Jul 02, 2020 2:33 am

Re: graph data for some nagiosxi checks are missing.

Post by bseuser »

bseuser wrote: Wed Sep 13, 2023 8:54 am
phred wrote: Mon Sep 11, 2023 4:35 pm Hey @bseuser:
What did you rename from and to?

We've recently discovered that you can't embed plus signs (+) in host names, or the performance data won't show in the performance graphs. The solution seems to be rename the host, via the CCM in XI. Did you try renaming the hosts in XI, before renaming the .rdd files?

Also, object names go through some transformations to convert certain characters in the names ([:~`!@$%^&*()\/ "=|]) to underlines. The .rdd file directories reflect this. Perhaps your renaming doesn't match what the system expects things to be called.

Phred
Hi @phred:

I moved the .rrd file of the disk usage check located under /usr/local/nagios/share/perfdata/{hostname}/{check_name.rrd} to check_name.rrd.old for the nagios to generate a new file.

Our hostnames doesn't contain plus (+) character.

I will send you what i renamed and the "rrdcached" service status before moving the {check_name}.rrd file in the private message for reference.

Thanks,
bseuser
Hi @phred:
I am not able to send the info to you via private message, looks like you disabled the private message. Let me know if you need any other info.