From: Simone S. <de...@gm...> - 2009-10-31 08:13:10
|
Hi, my problem is this. with the template cisco-asa in the test page if_load i see the graphics, otherwise in test page if_dsc I don t see graphics :-( My configuration: * Xym <http://hobbitmon.sourceforge.net/>on 4.3.0-0.beta2<http://hobbitmon.sourceforge.net/> * devmon-0.3.1-beta1 hobbitlaunch.cfg .[rrdstatus] ENVFILE /opt/xymon/server/etc/hobbitserver.cfg NEEDS hobbitd CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd \ --extra-script=/opt/xymon/devmon/extras/devmon-rrd.pl \ --extra-test=if_load,if_dsc hobbitserver.cfg TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat, netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd, files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA, TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,temp=devmon,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser, nparts,if_dsc=devmon" GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature, ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,ops,stats, cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist, snapshot,devmon::1,if_load::1,if_dsc::1,temp,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts" hobbitgraph.cfg [if_load] FNPATTERN if_load.(.*).rrd TITLE Network Traffic YAXIS Bits/second DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,* DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,* LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min) GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n -l 0 [if_dsc] FNPATTERN if_dsc.(.*).rrd TITLE Interface Discards YAXIS Packets/second DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,* DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,* LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min) GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n<b>Interface error rates:</b> -l 0 File messages if_load <b>Interface error rates:</b> Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) {ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} File messages if_dsc <b>Discards:</b> Note: Error rates are per second. Load percentages are based on error/bit ratio. TABLE:rrd(DS:ds0:ifInDiscards:COUNTER; DS:ds1:ifOutDiscards:COUNTER) Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out {ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct} %{ifOutDscPct.errors} if_dsc graphics appear in "trends page" but not "if_dsc page" The directive TABLE:rrd is for the grahics ? Thanks Simone |
From: Buchan M. <bg...@st...> - 2009-11-02 07:31:42
|
On Saturday, 31 October 2009 09:12:54 Simone Stanzani wrote: > Hi, > my problem is this. with the template cisco-asa in the test page if_load i > see the graphics, otherwise in test page if_dsc I don t see graphics :-( > > My configuration: > * > Xym <http://hobbitmon.sourceforge.net/>on > 4.3.0-0.beta2<http://hobbitmon.sourceforge.net/> > * > devmon-0.3.1-beta1 > > > hobbitlaunch.cfg > > .[rrdstatus] > ENVFILE /opt/xymon/server/etc/hobbitserver.cfg > NEEDS hobbitd > CMD hobbitd_channel --channel=status > --log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd \ > --extra-script=/opt/xymon/devmon/extras/devmon-rrd.pl \ > --extra-test=if_load,if_dsc > > hobbitserver.cfg > > TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,d >ig=tcp,time=ntpstat,vmstat,iostat, > netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishe >alth,citrix,bbgen,bbtest,bbproxy,hobbitd, > files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Ses >sion,JDBCConn,ExecQueue,JTA, > TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,t >emp=devmon,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser, > nparts,if_dsc=devmon" > > GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp. >http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature, > ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest, >bbproxy,hobbitd,clock,lines,ops,stats, > cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemR >eq,InvObj,snapmirr,snaplist, > snapshot,devmon::1,if_load::1,if_dsc::1,temp,paging,mdc,mdchitpct,cics,dsa, >getvis,maxuser,nparts" > > > hobbitgraph.cfg > > [if_load] > FNPATTERN if_load.(.*).rrd > TITLE Network Traffic > YAXIS Bits/second > DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE > CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,* > DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE > CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,* > LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In > GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min) > GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n > LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out > GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) > GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n > -l 0 > > [if_dsc] > FNPATTERN if_dsc.(.*).rrd > TITLE Interface Discards > YAXIS Packets/second > DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE > CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,* > DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE > CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,* > LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In > GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min) > GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n > LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out > GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) > GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n<b>Interface > error rates:</b> > -l 0 > > > File messages if_load > > <b>Interface error rates:</b> > Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% > Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% > TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) > Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) > {ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} > ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} > ({ifOutLoad}%){ifOutLoad.errors} > > > File messages if_dsc > > <b>Discards:</b> > Note: > Error rates are per second. > Load percentages are based on error/bit ratio. > TABLE:rrd(DS:ds0:ifInDiscards:COUNTER; DS:ds1:ifOutDiscards:COUNTER) > Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard > rate out|Discard load out > {ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct >}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDs >cPct} %{ifOutDscPct.errors} > > if_dsc graphics appear in "trends page" but not "if_dsc page" If the RRD file is created correctly, then all the parts that relate to devmon are working fine. Display of the graphs (and whether they appear on the test page or not) are all up to Xymon. I would recommend that you test on a stable release of Xymon, and file a bug/report an issue on the Xymon mailing list if it still occurs on the stable release. I will try and have a look at this myself at some stage ... Regards, Buchan |
From: Richard F. <gol...@gm...> - 2009-11-06 11:01:33
|
On Sat, Oct 31, 2009 at 00:12, Simone Stanzani <de...@gm...> wrote: > my problem is this. with the template cisco-asa in the test page if_load i > see the graphics, otherwise in test page if_dsc I don t see graphics :-( [snip] > if_dsc graphics appear in "trends page" but not "if_dsc page" To add if_dsc, first take a look at web/hobbitsvc.c in the source. There's a line near the top: static char *multigraphs = ",column,column,column,column,"; Append the desired --multigraphs setting to CGI_SVC_OPTS in your server/etc/hobbitcgi.cfg: CGI_SVC_OPTS="--env=/home/hobbit/server/etc/hobbitserver.cfg --no-svcid --history=top --multigraphs=disk,if_load,if_dsc" Note that, while the string assignment in web/hobbitsvc.c both begins and ends with a comma, the variable in the cgi neither begins nor ends with a comma. |
From: Simone S. <de...@gm...> - 2009-11-07 23:19:02
|
Thanks a lot it works !!! Simone ;-) 2009/11/6 Richard Finegold <gol...@gm...> > On Sat, Oct 31, 2009 at 00:12, Simone Stanzani <de...@gm...> wrote: > > my problem is this. with the template cisco-asa in the test page if_load > i > > see the graphics, otherwise in test page if_dsc I don t see graphics :-( > [snip] > > if_dsc graphics appear in "trends page" but not "if_dsc page" > > To add if_dsc, first take a look at web/hobbitsvc.c in the source. > There's a line near the top: > static char *multigraphs = ",column,column,column,column,"; > > Append the desired --multigraphs setting to CGI_SVC_OPTS in your > server/etc/hobbitcgi.cfg: > CGI_SVC_OPTS="--env=/home/hobbit/server/etc/hobbitserver.cfg > --no-svcid --history=top --multigraphs=disk,if_load,if_dsc" > > Note that, while the string assignment in web/hobbitsvc.c both begins > and ends with a comma, the variable in the cgi neither begins nor ends > with a comma. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support > |