Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:telegraph [2018/07/23 12:29]
127.0.0.1 external edit
projects:telegraph [2018/11/09 23:03]
darron
Line 1: Line 1:
-==== Telegraph (SNMP/RRD/SQL) ====+==== Telegraph (SNMP/ICMP/RRD/SQL) ====
 <wrap right> <wrap right>
 {{:projects:telegraph.png?200}} {{:projects:telegraph.png?200}}
Line 5: Line 5:
  
 Telegraph is a project which will poll an SNMP Telegraph is a project which will poll an SNMP
-server and update an RRD or SQL (SQLite3) database.+server or PING a host and update an RRD or SQL (SQLite3) database with gathered data.
  
 A number of external SNMP daemon commands are supplied A number of external SNMP daemon commands are supplied
Line 16: Line 16:
  
 <code> <code>
 +sudo apt-get install mercurial
 hg clone http://hg.kewl.org/pub/telegraph hg clone http://hg.kewl.org/pub/telegraph
 cd telegraph cd telegraph
Line 47: Line 48:
  <graph title="CPU Temp" label="C" />  <graph title="CPU Temp" label="C" />
  <database type="rrd" filename="/var/lib/rrd/cpu.rrd" />  <database type="rrd" filename="/var/lib/rrd/cpu.rrd" />
- <query source="0" name="cpu" host="X.X.X.X" community="public" miboid="cpu" />+ <query source="0" name="cpu" host="X.X.X.X" community="public" extend="cpu" />
 </telegraph> </telegraph>
 </code> </code>
Line 55: Line 56:
 A CRON job will run every 5 minutes to update the RRD. A CRON job will run every 5 minutes to update the RRD.
 <code> <code>
-*/5 * * * * /usr/local/bin/telegraph /usr/local/etc/cpu.xml+*/5 * * * * /usr/local/bin/telegraph -d 0 cpu.xml
 </code> </code>
  
 === World wide web === === World wide web ===
  
-Example scripts exist in the demo directory of the project which +Example configuration exists in the demo directory of the project which 
-demonstrate how the RRD is queried to produce a graph of the values +is used to demonstrate its operation.
-stored within it.+
  
-The demo can be seen [[http://london.c2n.uk/|here]].+One demo can be seen [[http://london.c2n.uk/|here]].