Matt,

I've also made a gmond startup init script for IRIX (attached).  I placed
a copy of the gmond usage statement in the comments, feel free to strip
that, I keep it there for our other admins.

thanks,
-ryan

-- 
Ryan Sweet <[EMAIL PROTECTED]>
Atos Origin Engineering Services
http://www.aoes.nl
#! /bin/sh
#
# Ganglia gmond startup for irix
# # chkconfig: 2345 20 80
#

IS_ON=/etc/chkconfig
KILLALL=/sbin/killall

GMOND=/usr/sbin/gmond
ARGS=
#ARGS=--xml_threads=5
# Usage: gmond [OPTIONS]...
#   -h         --help                    Print help and exit
#   -V         --version                 Print version and exit
#              --name=STRING             The name of your cluster reported in 
the XML (default='unspecified')
#   -cSTRING   --mcast_channel=STRING    Multicast channel to send/receive on 
(default='239.2.11.71')
#   -pINT      --mcast_port=INT          Multicast port to send/receive on 
(default=8649)
#   -iSTRING   --mcast_if=STRING         Network interface to multicast on 
(default='kernel decides')
#              --mcast_ttl=INT           Multicast Time-To-Live TTL (default=1)
#              --mcast_threads=INT       Number of multicast listening threads 
(default=2)
#   -xINT      --xml_port=INT            Port to answer XML requests on 
(default=8649)
#              --xml_threads=INT         Number of threads to answer XML 
requests (default=2)
#   -tSTRING   --trusted_host=STRING     A host (ip) to add to the trusted host 
list
#   -nINT      --num_nodes=INT           Estimation of the number of hosts in 
cluster (default=1024)
#   -uINT      --num_custom_metrics=INT  Estimation of the number of custom 
metrics (default=16)
#   -m         --mute                    Only listen to multicast don't send 
data (default=off)
#   -d         --deaf                    Only send multicast data don't listen 
(default=off)
#              --debug_level=INT         Don't daemonize and output debugging 
messages (default=0)
#              --no_setuid               Do NOT change the effective uid of 
gmond (default=off)
#              --setuid=STRING           Change the effective uid to match this 
username's (default='nobody')
#              --no_gexec                Don't list this host as available for 
gexec (default=off)
#              --all_trusted             Use carefully! Gmond will consider ALL 
hosts trusted (default=off)
# 

if test ! -x $IS_ON ; then
    IS_ON=true
fi

if $IS_ON verbose ; then
    ECHO=echo
else            # For a quiet startup and shutdown
    ECHO=:
fi

case $1 in
'start')
        if $IS_ON gmond && test -x $GMOND; then
            $KILLALL -15 $GMOND
            $ECHO "Starting Ganglia gmond:\c"
            $GMOND $ARGS; 
            $ECHO "."
        fi
        ;;
'stop')
        $ECHO "Stopping Ganglia gmond."
        $KILLALL -15 $GMOND
        exit 0
        ;;
'restart')
        $0 stop
        $0 start
        ;;
*)
        echo "usage: /etc/init.d/gmond {start|stop|restart}"
        ;;
esac

Reply via email to