Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

It looks like we have some xml files without "NAGIOS_AUTH_HOSTNAME"


To find the corrupted files, you can grep forĀ "NAGIOS_AUTH_HOSTNAME" , save the result to a list and compare this list with all xml files

Code Block
OMD[rrd]:~/var/pnp4nagios/perfdata/RRD8040$ ls |grep ".*.xml" |sort >~/tmp/xml
OMD[rrd]:~/var/pnp4nagios/perfdata/RRD8040$ grep -ril "NAGIOS_AUTH_HOSTNAME" |sort >~/tmp/xml1
OMD[rrd]:~/var/pnp4nagios/perfdata/RRD8040$ diff ~/tmp/xml ~/tmp/xml1
64d63
< Volume_BILDER_BILDER.xml
87d85
< Volume_UNIX_DATA_01_fs_size.xml
100d97
< Volume_nasstore01.BILDER_fs_size.xml


If I check each of these files, the files are looking really different. So either the files are corrupt, or they are not in the right format:

Code Block
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
	<version>0003</version>
	<step>60</step> <!-- Seconds -->
	<lastupdate>1497008778</lastupdate> <!-- 2017-06-09 13:46:18 CEST -->

	<ds>
		<name> 1 </name>
		<type> GAUGE </type>
		<minimal_heartbeat>8460</minimal_heartbeat>
		<min>NaN</min>
		<max>NaN</max>

		<!-- PDP Status -->
		<last_ds>5694.328125</last_ds>
		<value>1.0249790625e+05</value>
		<unknown_sec> 0 </unknown_sec>
	</ds>

	<!-- Round Robin Archives -->
	<rra>
		<cf>AVERAGE</cf>
		<pdp_per_row>1</pdp_per_row> <!-- 60 seconds -->

		<params>
		<xff>5.0000000000e-01</xff>
		</params>
		<cdp_prep>
			<ds>
			<primary_value>5.6943281250e+03</primary_value>
			<secondary_value>5.6943281250e+03</secondary_value>
			<value>NaN</value>
			<unknown_datapoints>0</unknown_datapoints>
			</ds>
		</cdp_prep>
		<database>
			<!-- 2017-06-07 13:47:00 CEST / 1496836020 --> <row><v>5.6934375000e+03</v></row>
			<!-- 2017-06-07 13:48:00 CEST / 1496836080 --> <row><v>5.6934375000e+03</v></row>
			<!-- 2017-06-07 13:49:00 CEST / 1496836140 --> <row><v>5.6934375000e+03</v></row>
			<!-- 2017-06-07 13:50:00 CEST / 1496836200 --> <row><v>5.6934375000e+03</v></row>
			<!-- 2017-06-07 13:51:00 CEST / 1496836260 --> <row><v>5.6934375000e+03</v></row>
			<!-- 2017-06-07 13:52:00 CEST / 1496836320 --> <row><v>5.6934375000e


The only solution is to delete these files and run the conversion again!