Since a while I got some of service which do not graphes, with the message "No historic metrics recorded but performance data is available. Maybe performance data processing is disabled.”
Then i did update from 2.0.0p3 to 2.0.0p5. Those services still not graphing but displaying
Cannot Create Graph Cannot get RRD data for HOST/Service/metric
in /opt/omd/sites/mysite/var/log/cmc.log I could see:
2021-06-22 18:26:14 [4] [client 1] Error flushing RRD: Flushing of file "/opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSED.rrd" failed: rrdcached@/omd/sites/mysite/tmp/run/rrdcached.sock: No such file: /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSED.rrd.. Skipping remaining 0 files.
2021-06-22 18:26:14 [4] [client 1] Error accessing RRD: opening '/opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSED.rrd': No such file or directory
I did downgrade to 2.0.0p3, I still dont have graphe but saw the message then slithly different :
"2021-06-22 18:28:15 [4] [rrdcached thread] [rrdcached at "/omd/sites/mysite/tmp/run/rrdcached.sock"] [log] -1 No such file: /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSED.rrd"
I did check the permission of directory… they look ok for checkmk cant create file.
I did also check filesystem free space and inode.
As out of idea I did try to reboot the server, Of course… was useless.
Did someone already experience issue about RRD Not creating ?
How i could have more log to find what is the problem?
Two things here to consider. First you use the enterprise edition as the tag says. Then it would be good to migrate all RRDs to the CMC format. Your error affects only the old PNP4Nagios storage of the RRDs.
Or better said, it is only a file inside the old structure that cannot be found.
The second point is - do you have “Configuration of RRD databases of services” and “Configuration of RRD databases of hosts” rules in your system? If this instance was upgraded from 1.4 or 1.5 it is possible that such rules are not existing. Only if the rules are there it is possible to use the CMC RRD storage.
More information about the RRD storage format and the conversion can be found here
and got thousand of lines… most of them was - metric ... uptodate
For the graphe which didnt work i look and that an example of the output
TCP Connections (PNP)...
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSED.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSE_WAIT.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_CLOSING.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_ESTABLISHED.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_FIN_WAIT1.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_FIN_WAIT2.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_LAST_ACK.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_LISTEN.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_SYN_RECV.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_SYN_SENT.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
WARNING: XML /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections.xml refers to not existing RRD /omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_TIME_WAIT.rrd. Nothing to convert. Cleanup the XML file manually in case this is OK.
My setup was at first a 1.6 raw which I updated to 1.6.cee and then upgraded to 2.0.cee
But:
1 There is no defined active rule "Configuration of RRD databases of services : 0 "
2 I dont file any ruleset named “Configuration of RRD databases of hosts”
Ok for the last error messages with the standalone XML files. You can only remove them as described in the text.
For the problem with the host graphs. Do you use now the smart ping with your setup?
If yes then you have no host graph anymore. The smart ping cannot produce performance data.
For the rule to create RRD databases for host. You can create this without any problem if there is no one existing. But as said before if you use smart ping then no ping graph. You have two options if you need a ping graph. Change the host check for the hosts to classic ICMP ping or you assign a single ping service as a classic check to these hosts.
Andreas,
some clarifications :
1 ) I still have the log issue in /opt/omd/sites/mysite/var/log/cmc.log
2021-06-29 12:28:01 [4] [client 1] Error flushing RRD: Flushing of file "/opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_SYN_SENT.rrd" failed: rrdcached@/omd/sites/ercom/tmp/run/rrdcached.sock: No such file: /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_SYN_SENT.rrd.. Skipping remaining 0 files.
2021-06-29 12:28:01 [4] [client 1] Error accessing RRD: opening '/opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/TCP_Connections_SYN_SENT.rrd': No such file or directory
ls /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/ -ltrhd
drwxrwxr-x 2 mysite mysite 12K 2021-06-29 12:25 /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/
in the folder, i did remove the XML file refered in the output of “cmk -v --convert-rrds”
and also i ran a grep "TCP_Connections_SYN_SENT" /opt/omd/sites/mysite/var/pnp4nagios/perfdata/MYHOST/*xml
but return nothing.
Yes i’m aware about host using smartping in CEE edition and return no graph, ( or i have to switch to a ping, or add a ping command to get some perfdata/graph ) But actuallly the problem occur on some services who do not graph and display error message like
“Cannot create graph
Cannot get RRD data for MYHOST/TCP Connections/SYN_RECV”
I do NOT have any rule like "Configuration of RRD databases of hosts” available, and so i cannot create a such rule. I DO have a rule named “Configuration of RRD databases of services” ( but 0 created)
Is there a way to “force” the RRD creation of a graph service through cmk command ?
I see a “–create-rrd” option.
Not really knowing what doing, i did try
cmk --create-rrd --keepalive
Error creating RRD for : list index out of range
Error creating RRD for : list index out of range
Error creating RRD for : list index out of range
i do not know for what RRD the problem refer… but i have lot more than 3 RRD missing…
And not solve the problem…
I’m posting an update to this issue for information
As now i’m running with 2.0.0p12.cee edition and I still have to run this procedure to get some of my graph to be done.
It seems that subject still be an issue even there is a working workaround.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.