Removing data source from rrd

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Removing data source from rrd

Post by nms »

Hi,

I have a graph in which a performance data was probably removed, leaving the rrd not to update. I followed the KB article -> https://support.nagios.com/kb/article.php?id=497, however in my case i can see the current datasources displayed, but not the one that needs to be deleted.

Code: Select all

[root@am1nms-nagiosxi am1-sha-smse4-p_v-ipops]# grep '<NAME>' 300_S-ipops-SMSE003-IncomingSMS.xml
    <NAME>Current_Measurement</NAME>
[root@am1nms-nagiosxi am1-sha-smse4-p_v-ipops]# grep '<DS>' 300_S-ipops-SMSE003-IncomingSMS.xml
    <DS>1</DS>
The non-populating graph displays also a "Last" measurement. It seems that these where critical and warning threshold that were being also graphed as when opening the xml file i noticed these entries:

Code: Select all

<WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT></CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <RRD>
    <RC>1</RC>
    <TXT>/usr/local/nagios/share/perfdata/am1-sha-smse4-p_v-ipops/300_S-ipops-SMSE003-IncomingSMS.rrd: expected 3 data so
urce readings (got 2) from 1519125325</TXT>
Is it possible to somehow remove this, with forcing me to delete the whole rrd file and of course loose history?

Graph and xml attached.

Rgds,

Matt
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Removing data source from rrd

Post by tgriep »

Do you have a copy of the RRD file before deleting the datasource that you could post here?

Also, can you go to that service and click on the Advanced Tab and post what the plugin is currently returning for performance data?

When you ran through the procedure, did you receive any errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Removing data source from rrd

Post by nms »

Hi,

No there where no errors in the procedure.
Attached is the rrd and a screenshot of the advanced tab.

Maybe the ";"? I will try to remove it just in case.

Rgds,

Matthew
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Removing data source from rrd

Post by tgriep »

Thanks for the rrd file. I dumped the data from it and the bad news is that there isn't much data in it so I think it is corrupted and it will have to be deleted.
If you still have the original file, you can try and remove the data source again but the one you posted, it not salvageable.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Removing data source from rrd

Post by nms »

Hi,

Unfortunately i have no backup for that, so i just need to delete and loose history since it seems we cannot do more

Thanks,

Matthew
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Removing data source from rrd

Post by tgriep »

Yes, deleting the rrd file is all that is left as the file didn't have any information in it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked