Hello,<br><br><div class="gmail_quote">On Mon, Jul 27, 2009 at 3:15 PM, shadih rahman <span dir="ltr"><<a href="mailto:shadhin71@gmail.com">shadhin71@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to monitor 3 exchange server and combined them with check_cluster to report if there was any issue with them or not. If any of my exchange server is down then my check_cluster should report down. So I have 3 individual exchange checks as listed below<br>
<br>define service {<br> use use-standard<br> host_name EXCHANGE1.com<br> service_description executive_exchange_check<br> servicegroups exchangecheck<br>
check_command check_email_service!nagios-ex1!something!pasword<br> contact_groups standard<br>}<br clear="all"><br>define service {<br>
use use-standard<br>
host_name EXCHANGE2.com<br>
service_description executive_exchange_check<br>
servicegroups exchangecheck<br>
check_command check_email_service!nagios-ex2!something!password+<br>
contact_groups standard<br>
}<br><br>define service {<br>
use use-standard<br>
host_name EXCHANGE3.com<br>
service_description executive_exchange_check<br>
servicegroups exchangecheck<br>
check_command check_email_service!nagios-ex3!something!password<br>
contact_groups standard<br>
}<br><br><br><br><br>Now I have the following check_cluster check.<br><br>define service {<br> use standard<br> service_description exchangestatus<br> servicegroups Executive_dashboard<br>
check_command check_cluster_service!"exchangecheck"!0:0!0:0!$SERVICESTATEID:CUIT-EXCHANGE1.com:executive_exchange_check,$SERVICESTATEID:CUIT-EXCHANGE2.com:executive_exchange_check,$SERVICESTATEID:CUIT-EXCHANGE3.com:executive_exchange_check$<br>
contact_groups atg<br>}<br><br><br><br><br>First, my cluster check "exchangestatus" . does it need any association with any hostgroup? I want "Executive_dashboard" servicegroup to show only one "exchangestatus" check not three. I set the warnning and critical to be 0:0 and 0:0. I want anything but "OK" state to alert me. Is my threshold setting correct? Please advise on this. Thanks</blockquote>
<div><br>It looks like you don't have the dollar symbol at the end of your comma-separated values in field 4, and fields 2 and 3 should perhaps be 0 and 1 (indicating 'if any more services than 0 are down, raise a warning alert, and if any more services than 1 are down, raise a critical alert'. Perhaps you should have:<br>
<br>check_command check_cluster_service!"exchangecheck"!0!1!$SERVICESTATEID:CUIT-EXCHANGE1.com:executive_exchange_check$,$SERVICESTATEID:CUIT-EXCHANGE2.com:executive_exchange_check$,$SERVICESTATEID:CUIT-EXCHANGE3.com:executive_exchange_check$<br>
<br>Regards,<br>Guy.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><font color="#888888">
<br><br><br>-- <br>Cordially,<br>Shadhin Rahman<br>
</font><br>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>