Hi I have following files.
38532 Apr 24 13:41 disk,boot.rrd
38532 Apr 24 13:41 disk.rrd
19548 Apr 24 13:41 la.rrd
19548 Apr 24 13:41 mailq.rrd
19548 Apr 24 13:41 memory.actual.rrd
19548 Apr 24 13:41 memory.real.rrd
19548 Apr 24 13:41 memory.swap.rrd
304308 Apr 24 13:41 netstat.rrd
19548 Apr 24 13:41 procs.rrd
114468 Apr 24 13:41 sendmail.0.rrd
19548 Apr 24 13:39 tcp.conn.rrd
19548 Apr 24 13:39 tcp.ssh.rrd
19548 Apr 24 13:41 users.rrd
323292 Apr 24 13:39 vmstat.rrd
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Sunday, April 24, 2005 1:13 PM To: hobbit at hswn.dk Subject: Re: [hobbit] No graph of nmailq-bf.sh
On Sun, Apr 24, 2005 at 12:37:28PM +0530, Soumya K. Das wrote:
Nope...still not showing... have a look at the code below... This is the mailq section of hobbitgraph file [mailq] FNPATTERN mailq(.*).rrd
What RRD files do you have in the ~hobbit/server/data/rrd/HOSTNAME/ directory ?
Don't you think the @RRDFN@ should be requests instead of "requests" or "total requests:"
Nope - at the point where hobbitgraph.cfg gets involved, it doesn't look at the original status message any more.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Sun, Apr 24, 2005 at 01:51:52PM +0530, Soumya K. Das wrote:
19548 Apr 24 13:41 mailq.rrd
OK, so you have a mailq.rrd now, and it appears to be updating like the other RRD files. So I'd expect this to begin picking up data from your nmailq-bf script now after you did the change to the LARRD setting - after a while you should have enough data to form a graph.
Regards, Henrik
I'm having a similar problem with getting the correct data showing in the graph. I do get the graph displayed but the data is incorrect. It always shows 2005 which looks like it's picking up part of the date field.
I can't find a copy of the nmailq script on deadcat so not sure what format the data is supposed to be in. What does hobbit expect to see for graphing on mailq? I just a have a script that sends the output of mailq i.e.
Total requests: xx
Is this OK?
Regards Geoff Steer
On Sun, Apr 24, 2005 at 08:11:12PM +1000, Geoff Steer wrote:
I'm having a similar problem with getting the correct data showing in the graph. I do get the graph displayed but the data is incorrect. It always shows 2005 which looks like it's picking up part of the date field.
I can't find a copy of the nmailq script on deadcat so not sure what format the data is supposed to be in. What does hobbit expect to see for graphing on mailq? I just a have a script that sends the output of mailq i.e.
Total requests: xx
The nmailq-bf.sh script is part of the LARRD 0.43c package on deadcat. It assumes that it gets a line of the form
<some random text> 182 requests
Since I stopped using sendmail several years ago, I don't know what the mailq output format is today.
Henrik
On Sun, Apr 24, 2005 at 08:11:12PM +1000, Geoff Steer wrote:
I'm having a similar problem with getting the correct data showing in the graph.
Could you try this patch for the "mailq" parser ? It changes the way Hobbit looks for the queue-size number so that it looks for a line with the word "requests", and the grabs the queue-size from any number on that line, whether before or after the "requests" keyword.
Regards, Henrik
I've finally installed the patch (public holiday yesterday) but still get no graph. I've run the debugging as you suggested for the other user having a similar problem and I get the same output from the nmailq script as them i.e. Total requests: 99
I did notice on the empty graph that did display that the label for the graph shows 'Queue Length @RRDPARAM@'.
Regards Geoff
On Sun, 2005-04-24 at 23:03, Henrik Stoerner wrote:
On Sun, Apr 24, 2005 at 08:11:12PM +1000, Geoff Steer wrote:
I'm having a similar problem with getting the correct data showing in the graph.
Could you try this patch for the "mailq" parser ? It changes the way Hobbit looks for the queue-size number so that it looks for a line with the word "requests", and the grabs the queue-size from any number on that line, whether before or after the "requests" keyword.
Regards, Henrik
------------------------------- Safe Stamp -------------------------------- Your Anti-virus Service scanned this email. It is safe from known viruses.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
In setting up the sendmail graphs, I found that some fields introduced in later sendmail versions were not displayed.
The attached patch to do_sendmail.c will allow the extra field introduced in sendmail 8.13.x to be graphed. It should also work with most earlier versions of sendmail back to at least 8.9.x (if you're running a version that old, it's time to upgrade!)
As we only run 8.13.x in production, I haven't been able to test much the changes with prior versions of sendmail other than a quick test with 8.11.x.
Regards Geoff Steer Firstwave Technology
On Tue, Apr 26, 2005 at 10:35:35AM +1000, Geoff Steer wrote:
In setting up the sendmail graphs, I found that some fields introduced in later sendmail versions were not displayed.
The attached patch to do_sendmail.c will allow the extra field introduced in sendmail 8.13.x to be graphed.
This ended up causing some major changes to the way Hobbit handles RRD files, but I think it has improved.
Hobbit will now auto-detect what datasets are in an existing RRD file, and use this to select what data to update the RRD-file with. So if you have an existing RRD file without the new field, it will continue to use that format (and you dont get the new field data tracked). If Hobbit creates a new RRD file it will include the new field, and track data for it.
So it should work for all Sendmail versions, and remain compatible with the existing RRD's.
Henrik
participants (3)
-
gsteer@firstwave.com.au
-
henrik@hswn.dk
-
soumya@in-corporate.pacenet-india.com