[mrtg] Monitor 2 Interfaces on a router

Edwin A. Epstein III ed at rhinobee.com
Thu Aug 30 21:39:03 CEST 2018


Hi Alex,

The target "ID" if you will, is in the brackets []. This has to be unique for the whole config file, and determines the file names of the output.

In my experience, you can make it what you want. I'm experimenting with custom IDs out of a database.

I bring this up because if the 172.31.254.254 graph works, then use that IP address instead.

Try changing "Target[10.0.0.1]: 45:public at 10.0.0.1" to "Target[172.31.254.254_45]: 45:public at 172.31.254.254".

You can also take the working graph and add _95 to the target ID. So "Target[172.31.254.254_95]: 95:public at 172.31.254.254"

Sincerely, 

Edwin A Epstein, III 
Rhinobee Internet Services 
707.237.7504 ext 209 
707.737.0288 Mobile

----- Original Message -----
From: "mrtg-request" <mrtg-request at lists.oetiker.ch>
To: "mrtg" <mrtg at lists.oetiker.ch>
Sent: Thursday, August 30, 2018 5:41:13 AM
Subject: mrtg Digest, Vol 131, Issue 2


The last two entries are the same devices.  I am using different vlan
gateways currently, but there are errors with the log pull for the vlan
interface that I do not get with the mgmt vlan ip.

#---------------------------------------------------------------
Target[10.0.0.1]: 45:public at 10.0.0.1

MaxBytes[10.0.0.1]: 12500000

Title[10.0.0.1]: HP 8212zl(10.0.0.1): ether0
PageTop[10.0.0.1]: <H1>Traffic Analysis for Port B22</H1>
  <TABLE>
 <TR><TD>System:</TD><TD> MS Core </TD></TR>
 <TR><TD>Maintainer:</TD><TD>L2 to STEM</TD></TR>
 <TR><TD>Interface:</TD><TD>SFP A1</TD></TR>
 <TR><TD>IP:</TD><TD>sample-device(10.0.0.1)</TD></TR>
 <TR><TD>Max Speed:</TD>
 <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
 </TABLE>

#---------------------------------------------------------------
Target[172.31.254.254]: 95:public at 172.31.254.254

MaxBytes[172.31.254.254]: 12500000

Title[172.31.254.254]: HP 8212zl(172.31.254.254): ether0
PageTop[172.31.254.254]: <H1>Traffic Analysis for Port D23</H1>
  <TABLE>
 <TR><TD>System:</TD><TD> MS Core </TD></TR>
 <TR><TD>Maintainer:</TD><TD>Physical Phone</TD></TR>
 <TR><TD>Interface:</TD><TD>D23</TD></TR>
 <TR><TD>IP:</TD><TD>MS Core(172.31.254.254)</TD></TR>
 <TR><TD>Max Speed:</TD>
 <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
 </TABLE>

#---------------------------------------------------------------

Tx,

Alex Paradissis
System and Network Administrator
MICDS

(314)995-7479


On Wed, Aug 29, 2018 at 3:55 PM Walter Harms <wharms at deltapolice.ca> wrote:

> Do you have different names like this example for ports 1 and 2? These
> have to be different.
>
>
>
> Target[switch_port_01_in]:
>
> Target[switch_port_02_in]:
>
>
>
> Maybe you can post your config file?
>
>
>
> Walter
>
>
>
> *From:* mrtg [mailto:mrtg-bounces+wharms=deltapolice.ca at lists.oetiker.ch] *On
> Behalf Of *Alex Paradissis
> *Sent:* Wednesday, August 29, 2018 1:29 PM
> *To:* mrtg at lists.oetiker.ch
> *Subject:* [mrtg] Monitor 2 Interfaces on a router
>
>
>
> All,
>
>   I want to monitor 2 different interfaces on the same router.  When I
> added a second section in the MRTG config file, and ran mrtg.cfg, I got a
> error saying duplicate definition found for target.  Any suggestions on a
> way around that?
>
>
> Tx,
>
> Alex Paradissis
>
> System and Network Administrator
>
> MICDS
>
> (314)995-7479
> This transmission may contain confidential or privileged communications
> and the sender does not waive any related rights and obligations. If you
> have any reason to believe that you are not the intended recipient or that
> you have received this in error, you must immediately destroy it.
> Unauthorized copying or distribution of any information herein is strictly
> prohibited and may constitute a criminal offence, a breach of Provincial or
> Federal privacy laws, or may otherwise result in legal sanctions. We ask
> that you notify the Delta Police Department immediately of any transmission
> received in error, by reply email to the sender. Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20180830/02d54f0e/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 30 Aug 2018 08:41:06 -0400
From: "Wm. Josiah Erikson" <wjerikson at hampshire.edu>
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Monitor 2 Interfaces on a router
Message-ID: <965709b9-22e0-4a75-4306-12f6ce0d66b5 at hampshire.edu>
Content-Type: text/plain; charset="utf-8"

I would point cfgmaker at it and see what you get

cfgmaker public at 10.0.0.1

That'll tell you how to specify the interfaces. You need an underscore
and then interface label for each target.

??? -Josiah



On 8/30/18 8:26 AM, Alex Paradissis wrote:
> The last two entries are the same devices.? I am using different vlan
> gateways currently, but there are errors with the log pull for the
> vlan interface that I do not get with the mgmt vlan ip.
>
> #---------------------------------------------------------------
> Target[10.0.0.1]: 45:public at 10.0.0.1 <mailto:45%3Apublic at 10.0.0.1>
>
> MaxBytes[10.0.0.1]: 12500000
>
> Title[10.0.0.1]: HP 8212zl(10.0.0.1): ether0
> PageTop[10.0.0.1]: <H1>Traffic Analysis for Port B22</H1>
> ? <TABLE>
> ?<TR><TD>System:</TD><TD> MS Core </TD></TR>
> ?<TR><TD>Maintainer:</TD><TD>L2 to STEM</TD></TR>
> ?<TR><TD>Interface:</TD><TD>SFP A1</TD></TR>
> ?<TR><TD>IP:</TD><TD>sample-device(10.0.0.1)</TD></TR>
> ?<TR><TD>Max Speed:</TD>
> ?<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
> ?</TABLE>
>
> #---------------------------------------------------------------
> Target[172.31.254.254]: 95:public at 172.31.254.254
> <mailto:95%3Apublic at 172.31.254.254>
>
> MaxBytes[172.31.254.254]: 12500000
>
> Title[172.31.254.254]: HP 8212zl(172.31.254.254): ether0
> PageTop[172.31.254.254]: <H1>Traffic Analysis for Port D23</H1>
> ? <TABLE>
> ?<TR><TD>System:</TD><TD> MS Core </TD></TR>
> ?<TR><TD>Maintainer:</TD><TD>Physical Phone</TD></TR>
> ?<TR><TD>Interface:</TD><TD>D23</TD></TR>
> ?<TR><TD>IP:</TD><TD>MS Core(172.31.254.254)</TD></TR>
> ?<TR><TD>Max Speed:</TD>
> ?<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
> ?</TABLE>
>
> #---------------------------------------------------------------
>
> Tx,
>
> Alex Paradissis
> System and Network Administrator
> MICDS
>
> (314)995-7479
>
>
> On Wed, Aug 29, 2018 at 3:55 PM Walter Harms <wharms at deltapolice.ca
> <mailto:wharms at deltapolice.ca>> wrote:
>
>     Do you have different names like this example for ports 1 and 2?
>     These have to be different.
>
>     ?
>
>     Target[switch_port_01_in]:
>
>     Target[switch_port_02_in]:
>
>     ?
>
>     Maybe you can post your config file?
>
>     ?
>
>     Walter
>
>     ?
>
>     *From:*mrtg [mailto:mrtg-bounces+wharms
>     <mailto:mrtg-bounces%2Bwharms>=deltapolice.ca at lists.oetiker.ch
>     <mailto:deltapolice.ca at lists.oetiker.ch>] *On Behalf Of *Alex
>     Paradissis
>     *Sent:* Wednesday, August 29, 2018 1:29 PM
>     *To:* mrtg at lists.oetiker.ch <mailto:mrtg at lists.oetiker.ch>
>     *Subject:* [mrtg] Monitor 2 Interfaces on a router
>
>     ?
>
>     All,
>
>     ? I want to monitor 2 different interfaces on the same router.?
>     When I added a second section in the MRTG config file, and ran
>     mrtg.cfg, I got a error saying duplicate definition found for
>     target.? Any suggestions on a way around that?
>
>
>     Tx,
>
>     Alex Paradissis
>
>     System and Network Administrator
>
>     MICDS
>
>     (314)995-7479
>
>     This transmission may contain confidential or privileged
>     communications and the sender does not waive any related rights
>     and obligations. If you have any reason to believe that you are
>     not the intended recipient or that you have received this in
>     error, you must immediately destroy it. Unauthorized copying or
>     distribution of any information herein is strictly prohibited and
>     may constitute a criminal offence, a breach of Provincial or
>     Federal privacy laws, or may otherwise result in legal sanctions.
>     We ask that you notify the Delta Police Department immediately of
>     any transmission received in error, by reply email to the sender.
>     Thank you.
>
>
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

-- 
Wm. Josiah Erikson
Associate Director of IT, Infrastructure Group
Network Engineer
System Administrator, School of CS
Hampshire College
Amherst, MA 01002
(413) 559-6091
pronouns: he/him/his

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20180830/7ff86e7e/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


------------------------------

End of mrtg Digest, Vol 131, Issue 2
************************************
(null)



More information about the mrtg mailing list