<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); ">
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">Hi folks. Just wanted to share something I discovered today on our XYMON 4.3.7 configuration.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">Yesterday, I was working to clean up email alerts coming to teams from our server.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">I modified the alerts.cfg file</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">Added a Macro definition = MAC_SRMDK = script/home/xymon/server/ext/html_mail.pl myemail@company.com FORMAT=TEXT</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">After doing this, and some other changes, I went to the xymon pages and clicked the Info button but then started getting a msg like this:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div>
<h1 style="font-family: Times; font-size: medium; ">Internal Server Error</h1>
<p style="font-family: Times; font-size: medium; ">The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p style="font-family: Times; font-size: medium; ">Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
<p style="font-family: Times; font-size: medium; ">More information about this error may be available in the server error log.</p>
<font class="Apple-style-span" face="Times">After checking the /var/log/httpd/error_log file, I saw this:</font></div>
<div><font class="Apple-style-span" face="Times"><br>
</font></div>
<div><font class="Apple-style-span" face="Times">
<div>[Tue Aug 07 13:35:19 2012] [error] [client 1.1.x.x] Premature end of script headers: svcstatus.sh, referer: http://xymonserver.company.com/xymon/#servername</div>
<div><br>
</div>
<div>When trying to run the xymond_alert —test hostname cpu</div>
<div><br>
</div>
<div>This returned:  "Segmentation fault"</div>
<div><br>
</div>
<div>It turned out that among my changes to alerts.cfg, I left the space " " from between mac_srmdk=script and home/xymon….</div>
<div>So the missing space was causing all this grief and I didn't catch it till I took a long look at the file.</div>
<div><br>
</div>
<div>Once I put the " " space between the =script /home/xymon…</div>
<div>And the script file, it cleared all the errors up.</div>
<div>It may be obvious to others, but I was surprised to see a lot of posts in my google searches about these messages, so I thought I would share just in case it happens to anyone else and they can trace it to a simple typo on the cfg file.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</font></div>
</body>
</html>