I am setting up MRTG to create graphs that show the number of files in a folder (Mail queue).
I created a batch file that will check the folder and return the number of files.
In MRTG, I've created my .cfg file that will call the batch file. It works from the command line.
It logs and creates the graphs fine.
I used SRVANY and INSTSRV to create the MRTG service and it is configured correctly. The service runs, but no data is collected, because (I'm sure) that the batch file is not running.
So I need to know if it is possible to call a batch file from a windws service?
Start Free Trial