:/opt/observium # ./poller.php -d -m os -h extreme690
DEBUG!

CMD[/usr/bin/svn info /opt/observium]

CMD EXITCODE[0]
CMD RUNTIME[0.0295s]
STDOUT[
Path: .
Working Copy Root Path: /opt/observium
URL: http://svn.observium.org/svn/observium/trunk
Relative URL: ^/observium/trunk
Repository Root: http://svn.observium.org/svn
Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
Revision: 9435
Node Kind: directory
Schedule: normal
Last Changed Author: mike
Last Changed Rev: 9435
Last Changed Date: 2018-09-13 00:36:39 +0200 (Thu, 13 Sep 2018)

]

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';]
SQL RUNTIME[0.00026298s]

SQL[SELECT @@SESSION.sql_mode;]
SQL RUNTIME[0.00029111s]

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';]
SQL RUNTIME[0.00020909s]

SQL[SELECT * FROM `config`]
SQL RUNTIME[0.00022817s]

CMD[/bin/hostname -f]

CMD EXITCODE[0]
CMD RUNTIME[0.0015s]
STDOUT[
nettools.
]

  ___   _                              _
 / _ \ | |__   ___   ___  _ __ __   __(_) _   _  _ __ ___
| | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \
| |_| || |_) |\__ \|  __/| |    \ V / | || |_| || | | | | |
 \___/ |_.__/ |___/ \___||_|     \_/  |_| \__,_||_| |_| |_|
                           Observium Professional 18.9.9435
                                   http://www.observium.org


SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_ver';]
SQL RUNTIME[0.00044799s]

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev';]
SQL RUNTIME[0.00032687s]

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev_date';]
SQL RUNTIME[0.00034809s]

CMD[/opt/observium/scripts/distro]

CMD EXITCODE[0]
CMD RUNTIME[0.0979s]
STDOUT[
Linux|4.9.0-4-amd64|amd64|Debian|9.2|bochs|
]

CMD[/usr/bin/env python --version 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.0043s]
STDOUT[
Python 2.7.13
]

SQL[SELECT version();]
SQL RUNTIME[0.00021696s]

CMD[/usr/bin/snmpget --version 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.0035s]
STDOUT[
NET-SNMP version: 5.7.3
]

CMD[/usr/bin/rrdtool --version | head -n1]

CMD EXITCODE[0]
CMD RUNTIME[0.0135s]
STDOUT[
RRDtool 1.6.0  Copyright by Tobias Oetiker <tobi@oetiker.ch>
]

CMD[/usr/bin/rrdcached -h | head -n1]

CMD EXITCODE[0]
CMD RUNTIME[0.0086s]
STDOUT[
RRDCacheD 1.6.0
]

CMD[/usr/bin/fping -v 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.0025s]
STDOUT[
/usr/bin/fping: Version 3.15
/usr/bin/fping: comments to david@schweikert.ch
]

CMD[/usr/sbin/apache2 -v | awk '/Server version:/ {print $3}']

CMD EXITCODE[0]
CMD RUNTIME[0.0254s]
STDOUT[
Apache/2.4.25
]

CMD[date "+%:z"]

CMD EXITCODE[0]
CMD RUNTIME[0.0022s]
CMD EXITDELAY[10ms]
STDOUT[
+02:00
]

SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
SQL RUNTIME[0.00029802s]

SQL[SELECT @@SESSION.sql_mode;]
SQL RUNTIME[0.00017500s]

SQL[SHOW VARIABLES LIKE 'character_set_connection']
SQL RUNTIME[0.00099707s]

#####  Software versions  #####

 o OS                   Linux 4.9.0-4-amd64 [amd64] (Debian 9.2)
 o Apache               2.4.25
 o PHP                  7.0.19-1 (OPcache: ENABLED)
 o Python               2.7.13
 o MySQL                10.1.26-MariaDB-0+deb9u1 (extension: mysqli 5.0.12-dev)
 o SNMP                 NET-SNMP 5.7.3
 o RRDtool              1.6.0 (rrdcached 1.6.0: unix:/var/run/rrdcached.sock)
 o Fping                3.15 (IPv4 and IPv6)

#####  Memory Limit  #####

 o PHP                  Unlimited

#####  MySQL mode  #####

 o MySQL                NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

#####  Charset info  #####

 o PHP                  UTF-8
 o MySQL                utf8

#####  Timezones info  #####

 o Date                 Thursday, 13-Sep-18 10:41:51 CEST
 o PHP                  +02:00
 o MySQL                +02:00


SQL[SELECT * FROM `alerts_maint` WHERE `maint_start` < '1536828111' AND `maint_end` > '1536828111']
SQL RUNTIME[0.00043988s]
#####  Starting polling run at 2018-09-13 10:41:51  #####


SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'extreme690' ORDER BY `device_id` ASC]
SQL RUNTIME[0.00067306s]

SQL[SELECT * FROM `devices` WHERE `device_id` = '632']
SQL RUNTIME[0.00056005s]

SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '632']
SQL RUNTIME[0.00017500s]

SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'poller.php' AND `device_id` = '632']
SQL RUNTIME[0.00038505s]

SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`)  VALUES ('4823','poller.php','9042','0','php ./poller.php -d -m os -h extreme690','1536828111','632')]
SQL RUNTIME[0.00083399s]

SQL[SELECT * FROM `alert_tests` WHERE 1]
SQL RUNTIME[0.00016308s]
Cached 13 alert rules.

SQL[SELECT * FROM  `alert_table` WHERE `device_id` = '632']
SQL RUNTIME[0.00039101s]
#####  extreme690 [632]  #####

 o OS                   xos
 o OS Group             extremeware
 o Last poll duration   6.20 seconds
 o Last Polled          2018-09-13 10:38:32
 o SNMP Version         v2c

CMD[/usr/bin/fping -t 1000 -c 1 -q 172.19.15.224 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.0027s]
STDOUT[
172.19.15.224 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.73/0.73/0.73
]

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' sysObjectID.0 sysUpTime.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0077s]
STDOUT[
sysObjectID.0 = enterprises.1916.2.93
sysUpTime.0 = 8:20:39:32.00
]
SNMP STATUS[TRUE]
 o Device status        Device is reachable by PING (0.73ms) and SNMP (7.65ms)
RRD /opt/observium/rrd/extreme690/status.rrd already exists - no need to create.

RRD CMD[update extreme690/status.rrd N:1 --daemon unix:/var/run/rrdcached.sock]
RRD RUNTIME[0.0011s]
RRD STDOUT[OK u:0.01 s:0.00 r:0.01]
RRD_STATUS[TRUE]

RRD /opt/observium/rrd/extreme690/ping.rrd already exists - no need to create.

RRD CMD[update extreme690/ping.rrd N:0.73 --daemon unix:/var/run/rrdcached.sock]
RRD RUNTIME[0.0011s]
RRD STDOUT[OK u:0.01 s:0.00 r:0.01]
RRD_STATUS[TRUE]

RRD /opt/observium/rrd/extreme690/ping_snmp.rrd already exists - no need to create.

RRD CMD[update extreme690/ping_snmp.rrd N:7.65 --daemon unix:/var/run/rrdcached.sock]
RRD RUNTIME[0.0012s]
RRD STDOUT[OK u:0.01 s:0.00 r:0.01]
RRD_STATUS[TRUE]


SQL[SELECT * FROM `device_graphs` WHERE `device_id` = '632']
SQL RUNTIME[0.00018287s]
 o Modules Enabled      system, os


including: includes/polling/system.inc.php
#####  Module Start: system  #####


SQL[SELECT `attrib_value` FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '632' AND `attrib_type` = 'sysORID']
SQL RUNTIME[0.00018001s]

SQL[SELECT `attrib_value` FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '632' AND `attrib_type` = 'sysORID']
SQL RUNTIME[0.00010490s]

SQL[SELECT * FROM `observium_attribs`]
SQL RUNTIME[0.00013614s]
 o SNMPv2-MIB           
CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' sysUpTime.0 sysLocation.0 sysContact.0 sysName.0]

CMD EXITCODE[0]
CMD RUNTIME[0.008s]
STDOUT[
sysUpTime.0 = 8:20:39:32.00
sysLocation.0 = SPARE
sysContact.0 = ESRF - Network
sysName.0 = extreme690
]
SNMP STATUS[TRUE]

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' sysDescr.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0075s]
STDOUT[
ExtremeXOS (Stack) version 22.5.1.7 22.5.1.7 by release-manager on Tue May 22 11:25:12 EDT 2018
]
SNMP STATUS[TRUE]

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' sysObjectID.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0075s]
STDOUT[
.1.3.6.1.4.1.1916.2.93
]
SNMP STATUS[TRUE]

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUv -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' snmpEngineID.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0086s]
STDOUT[
"80 00 07 7C 03 00 04 96 A4 E1 E2 "
]
SNMP STATUS[TRUE]


CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUv -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' snmpEngineTime.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0059s]
STDOUT[
765422
]
SNMP STATUS[TRUE]
Using SNMP Agent sysUpTime (765572 sec. => 8 days, 20h 39m 32s)
RRD /opt/observium/rrd/extreme690/uptime.rrd already exists - no need to create.

RRD CMD[update extreme690/uptime.rrd N:765572 --daemon unix:/var/run/rrdcached.sock]
RRD RUNTIME[0.0011s]
RRD STDOUT[OK u:0.01 s:0.00 r:0.07]
RRD_STATUS[TRUE]

 o Uptime               8 days, 20h 39m 32s
 o Last reboot          2018-09-04 14:02:28


  /opt/observium/includes/polling/system.inc.php:282 
array(
  [use]            => string(9) "sysUpTime"
  [sysUpTime]      => int(765572)
  [snmpEngineTime] => int(765422)
  [uptime]         => int(765572)
  [formatted]      => string(19) "8 days, 20h 39m 32s"
  [message]        => string(26) "Using SNMP Agent sysUpTime"
  [previous]       => string(6) "765367"
  [diff]           => int(-205)
  [last_rebooted]  => string(10) "1536062548"
  [rebooted]       => int(0)
)

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUsn -m UCD-SNMP-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extreme690':'161' .1.3.6.1.4.1.2021.10.1.5.1 .1.3.6.1.4.1.2021.10.1.5.2 .1.3.6.1.4.1.2021.10.1.5.3]

CMD EXITCODE[0]
CMD RUNTIME[0.0074s]
STDOUT[
.1.3.6.1.4.1.2021.10.1.5.1 = No Such Object available on this agent at this OID
.1.3.6.1.4.1.2021.10.1.5.2 = No Such Object available on this agent at this OID
.1.3.6.1.4.1.2021.10.1.5.3 = No Such Object available on this agent at this OID
]
SNMP ERROR[#1000 - Failed response]

SQL[SELECT * FROM `snmp_errors` WHERE `device_id` = '632' AND `error_code` = '1000' AND `snmp_cmd` = 'snmpget' AND `mib` = 'UCD-SNMP-MIB' AND `oid` = '.1.3.6.1.4.1.2021.10.1.5.1 .1.3.6.1.4.1.2021.10.1.5.2 .1.3.6.1.4.1.2021.10.1.5.3';]
SQL RUNTIME[0.00183201s]

SQL[UPDATE `snmp_errors` set `error_count` ='2569',`updated` ='1536828111' WHERE `error_id` = '37084']
SQL RUNTIME[0.00136995s]
SNMP STATUS[FALSE]
 o sysObjectID          .1.3.6.1.4.1.1916.2.93
 o snmpEngineID         8000077C03000496A4E1E2
 o sysDescr             ExtremeXOS (Stack) version 22.5.1.7 22.5.1.7 by release-manager on Tue May 22 11:25:12 EDT 2018 
 o sysName              extreme690
 o Location             SPARE
 o Module time          0.0677s


including: includes/polling/os.inc.php
#####  Module Start: os  #####

Added OS param from sysDescr parse: 'version' = '22.5.1.7'

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -Oqv -m EXTREME-SYSTEM-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/extreme 'udp':'extreme690':'161' extremeSystemID.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0134s]
CMD EXITDELAY[10ms]
STDOUT[
"800770-00-06 1811N-45159"
]
SNMP STATUS[TRUE]
Added OS param from SNMP definition walk: 'serial' = '800770-00-06 1811N-45159'
 o OS Poller            OS

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUv -m EXTREME-STACKING-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/extreme 'udp':'extreme690':'161' extremeStackMemberType.1]

CMD EXITCODE[0]
CMD RUNTIME[0.0148s]
STDOUT[
EXTREME-BASE-MIB::x690-48x-4q-2c
]
SNMP STATUS[TRUE]

CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUs -m EXTREME-SYSTEM-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/extreme 'udp':'extreme690':'161' extremeImageSshCapability.cur extremeImageUAACapability.cur]

CMD EXITCODE[0]
CMD RUNTIME[0.0105s]
STDOUT[
extremeImageSshCapability.cur = ssh
extremeImageUAACapability.cur = unknown
]
SNMP STATUS[TRUE]
 o Hardware             EnetSwitch 690-48x-4q-2c
 o Version              22.5.1.7
 o Features             ssh
 o Serial               800770-00-06 1811N-45159
 o Asset                <empty>


SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`)  VALUES ('632','632','device',NOW(),'6','Hardware changed: \'Extreme 690-48x-4q-2c\' -> \'EnetSwitch 690-48x-4q-2c\'')]
SQL RUNTIME[0.00136185s]
 o Module time          0.0601s

#####  extreme690 [632] completed poller modules at 2018-09-13 10:41:51  #####

 o Graphs [checked]     availability, ping, ping_snmp, uptime
 o Poller time          0.1547 seconds
Updating extreme690 - 

  /opt/observium/includes/polling/functions.inc.php:813 
array(
  [uptime]                => int(765572)
  [hardware]              => string(24) "EnetSwitch 690-48x-4q-2c"
  [last_polled]           => array(
                               [0] => string(5) "NOW()"
                             )
  [last_polled_timetaken] => double(0.1547)
)
 

SQL[UPDATE `devices` set `uptime` ='765572',`hardware` ='EnetSwitch 690-48x-4q-2c',`last_polled` =NOW(),`last_polled_timetaken` ='0.1547' WHERE `device_id` = '632']
SQL RUNTIME[0.00176811s]
 o Updated Data         uptime, hardware, last_polled, last_polled_timetaken


SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '4823' AND `process_name` = 'poller.php' AND `device_id` = '632']
SQL RUNTIME[0.00126886s]
./poller.php: extreme690 - 1 devices polled in 0.360 secs
#####  Completed polling run at 2018-09-13 10:41:51  #####

NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output.
 o Devices Polled       1
 o Poller Time          0.360 secs
 o Memory usage         4MB (peak: 4MB)
 o MySQL Usage          Insert[2/0.003s] Update[2/0.004s] Delete[1/0.002s] Cell[4/0.002s] Row[9/0.006s] Rows[10/0.006s] Col[0/0s] (0.021s 
                        5.852%)
 o RRDTool Usage        update[4/0.005s] (0.005s 1.267%)
 o SNMP Usage           snmpget[10/0.091s] (0.091s 25.337%)