Page 1 of 1

Removing data source from rrd

Posted: Tue Feb 20, 2018 6:22 am
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

Re: Removing data source from rrd

Posted: Tue Feb 20, 2018 3:59 pm
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?

Re: Removing data source from rrd

Posted: Wed Feb 21, 2018 3:29 pm
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

Re: Removing data source from rrd

Posted: Thu Feb 22, 2018 11:40 am
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.

Re: Removing data source from rrd

Posted: Mon Feb 26, 2018 3:52 am
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

Re: Removing data source from rrd

Posted: Mon Feb 26, 2018 10:08 am
by tgriep
Yes, deleting the rrd file is all that is left as the file didn't have any information in it.