<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I know that nagios can monitor pages for certain text on that page to verify that its there.  In our organization we have several monitors like this currently setup and they work well for us.  I want to take this operability and apply it to a webpage that only appears when there is a server error and have it kick off a script to restart a service.<div><br></div><div>This is for a website within the company.  When there are too many mysql connections, the site itself will not be displayed but will display a friendly error for us to perform a flush of the hosts.  This error doesnt occur often and when it does occur, it doesn't always happen when someone is awake to address it.  Basically what I want to happen is for nagios to monitor a website and if/when this error appears (I will set the check_command to look for the right text) nagios will execute a script to restart that service.  99% of the time, the site will be up and functioning as it should be, so I am not sure how to write this one up without giving a false positive on our monitors.</div><div><br></div><div>Any thoughts on how to implement this?</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><b><br class="Apple-interchange-newline"><br></b></div><div><b>Joseph Devaney</b><span class="Apple-converted-space"> </span>| Jr. Linux Systems Administrator | Black Duck Software | v: 781-810-1334  | m: 781-974-6729 | <a href="mailto:jdevaney@blackducksoftware.com">jdevaney@blackducksoftware.com</a> | 265 Winter St, Waltham, MA 02451</div><div><br></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>