   MRTG and SNMP
  Yesterday I installed MRTG on my linux server, and have been having a few problems setting it up. I can monitor my router and the linux machine no bother, but cannot monitor my windows XP machineI have added the SNMP support through add windows compnmenets, the service is started, and ive been through the settings and set all "traps" to "public" and any hosts to either allow all, or the IP of the monitoring server, but still I cant connect to the machine, MRTG reports that it cant retrieve SNMP data.Also, I cant get MRTG to run automatically, ive added a line to /etc/crontab something like:1-59/5 **** /usr/local/mrtg-2/bin/mrtg /home/mrtg/public_html/cfg/config.cfgThats the same command i type manually and it works, but it wont run through cron.Anyone any advice, im no linux expert, and know sod all about SNMP other than it rules and i want it :D   
  What is the /5 for? Make sure your options are correct. Time starts at 0 btw, so you'll always be missing a minute :).Why is the config file in the public_html directory? I don't believe it is required to be there. I'd move it out. You may decide to allow external access to your website one day and forget the config file is still there.   ;Quote:Original post by MaegaWhat is the /5 for? Make sure your options are correct. Time starts at 0 btw, so you'll always be missing a minute :).Why is the config file in the public_html directory? I don't believe it is required to be there. I'd move it out. You may decide to allow external access to your website one day and forget the config file is still there.The /5 was listed in my book, so I just put that in anyway. I want the job to run every 5 mins. Any idea why it isnt running at all?The tutorial also said to put the cfg in the same directory as the html files.   ;  The config file tells MRTG where to place the output files, so it can and should be moved out of public_html.The cron line looks fine, although it probably should start at 0 minutes after the hour and not 1, as has been stated.Are you getting any output from cron at all?  Cron may not even be running.  Try adding another crontab entry:0-59/5 * * * * /bin/ls /BTW, spaces between all the stars.  You don't have spaces between the stars in your example.Also, don't edit the crontab file by hand; edit it by running:crontab -e;  thats the cron working now, thanks. DO I need a seperate config file for each machine I wish to monitor? I tried using the config command with the same config file for each machine, but it just seems to overwite the config, at present ive got 2 configs.Ive also still to get this damn XP machine working....getting there...ta for the help.   ;  The config files are just plain text files; once you've got one set up, you can edit it by hand and clone the part of the file that refers to your first machine, and change the names as appropriate.   