Commit Graph

74 Commits

Author SHA1 Message Date
Tony Murray
e3772e2653 Don't use $config['rrdcached_dir'] anymore, always use relative directories when using rrdcached.
Wait for output on every command, this prevents input left in the buffer from messing up subsequent commands.
It doesn't seem like there is a penalty, but I'd have to do more testing.
2016-07-25 16:24:09 -05:00
Tony Murray
c43f533b55 Sometimes the output streams already contain output, so we don't get the output we expect.
Clear those output buffers, but only when we care about it.
2016-07-21 11:27:19 -05:00
Tony Murray
0a8acc7649 Check for file missing string anywhere in stdout or stderr 2016-07-18 13:30:39 -05:00
Tony Murray
dd9e19d9ed Fix slow poller debug (waiting for output)
More robust rrdtool_check_rrd_exists() check
Line return after outputting the rrd command for easier to read debug output
Updated some phpdoc comments in rrdtool.inc.php
2016-07-15 12:21:09 -05:00
Tony Murray
01cfb960d1 Fix sensors rrd name issue
Use last instead of first, as last won't flush rrdcached
Only stream_select if timeout > 0
Attempt to fix mysql
2016-07-08 22:58:36 -05:00
Tony Murray
c5c5469179 Fix rrdtool_check_rrd_exists() 2016-07-08 14:35:00 -05:00
Tony Murray
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
Paul Gear
7528453941 Remove null message on rename 2016-01-22 09:39:26 +10:00
Paul Gear
33091034d2 Record RRD renames in event log 2016-01-15 21:49:58 +10:00
Paul Gear
a78fac6d05 Allow ['rrd_def'] to be array or string 2016-01-15 21:49:58 +10:00
Paul Gear
ee75253310 Build in automated RRD file renaming 2016-01-15 21:49:58 +10:00
Paul Gear
3831ad3f45 First cut at unified data storage for rrdtool & influxdb
As a side-effect, this adds InfluxDB support for MIB-based polling.
2016-01-15 21:49:57 +10:00
Paul Gear
3fb5210d21 Make formatting changes consistent 2016-01-02 07:10:43 +10:00
Paul Gear
2558aa9bda Fix up some funky formatting; add/tidy end-of-function markers to reduce diff churn 2016-01-02 07:10:43 +10:00
Paul Gear
8a20ad4896 Move rrd handling functions into includes/rrdtool.inc.php; add backwards compatibility with file naming in old version of MIB-based polling 2016-01-02 07:10:42 +10:00
laf
48fab36592 Check that $fields has value 2015-12-08 15:17:53 +00:00
laf
e75fc4b8b1 Future proofed 2015-12-08 13:53:38 +00:00
laf
55d3242bd6 Updated version checking in rrdtool() function 2015-12-02 19:21:01 +00:00
laf
78a688fc47 Updated rrdtool call for tune command 2015-12-01 21:53:12 +00:00
laf
253b27d403 More updates to tune rrdfiles 2015-11-17 05:14:41 -08:00
laf
84863586b5 rrdtune code 2015-11-17 02:20:23 -08:00
Paul Gear
0d2949f69e Overhaul use of rrdtool_lastupdate & STACK for rrdtool 1.4/1.5 compatibility 2015-11-15 11:48:39 +10:00
f0o
5fd1f59852 Fixup 2015-10-03 16:14:23 +00:00
f0o
81b4fbf221 Fixes #2037 2015-10-02 02:00:28 +00:00
f0o
afd83f6a8d Strip newlines from arguments on creation 2015-09-28 09:05:44 +00:00
f0o
7d95e94954 Fix rrd creation parameters 2015-09-28 08:24:57 +00:00
Daniel Preussker
fc25b0d063 Merge pull request #1748 from laf/rrdtool-1.5
Added support for rrdtool 1.5
2015-09-27 08:59:52 +00:00
Daniel Preussker
ba7bf5f60b Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
2015-09-22 12:15:59 +00:00
laf
c0125f28e4 Added support for rrdtool 1.5 2015-08-23 19:36:22 +00:00
Mark Schouten
4792879ce5 Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories... 2015-08-21 16:10:01 +02:00
laf
987634e463 Updated rrdtool_update() to use new array format 2015-08-18 16:26:55 +00:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
f0o
a8e5880423 Fix logic bugs and strip %% 2015-05-11 13:09:51 +00:00
f0o
651f9d9d87 Added sanity check 2015-05-11 12:15:20 +00:00
f0o
25a9535b95 Rewrite rrdtool_escape 2015-05-11 11:22:36 +00:00
f0o
d16784c040 This is not a fix for the issue!
It does however minimize the risk of running into zombies for certain distribution's php5.x packages.
It's been said it works for:
	Ubuntu 14.04.2 under Apache2's Mod-PHP using php5.5
	OpenSuSE 13.2 under Apache2's Mod-PHP using php5.6
	Debian 8 under Apache2's Mod-PHP and PHP-FPM using php5.6
2015-05-11 09:12:29 +00:00
f0o
1ed51dad65 Force relative rrd-paths by prefixing rrd_dir with './'
Allow empty string as rrdcached_dir values
2015-05-08 12:58:09 +00:00
laf
567a31f45f Added support for using rrdcached via tcp connections 2015-04-27 10:04:57 +01:00
Neil Lathwood
f12cc78c04 Revert "Fix filename for rrdcached usage." 2015-04-27 09:39:11 +01:00
f0o
f518ebd0ec Fix filename for rrdcached usage. 2015-04-20 15:57:26 +00:00
laf
bc285af35d Shorten interface names on map 2015-04-08 02:46:03 +01:00
laf
e94c238588 Added some more examples 2015-03-27 22:22:11 +00:00
laf
d5fe0a8050 Shorten interface names into Fa, Gi, Te 2015-03-27 21:42:23 +00:00
laf
c1ef9b6808 Resolved a large number index issues and update Console_Color to V2 2015-03-01 18:04:57 +00:00
Neil Lathwood
a4d3c8709d Fixed the scrut coding style issues 2015-02-22 16:45:40 +00:00
Adam Amstrong
b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
Adam Amstrong
cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00:00
Tom Laermans
cc7f01ee26 more rrdtool_escape goodness
git-svn-id: http://www.observium.org/svn/observer/trunk@3230 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-23 10:37:23 +00:00
Tom Laermans
75113e0218 introducing rrdtool_escape, more to come
git-svn-id: http://www.observium.org/svn/observer/trunk@3229 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-23 10:18:14 +00:00
Adam Amstrong
7cb9e665e9 colourize sql/rrd debugging yellow/green
git-svn-id: http://www.observium.org/svn/observer/trunk@3224 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-22 13:41:04 +00:00