1 Jun 2007 15:58
Script for detecting RRDs not collecting
Ed Ravin <eravin <at> panix.com>
2007-06-01 13:58:43 GMT
2007-06-01 13:58:43 GMT
> On Tue, Apr 24, 2007 at 05:26:34PM -0300, Nicolas Royo wrote: > > Im using cricket for monitoring customized wireless APs and > therefore, clientes that are very dinamic. > > As the number of targets rises to about 4000 clients, I was looking a > way for detecting who have activity and who dont. See attached script. It checks the log files and the RRD files for things that are out of date. I'm not sure if I would call it production quality, but it might fit the bill for you. If you're keeping things in your RRD directory that are old, like a router or host that's not online anymore but you kept the RRD in your config so you could compare against current graphs, then use the "--ignore" option for those files.
#!/bin/sh set -u # Monitor a Cricket installation # complain if it appears that Cricket is not running or if a # configured Cricket directory is not getting any RRD updates USAGE="Usage: cricket.monitor [-ignore dir-pattern ]" # tasks: # if cron job writes to temp file, make sure it is recent(Continue reading)
RSS Feed