Xymon Mailing List Archive search

Question on --extra-script argument

2 messages in this thread

list Subhash Gada · Tue, 21 Mar 2006 18:07:36 +0530 ·
Hi,

Is the following argument for --extra-script correct
(--extra-script=/home/hobbit/server/bin/rl.sh,/home/hobbit/server/bin/rl
2.sh)

 [rrdstatus]
        ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=status
--log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd
--extra-script=/home/hobbit/server/bin/rl.sh,/home/hobbit/server/bin/rl2
.sh --extra-tests=printq,pages

 Regards,
 Subhash 


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
list Thomas Seglard · Tue, 21 Mar 2006 14:30:45 +0100 ·
Hi,

I think that you have to do one script with all values inside. This 
argument doesn't support more than one script.
Anyway, in your script you can use : 

case $TESTNAME
in
"printq")
        $PRINTQ=blabla
         echo "DS:var_ntp:GAUGE:600:0:100"
        echo "printq.rrd"
        echo "$PRINTQ"
        ;;

"pages")
        $PAGES=blublu
         echo "DS:var_pages:GAUGE:600:0:100"
        echo "pages.rrd"
        echo "$PAGES"
        ;; 

esac

Hope, it helps !
Regards,

Thomas Seglard

"Gada, Subhash" <user-9bc6f87e5088@xymon.invalid> a écrit sur 21/03/2006 
13:37:36 :
Hi, 
Is the following argument for --extra-script correct (--extra-
script=/home/hobbit/server/bin/rl.sh,/home/hobbit/server/bin/rl2.sh)
 [rrdstatus] 
        ENVFILE /home/hobbit/server/etc/hobbitserver.cfg 
        NEEDS hobbitd 
        CMD hobbitd_channel --channel=status --
log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd --
extra-script=/home/hobbit/server/bin/rl.sh,
/home/hobbit/server/bin/rl2.sh --extra-tests=printq,pages
quoted from Subhash Gada
 Regards, 
 Subhash 
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be 
copied, disclosed to, retained or used by, any other party. If you 

are not an intended recipient then please promptly delete this e-
mail and any attachment and all copies and inform the sender. Thank you.
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.

*****

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.