Xymon Mailing List Archive search

how to handle several extra-scripts for hobbitd_rrd

3 messages in this thread

list Martin Flemming · Tue, 1 Jun 2010 08:44:48 +0200 (CEST) ·
Hi !

I've got the problem, to use several extra-scripts for hobbitd_rrd

e.g. extragraph.sh,devmon-rrd.pl or the new one flexlmpl ...


The manual says only to use one file for extra-script

--extra-script=FILENAME
     Defines the script that is run to get the RRD data for tests that are not built into hobbitd_rrd. You must also specify which tests are handled by the external script in the --extra-tests option. This option can only be given once, so the script must handle all of the external test-data. See the CUSTOM RRD DATA section below. Note that this is NOT needed if your custom graphs are generated by the NCV (Name Colon Value) module described below, it is only required for data where you have a custom script to parse the status message and extract the data that is put into the graph.

But how could i handle this ?

Only append one script after the other one into a simple shell-script ?

Or have i to write a hole new one for this ?

.. thinking many other Xymon's should have this "problem" ?

thanks & cheers

        Martin
list W.J.M. Nelis · Tue, 01 Jun 2010 09:20:02 +0200 ·
Hello Martin,
quoted from Martin Flemming
I've got the problem, to use several extra-scripts for hobbitd_rrd

e.g. extragraph.sh,devmon-rrd.pl or the new one flexlmpl ...


The manual says only to use one file for extra-script

--extra-script=FILENAME
     Defines the script that is run to get the RRD data for tests that are not built into hobbitd_rrd. You must also specify which tests are handled by the external script in the --extra-tests option. This option can only be given once, so the script must handle all of the external test-data. See the CUSTOM RRD DATA section below. Note that this is NOT needed if your custom graphs are generated by the NCV (Name Colon Value) module described below, it is only required for data where you have a custom script to parse the status message and extract the data that is put into the graph.

But how could i handle this ?
  
I use one (perl) script in which each test defined in the --extra-tests option appears in an if-elsif chain. Some of them use NCV formatted like "<FileName>/<DataSetName> : <Value>", and they use the same piece of code in the script. A stripped version of this script is published together with flexlm.pl on xymonton.

Regards,
  Wim Nelis.


*******************************************************************************************************
The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages.
*******************************************************************************************************
list Martin Flemming · Tue, 1 Jun 2010 09:37:53 +0200 (CEST) ·
Hi, Wim !
quoted from W.J.M. Nelis

On Tue, 1 Jun 2010, W.J.M. Nelis wrote:
Hello Martin,
 I've got the problem, to use several extra-scripts for hobbitd_rrd

 e.g. extragraph.sh,devmon-rrd.pl or the new one flexlmpl ...


 The manual says only to use one file for extra-script

 --extra-script=FILENAME
      Defines the script that is run to get the RRD data for tests that are
 not built into hobbitd_rrd. You must also specify which tests are handled
 by the external script in the --extra-tests option. This option can only
 be given once, so the script must handle all of the external test-data.
 See the CUSTOM RRD DATA section below. Note that this is NOT needed if
 your custom graphs are generated by the NCV (Name Colon Value) module
 described below, it is only required for data where you have a custom
 script to parse the status message and extract the data that is put into
 the graph.

 But how could i handle this ?
I use one (perl) script in which each test defined in the --extra-tests 
option appears in an if-elsif chain. Some of them use NCV formatted like 
"<FileName>/<DataSetName> : <Value>", and they use the same piece of code in 
the script. A stripped version of this script is published together with 
flexlm.pl on xymonton.
Grmmph, didn't see it,
may be tomatoes on my eyes :-)

Thanks a lot, i will test it !

cheers

        Martin