Closed javyzheng closed 8 years ago
As in my integration, there is a mistake in the Ganglia Nagios Integration Wiki. As shown below:
define command { command_name check_ganglia_heartbeat command_line /bin/sh /var/www/html/ganglia/nagios/check_heartbeat.sh host=$HOSTADDRESS$ threshold=$ARG1$ }
host=$HOSTADDRESS$ should be host=$HOSTNAME$.
host=$HOSTADDRESS$
host=$HOSTNAME$
say we have a server with ip=192.168.0.7 and hostname=server007
ip=192.168.0.7
hostname=server007
if we pass ip to check_heartbeat.sh
./check_heartbeat.sh host=192.168.0.7 threshold=20
I will get following error message:
UNKNOWN 192.168.0.7 - Hostname info not available. Likely invalid hostname
if we pass hostname to check_heartbeat.sh
./check_heartbeat.sh host=server007 threshold=20
I will get the right message like:
OK Last beacon received 0 days, 0:00:14
Thanks for the correction. Documentation has been updated.
As in my integration, there is a mistake in the Ganglia Nagios Integration Wiki. As shown below:
host=$HOSTADDRESS$
should behost=$HOSTNAME$
.say we have a server with
ip=192.168.0.7
andhostname=server007
if we pass ip to check_heartbeat.sh
I will get following error message:
if we pass hostname to check_heartbeat.sh
I will get the right message like: