| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| each device needs separate graph directory http://www.steveshipway.org/forum/viewtopic.php?f=2&t=1069 |
Page 1 of 1 |
| Author: | technicalx [ Wed Feb 28, 2007 6:35 am ] |
| Post subject: | each device needs separate graph directory |
wondering if this can be done.... we have a >150 windows servers that we are monitoring. Each has between 10 and 15 different stats being graphed. so, the wwwroot directory looks like this; c:\mrtg\wwwroot\servers\BES1 c:\mrtg\wwwroot\servers\AD2 c:\mrtg\wwwroot\servers\SQL3....etc. each individual server directory contains the rrd files. However, the png graph files for all the servers exist in the c:\mrtg\wwwroot\servers directory. question is, how can I store the png in the appropriate server folder, along with it's rrd file? In other words, server1 directory has all the files associated with server1. Example BES1.cfg WorkDir: C:\mrtg\wwwroot\servers\BES1 RunAsDaemon: yes IconDir: C:\mrtg\wwwroot\rrdicons ### Global Defaults PathAdd: c:\mrtg\rrdtool LogFormat: rrdtool I have set the router2.cgi.conf file to [routers.cgi] graphpath = C:\mrtg\wwwroot\servers graphurl = /servers confpath = c:/mrtg/mrtg/bin cfgfiles = *.cfg iconurl = /rrdicons/ # Thanx in advance!!! |
|
| Author: | stevesh [ Wed Feb 28, 2007 9:36 am ] |
| Post subject: | |
The short answer is that you cannot. routers2 expects to have the graphdir all to itself for temporary storage of the .png files, so it should not really matter what goes in there. All the .png temporary files are created with huge names summarising the cfg file, target, and display options and you should probably have a periodic job to delete old files from this directory, if possible. It looks as if in your system you have put the graphpath into the root of your cfgpath for some reason, and using the same place as your RRDpath (workdir) root! This might get a bit confusing, not to mention the security implications of running it this way (people can get hold of your .cfg files (very insecure) or your .rrd files (insecure if you use different levels of access). Why not have your .cfg files under one directory (outside of wwwroot), and your workdir (RRDPath) in another directory (outside of wwwroot) and your graphpath under wwwroot/graphs ? This is the way we do it here. Steve |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|