Re: [hlds_linux] cacti

2009-03-13 Thread The Mad Crapper
i put together a quick script to generate all the graphs for me based on a
time frame passed as the first command argument.

might be easier to read if i'd used a `case` statement (instead of all the
`if`s); didn't assume anyone would ever see it :p

RRDtool Version 1.2.27


#!/bin/bash

cd ~/logger/playerCounter

if [ $1 = 'hour' ]; then
FRAME=Hour
start=-1h
fi

if [ $1 = 'day' ]; then
FRAME=Day
start=-1d
fi

if [ $1 = 'week' ]; then
FRAME=Week
start=-1w
fi

if [ $1 = 'month' ]; then
FRAME=Month
start=-1M
fi

if [ $1 = 'year' ]; then
FRAME=Year
start=-1y
fi

/usr/bin/rrdtool graph players${FRAME}.png \
-t zendeath.com | TF2 server \
-w 800 \
-h 300 \
-r \
-v Player Count \
-l 0 \
-u 25 \
--start ${start} \
-E \
-W `date` \
DEF:PLYS=players.rrd:players:AVERAGE \
DEF:ZDPLYS=players.rrd:zd_players:AVERAGE \
VDEF:APLYS=PLYS,AVERAGE \
VDEF:ZDAPLYS=ZDPLYS,AVERAGE \
AREA:PLYS#AA:Total\ Players\\t\\t \
COMMENT:AVG\\: \
GPRINT:APLYS:%lf\\l \
AREA:ZDPLYS#44:Zendeath\ Members\\t \
COMMENT:AVG\\: \
GPRINT:ZDAPLYS:%lf \
HRULE:APLYS#44


On Mon, Mar 9, 2009 at 3:17 PM, Jaanus Lepik jaa...@serverid.ee wrote:

 Hi,

 What settings you use on graph making?

 The look so good. whats the rrdtool version?

 The Mad Crapper wrote:
  i've been thinking about using Munin; Cacti is a good idea though.  Until
 i
  can make up my lazy ass, i made my own watered down version
 
  http://www.zendeath.com/stats.html
  http://www.zendeath.com/images/playerClassDay.png
  http://www.zendeath.com/images/playerClassWeek.png
 
  I'm going to completely re-write it though to include player counts over
 a
  played map overlay of sorts. I'd be more than willing to share if anyone
  wants it... you have to just promise to not laugh at my code though :p
 
  On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net
 wrote:
 
 
  Any server admins here using cacti, and if so, would you mind sharing
  scripts for graphing player numbers, fps etc?
 
  Cheers,
 
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 
 
 
 
 
 


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux




-- 
Tis not the software that is free, tis your self

PGP Key - http://www.ryanwhelan.com/key.html
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-13 Thread Saint K.
Thanks all for sharing!

We've setup cacti and working on some graphs as well. I'll post back here
with some scripts once everything is done.

Cheers

-Original Message-
From: hlds_linux-boun...@list.valvesoftware.com
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of The Mad
Crapper
Sent: Friday, March 13, 2009 8:28 AM
To: Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] cacti

i put together a quick script to generate all the graphs for me based on a
time frame passed as the first command argument.

might be easier to read if i'd used a `case` statement (instead of all the
`if`s); didn't assume anyone would ever see it :p

RRDtool Version 1.2.27


#!/bin/bash

cd ~/logger/playerCounter

if [ $1 = 'hour' ]; then
FRAME=Hour
start=-1h
fi

if [ $1 = 'day' ]; then
FRAME=Day
start=-1d
fi

if [ $1 = 'week' ]; then
FRAME=Week
start=-1w
fi

if [ $1 = 'month' ]; then
FRAME=Month
start=-1M
fi

if [ $1 = 'year' ]; then
FRAME=Year
start=-1y
fi

/usr/bin/rrdtool graph players${FRAME}.png \
-t zendeath.com | TF2 server \
-w 800 \
-h 300 \
-r \
-v Player Count \
-l 0 \
-u 25 \
--start ${start} \
-E \
-W `date` \
DEF:PLYS=players.rrd:players:AVERAGE \
DEF:ZDPLYS=players.rrd:zd_players:AVERAGE \
VDEF:APLYS=PLYS,AVERAGE \
VDEF:ZDAPLYS=ZDPLYS,AVERAGE \
AREA:PLYS#AA:Total\ Players\\t\\t \
COMMENT:AVG\\: \
GPRINT:APLYS:%lf\\l \
AREA:ZDPLYS#44:Zendeath\ Members\\t \
COMMENT:AVG\\: \
GPRINT:ZDAPLYS:%lf \
HRULE:APLYS#44


On Mon, Mar 9, 2009 at 3:17 PM, Jaanus Lepik jaa...@serverid.ee wrote:

 Hi,

 What settings you use on graph making?

 The look so good. whats the rrdtool version?

 The Mad Crapper wrote:
  i've been thinking about using Munin; Cacti is a good idea though.
Until
 i
  can make up my lazy ass, i made my own watered down version
 
  http://www.zendeath.com/stats.html
  http://www.zendeath.com/images/playerClassDay.png
  http://www.zendeath.com/images/playerClassWeek.png
 
  I'm going to completely re-write it though to include player counts over
 a
  played map overlay of sorts. I'd be more than willing to share if anyone
  wants it... you have to just promise to not laugh at my code though :p
 
  On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net
 wrote:
 
 
  Any server admins here using cacti, and if so, would you mind sharing
  scripts for graphing player numbers, fps etc?
 
  Cheers,
 
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 
 
 
 
 
 


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux




-- 
Tis not the software that is free, tis your self

PGP Key - http://www.ryanwhelan.com/key.html
___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.11/1997 - Release Date: 03/12/09
10:38:00


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-13 Thread Saint K.
Thanks all for sharing!

We've setup cacti and working on some graphs as well. I'll post back here
with some scripts once everything is done.

Cheers

-Original Message-
From: hlds_linux-boun...@list.valvesoftware.com
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of The Mad
Crapper
Sent: Friday, March 13, 2009 8:28 AM
To: Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] cacti

i put together a quick script to generate all the graphs for me based on a
time frame passed as the first command argument.

might be easier to read if i'd used a `case` statement (instead of all the
`if`s); didn't assume anyone would ever see it :p

RRDtool Version 1.2.27


#!/bin/bash

cd ~/logger/playerCounter

if [ $1 = 'hour' ]; then
FRAME=Hour
start=-1h
fi

if [ $1 = 'day' ]; then
FRAME=Day
start=-1d
fi

if [ $1 = 'week' ]; then
FRAME=Week
start=-1w
fi

if [ $1 = 'month' ]; then
FRAME=Month
start=-1M
fi

if [ $1 = 'year' ]; then
FRAME=Year
start=-1y
fi

/usr/bin/rrdtool graph players${FRAME}.png \
-t zendeath.com | TF2 server \
-w 800 \
-h 300 \
-r \
-v Player Count \
-l 0 \
-u 25 \
--start ${start} \
-E \
-W `date` \
DEF:PLYS=players.rrd:players:AVERAGE \
DEF:ZDPLYS=players.rrd:zd_players:AVERAGE \
VDEF:APLYS=PLYS,AVERAGE \
VDEF:ZDAPLYS=ZDPLYS,AVERAGE \
AREA:PLYS#AA:Total\ Players\\t\\t \
COMMENT:AVG\\: \
GPRINT:APLYS:%lf\\l \
AREA:ZDPLYS#44:Zendeath\ Members\\t \
COMMENT:AVG\\: \
GPRINT:ZDAPLYS:%lf \
HRULE:APLYS#44


On Mon, Mar 9, 2009 at 3:17 PM, Jaanus Lepik jaa...@serverid.ee wrote:

 Hi,

 What settings you use on graph making?

 The look so good. whats the rrdtool version?

 The Mad Crapper wrote:
  i've been thinking about using Munin; Cacti is a good idea though.
Until
 i
  can make up my lazy ass, i made my own watered down version
 
  http://www.zendeath.com/stats.html
  http://www.zendeath.com/images/playerClassDay.png
  http://www.zendeath.com/images/playerClassWeek.png
 
  I'm going to completely re-write it though to include player counts over
 a
  played map overlay of sorts. I'd be more than willing to share if anyone
  wants it... you have to just promise to not laugh at my code though :p
 
  On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net
 wrote:
 
 
  Any server admins here using cacti, and if so, would you mind sharing
  scripts for graphing player numbers, fps etc?
 
  Cheers,
 
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 
 
 
 
 
 


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux




-- 
Tis not the software that is free, tis your self

PGP Key - http://www.ryanwhelan.com/key.html
___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.11/1997 - Release Date: 03/12/09
10:38:00


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-13 Thread The Mad Crapper
of course :)

i've been working on something to make graphs like this (
http://haroon.sis.utoronto.ca/perl/rrd.cgi/weather_stats/kbil/wind.html) but
rather than graphing wind speed over colored bands of wind direction; im
going to try to graph player count over colored bands of the map being
played; thus if will be easy to see what maps loose the most players

On Fri, Mar 13, 2009 at 1:41 AM, Saint K. sai...@specialattack.net wrote:

 Thanks all for sharing!

 We've setup cacti and working on some graphs as well. I'll post back here
 with some scripts once everything is done.

 Cheers

 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of The Mad
 Crapper
 Sent: Friday, March 13, 2009 8:28 AM
 To: Half-Life dedicated Linux server mailing list
 Subject: Re: [hlds_linux] cacti

 i put together a quick script to generate all the graphs for me based on a
 time frame passed as the first command argument.

 might be easier to read if i'd used a `case` statement (instead of all the
 `if`s); didn't assume anyone would ever see it :p

 RRDtool Version 1.2.27

 
 #!/bin/bash

 cd ~/logger/playerCounter

 if [ $1 = 'hour' ]; then
FRAME=Hour
start=-1h
 fi

 if [ $1 = 'day' ]; then
FRAME=Day
start=-1d
 fi

 if [ $1 = 'week' ]; then
FRAME=Week
start=-1w
 fi

 if [ $1 = 'month' ]; then
FRAME=Month
start=-1M
 fi

 if [ $1 = 'year' ]; then
FRAME=Year
start=-1y
 fi

 /usr/bin/rrdtool graph players${FRAME}.png \
 -t zendeath.com | TF2 server \
 -w 800 \
 -h 300 \
 -r \
 -v Player Count \
 -l 0 \
 -u 25 \
 --start ${start} \
 -E \
 -W `date` \
 DEF:PLYS=players.rrd:players:AVERAGE \
 DEF:ZDPLYS=players.rrd:zd_players:AVERAGE \
 VDEF:APLYS=PLYS,AVERAGE \
 VDEF:ZDAPLYS=ZDPLYS,AVERAGE \
 AREA:PLYS#AA:Total\ Players\\t\\t \
 COMMENT:AVG\\: \
 GPRINT:APLYS:%lf\\l \
 AREA:ZDPLYS#44:Zendeath\ Members\\t \
 COMMENT:AVG\\: \
 GPRINT:ZDAPLYS:%lf \
 HRULE:APLYS#44


 On Mon, Mar 9, 2009 at 3:17 PM, Jaanus Lepik jaa...@serverid.ee wrote:

  Hi,
 
  What settings you use on graph making?
 
  The look so good. whats the rrdtool version?
 
  The Mad Crapper wrote:
   i've been thinking about using Munin; Cacti is a good idea though.
 Until
  i
   can make up my lazy ass, i made my own watered down version
  
   http://www.zendeath.com/stats.html
   http://www.zendeath.com/images/playerClassDay.png
   http://www.zendeath.com/images/playerClassWeek.png
  
   I'm going to completely re-write it though to include player counts
 over
  a
   played map overlay of sorts. I'd be more than willing to share if
 anyone
   wants it... you have to just promise to not laugh at my code though :p
  
   On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net
  wrote:
  
  
   Any server admins here using cacti, and if so, would you mind sharing
   scripts for graphing player numbers, fps etc?
  
   Cheers,
  
  
   ___
   To unsubscribe, edit your list preferences, or view the list archives,
   please visit:
   http://list.valvesoftware.com/mailman/listinfo/hlds_linux
  
  
  
  
  
  
 
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 



 --
 Tis not the software that is free, tis your self

 PGP Key - http://www.ryanwhelan.com/key.html
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.237 / Virus Database: 270.11.11/1997 - Release Date: 03/12/09
 10:38:00


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux




-- 
Tis not the software that is free, tis your self

PGP Key - http://www.ryanwhelan.com/key.html
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-10 Thread Silent
I'm using munin and I am happy about it. There is a plugin for srcds and 
it works fine:
http://css.setti.info/code/munin-srcds/

The Mad Crapper schrieb:
 i've been thinking about using Munin; Cacti is a good idea though.  Until i
 can make up my lazy ass, i made my own watered down version

 http://www.zendeath.com/stats.html
 http://www.zendeath.com/images/playerClassDay.png
 http://www.zendeath.com/images/playerClassWeek.png

 I'm going to completely re-write it though to include player counts over a
 played map overlay of sorts. I'd be more than willing to share if anyone
 wants it... you have to just promise to not laugh at my code though :p

 On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net wrote:

   
 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

 



   


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


[hlds_linux] cacti

2009-03-09 Thread Saint K.
Any server admins here using cacti, and if so, would you mind sharing
scripts for graphing player numbers, fps etc?

Cheers,


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


[hlds_linux] cacti

2009-03-09 Thread Saint K.
Any server admins here using cacti, and if so, would you mind sharing
scripts for graphing player numbers, fps etc?

Cheers,


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-09 Thread Jaanus Lepik
I use my own php scripts for rrdtool and player monitoring with gameq

Saint K. wrote:
 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives, please 
 visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux
   


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-09 Thread 1nsane
Bug Neph, he does/did.

On Mon, Mar 9, 2009 at 2:58 PM, Saint K. sai...@specialattack.net wrote:

 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-09 Thread The Mad Crapper
i've been thinking about using Munin; Cacti is a good idea though.  Until i
can make up my lazy ass, i made my own watered down version

http://www.zendeath.com/stats.html
http://www.zendeath.com/images/playerClassDay.png
http://www.zendeath.com/images/playerClassWeek.png

I'm going to completely re-write it though to include player counts over a
played map overlay of sorts. I'd be more than willing to share if anyone
wants it... you have to just promise to not laugh at my code though :p

On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net wrote:

 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux




-- 
Tis not the software that is free, tis your self

PGP Key - http://www.ryanwhelan.com/key.html
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-09 Thread Jaanus Lepik
Hi,

What settings you use on graph making?

The look so good. whats the rrdtool version?

The Mad Crapper wrote:
 i've been thinking about using Munin; Cacti is a good idea though.  Until i
 can make up my lazy ass, i made my own watered down version

 http://www.zendeath.com/stats.html
 http://www.zendeath.com/images/playerClassDay.png
 http://www.zendeath.com/images/playerClassWeek.png

 I'm going to completely re-write it though to include player counts over a
 played map overlay of sorts. I'd be more than willing to share if anyone
 wants it... you have to just promise to not laugh at my code though :p

 On Mon, Mar 9, 2009 at 12:58 PM, Saint K. sai...@specialattack.net wrote:

   
 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

 



   


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] cacti

2009-03-09 Thread Nephyrin Zey
I have http://nemu.doublezen.net/cacti/scripts/rcon.py to fetch player 
numbers and other data. You're welcome to use it. Other than that, it's 
just configuring data sources/graphs/etc, which is a nightmare on its own~

- Neph

On 03/09/2009 12:43 PM, 1nsane wrote:
 Bug Neph, he does/did.

 On Mon, Mar 9, 2009 at 2:58 PM, Saint K.sai...@specialattack.net  wrote:


 Any server admins here using cacti, and if so, would you mind sharing
 scripts for graphing player numbers, fps etc?

 Cheers,


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux

  
 ___
 To unsubscribe, edit your list preferences, or view the list archives, please 
 visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds_linux



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


[hlds_linux] Cacti Rcon Data Collection

2008-07-13 Thread Nephyrin Zey
 Hi Neph,

 Could you share the data collection method your using to retrieve the game
 servers info?


Hey,

To collect data from servers for graphing in cacti I wrote a simple
python rcon script:

http://nemu.nephyrin.net/cacti/scripts/rcon.py

I then wrote some other shell scripts to parse the requested data from
it, IE for my players graph:

http://nemu.nephyrin.net/cacti/scripts/players.sh (just greps the last
number on the second line from the rcon stats command)

So then I add a data input of type Script/Command to cacti:
path_cacti/scripts/players.sh server port rcon_pass
Then I add a data source template for it, a graph template for my
players graph, then create a data source with my server/port/pass, and
a graph to graph it. If those steps are confusing you'll have to read
the cacti documentation - learning to use it fully was much harder
than writing the scripts to scrape the data for me :-P

- Neph

On Sat, Jul 12, 2008 at 5:47 PM, chumly chumly [EMAIL PROTECTED] wrote:
 Hi Neph,

 Could you share the data collection method your using to retrieve the game
 servers info?
 I've looked at cacti several times in the past, but without the ability to
 graph the game servers info, I've not found any real use for it.
 If I can integrate the game server info, then I can see some value in cacti.

 Thanks!
 Chumly


 --


 Another tool that does a similar thing would be cacti, which can
 collect SNMP data and data from other sources.

 See my thing here:
 http://nemu.nephyrin.net/cacti
 username/password is hlserver/hlserver

 - Neph

 

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux