Thanks, below is the results.
[root@rtg ~]# fping -c 3 switch2.mydomain.com
switch2.mydomain.com : [0], 84 bytes, 2.27 ms (2.27 avg, 0% loss)
switch2.mydomain.com : [1], 84 bytes, 2.18 ms (2.22 avg, 0% loss)
switch2.mydomain.com : [2], 84 bytes, 2.26 ms (2.23 avg, 0% loss)
switch2.mydomain.com : xmt/rcv/%loss = 3/3/0%, min/avg/max = 2.18/2.23/2.27
[root@rtg observium]# ./add_device.php -d switch2.mydomain.com community
DEBUG!
Observium CE 0.15.6.6430
Add Device(s)
CMD[/opt/observium/scripts/distro]
EXITCODE[0]
RUNTIME[0.0135s]
STDOUT[
Linux|2.6.32-573.8.1.el6.x86_64|amd64|CentOS|6.7
]
CMD[/usr/bin/env python --version 2>&1]
EXITCODE[0]
RUNTIME[0.0044s]
STDOUT[
Python 2.6.6
]
SQL[SELECT version()]
RUNTIME[0.00016403s]
CMD[/usr/bin/snmpget --version 2>&1]
EXITCODE[0]
RUNTIME[0.0039s]
STDOUT[
NET-SNMP version: 5.5
]
CMD[/usr/bin/rrdtool --version |head -n1]
EXITCODE[0]
RUNTIME[0.025s]
STDOUT[
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker tobi@oetiker.ch
]
Software versions:
OS: Linux 2.6.32-573.8.1.el6.x86_64 [amd64] (CentOS 6.7)
PHP: 5.3.3
Python: Python 2.6.6
MySQL: 5.1.73
SNMP: NET-SNMP 5.5
RRDtool: 1.3.8
Try to add switch2.mydomain.com:
SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = 'switch2.mydomain.com']
RUNTIME[0.00029707s]
CMD[/usr/sbin/fping -t 500 -c 1 -q xxx.xxx.xxx.53 2>&1]
EXITCODE[0]
RUNTIME[0.0057s]
STDOUT[
xxx.xxx.xxx.53 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 2.25/2.25/2.25
]
SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = 'switch2.mydomain.com']
RUNTIME[0.00030303s]
CMD[/usr/sbin/fping -t 500 -c 1 -q xxx.xxx.xxx.53 2>&1]
EXITCODE[0]
RUNTIME[0.0133s]
STDOUT[
xxx.xxx.xxx.53 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 9.82/9.82/9.82
]
Trying v2c community community ...
SQL[SELECT `version` FROM `dbSchema`;]
RUNTIME[0.00022101s]
CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch2.mydomain.com':'161' sysObjectID.0 sysUpTime.0]
EXITCODE[1]
RUNTIME[6.0318s]
STDOUT[
]
STDERR[
Timeout: No Response from udp:switch2.mydomain.com:161.
]
SNMP_STATUS[FALSE]
No reply on community community using v2c.
Could not reach switch2.mydomain.com with given SNMP parameters using v2c.
SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = 'switch2.mydomain.com']
RUNTIME[0.00030494s]
CMD[/usr/sbin/fping -t 500 -c 1 -q xxx.xxx.xxx.53 2>&1]
EXITCODE[0]
RUNTIME[0.0059s]
STDOUT[
xxx.xxx.xxx.53 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 2.33/2.33/2.33
]
Trying v3 parameters observium/noAuthNoPriv ...
CMD[/usr/bin/snmpget -v3 -l 'noAuthNoPriv' -n "" -u observium -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch2.mydomain.com':'161' sysObjectID.0 sysUpTime.0]
EXITCODE[1]
RUNTIME[0.0161s]
STDOUT[
]
STDERR[
No log handling enabled - turning on stderr logging
snmpget: Unknown user name (Sub-id not found: (top) -> sysUpTime)
]
SNMP_STATUS[FALSE]
No reply on credentials observium/noAuthNoPriv using v3.
Could not reach switch2.mydomain.com with given SNMP parameters using v3.
SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = 'switch2.mydomain.com']
RUNTIME[0.00026298s]
CMD[/usr/sbin/fping -t 500 -c 1 -q xxx.xxx.xxx.53 2>&1]
EXITCODE[0]
RUNTIME[0.0092s]
STDOUT[
xxx.xxx.xxx.53 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 5.82/5.82/5.82
]
Trying v1 community community ...
CMD[/usr/bin/snmpget -v1 -c *** -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch2.mydomain.com':'161' sysObjectID.0 sysUpTime.0]
EXITCODE[1]
RUNTIME[6.0319s]
STDOUT[
]
STDERR[
Timeout: No Response from udp:switch2.mydomain.com:161.
]
SNMP_STATUS[FALSE]
No reply on community community using v1.
Could not reach switch2.mydomain.com with given SNMP parameters using v1.
Could not reach switch2.mydomain.com with given SNMP parameters using .
Devices failed: 1.
USAGE:
add_device.php <hostname> [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6]
add_device.php <hostname> [any|nanp|anp|ap] [v3] [user] [password] [enckey] [md5|sha] [aes|des] [port] [udp|udp6|tcp|tcp6]
add_device.php <filename>
EXAMPLE:
SNMPv1/2c: add_device.php <hostname> [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6]
SNMPv3 : Defaults : add_device.php <hostname> any v3 [user] [port] [udp|udp6|tcp|tcp6]
No Auth, No Priv : add_device.php <hostname> nanp v3 [user] [port] [udp|udp6|tcp|tcp6]
Auth, No Priv : add_device.php <hostname> anp v3 <user> <password> [md5|sha] [port] [udp|udp6|tcp|tcp6]
Auth, Priv : add_device.php <hostname> ap v3 <user> <password> <enckey> [md5|sha] [aes|des] [port] [udp|udp6|tcp|tcp6]
FILE : add_device.php <filename>
ADD FROM FILE:
To add multiple devices, create a file in which each line contains one device with or without options.
Format for device options, the same as specified in USAGE.
DEBUGGING OPTIONS:
-d Enable debugging output.
-dd More verbose debugging output.
-t Do not add device(s), only test auth options.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Mike Stupalov Sent: Tuesday, September 27, 2016 6:58 PM To: Observium Network Observation System observium@observium.org Subject: Re: [Observium] Can't Add Device
Try add device with debug flag, ie:
./add_device.php -d switch2.mydomain.com http://switch2.mydomain.com community
And attach output.
On Tue, Sep 27, 2016 at 8:01 PM, Talk Jesus <chad@talkjesus.com mailto:chad@talkjesus.com > wrote:
Yes, on the Observium server it is.
[root@rtg ~]# fping -c 3 switch2.mydomain.com http://switch2.mydomain.com
switch2.mydomain.com http://switch2.mydomain.com : [0], 84 bytes, 2.16 ms (2.16 avg, 0% loss)
switch2.mydomain.com http://switch2.mydomain.com : [1], 84 bytes, 2.37 ms (2.26 avg, 0% loss)
switch2.mydomain.com http://switch2.mydomain.com : [2], 84 bytes, 2.13 ms (2.22 avg, 0% loss)
switch2.mydomain.com http://switch2.mydomain.com : xmt/rcv/%loss = 3/3/0%, min/avg/max = 2.13/2.22/2.37
From: observium [mailto:observium-bounces@observium.org mailto:observium-bounces@observium.org ] On Behalf Of Mike Stupalov Sent: Tuesday, September 27, 2016 12:57 PM To: Observium Network Observation System <observium@observium.org mailto:observium@observium.org > Subject: Re: [Observium] Can't Add Device
fping installed?
what displayed by:
fping -c 3 switch2.mydomain.com http://switch2.mydomain.com