<div class="gmail_quote">On Wed, Jun 9, 2010 at 10:39, Tong Anh Quan <span dir="ltr"><<a href="mailto:anhquankitty@gmail.com">anhquankitty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>Follow instruction on ibm website, I want to use Nagios to alert on Ganglia metrics, details below:<br><br>- ganglia-services.cfg:<br><br>define command {<br> command_name check_ganglia<br> command_line $USER1$/check_ganglia.py -h $HOSTNAME$ -m $ARG1$ -w $ARG2$ -c $ARG3$<br>
}<br><br>define service {<br> host_name localhost<br> service_description disk_free<br> check_command check_ganglia!disk_free!1700!1600<br> max_check_attempts 5<br> check_interval 1<br>
retry_interval 1<br> check_period 24x7<br> notification_interval 30<br>}<br><br>- Reload Nagios, wait a moment and I get the following status on the web:<br>
<b><span style="color:rgb(255, 0, 0)">CHECKGANGLIA UNKNOWN: Error while getting value "Host/value not found" </span></b><br><br>- I edited ganglia_host to hostname.<br><br>- Run this plugin from command line works fine: <br>
<b>/usr/lib64/nagios/plugins/check_ganglia.py -h adtech100 -m disk_free -w 1700 -c 1600<br>CHECKGANGLIA OK: disk_free is 48.60<br clear="all"></b><br>Can anyone help me?<br><font color="#888888">-- <br>--- Hạnh phúc là một ly Cafe và nhạc Trịnh ---<br>
</font><br><br></blockquote><div><br></div><div>The service definition you sent will execute the plugin with -h localhost, but you show output with -h adtech100. Try running the plugin from the command line with -h localhost and you will probably get the same error.</div>
<div><br></div><div>Regards</div><div>Martin Melin</div></div>