Xymon Mailing List Archive search

1 test, 1 graph, multiple lines

6 messages in this thread

list dOCtoR MADneSs · Fri, 16 Jan 2009 11:16:56 +0100 ·
Hi !
I'm new to this ML, and I'm almost a script dev (almost is the most
accurate word in this mail).
I created a script to monitor game servers activity. It reports the number
of player on a server.
The ouput is formated as it :
&global_color $machine.$test <many words>
&color server1 is OK|NOK Players: <INTEGER>
I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get my
graph when I monitor 1 game server. My script supports several game servers
monitoring, but I can't find a way to have graph for all of them, like the
http tests do (1 test, many URL tested, and one graph with all URL on it).
Can someone help me ?
Sorry for my poor english, I'm better in speaking my homeland language ;)
list Buchan Milne · Fri, 16 Jan 2009 14:38:23 +0200 ·
quoted from dOCtoR MADneSs
On Friday 16 January 2009 12:16:56 user-d54077869176@xymon.invalid wrote:
Hi !
I'm new to this ML, and I'm almost a script dev (almost is the most
accurate word in this mail).
I created a script to monitor game servers activity. It reports the number
of player on a server.
The ouput is formated as it :
&global_color $machine.$test <many words>
&color server1 is OK|NOK Players: <INTEGER>
I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get my
graph when I monitor 1 game server. My script supports several game servers
monitoring, but I can't find a way to have graph for all of them, like the
http tests do (1 test, many URL tested, and one graph with all URL on it).
Can someone help me ?
As long as you will not be changing the number of game servers you monitor, 
send a status message like this:

&global_color $machine.$test <many words>
&color server1 is OK|NOK 
server1_players: <INTEGER>
&color server2 is OK|NOK
server2_players: <INTEGER>

Make sure you have a new line after the last entry. Remove any rrd files if 
you have changed the number of servers you want to graph.

Regards,
Buchan
list dOCtoR MADneSs · Fri, 16 Jan 2009 16:46:55 +0100 ·
On Fri, 16 Jan 2009 14:38:23 +0200, Buchan Milne
quoted from Buchan Milne
<user-9b139aff4dec@xymon.invalid> wrote:
On Friday 16 January 2009 12:16:56 user-d54077869176@xymon.invalid wrote:
Hi !
I'm new to this ML, and I'm almost a script dev (almost is the most
accurate word in this mail).
I created a script to monitor game servers activity. It reports the
number
of player on a server.
The ouput is formated as it :
&global_color $machine.$test <many words>
&color server1 is OK|NOK Players: <INTEGER>
I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get
my
graph when I monitor 1 game server. My script supports several game
servers
monitoring, but I can't find a way to have graph for all of them, like
the
http tests do (1 test, many URL tested, and one graph with all URL on
it).
Can someone help me ?
As long as you will not be changing the number of game servers you
monitor,

send a status message like this:

&global_color $machine.$test <many words>
&color server1 is OK|NOK 
server1_players: <INTEGER>
&color server2 is OK|NOK
server2_players: <INTEGER>

Make sure you have a new line after the last entry. Remove any rrd files
if

you have changed the number of servers you want to graph.

Regards,
Buchan

Okay, thank your for your help.
I need some precisions :
-How could I define the graph in ~xymon|hobbit/server/etc/hobbitgraphs.cfg
to graph all servers, considering the number of server is unknow (and the
variable too)

Example :
&global_color $machine.$test <many words>
&color server1 is OK|NOK 
John_players: <INTEGER>
&color server2 is OK|NOK
Mickael_players: <INTEGER>
list dOCtoR MADneSs · Fri, 16 Jan 2009 16:47:32 +0100 ·
quoted from dOCtoR MADneSs
On Fri, 16 Jan 2009 14:38:23 +0200, Buchan Milne
<user-9b139aff4dec@xymon.invalid> wrote:
On Friday 16 January 2009 12:16:56 user-d54077869176@xymon.invalid wrote:
Hi !
I'm new to this ML, and I'm almost a script dev (almost is the most
accurate word in this mail).
I created a script to monitor game servers activity. It reports the
number
of player on a server.
The ouput is formated as it :
&global_color $machine.$test <many words>
&color server1 is OK|NOK Players: <INTEGER>
I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get
my
graph when I monitor 1 game server. My script supports several game
servers
monitoring, but I can't find a way to have graph for all of them, like
the
http tests do (1 test, many URL tested, and one graph with all URL on
it).
Can someone help me ?
As long as you will not be changing the number of game servers you
monitor,

send a status message like this:

&global_color $machine.$test <many words>
&color server1 is OK|NOK 
server1_players: <INTEGER>
&color server2 is OK|NOK
server2_players: <INTEGER>

Make sure you have a new line after the last entry. Remove any rrd files
if

you have changed the number of servers you want to graph.

Regards,
Buchan

Do i really need to use only integer value (I'm writing a script to monitor
temperature and voltages)
list dOCtoR MADneSs · Fri, 16 Jan 2009 17:30:03 +0100 ·
quoted from dOCtoR MADneSs
On Fri, 16 Jan 2009 14:38:23 +0200, Buchan Milne
<user-9b139aff4dec@xymon.invalid> wrote:
On Friday 16 January 2009 12:16:56 user-d54077869176@xymon.invalid wrote:
Hi !
I'm new to this ML, and I'm almost a script dev (almost is the most
accurate word in this mail).
I created a script to monitor game servers activity. It reports the
number
of player on a server.
The ouput is formated as it :
&global_color $machine.$test <many words>
&color server1 is OK|NOK Players: <INTEGER>
I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get
my
graph when I monitor 1 game server. My script supports several game
servers
monitoring, but I can't find a way to have graph for all of them, like
the
http tests do (1 test, many URL tested, and one graph with all URL on
it).
Can someone help me ?
As long as you will not be changing the number of game servers you
monitor,

send a status message like this:

&global_color $machine.$test <many words>
&color server1 is OK|NOK 
server1_players: <INTEGER>
&color server2 is OK|NOK
server2_players: <INTEGER>

Make sure you have a new line after the last entry. Remove any rrd files
if

you have changed the number of servers you want to graph.

Regards,
Buchan

After some tests and researches, I think the best way for me to manage my
graphs is to use several RRD files for 1 test, each containing data for one
of my value. I read the doc :
http://hobbitmon.sourceforge.net/docs/man8/hobbitd_rrd.8.html
But I'm not sure to understand how I could manage this :
"If you want to store the data in multiple RRD files, the script can just
print out more sequences of data-set definitions, RRD filenames and RRD
values. If the data-set definitions are identical to the previous
definition, you need not print the data-set definitions again - just print
a new RRD filename and value. "

Can someone help me about it ?

Regards,
Damien
list dOCtoR MADneSs · Fri, 16 Jan 2009 21:01:43 +0100 ·
quoted from dOCtoR MADneSsuser-d54077869176@xymon.invalid a écrit :
On Fri, 16 Jan 2009 14:38:23 +0200, Buchan Milne

 wrote:

  
On Friday 16 January 2009 12:16:56 user-d54077869176@xymon.invalid wrote:

    
Hi !

I'm new to this ML, and I'm almost a script dev (almost is the most

accurate word in this mail).

I created a script to monitor game servers activity. It reports the

number

of player on a server.

The ouput is formated as it :

&global_color $machine.$test 

&color server1 is OK|NOK Players: 
quoted from dOCtoR MADneSs

I followed the ~(hobbit|xymon)/help/howtograph.html help file, and i get

my

graph when I monitor 1 game server. My script supports several game

servers

monitoring, but I can't find a way to have graph for all of them, like

the

http tests do (1 test, many URL tested, and one graph with all URL on

it).

Can someone help me ?

      
As long as you will not be changing the number of game servers you

    
monitor,

  
send a status message like this:



&global_color $machine.$test 

&color server1 is OK|NOK 

server1_players: 

&color server2 is OK|NOK

server2_players: 
quoted from dOCtoR MADneSs



Make sure you have a new line after the last entry. Remove any rrd files

    
if

  
you have changed the number of servers you want to graph.



Regards,

Buchan









    

After some tests and researches, I think the best way for me to manage my

graphs is to use several RRD files for 1 test, each containing data for one

of my value. I read the doc :

http://hobbitmon.sourceforge.net/docs/man8/hobbitd_rrd.8.html

But I'm not sure to understand how I could manage this :

"If you want to store the data in multiple RRD files, the script can just

print out more sequences of data-set definitions, RRD filenames and RRD

values. If the data-set definitions are identical to the previous

definition, you need not print the data-set definitions again - just print

a new RRD filename and value. "



Can someone help me about it ?



Regards,

Damien









  
Hi,

I found myself the solution, using SPLITNCV_test instead of NCV_test in hobbitserver.cfg !
All is OK now