My favorites
|
Sign in
rrdpy
Python RRD Utilities
Project Home
Downloads
Source
Checkout
|
Browse
|
Changes
|
r26
Source path:
svn
/
trunk
/
rrd_feeder_rand.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Copyright (c) 2008 Corey Goldberg (corey@goldb.org)
#
# RRDTool Random Number Data Feeder/Grapher
import rrd
import random
import time
interval = 10
rrd_file = 'test.rrd'
my_rrd = rrd.RRD(rrd_file)
while True:
rand = random.randint(1, 100)
my_rrd.update(rand)
my_rrd.graph(60)
time.sleep(interval)
Show details
Hide details
Change log
r4
by cgoldberg on Apr 23, 2008
Diff
[No log message]
Go to:
/trunk/rrd_feeder_http.py
/trunk/rrd_feeder_rand.py
/trunk/rrd_grapher.py
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 386 bytes, 23 lines
View raw file
Hosted by