dns query load?
list Daniel J McDonald
I'd like to monitor the number of dns queries hitting my external DNS servers. there is a bb script that supposedly does this - bb-dns-load, but I'd like to know if anyone has got it working with the hobbit client. -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy http://www.austinenergy.com
list Charles Goyard
▸
Daniel J McDonald wrote :
I'd like to monitor the number of dns queries hitting my external DNS servers. there is a bb script that supposedly does this - bb-dns-load, but I'd like to know if anyone has got it working with the hobbit client.
Hi,
I use the dnsload script with hobbit.
Here's a crontab entry :
*/5 * * * * root /usr/local/hobbit/client/ext/bbdl-roll.sh >/dev/null 2>&1
I also modified bbdl-roll to change the location of tmp files, because
ext/ didn't look good to me :
in bbdl-roll.sh :
BB_EXT=/usr/local/hobbit/client/tmp
in bbdl-stats.sh, replace all "$BBHOME/ext" with "$BBHOME/tmp".
Wait a few cycles so the statistics initialize, and then add bbdl-stats
to clientlaunch.cfg.
For the server-side grapher, I use :
NCV_dnsload="Queryrate:GAUGE,*:NONE"
[dnsload]
DEF:q=dnsload.rrd:Queryrate:AVERAGE
TITLE DNS queries rate
YAXIS queries/second
-l 0
AREA:q#00ff00:queries/sec
GPRINT:q:LAST:%3.0lf
GPRINT:q:MAX:max\: %3.0lf
GPRINT:q:MIN:min\:%3.0lf
GPRINT:q:AVERAGE:avg\:%3.0lf
--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Daniel J McDonald
▸
On Thu, 2006-12-21 at 11:20 +0100, Charles Goyard wrote:
Daniel J McDonald wrote :I'd like to monitor the number of dns queries hitting my external DNS servers. there is a bb script that supposedly does this - bb-dns-load, but I'd like to know if anyone has got it working with the hobbit client.Hi, I use the dnsload script with hobbit.
[...] Instructions for getting the status reports elided...
▸
For the server-side grapher, I use :
NCV_dnsload="Queryrate:GAUGE,*:NONE"
[dnsload]
DEF:q=dnsload.rrd:Queryrate:AVERAGE
TITLE DNS queries rate
YAXIS queries/second
-l 0
AREA:q#00ff00:queries/sec
GPRINT:q:LAST:%3.0lf
GPRINT:q:MAX:max\: %3.0lf
GPRINT:q:MIN:min\:%3.0lf
GPRINT:q:AVERAGE:avg\:%3.0lf
I added this to my hobbitgraph.d directory, but I don't see any graphs. I did add both "dnsload" and "NCV_dnsload" to the graph variable in hobbitserver.cfg, but still no graphs. Where should I look to figure out what I am doing wrong? -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy http://www.austinenergy.com
list Charles Goyard
Hi,
▸
Daniel J McDonald wrote :I added this to my hobbitgraph.d directory, but I don't see any graphs. I did add both "dnsload" and "NCV_dnsload" to the graph variable in hobbitserver.cfg, but still no graphs. Where should I look to figure out what I am doing wrong?
Did you add "dnsload=ncv" to the TESTS2RRD variable ? You have to restart hobbitd_rrd too (on Linux I do "kill `pidof hobbitd_rrd`" instead of restarting the whole hobbit). -- Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Daniel J McDonald
▸
On Fri, 2006-12-29 at 12:14 +0100, Charles Goyard wrote:
Hi, Daniel J McDonald wrote :I added this to my hobbitgraph.d directory, but I don't see any graphs. I did add both "dnsload" and "NCV_dnsload" to the graph variable in hobbitserver.cfg, but still no graphs. Where should I look to figure out what I am doing wrong?Did you add "dnsload=ncv" to the TESTS2RRD variable ?
No, I hadn't. But I don't believe my copy of bb-dns-load is configured the same way. The attribute lines read: Current DNS query rate is: 4/sec Sample: 1266 queries in 300 seconds ending at Fri Dec 29 10:00:20 CST 2006 Thresholds: Red = 100/sec Yellow = 75/sec And the service name is "dl". I'll try to read up on it next week, but it looks like I still have a lot of work to integrate this.
▸
You have to restart hobbitd_rrd too (on Linux I do "kill `pidof hobbitd_rrd`" instead of restarting the whole hobbit).
I had to restart it all, because hobbitfetch had hit it's race condition again. That's one thing that is really giving me fits. -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy http://www.austinenergy.com
list Richard Leon
Is there a way to set up my sms alert to show the name of the filesystem that is full or the name of the process that is down? Richard
list Daniel J McDonald
▸
On Fri, 2006-12-29 at 11:20 -0600, Richard Leon wrote:
Is there a way to set up my sms alert to show the name of the filesystem that is full or the name of the process that is down?
Or more generally, how and where are the alerts customized? I'm not certain where to start looking in the code so that I can write a custom alert template. In my case, I want to know the temperature when one of my temperature probes goes "red". -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy http://www.austinenergy.com
list Trent Melcher
Look at the http://yourhobbitserver/hobbit/help/hobbit-alerts.html document. Probably down near the " If e-mail is not enough" section, explains it all right there. Trent
▸
-----Original Message-----
From: Daniel J McDonald [mailto:user-290ce4e24e19@xymon.invalid]
Sent: Friday, December 29, 2006 12:03 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] SMS , More Info
On Fri, 2006-12-29 at 11:20 -0600, Richard Leon wrote:Is there a way to set up my sms alert to show the name of the filesystem that is full or the name of the process that is down?
Or more generally, how and where are the alerts customized? I'm not certain where to start looking in the code so that I can write a custom alert template. In my case, I want to know the temperature when one of my temperature probes goes "red". -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy http://www.austinenergy.com