Open vipera7 opened 5 years ago
I can successfully use snmpwalk -v2c -c mycom 51.15.10.111 system
and get information from my remote server. I opened a topic on https://serverfault.com/questions/963300/how-to-use-snmp-remotly-with-mrtg
I'm again stuck when I want to generate my mrtg.cfg file with cfgmaker
.
here is the full command I'm using cfgmaker --snmp-options=:::::2 --ifref=descr --ifdesc=descr commpass@58.151.151.118 > /etc/mrtg/mrtg.cfg
Output :
--base: Get Device Info on commpass@58.151.151.118:::::2
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--snpd: commpass@58.151.151.118:::::2 -> 1 -> ifIndex = 1
--snpd: commpass@58.151.151.118:::::2 -> 2 -> ifIndex = 2
--snpd: commpass@58.151.151.118:::::2 -> 4 -> ifIndex = 4
--base: Walking ifType
--snpd: commpass@58.151.151.118:::::2 -> 1 -> ifType = 24
--snpd: commpass@58.151.151.118:::::2 -> 2 -> ifType = 6
--snpd: commpass@58.151.151.118:::::2 -> 4 -> ifType = 1
--base: Walking ifAdminStatus
--snpd: commpass@58.151.151.118:::::2 -> 1 -> ifAdminStatus = 1
--snpd: commpass@58.151.151.118:::::2 -> 2 -> ifAdminStatus = 1
--snpd: commpass@58.151.151.118:::::2 -> 4 -> ifAdminStatus = 1
--base: Walking ifOperStatus
--snpd: commpass@58.151.151.118:::::2 -> 1 -> ifOperStatus = 1
--snpd: commpass@58.151.151.118:::::2 -> 2 -> ifOperStatus = 1
--snpd: commpass@58.151.151.118:::::2 -> 4 -> ifOperStatus = 1
--base: Walking ifMtu
--snpd: commpass@58.151.151.118:::::2 -> 1 -> ifMtu = 65536
--snpd: commpass@58.151.151.118:::::2 -> 2 -> ifMtu = 1500
--snpd: commpass@58.151.151.118:::::2 -> 4 -> ifMtu = 1500
--base: Walking ifSpeed
--snpd: @ifSpeed = 1:10000000 2:0 4:0
--base: Walking ifHighSpeed
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHighSpeed.1 -> 10 Mb/s
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHCInOctets.1 -> 1674
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHighSpeed.2 -> unknown Mb/s
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHCInOctets.2 -> 530576416
--base: check for HighspeedCounters failed ... Dropping back to V1
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHighSpeed.4 -> unknown Mb/s
--base: snmpget commpass@58.151.151.118:::::2:v4only for ifHCInOctets.4 -> 73066533
--base: check for HighspeedCounters failed ... Dropping back to V1
The main error (I think)
--base: check for HighspeedCounters failed ... Dropping back to V1
Here is my question about this problem on https://serverfault.com/questions/963425/getting-check-for-highspeedcounters-failed-dropping-back-to-v1-when-using
I'm using version 2.17.4 of MRTG
Did you try with out --snmp-options=:::::2
I'm trying to setup a client mrtg to fetch several servers informations. I don't want to install a web server on the remote server. Is there some official doc to retreive server information remotly ?
I tried to change the file (/etc/snmp/snmpd.conf) :
Here is a representive architecture of what I expect to do :
But it end up with an error. I'm using CentOS 7 as the operating system. Thank you for any suggestion
EDIT :
I also have installed snmp on the client machine.
I tried to configure the file on the remote server (/etc/snmp/snmpd.conf) :
The main changes :
File :
/etc/sysconfig/snmpd
Command:
ss -ulnp
From the client machine I get a timeout
If I run it from the server everything is ok