check_ganglia.py: UNKNOWN: Error while getting value "Host/value not found"?
Martin Melin
nagios at martinmelin.com
Wed Jun 9 10:52:51 CEST 2010
On Wed, Jun 9, 2010 at 10:39, Tong Anh Quan <anhquankitty at gmail.com> wrote:
> Hi,
>
> Follow instruction on ibm website, I want to use Nagios to alert on Ganglia
> metrics, details below:
>
> - ganglia-services.cfg:
>
> define command {
> command_name check_ganglia
> command_line $USER1$/check_ganglia.py -h $HOSTNAME$ -m $ARG1$ -w $ARG2$
> -c $ARG3$
> }
>
> define service {
> host_name localhost
> service_description disk_free
> check_command check_ganglia!disk_free!1700!1600
> max_check_attempts 5
> check_interval 1
> retry_interval 1
> check_period 24x7
> notification_interval 30
> }
>
> - Reload Nagios, wait a moment and I get the following status on the web:
> *CHECKGANGLIA UNKNOWN: Error while getting value "Host/value not found" *
>
> - I edited ganglia_host to hostname.
>
> - Run this plugin from command line works fine:
> */usr/lib64/nagios/plugins/check_ganglia.py -h adtech100 -m disk_free -w
> 1700 -c 1600
> CHECKGANGLIA OK: disk_free is 48.60
> *
> Can anyone help me?
> --
> --- Hạnh phúc là một ly Cafe và nhạc Trịnh ---
>
>
>
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.
Regards
Martin Melin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100609/70fdf1cf/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list