Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:telegraph [2018/03/20 22:12] darron [Telegraph (cpu.xml)] |
projects:telegraph [2018/11/16 04:24] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Telegraph (SNMP/ | ||
- | <wrap right> | ||
- | {{: | ||
- | </ | ||
- | Telegraph is a project which will poll an SNMP | ||
- | server and update an RRD or SQL (SQLite3) database. | ||
- | |||
- | A number of external SNMP daemon commands are supplied | ||
- | to capture values from various probes on a Raspberry or Banana Pi. | ||
- | |||
- | An example PHP script demonstrates how to generate RRD | ||
- | graphs like this one shown here. | ||
- | |||
- | === Install === | ||
- | |||
- | < | ||
- | hg clone http:// | ||
- | cd telegraph | ||
- | </ | ||
- | |||
- | At this time you must read the file named README in the telegraph directory. | ||
- | This file explains the installation requirements for this software. | ||
- | |||
- | Telegraph may be installed once all requirements are met, with | ||
- | < | ||
- | make | ||
- | make install | ||
- | </ | ||
- | |||
- | === SNMPD (snmpd.conf) === | ||
- | |||
- | SNMPD is set up to return a value when probed for the CPU temperature on a Raspberry Pi. | ||
- | |||
- | < | ||
- | rocommunity public X.X.X.X/24 | ||
- | extend cpu / | ||
- | </ | ||
- | |||
- | === Telegraph (cpu.xml) === | ||
- | |||
- | This configuration file sets up a query for the above cpu temperature in snmpd.conf. | ||
- | |||
- | < | ||
- | <?xml version=" | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | </ | ||
- | |||
- | === CRON === | ||
- | |||
- | A CRON job will run every 5 minutes to update the RRD. | ||
- | < | ||
- | */5 * * * * / | ||
- | </ | ||
- | |||
- | === World wide web === | ||
- | |||
- | Example scripts exist in the demo directory of the project which | ||
- | demonstrate how the RRD is queried to produce a graph of the values | ||
- | stored within it. | ||
- | |||
- | The demo can be seen [[http:// |