No graph for xymonnet
list Asif Iqbal
Hi I am not getting any graph for xymonnet. I am running xymon 4.3.10 I do have a xymonnet.rrd file -rw-r--r-- 1 xymon xymon 20K 2013-01-23 14:49 xymonnet.rrd It's name is runtime and type is GAUGE per rrdtool dump When I tried to draw a graph it did not like GAUGE type. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:GAUGE LINE2:p1#ff00ff ERROR: Unknown CF 'GAUGE' in 'DEF:p1=xymonnet.rrd:runtime:GAUGE' So I changed it to AVERAGE type, but the graph is empty. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:AVERAGE LINE2:p1#ff00ff481x149 # ls -lh /tmp/test.png -rw-r--r-- 1 root root 6.1K 2013-01-23 15:18 /tmp/test.png # display /tmp/test.png shows empty graph. What gives? -- 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?
list Jeremy Laidman
Does it have data in it? So something like this should show the last 50 data points: rrdtool fetch xymonnet.rrd AVERAGE | tail -50 On my system, the last dozen or so were "nan", probably due to buffering. But you should see something if it's all working OK. J
▸
On 24 January 2013 07:20, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Hi I am not getting any graph for xymonnet. I am running xymon 4.3.10 I do have a xymonnet.rrd file -rw-r--r-- 1 xymon xymon 20K 2013-01-23 14:49 xymonnet.rrd It's name is runtime and type is GAUGE per rrdtool dump When I tried to draw a graph it did not like GAUGE type. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:GAUGE LINE2:p1#ff00ff ERROR: Unknown CF 'GAUGE' in 'DEF:p1=xymonnet.rrd:runtime:GAUGE' So I changed it to AVERAGE type, but the graph is empty. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:AVERAGE LINE2:p1#ff00ff481x149 # ls -lh /tmp/test.png -rw-r--r-- 1 root root 6.1K 2013-01-23 15:18 /tmp/test.png # display /tmp/test.png shows empty graph. What gives? -- 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?
list Asif Iqbal
▸
On Wed, Jan 23, 2013 at 6:10 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
Does it have data in it? So something like this should show the last 50 data points: rrdtool fetch xymonnet.rrd AVERAGE | tail -50
did not know of the fetch option. It does not have any data, only ``nan'' s. Thanks for pointing that out. I removed xymonnet.rrd and restarted xymond_rrd. So I sent a USR2 signal on xymond_rrd and in last 1 hr only see these few lines about xymonnet $ grep xymonnet /var/log/xymon/rrd-status.log (sanitized) 17859 2013-01-23 22:23:59 xymond_rrd: Got message 9941 @@status#9941/ xymon.example.net|1358997839.782880|192.168.0.53||xymon.example.net |xymonnet|1358999639|yellow||yellow|1341079916|0||0||1358997660|linux|xymon|0| 17859 2013-01-23 22:23:59 Creating rrd /home/xymon/data/rrd/ xymon.example.net/xymonnet.rrd 17859 2013-01-23 22:23:59 RRD create param 01: '/home/xymon/data/rrd/ xymon.example.net/xymonnet.rrd' 17859 2013-01-23 22:24:08 Flushing cache '/xymon.example.net/xymonnet.rrd' 17859 2013-01-23 22:24:08 Flushing '/xymon.example.net/xymonnet.rrd' with 1 updates pending, template 'runtime' Added this /tmp/rrddump.sh as --processor=/tmp/rrddump.sh to the xymond_rrd in tasks.cfg file #!/bin/sh cat >/var/tmp/rrdfeed.txt exit 0 And only seen this line in long time $ grep xymonnet /var/tmp/rrdfeed.txt runtime 1358998632:792.73 xymon.arl.qwestip.net xymonnet It created a xymonnet.rrd file with only ``nan'' s. I should have at least seen this number above So am I hitting a bug? I am using 4.3.10
▸
On my system, the last dozen or so were "nan", probably due to buffering.But you should see something if it's all working OK. J On 24 January 2013 07:20, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:Hi I am not getting any graph for xymonnet. I am running xymon 4.3.10 I do have a xymonnet.rrd file -rw-r--r-- 1 xymon xymon 20K 2013-01-23 14:49 xymonnet.rrd It's name is runtime and type is GAUGE per rrdtool dump When I tried to draw a graph it did not like GAUGE type. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:GAUGE LINE2:p1#ff00ff ERROR: Unknown CF 'GAUGE' in 'DEF:p1=xymonnet.rrd:runtime:GAUGE' So I changed it to AVERAGE type, but the graph is empty. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:AVERAGE LINE2:p1#ff00ff481x149 # ls -lh /tmp/test.png -rw-r--r-- 1 root root 6.1K 2013-01-23 15:18 /tmp/test.png # display /tmp/test.png shows empty graph. What gives? -- 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?
-- 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?
list Jeremy Laidman
The number in rrdfeed.txt might be in the in-memory RRD buffer. Check the timestamp on the RRD file and see if it's older than that of rrdfeed.txt. From my experience, it seems that if you display the graph in Xymon, the buffer gets flushed and you can then get up-to-date data from the RRD file. J
▸
On 24 January 2013 14:49, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Wed, Jan 23, 2013 at 6:10 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:Does it have data in it? So something like this should show the last 50 data points: rrdtool fetch xymonnet.rrd AVERAGE | tail -50did not know of the fetch option. It does not have any data, only ``nan'' s. Thanks for pointing that out. I removed xymonnet.rrd and restarted xymond_rrd. So I sent a USR2 signal on xymond_rrd and in last 1 hr only see these few lines about xymonnet $ grep xymonnet /var/log/xymon/rrd-status.log (sanitized) 17859 2013-01-23 22:23:59 xymond_rrd: Got message 9941 @@status#9941/ xymon.example.net|1358997839.782880|192.168.0.53||xymon.example.net |xymonnet|1358999639|yellow||yellow|1341079916|0||0||1358997660|linux|xymon|0| 17859 2013-01-23 22:23:59 Creating rrd /home/xymon/data/rrd/ xymon.example.net/xymonnet.rrd 17859 2013-01-23 22:23:59 RRD create param 01: '/home/xymon/data/rrd/ xymon.example.net/xymonnet.rrd' 17859 2013-01-23 22:24:08 Flushing cache '/xymon.example.net/xymonnet.rrd' 17859 2013-01-23 22:24:08 Flushing '/xymon.example.net/xymonnet.rrd' with 1 updates pending, template 'runtime' Added this /tmp/rrddump.sh as --processor=/tmp/rrddump.sh to the xymond_rrd in tasks.cfg file #!/bin/sh cat >/var/tmp/rrdfeed.txt exit 0 And only seen this line in long time $ grep xymonnet /var/tmp/rrdfeed.txt runtime 1358998632:792.73 xymon.arl.qwestip.net xymonnet It created a xymonnet.rrd file with only ``nan'' s. I should have at least seen this number above So am I hitting a bug? I am using 4.3.10 On my system, the last dozen or so were "nan", probably dueto buffering. But you should see something if it's all working OK. J On 24 January 2013 07:20, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:Hi I am not getting any graph for xymonnet. I am running xymon 4.3.10 I do have a xymonnet.rrd file -rw-r--r-- 1 xymon xymon 20K 2013-01-23 14:49 xymonnet.rrd It's name is runtime and type is GAUGE per rrdtool dump When I tried to draw a graph it did not like GAUGE type. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:GAUGE LINE2:p1#ff00ff ERROR: Unknown CF 'GAUGE' in 'DEF:p1=xymonnet.rrd:runtime:GAUGE' So I changed it to AVERAGE type, but the graph is empty. # rrdtool graph /tmp/test.png DEF:p1=xymonnet.rrd:runtime:AVERAGE LINE2:p1#ff00ff481x149 # ls -lh /tmp/test.png -rw-r--r-- 1 root root 6.1K 2013-01-23 15:18 /tmp/test.png # display /tmp/test.png shows empty graph. What gives? -- 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?-- 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?
list Francois Claire
▸
On 24 January 2013 14:49, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid
<mailto:user-6f4b51ac2a40@xymon.invalid>> wrote:
On Wed, Jan 23, 2013 at 6:10 PM, Jeremy Laidman
<user-71895fb2e44c@xymon.invalid <mailto:user-71895fb2e44c@xymon.invalid>> wrote:
Does it have data in it? So something like this should show
the last 50 data points:
rrdtool fetch xymonnet.rrd AVERAGE | tail -50
did not know of the fetch option. It does not have any data, only
``nan'' s. Thanks for pointing that out.
Hi, If you check the client data for your monitored host (click on msgs -> Client data) do you see anything in the [ifconfig] section ? Are the interfaces of your host well reported including in/out stats ?