Current time: 05-06-2024, 08:45 PM Hello There, Guest! (LoginRegister)


Post Reply 
Graphical Statistics whith RRD-tools
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #12
RE: Graphical Statistics whith RRD-tools
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 Sad
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
04-19-2010 07:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Graphical Statistics whith RRD-tools - Nuxwin - 03-30-2010, 07:03 PM
RE: Graphical Statistics whith RRD-tools - BeNe - 04-19-2010 07:13 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)