Custom Graph Issue
list Stewart Larsen
I cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu" The output is as follows. Tue Mar 20 23:47:22 2007 cpu : 10 I modified TEST2RRD to the following. 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,fwcpu=ncv" I also added... NCV_fwcpu="cpu:GAUGE" Shut down hobbit and made sure that the hobbitd_rrd processes were gone. restarted it and I get nothing in the RRD folder for the device. I _DO_ get "hobbit graph ncv:fwcpu" showing up in my test pages. -- Stewart Larsen -- This sig intentionally left blank, other than this text explaining that if not for this text, this sig would be blank.
list Lars Ebeling
You alsa need an entry in hobbitgraph.cfg like this extract from mine. Use fwcpu instead of mailbox and cpu instead of hobbit
[mailbox]
TITLE Mailbox size
YAXIS bytes
DEF:size=mailbox.rrd:hobbit:AVERAGE
LINE2:size#00CCCC:Hobbit size
GPRINT:size:LAST:Hobbit size \: %5.1lf%s (cur)
GPRINT:size:MAX: \: %5.1lf%s (max)
GPRINT:size:MIN: \: %5.1lf%s (min)
GPRINT:size:AVERAGE: \: %5.1lf%s (avg)\n
----- Original Message ----- From: "Stewart" <user-4bb0ef2a7550@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Wednesday, March 21, 2007 5:00 AM
Subject: [hobbit] Custom Graph Issue
▸
I cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu" The output is as follows. Tue Mar 20 23:47:22 2007 cpu : 10 I modified TEST2RRD to the following. 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,fwcpu=ncv" I also added... NCV_fwcpu="cpu:GAUGE" Shut down hobbit and made sure that the hobbitd_rrd processes were gone. restarted it and I get nothing in the RRD folder for the device. I _DO_ get "hobbit graph ncv:fwcpu" showing up in my test pages. -- Stewart Larsen -- This sig intentionally left blank, other than this text explaining that if not for this text, this sig would be blank.
list Paul van Eldijk
Stewart schreef:
▸
I cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu"
Try adding an extra "\n" at the end of your output: bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu\n" That should do the trick HTH, Paul
list Stewart Larsen
I have that as well, but according to the docs, I whould have an RRD file that is created. I don't have that yet.
▸
Lars Ebeling wrote:You alsa need an entry in hobbitgraph.cfg like this extract from mine. Use fwcpu instead of mailbox and cpu instead of hobbit [mailbox] TITLE Mailbox size YAXIS bytes DEF:size=mailbox.rrd:hobbit:AVERAGE LINE2:size#00CCCC:Hobbit size GPRINT:size:LAST:Hobbit size \: %5.1lf%s (cur) GPRINT:size:MAX: \: %5.1lf%s (max) GPRINT:size:MIN: \: %5.1lf%s (min) GPRINT:size:AVERAGE: \: %5.1lf%s (avg)\n ----- Original Message ----- From: "Stewart" <user-4bb0ef2a7550@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Wednesday, March 21, 2007 5:00 AM Subject: [hobbit] Custom Graph IssueI cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu" The output is as follows. Tue Mar 20 23:47:22 2007 cpu : 10 I modified TEST2RRD to the following. 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,fwcpu=ncv" I also added... NCV_fwcpu="cpu:GAUGE" Shut down hobbit and made sure that the hobbitd_rrd processes were gone. restarted it and I get nothing in the RRD folder for the device. I _DO_ get "hobbit graph ncv:fwcpu" showing up in my test pages. -- Stewart Larsen -- This sig intentionally left blank, other than this text explaining that if not for this text, this sig would be blank.
-- Stewart Larsen -- This sig intentionally left blank, other than this text explaining that if not for this text, this sig would be blank.
list Charles Goyard
Hi,
▸
Stewart wrote :I cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu".
Your setup looks fine, so maybe you're bitten by the bug in ncv handling. Try applying this patch: http://hswn.dk/hobbitsw/patches/ncv-ignoretext.patch regards, -- Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Rich Smrcina
The actual la graph is probably interfering with this since it is also related to the tag 'cpu'. Try changing it to cpuutil or something like that. You'll have to change hobbitserver and hobbitgraph accordingly.
▸
Stewart wrote:I have that as well, but according to the docs, I whould have an RRD file that is created. I don't have that yet. Lars Ebeling wrote:You alsa need an entry in hobbitgraph.cfg like this extract from mine. Use fwcpu instead of mailbox and cpu instead of hobbit [mailbox] TITLE Mailbox size YAXIS bytes DEF:size=mailbox.rrd:hobbit:AVERAGE LINE2:size#00CCCC:Hobbit size GPRINT:size:LAST:Hobbit size \: %5.1lf%s (cur) GPRINT:size:MAX: \: %5.1lf%s (max) GPRINT:size:MIN: \: %5.1lf%s (min) GPRINT:size:AVERAGE: \: %5.1lf%s (avg)\n ----- Original Message ----- From: "Stewart" <user-4bb0ef2a7550@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Wednesday, March 21, 2007 5:00 AM Subject: [hobbit] Custom Graph IssueI cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu" The output is as follows. Tue Mar 20 23:47:22 2007 cpu : 10 I modified TEST2RRD to the following. 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,fwcpu=ncv" I also added... NCV_fwcpu="cpu:GAUGE" Shut down hobbit and made sure that the hobbitd_rrd processes were gone. restarted it and I get nothing in the RRD folder for the device. I _DO_ get "hobbit graph ncv:fwcpu" showing up in my test pages. -- Stewart Larsen -- This sig intentionally left blank, other than this text explaining that if not for this text, this sig would be blank.
--
Rich Smrcina VM Assist, Inc. Phone: XXX-XXX-XXXX Ans Service: XXX-XXX-XXXX user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007
list Stewart Larsen
That got my RRD's working, and from there, I got the graphs going. Thanks, guys! Stew
▸
Paul van Eldijk wrote:Stewart schreef:I cannot get the RRD file to be created. I have a script that polls a firewall via SNMP and returns the CPU usage. The test works fine and creates a column named "fwcpu". bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu"Try adding an extra "\n" at the end of your output: bb 127.0.0.1 "status firewall.fwcpu green $now_string \n\ncpu : $cpu\n" That should do the trick HTH, Paul