Xymon Mailing List Archive search

Custom Graph Issue

7 messages in this thread

list Stewart Larsen · Wed, 21 Mar 2007 00:00:39 -0400 ·
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 · Wed, 21 Mar 2007 07:12:48 +0100 ·
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
quoted from 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 Paul van Eldijk · Wed, 21 Mar 2007 11:02:48 +0100 ·
Stewart schreef:
quoted from Lars Ebeling
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 · Wed, 21 Mar 2007 06:50:34 -0400 ·
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.
quoted from Lars Ebeling

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 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.

-- 
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 · Wed, 21 Mar 2007 12:02:20 +0100 ·
Hi,
quoted from Stewart Larsen

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 · Wed, 21 Mar 2007 06:16:33 -0500 ·
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.
quoted from Stewart Larsen

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 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.

-- 

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 · Wed, 21 Mar 2007 07:23:24 -0400 ·
That got my RRD's working, and from there, I got the graphs going. Thanks, guys!

Stew
quoted from Paul van Eldijk

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