Xymon Mailing List Archive search

zonestat : where are graphs ?

21 messages in this thread

list Nicolas Dorfsman · Mon, 14 May 2007 10:10:17 +0200 ·
Hi,

I've read the question on the list...but can't find the answer.

zonestat seems to work on client....but there's nothing on server ?
I've followed the doc for installation...is there something to add in bbhosts ?
list Galen Johnson · Mon, 14 May 2007 07:40:23 -0400 ·
quoted from Nicolas Dorfsman
Nicolas Dorfsman wrote:
Hi,

I've read the question on the list...but can't find the answer.

zonestat seems to work on client....but there's nothing on server ?
I've followed the doc for installation...is there something to add in bbhosts ?

Did you grab the rrd_data.pl script as well?  There's a typo on the site that says you don't need it if you have zonestat installed...that should read mpstat...and will be fixed shortly.

=G=
list Eric Meddaugh · Mon, 14 May 2007 07:57:44 -0400 ·
You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize

--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat

--In the hobbitlaunch.cfg under the rrddata CMD part:

--extra-tests=zonestat

--Also the graphs in hobbitgraph.cfg

[zonestatcpu]
        TITLE Zone % CPU
        YAXIS % CPU
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:c at RRDIDX@=@RRDFN@:cpu:AVERAGE
        LINE1:c at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:c at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:c at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:c at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:c at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatmem]
        TITLE Zone % Memory
        YAXIS % Memory
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:m at RRDIDX@=@RRDFN@:memory:AVERAGE
        LINE1:m at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:m at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:m at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:m at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:m at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatnproc]
        TITLE Zone Num Proces
        YAXIS #
        FNPATTERN zonestat.(.*).rrd
        DEF:p at RRDIDX@=@RRDFN@:nproc:AVERAGE
        LINE1:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatsize]
        # This graph only works on some OS'es (Solaris)
        TITLE Zone Memory Utilization
        YAXIS Size mB
        FNPATTERN zonestat.(.*).rrd
        DEF:s at RRDIDX@=@RRDFN@:size:AVERAGE
        LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Yes, you do need the rrd_data.pl script as well, then configure it in
the hobbitlaunch.cfg:

--extra-script=/home/hobbit/server/ext/rrd_data.pl

---Eric
quoted from Galen Johnson

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid] 
Sent: Monday, May 14, 2007 07:40
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Nicolas Dorfsman wrote:
Hi,

I've read the question on the list...but can't find the answer.

zonestat seems to work on client....but there's nothing on server ?
I've followed the doc for installation...is there something to add in 
bbhosts ?

Did you grab the rrd_data.pl script as well?  There's a typo on the site

that says you don't need it if you have zonestat installed...that should

read mpstat...and will be fixed shortly.

=G=
list Galen Johnson · Mon, 14 May 2007 09:11:44 -0400 ·
Crap..I missed the hobbitgraph updates in the instructions...I'll fix now. 
quoted from Eric Meddaugh

-----Original Message-----
From: Eric Meddaugh [mailto:user-4e1e735fdc96@xymon.invalid] 
Sent: Monday, May 14, 2007 7:58 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] zonestat : where are graphs ?


You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize

--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat

--In the hobbitlaunch.cfg under the rrddata CMD part:

--extra-tests=zonestat

--Also the graphs in hobbitgraph.cfg

[zonestatcpu]
        TITLE Zone % CPU
        YAXIS % CPU
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:c at RRDIDX@=@RRDFN@:cpu:AVERAGE
        LINE1:c at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:c at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:c at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:c at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:c at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatmem]
        TITLE Zone % Memory
        YAXIS % Memory
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:m at RRDIDX@=@RRDFN@:memory:AVERAGE
        LINE1:m at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:m at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:m at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:m at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:m at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatnproc]
        TITLE Zone Num Proces
        YAXIS #
        FNPATTERN zonestat.(.*).rrd
        DEF:p at RRDIDX@=@RRDFN@:nproc:AVERAGE
        LINE1:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatsize]
        # This graph only works on some OS'es (Solaris)
        TITLE Zone Memory Utilization
        YAXIS Size mB
        FNPATTERN zonestat.(.*).rrd
        DEF:s at RRDIDX@=@RRDFN@:size:AVERAGE
        LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Yes, you do need the rrd_data.pl script as well, then configure it in the hobbitlaunch.cfg:

--extra-script=/home/hobbit/server/ext/rrd_data.pl

---Eric

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid]
Sent: Monday, May 14, 2007 07:40
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Nicolas Dorfsman wrote:
Hi,

I've read the question on the list...but can't find the answer.

zonestat seems to work on client....but there's nothing on server ?
I've followed the doc for installation...is there something to add in 
bbhosts ?

Did you grab the rrd_data.pl script as well?  There's a typo on the site

that says you don't need it if you have zonestat installed...that should

read mpstat...and will be fixed shortly.

=G=
list Galen Johnson · Mon, 14 May 2007 13:10:53 -0400 ·
Eric,

Would you mind popping over to http://www.trantor.org/theshire/doku.php/monitors:zonestat and make sure I have everything now.

Thanks

=G=
quoted from Eric Meddaugh

-----Original Message-----
From: Eric Meddaugh [mailto:user-4e1e735fdc96@xymon.invalid] 
Sent: Monday, May 14, 2007 7:58 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] zonestat : where are graphs ?


You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize

--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat

--In the hobbitlaunch.cfg under the rrddata CMD part:

--extra-tests=zonestat

--Also the graphs in hobbitgraph.cfg

[zonestatcpu]
        TITLE Zone % CPU
        YAXIS % CPU
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:c at RRDIDX@=@RRDFN@:cpu:AVERAGE
        LINE1:c at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:c at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:c at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:c at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:c at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatmem]
        TITLE Zone % Memory
        YAXIS % Memory
        FNPATTERN zonestat.(.*).rrd
        -u 100
        -r
        DEF:m at RRDIDX@=@RRDFN@:memory:AVERAGE
        LINE1:m at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:m at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:m at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:m at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:m at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatnproc]
        TITLE Zone Num Proces
        YAXIS #
        FNPATTERN zonestat.(.*).rrd
        DEF:p at RRDIDX@=@RRDFN@:nproc:AVERAGE
        LINE1:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[zonestatsize]
        # This graph only works on some OS'es (Solaris)
        TITLE Zone Memory Utilization
        YAXIS Size mB
        FNPATTERN zonestat.(.*).rrd
        DEF:s at RRDIDX@=@RRDFN@:size:AVERAGE
        LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Yes, you do need the rrd_data.pl script as well, then configure it in the hobbitlaunch.cfg:

--extra-script=/home/hobbit/server/ext/rrd_data.pl

---Eric

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid]
Sent: Monday, May 14, 2007 07:40
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Nicolas Dorfsman wrote:
Hi,

I've read the question on the list...but can't find the answer.

zonestat seems to work on client....but there's nothing on server ?
I've followed the doc for installation...is there something to add in 
bbhosts ?

Did you grab the rrd_data.pl script as well?  There's a typo on the site

that says you don't need it if you have zonestat installed...that should

read mpstat...and will be fixed shortly.

=G=
list Nicolas Dorfsman · Wed, 16 May 2007 10:48:04 +0200 ·
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1
list Peter Welter · Wed, 16 May 2007 12:24:43 +0200 ·
Wow this was the update I needed, thanks!

Trantor.org needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:
quoted from Nicolas Dorfsman
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1

list Galen Johnson · Wed, 16 May 2007 07:42:25 -0400 ·
It's there...see step 4 of the server config...

=G=
quoted from Peter Welter

-----Original Message-----
From: Peter Welter [mailto:user-f55666bd0d1e@xymon.invalid]
Sent: Wed 5/16/2007 6:24 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?
 
Wow this was the update I needed, thanks!

Trantor.org needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1

list Eric Meddaugh · Wed, 16 May 2007 07:50:57 -0400 ·
 

Yes, that's the only thing I see missing as well to get it working.
The zonestat only monitors inside the global zone.

 
Also for "mpstat" at:
http://www.trantor.org/theshire/doku.php/monitors:mpstat

 
You'll need to add the "mpstat" to the hobbitserver.cfg in TEST2RRD and
GRAPHS

 
In the bb-hosts to enable the mpstat graphing you need the tags:
mpstat:mpstatusr|mpstatsys|mpstatwt|mpstatidl

 
Also for "mpstat", you'll need to add the graph definitions into
hobbitgraph.cfg:

 
[mpstatusr]

        TITLE CPU usr Utilitization

        YAXIS % Used

        FNPATTERN mpstat.CPU(.*).rrd

        -u 100

        -r

        DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

        DEF:usr at RRDIDX@=@RRDFN@:usr:AVERAGE

        LINE1:usr at RRDIDX@#@COLOR@:CPU at RRDPARAM@

        GPRINT:usr at RRDIDX@:LAST: \: %5.1lf (cur)

        GPRINT:usr at RRDIDX@:MAX: \: %5.1lf (max)

        GPRINT:usr at RRDIDX@:MIN: \: %5.1lf (min)

        GPRINT:usr at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

 
[mpstatsys]

        TITLE CPU sys Utilitization

        YAXIS % Used

        FNPATTERN mpstat.CPU(.*).rrd

        -u 100

        -r

        DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

        DEF:sys at RRDIDX@=@RRDFN@:sys:AVERAGE

        LINE1:sys at RRDIDX@#@COLOR@:CPU at RRDPARAM@

        GPRINT:sys at RRDIDX@:LAST: \: %5.1lf (cur)

        GPRINT:sys at RRDIDX@:MAX: \: %5.1lf (max)

        GPRINT:sys at RRDIDX@:MIN: \: %5.1lf (min)

        GPRINT:sys at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

 
[mpstatwt]

        TITLE CPU wt Utilitization

        YAXIS % Used

        FNPATTERN mpstat.CPU(.*).rrd

        -u 100

        -r

        DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

        DEF:wt at RRDIDX@=@RRDFN@:wt:AVERAGE

        LINE1:wt at RRDIDX@#@COLOR@:CPU at RRDPARAM@

        GPRINT:wt at RRDIDX@:LAST: \: %5.1lf (cur)

        GPRINT:wt at RRDIDX@:MAX: \: %5.1lf (max)

        GPRINT:wt at RRDIDX@:MIN: \: %5.1lf (min)

        GPRINT:wt at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

 
[mpstatidl]

        TITLE CPU idl Utilitization

        YAXIS % Used

        FNPATTERN mpstat.CPU(.*).rrd

        -u 100

        -r

        DEF:num at RRDIDX@=@RRDFN@:CPU:AVERAGE

        DEF:idl at RRDIDX@=@RRDFN@:idl:AVERAGE

        LINE1:idl at RRDIDX@#@COLOR@:CPU at RRDPARAM@

        GPRINT:idl at RRDIDX@:LAST: \: %5.1lf (cur)

        GPRINT:idl at RRDIDX@:MAX: \: %5.1lf (max)

        GPRINT:idl at RRDIDX@:MIN: \: %5.1lf (min)

        GPRINT:idl at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

 
The rrd_data.pl script can be expanded for each site, we use it for more
than just mpstat and zonestat.  There is a specific format it expects
the data to be in to read it quickly.

 
---Eric
quoted from Peter Welter

 
From: Peter Welter [mailto:user-f55666bd0d1e@xymon.invalid] 
Sent: Wednesday, May 16, 2007 06:25
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

 
Wow this was the update I needed, thanks!

Trantor.org needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry: 

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to 
2007-05-16 10:42:58 Task rrddata terminated, status 1
list Nicolas Dorfsman · Wed, 16 May 2007 14:09:38 +0200 ·
quoted from Eric Meddaugh
2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1
Shame on me !
I had a new "rrddata" block in hobbitlauncg.cfg instead of update the
existing one.
list Peter Welter · Wed, 16 May 2007 15:09:32 +0200 ·
Oops :-/

2007/5/16, Galen Johnson <user-87f955643e3d@xymon.invalid>:
quoted from Eric Meddaugh

It's there...see step 4 of the server config...

=G=

-----Original Message-----
From: Peter Welter [mailto:user-f55666bd0d1e@xymon.invalid]
Sent: Wed 5/16/2007 6:24 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Wow this was the update I needed, thanks!

Trantor.org needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1

list Nicolas Dorfsman · Wed, 16 May 2007 17:14:49 +0200 ·
Grrrrr.  New curious thing.

Works perfectly on my first host.

I tried to setup the samething on a second client.  zonestat.sh seems
to work...rrd files are present on server.  But no graphs "broken
link" instead.

any idea ?
list Nicolas Dorfsman · Wed, 16 May 2007 17:27:36 +0200 ·
2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid>:
quoted from Nicolas Dorfsman
Grrrrr.  New curious thing.

Works perfectly on my first host.

I tried to setup the samething on a second client.  zonestat.sh seems
to work...rrd files are present on server.  But no graphs "broken
link" instead.

any idea ?
Another stupid error
list Nicolas Dorfsman · Wed, 16 May 2007 17:41:14 +0200 ·
"Size" is not completly relevant.

So my contribution :
quoted from Peter Welter

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize

--Also the graphs in hobbitgraph.cfg
[zonersssize]
       # This graph only works on some OS'es (Solaris)
       TITLE Zone Resident Set Size
       YAXIS Size mB
       FNPATTERN zonestat.(.*).rrd
       DEF:s at RRDIDX@=@RRDFN@:rss:AVERAGE
quoted from Galen Johnson
       LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
       GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
       GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
       GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
       GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Thanks to all !

Nicolas
list Galen Johnson · Wed, 16 May 2007 22:15:19 -0400 ·
quoted from Nicolas Dorfsman
Nicolas Dorfsman wrote:
"Size" is not completly relevant.

So my contribution :

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize

--Also the graphs in hobbitgraph.cfg
[zonersssize]
      # This graph only works on some OS'es (Solaris)
      TITLE Zone Resident Set Size
      YAXIS Size mB
      FNPATTERN zonestat.(.*).rrd
      DEF:s at RRDIDX@=@RRDFN@:rss:AVERAGE
      LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
      GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
      GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
      GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
      GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Thanks to all !

Nicolas

Thanks, Nicolas...I've added your contribution as well :-)

=G=
list Galen Johnson · Wed, 16 May 2007 22:16:40 -0400 ·
quoted from Eric Meddaugh
Eric Meddaugh wrote:
Yes, that’s the only thing I see missing as well to get it working. The zonestat only monitors inside the global zone.

Also for “mpstat” at: http://www.trantor.org/theshire/doku.php/monitors:mpstat

You’ll need to add the “mpstat” to the hobbitserver.cfg in TEST2RRD and GRAPHS

In the bb-hosts to enable the mpstat graphing you need the tags: mpstat:mpstatusr|mpstatsys|mpstatwt|mpstatidl

Also for “mpstat”, you’ll need to add the graph definitions into hobbitgraph.cfg:

[mpstatusr]

TITLE CPU usr Utilitization

YAXIS % Used

FNPATTERN mpstat.CPU(.*).rrd

-u 100

-r

DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

DEF:usr at RRDIDX@=@RRDFN@:usr:AVERAGE

LINE1:usr at RRDIDX@#@COLOR@:CPU at RRDPARAM@

GPRINT:usr at RRDIDX@:LAST: \: %5.1lf (cur)

GPRINT:usr at RRDIDX@:MAX: \: %5.1lf (max)

GPRINT:usr at RRDIDX@:MIN: \: %5.1lf (min)

GPRINT:usr at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[mpstatsys]

TITLE CPU sys Utilitization

YAXIS % Used

FNPATTERN mpstat.CPU(.*).rrd

-u 100

-r

DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

DEF:sys at RRDIDX@=@RRDFN@:sys:AVERAGE

LINE1:sys at RRDIDX@#@COLOR@:CPU at RRDPARAM@

GPRINT:sys at RRDIDX@:LAST: \: %5.1lf (cur)

GPRINT:sys at RRDIDX@:MAX: \: %5.1lf (max)

GPRINT:sys at RRDIDX@:MIN: \: %5.1lf (min)

GPRINT:sys at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[mpstatwt]

TITLE CPU wt Utilitization

YAXIS % Used

FNPATTERN mpstat.CPU(.*).rrd

-u 100

-r

DEF:cpu at RRDIDX@=@RRDFN@:CPU:AVERAGE

DEF:wt at RRDIDX@=@RRDFN@:wt:AVERAGE

LINE1:wt at RRDIDX@#@COLOR@:CPU at RRDPARAM@

GPRINT:wt at RRDIDX@:LAST: \: %5.1lf (cur)

GPRINT:wt at RRDIDX@:MAX: \: %5.1lf (max)

GPRINT:wt at RRDIDX@:MIN: \: %5.1lf (min)

GPRINT:wt at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[mpstatidl]

TITLE CPU idl Utilitization

YAXIS % Used

FNPATTERN mpstat.CPU(.*).rrd

-u 100

-r

DEF:num at RRDIDX@=@RRDFN@:CPU:AVERAGE

DEF:idl at RRDIDX@=@RRDFN@:idl:AVERAGE

LINE1:idl at RRDIDX@#@COLOR@:CPU at RRDPARAM@

GPRINT:idl at RRDIDX@:LAST: \: %5.1lf (cur)

GPRINT:idl at RRDIDX@:MAX: \: %5.1lf (max)

GPRINT:idl at RRDIDX@:MIN: \: %5.1lf (min)

GPRINT:idl at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

The rrd_data.pl script can be expanded for each site, we use it for more than just mpstat and zonestat. There is a specific format it expects the data to be in to read it quickly.

---Eric


*From:* Peter Welter [mailto:user-f55666bd0d1e@xymon.invalid]
*Sent:* Wednesday, May 16, 2007 06:25
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] zonestat : where are graphs ?

Wow this was the update I needed, thanks!

Trantor.org <http://Trantor.org>; needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid <mailto:user-ef21b83534bb@xymon.invalid>>:

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid <mailto:user-4e1e735fdc96@xymon.invalid>>:
quoted from Peter Welter
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1

Thanks, Eric...fixed.

=G=
list Eric Meddaugh · Thu, 17 May 2007 07:41:32 -0400 ·
Should it be "Mb" or even "MB", vs. "mB"?
quoted from Galen Johnson

---Eric

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid] 
Sent: Wednesday, May 16, 2007 22:15
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Nicolas Dorfsman wrote:
"Size" is not completly relevant.

So my contribution :

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
--Also the graphs in hobbitgraph.cfg
[zonersssize]
      # This graph only works on some OS'es (Solaris)
      TITLE Zone Resident Set Size
      YAXIS Size mB
      FNPATTERN zonestat.(.*).rrd
      DEF:s at RRDIDX@=@RRDFN@:rss:AVERAGE
      LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
      GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
      GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
      GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
      GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Thanks to all !

Nicolas

Thanks, Nicolas...I've added your contribution as well :-)

=G=
list Galen Johnson · Thu, 17 May 2007 07:50:18 -0400 ·
I didn't catch that...'milliBytes' :-)...I'll update the site shortly...
quoted from Eric Meddaugh

=G=

-----Original Message-----
From: Eric Meddaugh [mailto:user-4e1e735fdc96@xymon.invalid]
Sent: Thu 5/17/2007 7:41 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] zonestat : where are graphs ?
 

Should it be "Mb" or even "MB", vs. "mB"?

---Eric

-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid] 
Sent: Wednesday, May 16, 2007 22:15
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] zonestat : where are graphs ?

Nicolas Dorfsman wrote:
"Size" is not completly relevant.

So my contribution :

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:

--As a tag in the bb-hosts:

zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
--Also the graphs in hobbitgraph.cfg
[zonersssize]
      # This graph only works on some OS'es (Solaris)
      TITLE Zone Resident Set Size
      YAXIS Size mB
      FNPATTERN zonestat.(.*).rrd
      DEF:s at RRDIDX@=@RRDFN@:rss:AVERAGE
      LINE1:s at RRDIDX@#@COLOR@:@RRDPARAM@
      GPRINT:s at RRDIDX@:LAST: \: %5.1lf (cur)
      GPRINT:s at RRDIDX@:MAX: \: %5.1lf (max)
      GPRINT:s at RRDIDX@:MIN: \: %5.1lf (min)
      GPRINT:s at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n


Thanks to all !

Nicolas

Thanks, Nicolas...I've added your contribution as well :-)

=G=
list Asif Iqbal · Tue, 1 Apr 2008 15:58:17 -0400 ·
quoted from Nicolas Dorfsman
On Wed, May 16, 2007 at 4:48 AM, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid> wrote:
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
 Thanks a lot Eric !

 Seems to miss something :

 hobbitlaunch.log
 2007-05-16 10:42:58 No command to pass data to
 2007-05-16 10:42:58 Task rrddata terminated, status 1
I am seeing the exact same error. I have rrd files but no graph. graph
link broken.

I followed the instruction here
http://www.trantor.org/theshire/doku.php/monitors:zonestat and yes I
did update the [rrddata] block
on hobbitlaunch.cfg file as well

Any help would be greatly appreciated
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Wed, 2 Apr 2008 10:14:50 -0400 ·
quoted from Asif Iqbal
On Tue, Apr 1, 2008 at 3:58 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Wed, May 16, 2007 at 4:48 AM, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid> wrote:
2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>:
You also need the follow:
 Thanks a lot Eric !

 Seems to miss something :

 hobbitlaunch.log
 2007-05-16 10:42:58 No command to pass data to
 2007-05-16 10:42:58 Task rrddata terminated, status 1
 I am seeing the exact same error. I have rrd files but no graph. graph
 link broken.

 I followed the instruction here
 http://www.trantor.org/theshire/doku.php/monitors:zonestat and yes I
 did update the [rrddata] block
 on hobbitlaunch.cfg file as well

 Any help would be greatly appreciated
Anyone like to take a crack at it? I am still getting
2008-04-02 10:04:24 No command to pass data to
2008-04-02 10:04:29 Task rrddata terminated, status 1
2008-04-02 10:04:29 No command to pass data to
2008-04-02 10:04:34 Task rrddata terminated, status 1
2008-04-02 10:04:34 No command to pass data to
2008-04-02 10:04:34 Task rrddata terminated, status 1
2008-04-02 10:04:39 No command to pass data to
2008-04-02 10:04:44 Task rrddata terminated, status 1
quoted from Asif Iqbal

 --
 Asif Iqbal
 PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Thu, 1 Sep 2011 10:28:18 -0400 ·
---------- Forwarded message ----------
From: Asif Iqbal <user-6f4b51ac2a40@xymon.invalid>
Date: Wed, Aug 31, 2011 at 11:40 PM
Subject: Re: [hobbit] zonestat : where are graphs ?
To: user-ae9b8668bcde@xymon.invalid
Cc: Eric Meddaugh <user-4e1e735fdc96@xymon.invalid>


Hi Eric et. al.,

I finally got the broken graph fixed after adding this to the
hosts.cfg (bb-hosts) file. I am running 4.2.3.

1.2.3.4 myhost # ssh
"TRENDS:*,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zoonersssize,mpstat:mpstatusr|mpstatsys|mpstatwt|mpstatidl"

So the following two pages needs to be updated.

http://www.xymonton.org/monitors:mpstat#server_configuration and
http://www.xymonton.org/monitors:zonestat#server_configuration

with "TRENDS:*,zonestat:...,mpstat:..."

Thanks for those two excellent extension scripts. Awesome job!


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?