Xymon Mailing List Archive search

Writing my own Scripts with RRD

5 messages in this thread

list James Wade · Thu, 14 Dec 2006 12:02:46 -0600 ·
Hello,

 
So, I took the old laard iostat script, and

made a few changes, but overall the output is

the same.

 
I changed the name to iostat2. I then started

send data to Hobbit. However, I can't see and

rrd files being generated.

 
I added iostat2 to the hobbitserver.cfg file, but

no rrd. I then did the following iostat2=iostat,

and it started inputting rrd files.

 
However, I was trying to stay away from iostat

and write me own test. I'm trying to figure out

how to send data to Hobbit and graph it.

 
If I do the suggested:  iostat2=ncv, I get no rrd

data.

 
So, how do you get data going into Hobbit for rrd?

 
Can someone point me in the right direction?

 
I've read some of the rrd tutorials, not all. I'm trying

to do my own iostat, and mpstat commands to

track disk i/o wait and busy times, and mpstat

multiple cpu graphs. I don't need alerts, just trends

really.

 
Thanks.James
list Bhupendra Patel · Thu, 14 Dec 2006 11:25:10 -0800 (PST) ·
Please take me of this list.
quoted from James Wade

--- James Wade <user-659655b2ea05@xymon.invalid> wrote:
Hello,

 
So, I took the old laard iostat script, and

made a few changes, but overall the output is

the same.

 
I changed the name to iostat2. I then started

send data to Hobbit. However, I can't see and

rrd files being generated.

 
I added iostat2 to the hobbitserver.cfg file, but

no rrd. I then did the following iostat2=iostat,

and it started inputting rrd files.

 
However, I was trying to stay away from iostat

and write me own test. I'm trying to figure out

how to send data to Hobbit and graph it.

 
If I do the suggested:  iostat2=ncv, I get no rrd

data.

 
So, how do you get data going into Hobbit for rrd?

 
Can someone point me in the right direction?

 
I've read some of the rrd tutorials, not all. I'm
trying

to do my own iostat, and mpstat commands to

track disk i/o wait and busy times, and mpstat

multiple cpu graphs. I don't need alerts, just
trends

really.

 
Thanks.James

 
Have a burning question?  Go to www.Answers.yahoo.com and get answers from real people who know.
list Rob MacGregor · Thu, 14 Dec 2006 19:36:32 +0000 ·
On 12/14/06, Bhupendra Patel <user-9a289a343b9a@xymon.invalid> wrote:
Please take me of this list.
Rather than emailing the list, try doing it yourself:
You will be also be able to email:

    user-1bd859b2eb47@xymon.invalid

And get help on the mail interface.

-- 
                 Please keep list traffic on the list.

Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche
list Buchan Milne · Fri, 15 Dec 2006 18:12:18 +0200 ·
quoted from James Wade
On Thursday 14 December 2006 20:02, James Wade wrote:
Hello,


So, I took the old laard iostat script, and

made a few changes, but overall the output is

the same.


I changed the name to iostat2. I then started

send data to Hobbit. However, I can't see and

rrd files being generated.


I added iostat2 to the hobbitserver.cfg file, but

no rrd. I then did the following iostat2=iostat,

and it started inputting rrd files.


However, I was trying to stay away from iostat

and write me own test. I'm trying to figure out

how to send data to Hobbit and graph it.


If I do the suggested:  iostat2=ncv, I get no rrd

data.


So, how do you get data going into Hobbit for rrd?


Can someone point me in the right direction?


I've read some of the rrd tutorials, not all. I'm trying

to do my own iostat, and mpstat commands to

track disk i/o wait and busy times, and mpstat

multiple cpu graphs. I don't need alerts, just trends

really.
Following the Help->Custom Graphs doc does work. I have a number of checks 
that use the ncv method.

It may help to tell us what you have done so far, and possibly the output of 
your test.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
list James Wade · Fri, 15 Dec 2006 10:55:21 -0600 ·

I've got iostat working and graphing NFS and Disk mounts
using the old larrd iostat graph, but I've made changes
to include NFS mounts.

So, if I write my own script, and don't use the NCV, can
I use the old laard format?

BEGINKEY
d0 /
james /home/james
ENDKEY
BEGINDATA
    0.0    0.4    0.0    0.2  0.0  0.0    0.0   30.3   0   1   0   0   0   0
c0t0d0s7
    0.0    0.2    0.2    1.2  0.0  0.0    3.5   17.8   0   0   0   0   0   0
james
ENDDATA

If so, what changes to I need to make.

I have another question, I'm working with the hobbitgraph.cfg. I have
systems that have a load of NFS mounts, and the graph information gets
long. However, they may have no busy or wait times, and the data is
NaN. Is there a way in hobbitgraph.cfg to say don't list the filesystem
if there is no data. I can eliminate the graph part by using the
GT variable, but I want the system not to be listed if the data is 0.

Thanks....James


Buchan said >>>>>>>>>
quoted from Buchan Milne

Following the Help->Custom Graphs doc does work. I have a number of checks 
that use the ncv method.

It may help to tell us what you have done so far, and possibly the output of

your test.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)