MRTG / Routers2 Threshold checking

5 messages Options
Embed this post
Permalink
Patrick Topping-2 () MRTG / Routers2 Threshold checking
Reply Threaded More More options
Print post
Permalink
I am looking to set up MRTG to check thresholds for certain server
switch ports and also for WAN link.  Is there an easy way to do this
with routers2 and MRTG??  My concern is that once I updated the .cfg
files, everytime I run cfgmaker that it will over-write my Thresh*
configs.

Any help would be greatly appreciated.

Thanks.

-Patrick



_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
S Shipway () Re: MRTG / Routers2 Threshold checking
Reply Threaded More More options
Print post
Permalink
> I am looking to set up MRTG to check thresholds for certain server
> switch ports and also for WAN link.  Is there an easy way to do this
> with routers2 and MRTG??  My concern is that once I updated the .cfg
> files, everytime I run cfgmaker that it will over-write my Thresh*
> configs.

Threshold checking is done entirely by MRTG, not Routers2.  However, Routers2 will display the thresholds on the graphs if they are defined.

You could put the various global threshold configurations (mail server, etc) into a separate .conf file and then use Include: to include it; the Include: line can be specified in a --global parameter passed ot cfgmaker so it doesn't get overwritten.

If your thresholds are percentages of bandwidth then you can define them with a global default [_] in the included file, which will work.  If, however, you want to set them explicitly for each Target, you'll need to put them into a separate .conf file and then again use Include: to include it, and put this directive in a --global you pass to cfgmaker to prevent overwriting.  This hack will work with MRTG but Routers2 will probably not detect the threshold values (as they are in a separate file) and so not display them.

Steve

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
McDonald, Dan () Re: MRTG / Routers2 Threshold checking
Reply Threaded More More options
Print post
Permalink
On Fri, 2009-10-09 at 09:40 +1300, Steve Shipway wrote:
> > I am looking to set up MRTG to check thresholds for certain server
> > switch ports and also for WAN link.  Is there an easy way to do this
> > with routers2 and MRTG??  My concern is that once I updated the .cfg
> > files, everytime I run cfgmaker that it will over-write my Thresh*
> > configs.

> If your thresholds are percentages of bandwidth then you can define
> them with a global default [_] in the included file, which will work.
> If, however, you want to set them explicitly for each Target, you'll
> need to put them into a separate .conf file and then again use
> Include: to include it, and put this directive in a --global you pass
> to cfgmaker to prevent overwriting.  This hack will work with MRTG but
> Routers2 will probably not detect the threshold values (as they are in
> a separate file) and so not display them.

Or, you can write a template to generate your threshold values.
Templates are just perl scripts, so you can get information to populate
your config using anything that perl can do - maybe you want to grep the
old config file and duplicate those lines?  Or a database dip, or
calculate the 95% percentile for the past year and alert when you exceed
it, or ....



--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com


_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

signature.asc (204 bytes) Download Attachment
Gayan S. Amarasiri () CFGMAKER command
Reply Threaded More More options
Print post
Permalink
In reply to this post by S Shipway
Hi,

I am using cfgmaker command to monitor interface traffic in Cisco switches. I need to know that can I limit the interface speed to 10MBps for all interfaces using the global option in cfgmaker command. I used following command but fail to achieve what I want.

cfgmaker --global "WorkDir: /var/www/html/switch/" --global "Unscaled[_]: ymwd" --global "MaxBytes[_]: 20" --global "WithPeak[_]: ywm" --global "Options[_]: growright,gauge,nopercent" --ifref=descr --ifdesc=alias --output /etc/mrtg/switch.cfg [hidden email]

Thanks & BR,
Gayan



This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
McDonald, Dan () Re: CFGMAKER command
Reply Threaded More More options
Print post
Permalink
On Wed, 2009-10-21 at 16:31 +0530, Gayan S. Amarasiri wrote:
> Hi,
>
> I am using cfgmaker command to monitor interface traffic in Cisco
> switches. I need to know that can I limit the interface speed to
> 10MBps for all interfaces using the global option in cfgmaker command.
> I used following command but fail to achieve what I want.

MaxBytes of 20 would not be right - that's 160bps (110 baud modem,
maybe?  or a 300 baud modem with lots of errors....)


But you can try:
--no-down --zero-speed=10000000

Or create a template with MaxBytes hard coded to 1250000
>
> cfgmaker --global "WorkDir: /var/www/html/switch/" --global
> "Unscaled[_]: ymwd" --global "MaxBytes[_]: 20" --global "WithPeak[_]:
> ywm" --global "Options[_]: growright,gauge,nopercent" --ifref=descr
> --ifdesc=alias --output /etc/mrtg/switch.cfg [hidden email]

--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com


_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

signature.asc (204 bytes) Download Attachment