{"id":135,"date":"2017-01-02T19:31:21","date_gmt":"2017-01-02T19:31:21","guid":{"rendered":"http:\/\/www.web-workers.ch\/?p=135"},"modified":"2017-10-02T20:10:41","modified_gmt":"2017-10-02T20:10:41","slug":"how-to-fix-non-working-rrd-graphs-after-uncontrolled-op5-shutdown","status":"publish","type":"post","link":"https:\/\/www.web-workers.ch\/index.php\/2017\/01\/02\/how-to-fix-non-working-rrd-graphs-after-uncontrolled-op5-shutdown\/","title":{"rendered":"How to fix non working RRD graphs after uncontrolled OP5 shutdown"},"content":{"rendered":"<h1>Check if data files are updated<\/h1>\n<p>Goto RRD data directory<br \/>\n<code># cd \/opt\/monitor\/op5\/pnp\/perfdata<\/code><\/p>\n<p>Goto the host&#8217;s RRD data directory and check if the files are outdated<br \/>\n<code># cd \/opt\/monitor\/op5\/pnp\/perfdata\/gepacsdb.health.root.loc<br \/>\n# ll<br \/>\ntotal 5680<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 DB_Connection_Sessions.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2074 Jan 16 15:35 DB_Connection.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 DB_Freespace_Freespace.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2093 Jan 16 15:35 DB_Freespace.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 DB_Queue_Archive_A.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2072 Jan 16 15:37 DB_Queue_Archive.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 DB_Queue_Retrieve_R.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2074 Jan 16 15:35 DB_Queue_Retrieve.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 21:50 DB_Unspecified_Unspecified.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2171 Jan 16 15:35 DB_Unspecified.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 _HOST__pkt.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:22 _HOST__pl.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:22 _HOST__rta.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 3223 Jan 16 15:28 _HOST_.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 HTTP_Server_size.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 HTTP_Server_time.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2719 Jan 16 15:27 HTTP_Server.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:50 HTTPS_Server_size.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 21:50 HTTPS_Server_time.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2731 Jan 16 15:36 HTTPS_Server.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 21:50 PING_pl.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 20:22 PING_rta.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2665 Jan 16 15:33 PING.xml<br \/>\n-rw-rw-r-- 1 monitor apache 384952 Oct 30 21:50 SSH_Server_time.rrd<br \/>\n-rw-rw-r-- 1 monitor apache 2026 Jan 16 15:29 SSH_Server.xml<br \/>\n<\/code><\/p>\n<p>Check if nagios data can be streamed to RRD daemon<br \/>\n<code># tail -f\u00a0\/opt\/monitor\/op5\/pnp\/perfdata.log<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update \/opt\/monitor\/op5\/pnp\/perfdata\/ksaspx71.health.root.loc\/PING_pl.rrd 1484577692:0<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update ERROR Unable to connect to rrdcached: Connection refused<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update \/opt\/monitor\/op5\/pnp\/perfdata\/ksaspx18.health.root.loc\/System_Load_load1.rrd 1484577693:1.160<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update ERROR Unable to connect to rrdcached: Connection refused<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update \/opt\/monitor\/op5\/pnp\/perfdata\/ksaspx18.health.root.loc\/System_Load_load5.rrd 1484577693:1.250<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update ERROR Unable to connect to rrdcached: Connection refused<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update \/opt\/monitor\/op5\/pnp\/perfdata\/ksaspx18.health.root.loc\/System_Load_load15.rrd 1484577693:1.210<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update ERROR Unable to connect to rrdcached: Connection refused<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update \/opt\/monitor\/op5\/pnp\/perfdata\/ksaspx08.health.root.loc\/System_Processes_Total_procs.rrd 1484577693:199<br \/>\n2017-01-16 15:41:34 [6096] [0] RRDs::update ERROR Unable to connect to rrdcached: Connection refused<br \/>\n<\/code><\/p>\n<h1>Check if rrdcached service is running<\/h1>\n<p>Check if RRD daemon is up and running<br \/>\n<code># service rrdcached status<br \/>\nrrdcached is stopped<br \/>\n[root@thuop5 pnp]# service rrdcached start<br \/>\nStarting rrdcached: rrdcached: can't create pid file '\/opt\/monitor\/var\/rrdtool\/rrdcached\/rrdcached.pid' (File exists)<br \/>\nrrdcached: daemonize failed, exiting.<br \/>\nStarting rrdcached: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0[<span style=\"color: #ff0000;\">FAILED<\/span>]<\/code><\/p>\n<p>We found out, the rrdcached.pid file is still there. It was not deleted because\u00a0the service did not shut down properly. We renamed the file and tried to start the service again.<code># mv \/opt\/monitor\/var\/rrdtool\/rrdcached\/rrdcached.pid \/opt\/monitor\/var\/rrdtool\/rrdcached\/rrdcached.pid.2delete<\/code><code>[root@thuop5 pnp]# service rrdcached status<\/code><code>rrdcached is stopped<\/code><code>[root@thuop5 pnp]# service rrdcached start<\/code><code>Starting rrdcached: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0[ <span style=\"color: #00ff00;\">OK<\/span> ]<\/code><\/p>\n<p>Afterwards the RRD graphs are\u00a0updating again.\u00a0By default, the rrdcached service is observed by OP5 itself &#8211; if your graphs are not updated, check your OP5 host via WebGUI for additional problems with the installation. For details please see OP5 KB record:\u00a0<a href=\"https:\/\/kb.op5.com\/pages\/viewpage.action?pageId=15795186\" target=\"_blank\" rel=\"noopener\">How is performance data transformed into graph data?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check if data files are updated Goto RRD data directory # cd \/opt\/monitor\/op5\/pnp\/perfdata Goto the host&#8217;s RRD data directory and check if the files are outdated # cd \/opt\/monitor\/op5\/pnp\/perfdata\/gepacsdb.health.root.loc # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":145,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[63,35,46,43,49,75,52,44,82,29,57,102],"class_list":["post-135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-op5","tag-ad","tag-apache","tag-file","tag-http","tag-https","tag-ie","tag-log","tag-root","tag-rrd","tag-server","tag-ssh","tag-update"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/graph_with_gaps1.png?fit=600%2C271&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sxjX-2b","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":9,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions\/403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media\/145"}],"wp:attachment":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}