> Hello. On my server I have 2 ip in one subnet (192.168.1.0/24 for example
> and ips: 192.168.1.21 and 192.168.1.23).
> Can I set in conf or in another place what IP must be used for queries by
> mrtg?

Yes, you can - but you need to make a bit of a complex Target definition.

For example, if you didn't care about the SNMP options, you could use:

Target[xxxx]: 0:commun...@router

Then, if you want to use SNMPv2 it would be:

Target[xxxx]: 0:commun...@router:::::2

Or, to specify the source IP:

Target[xxxx]: 0:commun...@router:!192.168.1.21

The full syntax is:

Target[targetname]:
interface:commun...@device:port!localaddress!localport:timeout:retries:backo
ff:snmpversion|postprocesssubroutine

Where the options after 'device' can be omitted, and 'interface' can be
specified in many different ways.  See the manual pages to be overwhelmed...

Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to