| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| Generate Graphs from CRON http://steveshipway.org/forum/viewtopic.php?f=2&t=166 |
Page 1 of 1 |
| Author: | Dale Jenkins [ Thu Mar 18, 2004 2:37 pm ] |
| Post subject: | Generate Graphs from CRON |
We have a requirement for generation of certain graphs from our current mrtg+routers.cgi environment on a weekly basis. Firstly, is it possible to run routers.cgi from a CRON job, and secondly, assuming that it is, how does one "craft" the configuration options that need to be passed to the script? |
|
| Author: | stevesh [ Thu Mar 18, 2004 3:29 pm ] |
| Post subject: | |
I'm guessing that you need to have a weekly graph stored somewhere for a report, right? You could use the Graph Archive feature -- and use a cron job to trigger an archive every night. The you'd be able to pull the graphs from the target's archive online wheneve you wanted (page=archive). Or, you could just run with the graph option to output only the image, and run routers2.cgi from a cron script and redirect the output to a file (page=image). There are more details about both of these options in the HOWTO file. If you bookmark a particular page, it will show in the location bar the options to come back to that graph. By adding the page= parameter, you can specify 'archive' or 'image'. The key parameters are 'rtr' (the .cfg file relative to cfgpath), 'if' (the target name), and 'xgtype' (d/w/m/y). |
|
| Author: | Dale Jenkins [ Thu Mar 18, 2004 6:02 pm ] |
| Post subject: | Close but no banana |
| Author: | stevesh [ Thu Mar 18, 2004 7:08 pm ] |
| Post subject: | |
| Author: | Dale Jenkins [ Fri Mar 19, 2004 11:33 pm ] |
| Post subject: | Confused... |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|