I've installed 1.2.10 on Centos, setup up with Centos itself, and with WAG54G ADSL router, working good
as the router is pretty ancient, I was testing TP Link Archer VR1600v AC1600, enabled SNMP in config, can snmpwalk it, BUT, Cacti says:
Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known
or, with both ping/snmp
SNMP Information
Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known1
Ping Results
ICMP Ping timed out
BTW, I've put 1/2/3 ahead of /span in api device.php as per other thread - it now has '1' in above error ? "known1"
(viewtopic.php?p=270929)
SNMP Information
Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known1
what am I doing wrong ?
# snmpwalk -v2c -c public 192.168.1.5 system.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2612500) 7:15:25.00
# snmpwalk -v2c -c public 192.168.1.5 > archer
[root@c7 snmp]# head archer
SNMPv2-MIB::sysDescr.0 = STRING: 0.1.0 0.9.1 v5006.0 Build 180828 Rel.56416n
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.16972
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2734600) 7:35:46.00
SNMPv2-MIB::sysContact.0 = STRING: unknown
SNMPv2-MIB::sysName.0 = STRING: Archer VR1600v
SNMPv2-MIB::sysLocation.0 = STRING: Abbotsford
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
[root@c7 snmp]# tail archer
UDP-MIB::udpLocalPort.192.168.1.255.138 = INTEGER: 138
SNMPv2-MIB::snmpInPkts.0 = Counter32: 3519
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
[root@c7 snmp]#
TPLink Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Moderators: Developers, Moderators
Re: TPLink Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not k
You likely entered a hostname for the description and not an IP address and that hostname is not resolvable via DNS. So, just replace the hostname with a legit IP address.
Before history, there was a paradise, now dust.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: TPLink Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not k
Please update lib/html_form.php and sites.php from the 1.2.x branch. All but issue 1 should be addressed. Issue #1 going to take a bit more work.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: TPLink Session SNMP error - SNMP::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not k
exactly.... oops, what a nincomp the OP is....
sorry, folks, apologies, you should ban me from this forum for being such an idiot (but, please don't..)
I've entered host ip as description and description as hostname....
sorry.. thanks for prompt replies, I went to do a screenshot to show that I don't use hostnames only IPs and...
all is working as it should
Who is online
Users browsing this forum: No registered users and 4 guests