- librenms@librenms:~$ ./poller.php -h 172.16.1.155 -d -f -m os
- LibreNMS Poller
- SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.36ms]
- SQL[select count(*) as aggregate from `migrations` [] 0.3ms]
- SQL[select version() [] 0.16ms]
- ===========================================
- Component | Version
- --------- | -------
- LibreNMS | 23.2.0-43-gae429d987 (2023-03-22T01:31:42+13:00)
- DB Schema | 2023_03_14_130653_migrate_empty_user_funcs_to_null (249)
- PHP | 8.1.2
- Python | 3.10.4
- Database | MariaDB 10.6.7-MariaDB-2ubuntu1
- RRDTool | 1.7.2
- SNMP | 5.9.1
- ===========================================
- DEBUG!
- Updating os_def.cache
- Override poller modules: os
- Starting polling run:
- SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = '172.16.1.155' ORDER BY `device_id` ASC [] 0.65ms]
- SQL[select * from `devices` where `device_id` = ? limit 1 [251] 0.24ms]
- SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [251] 0.25ms]
- Attempting to initialize OS: ceraos
- OS initialized: LibreNMS\OS\Ceraos
- Hostname: 172.16.1.155
- Device ID: 251
- OS: ceraos
- [FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '1000' '-O' '0' '172.16.1.155'
- response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 1.93/1.99/2.04
- SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/ceraos' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-t' '2' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0']
- SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.22*.2.2
- SQL[insert into `device_perf` (`min`, `max`, `avg`, `xmt`, `rcv`, `loss`, `debug`, `device_id`, `timestamp`) values (?, ?, ?, ?, ?, ?, ?, ?, ?) [1.93,2.04,1.99,3,3,0,"{\"poller_name\":\"librenms\"}",251,"2023-03-22 09:37:17"] 3.23ms]
- SQL[update `devices` set `last_ping_timetaken` = ? where `device_id` = ? [1.99,251] 2.08ms]
- RRD[update 172.16.1.155/ping-perf.rrd N:1.99 --daemon unix:/run/rrdcached.sock]
- SQL[select * from `device_outages` where `device_outages`.`device_id` = ? and `device_outages`.`device_id` is not null and `up_again` is null order by `going_down` desc limit 1 [251] 0.47ms]
- Modules status: Global+
- OS
- Device
- #### Load poller module core ####
- SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/ceraos' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-On' '-t' '2' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysUpTime.0']
- .*.*.0 = 853891700
- SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/ceraos' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-t' '2' 'udp:HOSTNAME:161' 'SNMP-FRAMEWORK-MIB::snmpEngineTime.0']
- SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = No Such Object available on this agent at this OID
- SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/ceraos' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-t' '2' 'udp:HOSTNAME:161' 'HOST-RESOURCES-MIB::hrSystemUptime.0']
- HOST-RESOURCES-MIB::hrSystemUptime.0 = No Such Object available on this agent at this OID
- Uptime seconds: 8538917
- RRD[update 172.16.1.155/uptime.rrd N:8538917 --daemon unix:/run/rrdcached.sock]
- Uptime: 3 months 2 weeks 19 hours 55 minutes 17 seconds
- SQL[update `devices` set `uptime` = ? where `device_id` = ? [8538917,251] 2.24ms]
- >> Runtime for poller module 'core': 0.0463 seconds with 117224 bytes
- >> SNMP: [3/0.04s] MySQL: [1/0.02s] RRD: [1/0.00s]
- #### Unload poller module core ####
- RRD[update 172.16.1.155/poller-perf-core.rrd N:0.046264886856079 --daemon unix:/run/rrdcached.sock]
- Modules status: Global+
- OS
- Device
- #### Load poller module os ####
- Generic :(
- Location:
- Hardware: IP-20S
- OS Version: 12.0.0.0.0.366
- OS Features: 1 radios in unit
- Serial: E231320151
- >> Runtime for poller module 'os': 0.0011 seconds with 116480 bytes
- >> SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [1/0.00s]
- #### Unload poller module os ####
- RRD[update 172.16.1.155/poller-perf-os.rrd N:0.0010640621185303 --daemon unix:/run/rrdcached.sock]
- RRD[update 172.16.1.155/poller-perf.rrd N:1.086 --daemon unix:/run/rrdcached.sock]
- Polled in 1.086 seconds
- ### Start Device Groups ###
- SQL[select * from `device_groups` [] 0.16ms]
- SQL[select * from `device_group_device` where `device_group_device`.`device_id` = ? [251] 0.22ms]
- Groups Added:
- Groups Removed:
- ### End Device Groups, runtime: 0.0021s ###
- #### Start Alerts ####
- SQL[select `device_groups`.*, `device_group_device`.`device_id` as `pivot_device_id`, `device_group_device`.`device_group_id` as `pivot_device_group_id` from `device_groups` inner join `device_group_device` on `device_groups`.`id` = `device_group_device`.`device_group_id` where `device_group_device`.`device_id` = ? [251] 0.36ms]
- SQL[select exists(select * from `alert_schedule` where (`start` <= ? and `end` >= ? and (`recurring` = ? or (`recurring` = ? and ((time(`start`) < time xss=removed> ?) or (time(`start`) > time(`end`) and (time(`start`) <= ? or time(`end`) > ?))) and (`recurring_day` like ? or `recurring_day` is null)))) and (exists (select * from `devices` inner join `alert_schedulables` on `devices`.`device_id` = `alert_schedulables`.`alert_schedulable_id` where `alert_schedule`.`schedule_id` = `alert_schedulables`.`schedule_id` and `alert_schedulables`.`alert_schedulable_type` = ? and `alert_schedulables`.`alert_schedulable_id` = ?))) as `exists` ["2023-03-21T20:37:17.229688Z","2023-03-21T20:37:17.229688Z",0,1,"20:37:17","20:37:17","20:37:17","20:37:17","%","device",251] 0.43ms]
- SQL[select * from `devices` where `devices`.`device_id` = ? limit 1 [251] 0.3ms]
- SQL[SELECT DISTINCT a.* FROM alert_rules a
- LEFT JOIN alert_device_map d ON a.id=d.rule_id AND (a.invert_map = 0 OR a.invert_map = 1 AND d.device_id = ?)
- LEFT JOIN alert_group_map g ON a.id=g.rule_id AND (a.invert_map = 0 OR a.invert_map = 1 AND g.group_id IN (SELECT DISTINCT device_group_id FROM device_group_device WHERE device_id = ?))
- LEFT JOIN alert_location_map l ON a.id=l.rule_id AND (a.invert_map = 0 OR a.invert_map = 1 AND l.location_id IN (SELECT DISTINCT location_id FROM devices WHERE device_id = ?))
- LEFT JOIN devices ld ON l.location_id=ld.location_id AND ld.device_id = ?
- LEFT JOIN device_group_device dg ON g.group_id=dg.device_group_id AND dg.device_id = ?
- WHERE a.disabled = 0 AND (
- (d.device_id IS NULL AND g.group_id IS NULL AND l.location_id IS NULL)
- OR (a.invert_map = 0 AND (d.device_id=? OR dg.device_id=? OR ld.device_id=?))
- OR (a.invert_map = 1 AND (d.device_id != ? OR d.device_id IS NULL) AND (dg.device_id != ? OR dg.device_id IS NULL) AND (ld.device_id != ? OR ld.device_id IS NULL))
- ) [251,251,251,251,251,251,251,251,251,251,251] 0.72ms]
- Rule #1 (Devices up/down):
- SQL[SELECT * FROM devices WHERE (devices.device_id = ?) AND (devices.status = 0 && (devices.disabled = 0 && devices.ignore = 0)) = 1 [251] 0.22ms]
- SQL[SELECT state FROM alerts WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1 [1,251] 0.12ms]
- Status: NOCHG
- Rule #2 (Device rebooted):
- SQL[SELECT * FROM devices WHERE (devices.device_id = ?) AND devices.uptime < 300 xss=removed xss=removed xss=removed xss=removed xss=removed ports.ifOperStatus = "down" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed>= "80" && ((ports.ifOperStatus = "up" && ports.ifAdminStatus = "up" && ((ports.deleted = 0 && ports.ignore = 0 && ports.disabled = 0)))) = "1" && ((ports.deleted = 0 && ports.ignore = 0 && ports.disabled = 0)) = "1") [251] 0.28ms]
- SQL[SELECT state FROM alerts WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1 [6,251] 0.11ms]
- Status: NOCHG
- Rule #7 (Sensor over limit):
- SQL[SELECT * FROM devices,sensors WHERE (devices.device_id = ? AND devices.device_id = sensors.device_id) AND sensors.sensor_current > sensors.sensor_limit AND sensors.sensor_alert = 1 AND (devices.status = 1 && (devices.disabled = 0 && devices.ignore = 0)) = 1 [251] 0.27ms]
- SQL[SELECT state FROM alerts WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1 [7,251] 0.11ms]
- Status: NOCHG
- Rule #8 (Sensor under limit):
- SQL[SELECT * FROM devices,sensors WHERE (devices.device_id = ? AND devices.device_id = sensors.device_id) AND sensors.sensor_current < sensors xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed details`=? xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed>= customoids.customoid_limit AND customoids.customoid_alert = 1 AND (devices.status = 1 && (devices.disabled = 0 && devices.ignore = 0)) = 1 [251] 0.23ms]
- SQL[SELECT state FROM alerts WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1 [14,251] 0.11ms]
- Status: NOCHG
- Rule #15 (CustomOID under limit):
- SQL[SELECT * FROM devices,customoids WHERE (devices.device_id = ? AND devices.device_id = customoids.device_id) AND customoids.customoid_current <= customoids.customoid_limit_low AND customoids.customoid_alert = 1 AND (devices.status = 1 && (devices.disabled = 0 && devices.ignore = 0)) = 1 [251] 0.23ms]
- SQL[SELECT state FROM alerts WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1 [15,251] 0.1ms]
- Status: NOCHG
- #### End Alerts ####
- ./poller.php 172.16.1.155 2023-03-22 09:37:17 - 1 devices polled in 1.220 secs
- SNMP [4/0.06s]: Snmpget[4/0.06s]
- SQL [39/0.18s]: Select[35/0.09s] Insert[1/0.03s] Update[3/0.06s]
- RRD [5/0.00s]: Update[5/0.00s]