{"id":9,"date":"2006-06-26T13:54:25","date_gmt":"2006-06-26T13:54:25","guid":{"rendered":"http:\/\/ramblingsofasysadmin.com\/blog\/?p=9"},"modified":"2006-06-26T13:54:25","modified_gmt":"2006-06-26T13:54:25","slug":"qmail-and-its-30-second-delay","status":"publish","type":"post","link":"https:\/\/ramblingsofasysadmin.com\/?p=9","title":{"rendered":"qmail and its 30 second delay."},"content":{"rendered":"<p>the installation of <a href=\"\/2006\/06\/system_monitoring_tools.html\" target=\"_new\">nagios<\/a> left me stumped in one area.  i realized that running <font face=\"courier\">check_smtp<\/font> in <font face=\"courier\">\/usr\/local\/nagios\/libexec\/<\/font> kept taking exactly 30 seconds before it worked, and since the check_smtp executable gives a <font face=\"courier\">CRITICAL &#8211; Socket timeout after 10 seconds<\/font>, it was pretty essential to get it confirmed as working within that 10 second period.<br \/>\nthis issue only seems to plague users of plesk.<br \/>\nthe trick is actually to edit the following file:<br \/>\n<font face=\"courier\"># vi \/etc\/xinetd.d\/smtp_psa<\/font><br \/>\nit is necessary to add -R right after the <font face=\"courier\">server_args<\/font> directive.<br \/>\ne.g.:  <font face=\"courier\">server_args     = -R \/usr\/sbin\/rblsmtpd -r [snip]<\/font><br \/>\nthen, simply restart xinetd.<br \/>\n<font face=\"courier\"># \/sbin\/service xinetd restart<\/font><br \/>\nnow, on your remote nagios box, try it:<br \/>\n<font face=\"courier\">$ \/usr\/local\/nagios\/libexec\/check_smtp -H 192.168.0.1<\/font><br \/>\nthe response time should be instantaneous:<br \/>\n<font face=\"courier\">SMTP OK &#8211; 0.113 sec. response time|time=0.112892s;;;0.000000<\/font><br \/>\nnow, only if <font face=\"courier\">check_mysql<\/font> compiled correctly on my server, i&#8217;d really have all my bases covered!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>the installation of nagios left me stumped in one area. i realized that running check_smtp in \/usr\/local\/nagios\/libexec\/ kept taking exactly 30 seconds before it worked, and since the check_smtp executable gives a CRITICAL &#8211; Socket timeout after 10 seconds, it was pretty essential to get it confirmed as working within that 10 second period. this issue only seems to plague users of plesk. the trick is actually to edit the following file: # vi \/etc\/xinetd.d\/smtp_psa <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/ramblingsofasysadmin.com\/?p=9\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9"}],"version-history":[{"count":0,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}