ganglia / ganglia-web

Ganglia Web Frontend
BSD 3-Clause "New" or "Revised" License
316 stars 170 forks source link

gmetric with --slope=positive #260

Open shorman88 opened 9 years ago

shorman88 commented 9 years ago

Hello,

I'm facing issue when i use --slope=positive. i'm using gmetric to plot counter value every 5 min.

the values are counted correctly but the the period between the checks show zeros for example: at 11:00 the value is 100 at 11:05 the value is 150 but the value between 11:00 and 11:05 is zero but it should be 100.

./gmetric -c /etc/gmond.conf --name='check-name' --title="check title" --value=cat /tmp/file.txt --units="query" --type=int32 --slope=positive

Any ideas to fix the issue?

Thanks

wookietreiber commented 6 years ago

@shorman88 I guess you need to also specify --tmax.

shorman88 commented 6 years ago

@wookietreiber my check runs every 60 seconds and the tmax default value is 60 what value i should have in --tmax?

wookietreiber commented 6 years ago

@shorman88 In your previous comment you said, you were using gmetric every 5 minutes. --tmax should be set to your check interval, e.g. for a gmetric cron job that runs every 5 minutes you should set --tmax=300.