| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| After upgrading to router2cgi graphs no longer update http://www.steveshipway.org/forum/viewtopic.php?f=2&t=523 |
Page 1 of 1 |
| Author: | Marbas [ Thu Mar 03, 2005 3:21 pm ] |
| Post subject: | After upgrading to router2cgi graphs no longer update |
I had MRTG installed and working fine, I installed RRDTool and Router2CGI everything installed fine. but now my crontab string no longer updates the files. If i run it manually it runs fine /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg it will update everything. Can't figure out why it failing now. Crontab 5,35 * * * * root /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg I'm using this to capture phone reports from a PBX and graph them, but since the upgrade it no longer happen automaticaly. Any suggestions? (Running on FreeBSD 5.3/Apache2/Perl5.8/MRTG2.10) |
|
| Author: | Marbas [ Thu Mar 03, 2005 3:27 pm ] |
| Post subject: | This is my mrtg.cfg file also |
#Where should the logfiles, and webpages be created? WorkDir: /usr/local/www/stats/mrtg Logformat: rrdtool Refresh: 300 Interval: 5 ## WithPeak ------------------------------------------ # By default the graphs only contain the average transfer # rates for incoming and outgoing traffic. The # following option instructs mrtg to display the peak # 5 minute transfer rates in the [w]eekly, [m]onthly and # [y]early graph. In the example we define the monthly # and the yearly graph to contain peak as well as average # values. # WithPeak[ezwf]: ym #Trfk Server Reports #Average Speed of Answer Target[avespdans]: `perl /var/log/consoles/trfk.pl avespdans` Options[avespdans]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[avespdans]: 2000 Title[avespdans]: Average Speed of Answer PageTop[avespdans]: <H1>Average Speed of Answer</H1> YLegend[avespdans]: Time in Second ShortLegend[avespdans]: s Legend1[avespdans]: Average Time to Answer Calls in Seconds Every Half Hour LegendI[avespdans]: In: LegendO[avespdans]: #--------------------- #Average Attendant Response Target[aveattres]: `perl /var/log/consoles/trfk.pl aveattres` Options[aveattres]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[aveattres]: 2000 Title[aveattres]: Average Attendant Response PageTop[aveattres]: <H1>Average Attendant Response</H1> YLegend[aveattres]: Time in Second ShortLegend[aveattres]: s Legend1[aveattres]: Not sure what to put LegendI[aveattres]: In: LegendO[aveattres]: #--------------------- #Calls Delayed Peg Count Target[calldelay]: `perl /var/log/consoles/trfk.pl calldelay` Options[calldelay]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[calldelay]: 500 Title[calldelay]: Total Number of Calls Delayed PageTop[calldelay]: <H1>Total Number of Calls Delayed</H1> YLegend[calldelay]: Number of Calls ShortLegend[calldelay]: Calls Legend1[calldelay]: Number of Calls LegendI[calldelay]: In: LegendO[calldelay]: #--------------------- #Average Time in Queue Target[avetimqu]: `perl /var/log/consoles/trfk.pl avetimqu` Options[avetimqu]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[avetimqu]: 2000 Title[avetimqu]: Average Time in Queue PageTop[avetimqu]: <H1>Average Time in Queue</H1> YLegend[avetimqu]: Time in Second ShortLegend[avetimqu]: s Legend1[avetimqu]: Incoming Traffic in Second LegendI[avetimqu]: In: LegendO[avetimqu]: #--------------------- #Abandoned Calls Peg Count Target[abndcall]: `perl /var/log/consoles/trfk.pl abndcall` Options[abndcall]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[abndcall]: 500 Title[abndcall]: Total Number of Abandoned Calls PageTop[abndcall]: <H1>Total Number of Abandoned Calls</H1> YLegend[abndcall]: Number of Calls ShortLegend[abndcall]: Calls Legend1[abndcall]: Number of Calls LegendI[abndcall]: In: LegendO[abndcall]: #--------------------- #Average Wait Time of Abandons Target[avetim2abnd]: `perl /var/log/consoles/trfk.pl avetim2abnd` Options[avetim2abnd]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[avetim2abnd]: 2000 Title[avetim2abnd]: Average Wait Time of Abandoned Callers PageTop[avetim2abnd]: <H1>Average Wait Time of Abandoned Callers</H1> YLegend[avetim2abnd]: Time in Second ShortLegend[avetim2abnd]: s Legend1[avetim2abnd]: Incoming Traffic in Second LegendI[avetim2abnd]: In: LegendO[avetim2abnd]: #--------------------- #Peg Count - Internal Target[pegcntint]: `perl /var/log/consoles/trfk.pl pegcntint` Options[pegcntint]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[pegcntint]: 500 Title[pegcntint]: Total Number of Internal Calls PageTop[pegcntint]: <H1>Total Number of Internal Calls</H1> YLegend[pegcntint]: Number of Calls ShortLegend[pegcntint]: Calls Legend1[pegcntint]: Number of Calls LegendI[pegcntint]: In: LegendO[pegcntint]: #--------------------- #Total Time Spent - Internal Target[timint]: `perl /var/log/consoles/trfk.pl timint` Options[timint]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[timint]: 2000 Title[timint]: Total Times Spend on Internal Calls PageTop[timint]: <H1>Total Time Spent on Internal Calls</H1> YLegend[timint]: Time in Seconds ShortLegend[timint]: s Legend1[timint]: Time in Seconds LegendI[timint]: In: LegendO[timint]: #--------------------- #Peg Count - External Target[pegcntext]: `perl /var/log/consoles/trfk.pl pegcntext` Options[pegcntext]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[pegcntext]: 500 Title[pegcntext]: Total Number of External Calls PageTop[pegcntext]: <H1>Total Number of External Calls</H1> YLegend[pegcntext]: Number of Calls ShortLegend[pegcntext]: Calls Legend1[pegcntext]: Number of Calls LegendI[pegcntext]: In: LegendO[pegcntext]: #--------------------- #Total Time Spent - External Target[timext]: `perl /var/log/consoles/trfk.pl timext` Options[timext]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[timext]: 2000 Title[timext]: Total Time Spent on External Calls PageTop[timext]: <H1>Total Time Spent on External Calls</H1> YLegend[timext]: Time in Second ShortLegend[timext]: s Legend1[timext]: Time in Seconds LegendI[timext]: In: LegendO[timext]: #--------------------- #Total Time Console Attended Target[timatn]: `perl /var/log/consoles/trfk.pl timatn` Options[timatn]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[timatn]: 2000 Title[timatn]: Total Time Staffed PageTop[timatn]: <H1>Total Time Staffed</H1> YLegend[timatn]: Time in Second ShortLegend[timatn]: s Legend1[timatn]: Time in Seconds LegendI[timatn]: In: LegendO[timatn]: #--------------------- #Total Time Spent Servicing Calls Target[timser]: `perl /var/log/consoles/trfk.pl timser` Options[timser]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[timser]: 2000 Title[timser]: Total Time Spent Handling Calls PageTop[timser]: <H1>Total Time Spent Handling Calls</H1> YLegend[timser]: Time in Second ShortLegend[timser]: s Legend1[timser]: Time in Seconds LegendI[timser]: In: LegendO[timser]: #--------------------- #Number of Times All Attendant Loop Are Busy Target[loopbsy]: `perl /var/log/consoles/trfk.pl loopbsy` Options[loopbsy]: gauge, absolute, integer, growright, nopercent, noinfo MaxBytes[loopbsy]: 500 Title[loopbsy]: Number of Times All Attendant Loops Are Busy PageTop[loopbsy]: <H1>Number of Times All Attendant Loops Are Busy</H1> YLegend[loopbsy]: # Attn Loop Busy ShortLegend[loopbsy]: #LB Legend1[loopbsy]: Number of Times All Attendant Loops Are Busy LegendI[loopbsy]: In: LegendO[loopbsy]: #--------------------- Also with MRTG alone you can add this LegendO[loopbsy]: with no options to have it NOT display that line in the graph, how do you do this with now? |
|
| Author: | stevesh [ Thu Mar 03, 2005 4:28 pm ] |
| Post subject: | |
1) If you are using RRDTool (and therefore have the 'Logformat: rrdtool' in your .cfg files) there are NO .log, .html or .gif files created. Instead, you will get .rrd files created in the Workdir which contain the data. 2) Instead of creating graphs all the time, with routers2/rrdtool they are only created when you need to view them. If you view the /cgi-bin/routers2.cgi script through your web browser, it will create the graphs in the temporary /html/graphs directory as needed. 3) To suppress the 'Outbound' line, use 'Options[targetname]: noo' See the MRTG documentation for more Options and for details on how it interoperates with RRDTool, and the RRDTool documentation for how RRDTool works. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|