I have a number of instances of MRTG running on my system which collect statistics on various switches/routers on the network and store the data in distinct directories. For e.g., for 192.168.100.254 and 192.168.100.230, the graphs and data are stored in /www/servers/mrtg-192.168.100.254 and /www/servers/mrtg-192.168.100.230. The associated config files are stored in /home/mrtg/mrtg-192.168.100.254.cfg and /home/mrtg/mrtg-192.168.100.230.cfg. There are about 50 such instances of mrtg running for 50 different devices. I wanted to find out which instance of mrtg is associated with which data file. Running ps -ef | grep mrtg returns all of my mrtg processes and their PIDs. I parse the output and feed it to 'lsof -p PID' and this returns a number of associated files, but no mention of my /www/servers/mrtg-XX data files.
What am I doing wrong? Regarding my MRTG, I'm not using RRDTOOL, and the MRTG data collector starts up every 5 minutes for data collection.