Quote:Its OS independent.
Not really!
I tried your Script under FreeBSD and saw that you are used hardcoded Paths.
I must now change EVERY PATH in EVERY FILE
Code:
...
RRDTOOL=/usr/bin/rrdtool
IMAGE_PATH=/var/www/ispcp/gui/stat/png/
SENSORS="/usr/bin/snmpwalk"
PSCMD="/bin/ps"
DATABASE=/var/www/ispcp/engine/rrd/bd/hdd_usage.rrd
...
*BSD uses an other structure than Linux for example.
Won´t it make more sense to use a class where you include all Paths ?
You set the paths in every engine file new an not a variable. You can use the ispcp.conf for it or you create your own Class for all Paths an Variables. So we all need only one file to edit.
You understand what i mean ?
Thanks for your great work.
Thanks & Greez
BeNe