You have syntax errors. In the first example, you need to have spaces around the '*' else there will be an error, and it should be AFTER ALL of the existing definition Target[genoa.err]: ifInErrors.1&ifOutErrors.1:redr...@genoa: * 300
In the second, you have a curly bracket to close where it should be a square bracket, hence the syntax error. ERROR: CFG Error Unknown Option "factor[genoa.err}" on line 41 or above. Steve ________________________________________ From: Arvon Griffiths [[email protected]] Sent: Tuesday, 13 April 2010 10:02 a.m. To: Steve Shipway; [email protected] Subject: RE: [mrtg] Graphing input errors... Hi Steve, I hate to be a pain but, I'm getting errors... When I use '*300' I get: ERROR: Target[genoa.err][_IN_] ' $target->[0]{$mode} *300:' (eval): syntax error at (eval 6) line 1, near "300:" Original target line: Target[genoa.err]: ifInErrors.1&ifOutErrors.1:redr...@genoa: Modified target line: Target[genoa.err]: ifInErrors.1&ifOutErrors.1:redr...@genoa*300: So, I tried Factor[], I added: Factor[genoa.err]: 300 and now I get: ERROR: CFG Error Unknown Option "factor[genoa.err}" on line 41 or above. If it matters, I'm running mrtg version 2.10.13 Thanks >>> Steve Shipway <[email protected]> 4/12/2010 3:29 PM >>> >1) Yes, 'noo' will remove the line and the legend. > >2) You should remove the 'perminute' if you're multiplying by 300 to get 'per >5min' as it is no longer relevant. You should probably also >replace your >Y-Axis label or legend to indicate the values are a 5min count. >Target[$target_name]: >ifInErrors.$if_index&ifOutErrors.$if_index:$router_connect * 300 >or >Factor[$target_name]: 300 > >Steve ________________________________________ >>1) My existing Options[] line says: >> Options[]: growright,nopercent,perminute,unknaszero >>...will the noo remove the Output Legend also? >> >>2) The Target[] line (in the interfaces file) says: >> Target[$target_name]: >> ifInErrors.$if_index&ifOutErrors.$if_index:$router_connect >> >> a) With the 'perminute' option above, would the '* 300' work? >> b) Where would I add the '* 300'? >>> 1) Just add the 'noo' option to the Options[] line >>> 2) Multiply Target by 300 should do it (either use Factor[] or '* 300' in >>> the Target line) >>>> 1) only graph ifInErrors and NOT ifOutErrors? >>>> 2) graph actual 5min error count and NOT a 5min average? =================== Please use caution when driving through work zones. Find more information about work zone safety at www.txdot.gov/safety/tips/work_zones.htm _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
