On Tue, Jan 09, 2007 at 12:04:29PM -0600, Josh Restivo wrote:
> When I run poller2 manually, it appears to get good data (ie, byte 
> counters are non-zero). Either something is broken in the database (any 
> good sanity check for the data?) or the retrieved info is not being 
> stored properly (I'm unclear on how/where the fresh data is stored).
Pick on one interface and run it manually a few times with a about
5 minute spacing and see if you get data.  If you change the poll
interval from 5 minutes you also need to adjust the RRD definition as
the default step interval is 5 minutes which is almost guaranteed to
mess things up. The heartbeat is usually twice that at 10 minutes which,
if it is not changed, would mean you would get hit and misses with
your polling.

You can check that the data is going in by looking at the timestamps
of the files, obviously they should be incrementing.

So let's check some things, i'll use an example of my rrd file:

#  rrdtool info /var/local/jffnms-website/rrd/interface-11-1.rrd | head -6
filename = "/var/local/jffnms-website/rrd/interface-11-1.rrd"
rrd_version = "0003"
step = 300
last_update = 1168465203
ds[data].type = "COUNTER"
ds[data].minimal_heartbeat = 600

I've got a step of 300 and a heartbeat of 600, 5 minutes and 10 minutes
repectively. So normally the data comes in at 5 minutes and if I don't
get something within 10 minutes I get unknown. My poller runs every 5
so it means 2 misses.

last update is 1168465203, which is unix timestamp.
# expr `date +'%s'` - 1168465203
157

The last update was 157 seconds ago.

Check the heartbeat. If it is wrong use rrdtool tune.

  - Craig

-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/                      MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to