I need a special community. We're running an SMTP-Cluster. Time by time, one of the backend-server's overloaded (which is desired and okay and can happen - so, everything is fine). BUT: we would like to isolate this one sub-server from the cluster (scripts are ready to use).
Now, I need the following configuration:
1. Test: shows "Server overload".
2. Test: should fire ONE command (either SSH-Logon and fire a command with parms, or should fire a bat-file - but I NEED TO HAVE the output of this script checked by HM).
1. Question:
How should I configure my test (which one should I use?) that it is only triggered by another host and NOT repeat checking (the 2. Test should only run when the 1. Test changes status).
2. Question:
How can I check the Return-Codes (scriptres:OK or scriptres:Bad) and alert within the 2. Test?
I know, I could just add the "action" in the first test, but I really need the scriptres-Result being checked by HostMonitor (hence the fact that we have more than one server in the cluster and therefore, more than one can be isolated - but only all-1. So, if the last server is also overloaded, we would have a serious problem and therefore cannot just isolate this last one as well). Our Bash-Script is testing everything and just reports the status "scriptres:OK or scriptres:Bad" back...
I hope, I was clear enough... yes, it is a special test case but it is exactly, what we need
![8)](./images/smilies/icon_cool.gif)
kind regards
Pascal