I've created an Advanced Custom sensor (EXEXML), and am trying to handle error conditions across multiple channels. What i want is for the sensor to go into error state if a single channel is in error state. I've achieved this by using the <LimitMinError> and <Value> tags. I've specified different error messages per channel using the <LimitErrorMsg> tag. This way i can see which channels are in alert state. The only problem here is I can't specify a sensor level error message stating all the channels which are down using the <Text> tag. The sensor level error message only specified the error message of the first channel which is in alert state. I've pasted a sample output. The sensor level message i get here is "0 # (Service 2) is below the error limit of 1 #. Service 2 down.", even though there are TWO services in error state, and I can see this if i go to the live data tab.
<prtg>
<result>
<Channel> Service 1</Channel>
<Value>1</Value>
<LimitMinError>1</LimitMinError>
<LimitErrorMsg> Service 1 down.</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
<result>
<Channel> Service 2</Channel>
<Value>0</Value>
<LimitMinError>1</LimitMinError>
<LimitErrorMsg> Service 2 down.</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
<result>
<Channel>Service 3</Channel>
<Value>1</Value>
<LimitMinError>1</LimitMinError>
<LimitErrorMsg>Service 3 down.</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
<result>
<Channel>Service 4</Channel>
<Value>1</Value>
<LimitMinError>1</LimitMinError>
<LimitErrorMsg>Service 4 down.</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
<result>
<Channel>Service 5</Channel>
<Value>0</Value>
<LimitMinError>1</LimitMinError>
<LimitErrorMsg>Service 5 down.</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
<Text>The service(s) : The service(s) Service 2, Service 5 are down.</Text>
</prtg>
Add comment