{"id":143,"date":"2017-01-07T19:42:43","date_gmt":"2017-01-07T19:42:43","guid":{"rendered":"http:\/\/www.web-workers.ch\/?p=143"},"modified":"2017-05-10T12:49:46","modified_gmt":"2017-05-10T12:49:46","slug":"how-to-fix-op5-monitor-execution-time-warning","status":"publish","type":"post","link":"https:\/\/www.web-workers.ch\/index.php\/2017\/01\/07\/how-to-fix-op5-monitor-execution-time-warning\/","title":{"rendered":"How to fix OP5 monitor execution time warning"},"content":{"rendered":"<p>In case you have a lot of monitors configured and\/or monitors who will take some time until they are executed, it can happen that the OP5 internal monitor throws a warning about delays<\/p>\n<blockquote><p>Subject: [op5] PROBLEM: &#8216;Service check execution time&#8217; on &#8216;thuop5.health.root.loc&#8217; is WARNING<\/p>\n<p>Service PROBLEM detected 2017-02-10 11:20:32.<br \/>\n&#8216;Service check execution time&#8217; on host &#8216;op5.yourdomain.local&#8217; has passed the WARNING threshold.<\/p>\n<p>Additional info:<br \/>\nWARNING: service execution_time min\/avg\/max = 0.00\/0.92\/96.76<\/p><\/blockquote>\n<p>To increase the WARNING and CRITICAL values, have a look at OP5 nrpe.cfg file. See below the default line commented out, the line above the commented out line contains the new WARNING and CRITICAL values.<code># cat \/etc\/nrpe.d\/nrpe-merlin.cfg<br \/>\n###############################################################################<br \/>\n#<br \/>\n# op5-nrpe command configuration file<br \/>\n#<br \/>\n# COMMAND DEFINITIONS<br \/>\n# Syntax:<br \/>\n# command[&lt;command_name&gt;]=&lt;command_line&gt;<br \/>\n#<br \/>\ncommand[mon_procs]=\/opt\/plugins\/check_procs -w 1:350 -c 1:600 -C naemon<br \/>\ncommand[mon_cpu]=\/opt\/plugins\/check_procs -w 30 -c 50 --metric=CPU -C naemon<br \/>\ncommand[mon_vsz]=\/opt\/plugins\/check_procs -w 700000 -c 800000 --metric=VSZ -C naemon<br \/>\ncommand[merlin_procs]=\/opt\/plugins\/check_procs -w 1:1 -c 1:1 -C merlind<br \/>\ncommand[merlin_cpu]=\/opt\/plugins\/check_procs -w 5 -c 10 --metric=CPU -C merlind<br \/>\ncommand[merlin_vsz]=\/opt\/plugins\/check_procs -w 475000 -c 600000 --metric=VSZ -C merlind<br \/>\ncommand[mysql]=\/opt\/plugins\/check_mysql -d merlin -u merlin -p merlin<br \/>\ncommand[mysql_vsz]=\/opt\/plugins\/check_procs -w 5250000 -c 7500000 --metric=VSZ -C mysqld<br \/>\ncommand[mer_prog_status]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check status<br \/>\ncommand[host_latency]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check latency host<br \/>\ncommand[service_latency]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check latency service<br \/>\ncommand[host_exectime]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check exectime host<br \/>\n<span style=\"color: #00ff00;\">command[service_exectime]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check exectime service --warning=1,5,100 --critical=5,30,120<\/span><br \/>\n<span style=\"color: #ff0000;\">#command[service_exectime]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check exectime service<\/span><br \/>\ncommand[host_orphans]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check orphans host<br \/>\ncommand[service_orphans]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check orphans service<br \/>\ncommand[cores]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check cores<br \/>\ncommand[spooled_checks]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check spool checks --delete<br \/>\ncommand[spooled_perfdata]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check spool perfdata<br \/>\ncommand[check_distribution]=\/usr\/bin\/asmonitor -q \/usr\/bin\/mon check distribution<br \/>\n<\/code><\/p>\n<p>Restart NRPE service after the file was modified<code># service nrpe restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you have a lot of monitors configured and\/or monitors who will take some time until they are executed, it can happen that the OP5 internal monitor throws a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":146,"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,60,46,75,59,51,44,79],"class_list":["post-143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-op5","tag-ad","tag-domain","tag-file","tag-ie","tag-lock","tag-mysql","tag-root","tag-sql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/realestatetiming1.jpg?fit=670%2C326&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sxjX-2j","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/143","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=143"}],"version-history":[{"count":2,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions\/241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media\/146"}],"wp:attachment":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}