[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - User Defined Graphs

Cheshire Cat Computing

Software support and information
It is currently Mon Nov 10, 2025 12:25 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: User Defined Graphs
PostPosted: Fri Jan 30, 2009 11:54 am 
Offline
User

Joined: Fri Jan 30, 2009 11:48 am
Posts: 2
Ok, so after browsing throught the book and looking at the online documentation, I finally figured out how to implement Usr Defined Graphs. I have a question about targets, though. Do all targets have to be in the same configuration file? I would like to create a graph that shows totals for all ingress/egress Internet traffic, but the ports are on different devices for redundancy purposes. Just looking at the graph definitions, I'm guessing they do have to be in the same config file. Is this correct?

_________________
--Sean


Top
 Profile Send private message  
 
 Post subject: Re: User Defined Graphs
PostPosted: Fri Jan 30, 2009 2:10 pm 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
scheesman , See the attched .cfg.txt file , This NOT to be put in crantab or to allow mtrg daemon to run this but must be available to router2.cgi .
note the include's .
also note the MANY ': No's .
I've added a screen capture of the output to help out .
If I miss anything you'll need to know I'm sure Steve will pipe up
Hth , JimL

.[attachment=1]NO-CRON-local-Branchs-BW.cfg.txt[/attachment][attachment=0]NO-CRON-local-Branchs-BW.PNG[/attachment]


Top
 Profile Send private message  
 
 Post subject: Re: User Defined Graphs
PostPosted: Fri Jan 30, 2009 2:41 pm 
Offline
User

Joined: Fri Jan 30, 2009 11:48 am
Posts: 2
Thanks for the config sample! That kind of makes sense, but I never would have thought about doing it that way. I assume that in this manner, this config needs to be saved in a separate file and processed as normal, and will show up as a separate target?

Sean

_________________
--Sean


Top
 Profile Send private message  
 
 Post subject: Re: User Defined Graphs
PostPosted: Sat Jan 31, 2009 12:15 pm 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
Hello scheesman ,
No you do not want this to be processed by mtrg .
This will only be seen by routers.cgi , This will process the 'include'd configs & then create the configured graphs on access .
Hth , JimL


Top
 Profile Send private message  
 
 Post subject: Re: User Defined Graphs
PostPosted: Mon Feb 02, 2009 11:49 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
What he said.

The way we do it here is that we create *.cfg files (processed by MRTG) and *.conf files (for Routers2 only) and set the routers2 directive 'cfgfiles = *.cfg *.conf' to get both sets.

Then, some more complex userdefined graphs over multiple devices can be put into a .conf file, using Include: to include the individual devices' configurations, putting before them 'routers.cgi*InMenu[_]:no' and 'routers.cgi*InSummary[_]:no' to conceal the various components from the menus. Then follows the required routers.cgi*Graph directives and so on.

You can get odd behaviour with defaults, though, as the default targets are processed after each FILE but remain in force globally. Therefore, if you want the defaults to affect the Targets defined in an included file, you need to define them BEFORE including, not after.

The parctical upshot is a new entry in the Devices menu, with Targets corresponding to the newlydefined UserDef graphs.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group