Custom graph no rrd files
list Martin Roby
I am not getting rrd files generate for a custom graph: bb client message: bb machine1 'status machine2.grpwiseusr green Thur Oct 25 09:46:42 EDT 2007 grpwiseusr : 812' hobbitserver.cfg ..... TEST2RRD="cpu=la,...,ncv,grpwiseusr=ncv" NCV_grpwiseusr="*:GAUGE" GRAPHS="la,ncv,...,grpwiseusr" ..................... Should I at this point see rrd files ? I see them for the built in scripts. martin
list Darren Cotton
I think the message:
▸
bb machine1 'status machine2.grpwiseusr green Thur Oct 25 09:46:42 EDT 2007
grpwiseusr : 812'
should be formatted
▸
bb machine1 'status machine2.grpwiseusr green Thur Oct 25 09:46:42 EDT 2007
grpwiseusr : 812
'
You need a newline after (and before) the data for the ncv handler...
Darren
"martin roby" <stonepound at gmail .com> To user-ae9b8668bcde@xymon.invalid 25/10/2007 16:04 cc Subject Please respond to [hobbit] Custom graph no rrd files user-ae9b8668bcde@xymon.invalid
▸
I am not getting rrd files generate for a custom graph:
bb client message:
bb machine1 'status machine2.grpwiseusr green Thur Oct 25 09:46:42 EDT 2007
grpwiseusr : 812'
hobbitserver.cfg
.....
TEST2RRD="cpu=la,...,ncv,grpwiseusr=ncv"
NCV_grpwiseusr="*:GAUGE"
GRAPHS="la,ncv,...,grpwiseusr"
.....................
Should I at this point see rrd files ? I see them for the built in scripts.
martin
DISCLAIMER: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.
list Tom L. Stewart
Hello,
Did I find a bug? I use the mpstat and zonestat info to create .rrd's
and they all display fine within trends. Hobbit is the latest with
patches and devmon is the latest version also running on a Solaris 10
global.
I asked this question a couple of weeks ago, but had no response. I have
tried to dig for additional answers via Google and Dogpile with little
success so, I'm hoping someone may know the answer or can point me to
the source code to track it down.
I am using devmon to generate some .rrds and columns to track some Cisco
stuff. Within devmon I am generating .rrd files for cpucisco and ifload
(I took out any underbars based on info I read about). The same perl
script is creating all the .rrd files. The cpucisco.rrd graph shows up
in trends and the cpucisco column, but the ifload(.*).rrd graphs only
show up within the ifload column.
Here are some of the background info:
Due to the cut and paste, some lines may look like multiple lines but
are not.
Directory of typical data/rrd directory:
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:56 cpucisco.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa00.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa20.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa21.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadSe10.rrd
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:55 tcp.conn.rrd
Within hobbitgraph.cfg
[ifload]
TITLE Network Traffic
YAXIS Bits/second
FNPATTERN ifload(.*).rrd
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
CDEF:tot at RRDIDX@=outbytes at RRDIDX@,inbytes at RRDIDX@,+
LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ Total In Out
GPRINT:tot at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:tot at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:tot at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:tot at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[ifloaddet]
FNPATTERN ifload(.*).rrd
TITLE Network Traffic
YAXIS Bits/second
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
LINE2:inbytes at RRDIDX@#@COLOR@:@RRDPARAM@ In
LINE2:outbytes at RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:inbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:inbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:inbytes at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:inbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
GPRINT:outbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:outbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:outbytes at RRDIDX@:MIN:%8.2lf %s (avg)
GPRINT:outbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[cpucisco]
TITLE CPU Load
YAXIS Load
DEF:cpu=cpucisco.rrd:cpu:AVERAGE
AREA:cpu#00CC00:CPU Load Average
-u 100
-l 0
GPRINT:cpu:LAST: \: %5.1lf (cur)
GPRINT:cpu:MAX: \: %5.1lf (max)
GPRINT:cpu:MIN: \: %5.1lf (min)
GPRINT:cpu:AVERAGE: \: %5.1lf (avg)\n
I have modified the original ifload to combine the in and out to a
single line and then made the original to be the ifloaddet graph. I also
tried the original way with the ifloaddet graph as ifload only.
Settings within hobbitserver.cfg
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tc
p,dig=tc
p,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmai
lq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,p
rocs=pro
cesses,ports,clock,lines,mpstat,zonestat,ifload,cpucisco"
# This defines which RRD files to include on the "trends" column
webpage,
# and the order in which they appear.
GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,t
cp.http,
tcp,ncv,netstat,ifstat,mrtg,ports,temperature,ntpstat,apache,bind,sendma
il,mailq
,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mps
tat,zone
stat,ifload,cpucisco"
I am not using ncv as the perl script is creating the graph data into
the .rrd files.
Settings with bb-hosts (for security I had to x out the ip address and
change some of the names...)
X.x.x.x B5-7204-INET # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:tcp,cp
ucisco,ifload:ifload|ifloaddet
X.x.x.x INET-7204 # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:ifload:ifload
|ifloaddet
X.x.x.x INET-6509-1 # conn COMMENT:"Cisco 6509-1" DEVMON
TRENDS:*,ifload
X.x.x.x INET-6509-2 # conn COMMENT:"Cisco 6509-2" TRENDS:*
DEVMON
As noted above I have tried many different ways to force ifload and
ifloaddet to show up within the TRENDS column.
Here is an example from the same bb-host file where the mpstat* and
zonestat* stuff works.
X.x.x.x systemname # conn COMMENT:"Dev core internet site"
TRENDS:*
,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
,mpstat:
mpstatusr|mpstatsys|mpstatwt|mpstatidl,vmstat:vmstat|vmstat2|vmstat3|vms
tat6|vms
tat7|vmstat8|vmstat0,disk:disk|disk1,la:la|la1
And here is the hobbitlaunch.cfg
hobbitlaunch.cfg: CMD hobbitd_channel --channel=status
--log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd
--extra-tests=cpucisco,ifload
--extra-script=/export/home/hobbit/server/ext/extra-rrd.pl
--rrddir=$BBVAR/rrd
I did not include the extra-script.pl, but its basically the same as
what others had used.
Any help or hints would be greatly appreciated.
Tom
list Greg L Hubbard
Tom, Have you seen these things ever graph anywhere? One thing that could prevent them from showing up is a bad graph definition. GLH
▸
-----Original Message-----
From: Stewart, Tom L. [mailto:user-f210f371749e@xymon.invalid]
Sent: Thursday, October 25, 2007 1:50 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] No graph in Trends but shows up in the column
Hello,
Did I find a bug? I use the mpstat and zonestat info to create .rrd's
and they all display fine within trends. Hobbit is the latest with
patches and devmon is the latest version also running on a Solaris 10
global.
I asked this question a couple of weeks ago, but had no response. I have
tried to dig for additional answers via Google and Dogpile with little
success so, I'm hoping someone may know the answer or can point me to
the source code to track it down.
I am using devmon to generate some .rrds and columns to track some Cisco
stuff. Within devmon I am generating .rrd files for cpucisco and ifload
(I took out any underbars based on info I read about). The same perl
script is creating all the .rrd files. The cpucisco.rrd graph shows up
in trends and the cpucisco column, but the ifload(.*).rrd graphs only
show up within the ifload column.
Here are some of the background info:
Due to the cut and paste, some lines may look like multiple lines but
are not.
Directory of typical data/rrd directory:
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:56 cpucisco.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa00.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa20.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa21.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadSe10.rrd
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:55 tcp.conn.rrd
Within hobbitgraph.cfg
[ifload]
TITLE Network Traffic
YAXIS Bits/second
FNPATTERN ifload(.*).rrd
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
CDEF:tot at RRDIDX@=outbytes at RRDIDX@,inbytes at RRDIDX@,+
LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ Total In Out
GPRINT:tot at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:tot at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:tot at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:tot at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[ifloaddet]
FNPATTERN ifload(.*).rrd
TITLE Network Traffic
YAXIS Bits/second
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
LINE2:inbytes at RRDIDX@#@COLOR@:@RRDPARAM@ In
LINE2:outbytes at RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:inbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:inbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:inbytes at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:inbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
GPRINT:outbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:outbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:outbytes at RRDIDX@:MIN:%8.2lf %s (avg)
GPRINT:outbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[cpucisco]
TITLE CPU Load
YAXIS Load
DEF:cpu=cpucisco.rrd:cpu:AVERAGE
AREA:cpu#00CC00:CPU Load Average
-u 100
-l 0
GPRINT:cpu:LAST: \: %5.1lf (cur)
GPRINT:cpu:MAX: \: %5.1lf (max)
GPRINT:cpu:MIN: \: %5.1lf (min)
GPRINT:cpu:AVERAGE: \: %5.1lf (avg)\n
I have modified the original ifload to combine the in and out to a
single line and then made the original to be the ifloaddet graph. I also
tried the original way with the ifloaddet graph as ifload only.
Settings within hobbitserver.cfg
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tc
p,dig=tc
p,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmai
lq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,p
rocs=pro
cesses,ports,clock,lines,mpstat,zonestat,ifload,cpucisco"
# This defines which RRD files to include on the "trends" column
webpage, # and the order in which they appear.
GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,t
cp.http,
tcp,ncv,netstat,ifstat,mrtg,ports,temperature,ntpstat,apache,bind,sendma
il,mailq
,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mps
tat,zone
stat,ifload,cpucisco"
I am not using ncv as the perl script is creating the graph data into
the .rrd files.
Settings with bb-hosts (for security I had to x out the ip address and
change some of the names...)
X.x.x.x B5-7204-INET # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:tcp,cp
ucisco,ifload:ifload|ifloaddet
X.x.x.x INET-7204 # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:ifload:ifload
|ifloaddet
X.x.x.x INET-6509-1 # conn COMMENT:"Cisco 6509-1" DEVMON
TRENDS:*,ifload
X.x.x.x INET-6509-2 # conn COMMENT:"Cisco 6509-2" TRENDS:*
DEVMON
As noted above I have tried many different ways to force ifload and
ifloaddet to show up within the TRENDS column.
Here is an example from the same bb-host file where the mpstat* and
zonestat* stuff works.
X.x.x.x systemname # conn COMMENT:"Dev core internet site"
TRENDS:*
,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
,mpstat:
mpstatusr|mpstatsys|mpstatwt|mpstatidl,vmstat:vmstat|vmstat2|vmstat3|vms
tat6|vms
tat7|vmstat8|vmstat0,disk:disk|disk1,la:la|la1
And here is the hobbitlaunch.cfg
hobbitlaunch.cfg: CMD hobbitd_channel --channel=status
--log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd
--extra-tests=cpucisco,ifload
--extra-script=/export/home/hobbit/server/ext/extra-rrd.pl
--rrddir=$BBVAR/rrd
I did not include the extra-script.pl, but its basically the same as
what others had used.
Any help or hints would be greatly appreciated.
Tom
list Tom L. Stewart
The graph is showing up perfectly within the column page (ifload). I have no data missing and can double click and get the extend graphs with zoom. Tom
▸
-----Original Message-----
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid]
Sent: Thursday, October 25, 2007 2:01 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] No graph in Trends but shows up in the column
Tom,
Have you seen these things ever graph anywhere? One thing that could
prevent them from showing up is a bad graph definition.
GLH
-----Original Message-----
From: Stewart, Tom L. [mailto:user-f210f371749e@xymon.invalid]
Sent: Thursday, October 25, 2007 1:50 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] No graph in Trends but shows up in the column
Hello,
Did I find a bug? I use the mpstat and zonestat info to create .rrd's
and they all display fine within trends. Hobbit is the latest with
patches and devmon is the latest version also running on a Solaris 10
global.
I asked this question a couple of weeks ago, but had no response. I have
tried to dig for additional answers via Google and Dogpile with little
success so, I'm hoping someone may know the answer or can point me to
the source code to track it down.
I am using devmon to generate some .rrds and columns to track some Cisco
stuff. Within devmon I am generating .rrd files for cpucisco and ifload
(I took out any underbars based on info I read about). The same perl
script is creating all the .rrd files. The cpucisco.rrd graph shows up
in trends and the cpucisco column, but the ifload(.*).rrd graphs only
show up within the ifload column.
Here are some of the background info:
Due to the cut and paste, some lines may look like multiple lines but
are not.
Directory of typical data/rrd directory:
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:56 cpucisco.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa00.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa20.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa21.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadSe10.rrd
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:55 tcp.conn.rrd
Within hobbitgraph.cfg
[ifload]
TITLE Network Traffic
YAXIS Bits/second
FNPATTERN ifload(.*).rrd
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
CDEF:tot at RRDIDX@=outbytes at RRDIDX@,inbytes at RRDIDX@,+
LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ Total In Out
GPRINT:tot at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:tot at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:tot at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:tot at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[ifloaddet]
FNPATTERN ifload(.*).rrd
TITLE Network Traffic
YAXIS Bits/second
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
LINE2:inbytes at RRDIDX@#@COLOR@:@RRDPARAM@ In
LINE2:outbytes at RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:inbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:inbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:inbytes at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:inbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
GPRINT:outbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:outbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:outbytes at RRDIDX@:MIN:%8.2lf %s (avg)
GPRINT:outbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[cpucisco]
TITLE CPU Load
YAXIS Load
DEF:cpu=cpucisco.rrd:cpu:AVERAGE
AREA:cpu#00CC00:CPU Load Average
-u 100
-l 0
GPRINT:cpu:LAST: \: %5.1lf (cur)
GPRINT:cpu:MAX: \: %5.1lf (max)
GPRINT:cpu:MIN: \: %5.1lf (min)
GPRINT:cpu:AVERAGE: \: %5.1lf (avg)\n
I have modified the original ifload to combine the in and out to a
single line and then made the original to be the ifloaddet graph. I also
tried the original way with the ifloaddet graph as ifload only.
Settings within hobbitserver.cfg
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tc
p,dig=tc
p,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmai
lq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,p
rocs=pro
cesses,ports,clock,lines,mpstat,zonestat,ifload,cpucisco"
# This defines which RRD files to include on the "trends" column
webpage, # and the order in which they appear.
GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,t
cp.http,
tcp,ncv,netstat,ifstat,mrtg,ports,temperature,ntpstat,apache,bind,sendma
il,mailq
,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mps
tat,zone
stat,ifload,cpucisco"
I am not using ncv as the perl script is creating the graph data into
the .rrd files.
Settings with bb-hosts (for security I had to x out the ip address and
change some of the names...)
X.x.x.x B5-7204-INET # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:tcp,cp
ucisco,ifload:ifload|ifloaddet
X.x.x.x INET-7204 # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:ifload:ifload
|ifloaddet
X.x.x.x INET-6509-1 # conn COMMENT:"Cisco 6509-1" DEVMON
TRENDS:*,ifload
X.x.x.x INET-6509-2 # conn COMMENT:"Cisco 6509-2" TRENDS:*
DEVMON
As noted above I have tried many different ways to force ifload and
ifloaddet to show up within the TRENDS column.
Here is an example from the same bb-host file where the mpstat* and
zonestat* stuff works.
X.x.x.x systemname # conn COMMENT:"Dev core internet site"
TRENDS:*
,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
,mpstat:
mpstatusr|mpstatsys|mpstatwt|mpstatidl,vmstat:vmstat|vmstat2|vmstat3|vms
tat6|vms
tat7|vmstat8|vmstat0,disk:disk|disk1,la:la|la1
And here is the hobbitlaunch.cfg
hobbitlaunch.cfg: CMD hobbitd_channel --channel=status
--log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd
--extra-tests=cpucisco,ifload
--extra-script=/export/home/hobbit/server/ext/extra-rrd.pl
--rrddir=$BBVAR/rrd
I did not include the extra-script.pl, but its basically the same as
what others had used.
Any help or hints would be greatly appreciated.
Tom
list Tom L. Stewart
I received an answer from Buchan Milne on the devmon list and his answer fixed my problem. The jest of it is: I need to have my rrd files look like this: ifload.Gi00.rrd instead of ifloadGi00.rrd. I had to change the FNPATTERN to match. I don't know if this is a bug or was made to do this on purpose. Now that I know, I can work around the issue. Also in case anyone is interested, I do two different graphs in trends. Note the original if_load is actually my ifloaddet. The network team wanted to see the in and out combined in the column, but get the individual detail in trends. In hobbitgraph.cfg
▸
[ifload]
TITLE Network Traffic
YAXIS Bits/second
FNPATTERN ifload.(.*).rrd
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
CDEF:tot at RRDIDX@=outbytes at RRDIDX@,inbytes at RRDIDX@,+
LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ Total In Out
GPRINT:tot at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:tot at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:tot at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:tot at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[ifloaddet]
FNPATTERN ifload.(.*).rrd
TITLE Network Traffic
YAXIS Bits/second
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
LINE2:inbytes at RRDIDX@#@COLOR@:@RRDPARAM@ In
LINE2:outbytes at RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:inbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:inbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:inbytes at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:inbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
GPRINT:outbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:outbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:outbytes at RRDIDX@:MIN:%8.2lf %s (avg)
GPRINT:outbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
In the bb-host you need to do this:
X.x.x.x Cisco-dev-dns # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:*,ifload:ifload|ifloaddet
Again, many thanks to Buchan Milne on the Devmon list.
Tom
▸
-----Original Message-----
From: Stewart, Tom L. [mailto:user-f210f371749e@xymon.invalid]
Sent: Thursday, October 25, 2007 1:50 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] No graph in Trends but shows up in the column
Hello,
Did I find a bug? I use the mpstat and zonestat info to create .rrd's
and they all display fine within trends. Hobbit is the latest with
patches and devmon is the latest version also running on a Solaris 10
global.
I asked this question a couple of weeks ago, but had no response. I have
tried to dig for additional answers via Google and Dogpile with little
success so, I'm hoping someone may know the answer or can point me to
the source code to track it down.
I am using devmon to generate some .rrds and columns to track some Cisco
stuff. Within devmon I am generating .rrd files for cpucisco and ifload
(I took out any underbars based on info I read about). The same perl
script is creating all the .rrd files. The cpucisco.rrd graph shows up
in trends and the cpucisco column, but the ifload(.*).rrd graphs only
show up within the ifload column.
Here are some of the background info:
Due to the cut and paste, some lines may look like multiple lines but
are not.
Directory of typical data/rrd directory:
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:56 cpucisco.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa00.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa20.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadFa21.rrd
-rw-r--r-- 1 hobbit hobbit 38556 Oct 25 12:55 ifloadSe10.rrd
-rw-r--r-- 1 hobbit hobbit 19572 Oct 25 12:55 tcp.conn.rrd
Within hobbitgraph.cfg
[ifload]
TITLE Network Traffic
YAXIS Bits/second
FNPATTERN ifload(.*).rrd
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
CDEF:tot at RRDIDX@=outbytes at RRDIDX@,inbytes at RRDIDX@,+
LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ Total In Out
GPRINT:tot at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:tot at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:tot at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:tot at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[ifloaddet]
FNPATTERN ifload(.*).rrd
TITLE Network Traffic
YAXIS Bits/second
DEF:in at RRDIDX@=@RRDFN@:in:AVERAGE
CDEF:inbytes at RRDIDX@=in at RRDIDX@,8,*
DEF:out at RRDIDX@=@RRDFN@:out:AVERAGE
CDEF:outbytes at RRDIDX@=out at RRDIDX@,8,*
LINE2:inbytes at RRDIDX@#@COLOR@:@RRDPARAM@ In
LINE2:outbytes at RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:inbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:inbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:inbytes at RRDIDX@:MIN:%8.2lf %s (min)
GPRINT:inbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
GPRINT:outbytes at RRDIDX@:LAST:%8.2lf %s (cur)
GPRINT:outbytes at RRDIDX@:MAX:%8.2lf %s (max)
GPRINT:outbytes at RRDIDX@:MIN:%8.2lf %s (avg)
GPRINT:outbytes at RRDIDX@:AVERAGE:%8.2lf %s (avg)\n
[cpucisco]
TITLE CPU Load
YAXIS Load
DEF:cpu=cpucisco.rrd:cpu:AVERAGE
AREA:cpu#00CC00:CPU Load Average
-u 100
-l 0
GPRINT:cpu:LAST: \: %5.1lf (cur)
GPRINT:cpu:MAX: \: %5.1lf (max)
GPRINT:cpu:MIN: \: %5.1lf (min)
GPRINT:cpu:AVERAGE: \: %5.1lf (avg)\n
I have modified the original ifload to combine the in and out to a
single line and then made the original to be the ifloaddet graph. I also
tried the original way with the ifloaddet graph as ifload only.
Settings within hobbitserver.cfg
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tc
p,dig=tc
p,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmai
lq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,p
rocs=pro
cesses,ports,clock,lines,mpstat,zonestat,ifload,cpucisco"
# This defines which RRD files to include on the "trends" column
webpage, # and the order in which they appear.
GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,t
cp.http,
tcp,ncv,netstat,ifstat,mrtg,ports,temperature,ntpstat,apache,bind,sendma
il,mailq
,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mps
tat,zone
stat,ifload,cpucisco"
I am not using ncv as the perl script is creating the graph data into
the .rrd files.
Settings with bb-hosts (for security I had to x out the ip address and
change some of the names...)
X.x.x.x B5-7204-INET # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:tcp,cp
ucisco,ifload:ifload|ifloaddet
X.x.x.x INET-7204 # conn COMMENT:"Cisco 7204" DEVMON
TRENDS:ifload:ifload
|ifloaddet
X.x.x.x INET-6509-1 # conn COMMENT:"Cisco 6509-1" DEVMON
TRENDS:*,ifload
X.x.x.x INET-6509-2 # conn COMMENT:"Cisco 6509-2" TRENDS:*
DEVMON
As noted above I have tried many different ways to force ifload and
ifloaddet to show up within the TRENDS column.
Here is an example from the same bb-host file where the mpstat* and
zonestat* stuff works.
X.x.x.x systemname # conn COMMENT:"Dev core internet site"
TRENDS:*
,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize
,mpstat:
mpstatusr|mpstatsys|mpstatwt|mpstatidl,vmstat:vmstat|vmstat2|vmstat3|vms
tat6|vms
tat7|vmstat8|vmstat0,disk:disk|disk1,la:la|la1
And here is the hobbitlaunch.cfg
hobbitlaunch.cfg: CMD hobbitd_channel --channel=status
--log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd
--extra-tests=cpucisco,ifload
--extra-script=/export/home/hobbit/server/ext/extra-rrd.pl
--rrddir=$BBVAR/rrd
I did not include the extra-script.pl, but its basically the same as
what others had used.
Any help or hints would be greatly appreciated.
Tom