Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LibreNMS Poller
- Version info:
- Commit SHA: e95772e5b481c9bffc42922afa0b6cf909197463
- Commit Date: 1484076664
- DB Schema: 153
- PHP: 5.6.29
- MySQL: 5.5.48
- RRDTool: 1.3.8
- SNMP: NET-SNMP 5.5
- DEBUG!
- Starting polling run:
- SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = 'env-01' ORDER BY `device_id` ASC]
- SQL[SELECT * FROM devices_attribs WHERE `device_id` = '19']
- Hostname: env-01
- Device ID: 19
- OS: generic
- SQL[INSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`) VALUES ('5','5','0','0.80','2.25','1.12','19',NOW())]
- SNMP[/usr/bin/snmpget -v1 -c COMMUNITY -Oqv -m SNMPv2-MIB -M /opt/librenms/mibs udp:HOSTNAME:161 sysObjectID.0]
- SNMPv2-SMI::enterprises.3854.1
- SNMP[/usr/bin/snmpget -v1 -c COMMUNITY -OQnUst -m SNMPv2-MIB:HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs udp:HOSTNAME:161 sysUpTime.0 sysLocation.0 sysContact.0 sysName.0 sysObjectID.0]
- sysUpTime.0 = 820045554
- sysLocation.0 = REC
- sysContact.0 = something@something.com
- sysName.0 = env-01
- sysObjectID.0 = enterprises.3854.1
- SNMP[/usr/bin/snmpget -v1 -c COMMUNITY -OvQ -m SNMPv2-MIB:HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs udp:HOSTNAME:161 sysDescr.0]
- sensorProbe4 SP4470 161014
- SNMP[/usr/bin/snmpget -v1 -c COMMUNITY -OQnUst -m HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs udp:HOSTNAME:161 snmpEngineTime.0 hrSystemUptime.0]
- Error in packet
- Reason: (noSuchName) There is no such variable name in this MIB.
- Failed object: snmpEngineTime.0
- Using SNMP Agent Uptime (8200455s)
- RRD[update /opt/librenms/rrd/env-01/uptime.rrd N:8200455]
- [RRD Disabled]Uptime: 94 days, 21h 54m 15s
- Modules status: Global+ OS Device
- #### Load poller module os ####
- Generic :(
- Hardware:
- Version:
- Features:
- Serial:
- >> Runtime for poller module 'os': 0.0002 seconds
- #### Unload poller module os ####
- RRD[update /opt/librenms/rrd/env-01/poller-perf-os.rrd N:0.00018882751464844]
- [RRD Disabled]### Start Device Groups ###
- SQL[SELECT * FROM device_groups ORDER BY name]
- SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id='19' AND (devices.type = "Server" && devices.os = "Linux" ) LIMIT 1]
- SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id='19' AND (devices.type = "Network") LIMIT 1]
- SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id='19' AND (devices.type = "Power") LIMIT 1]
- SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id='19' AND (devices.type = "Server") LIMIT 1]
- SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id='19' AND (devices.type = "Server" && devices.os = "Windows" ) LIMIT 1]
- SQL[SELECT `device_group_id` FROM `device_group_device` WHERE `device_id`='19']
- Groups Added:
- Groups Removed:
- ### End Device Groups ###
- RRD[update /opt/librenms/rrd/env-01/poller-perf.rrd N:0.893]
- [RRD Disabled]RRD[update /opt/librenms/rrd/env-01/ping-perf.rrd N:1.12]
- [RRD Disabled]Polled in 0.893 seconds
- Updating env-01
- SQL[UPDATE `devices` set `uptime` ='8200455',`last_ping` =NOW(),`last_ping_timetaken` ='1.12',`last_polled` =NOW(),`last_polled_timetaken` ='0.893' WHERE `device_id` = '19']
- UPDATED!
- #### Start Alerts ####
- SQL[SELECT `device_group_id` FROM `device_group_device` WHERE `device_id`='19']
- SQL[SELECT alert_schedule.schedule_id FROM alert_schedule LEFT JOIN alert_schedule_items ON alert_schedule.schedule_id=alert_schedule_items.schedule_id WHERE ( alert_schedule_items.target = '19' ) && NOW() BETWEEN alert_schedule.start AND alert_schedule.end LIMIT 1]
- SQL[SELECT `device_group_id` FROM `device_group_device` WHERE `device_id`='19']
- SQL[SELECT alert_rules.* FROM alert_rules LEFT JOIN alert_map ON alert_rules.id=alert_map.rule WHERE alert_rules.disabled = 0 && ( (alert_rules.device_id = -1 || alert_rules.device_id = '19' ) || alert_map.target = '19' )]
- Rule #3 (BGP Session down):
- SQL[SELECT state FROM alerts WHERE rule_id = '3' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM bgpPeers,devices WHERE (( devices.device_id = bgpPeers.device_id ) && bgpPeers.device_id = '19') && (bgpPeers.bgpPeerState != "established" && ( ( devices.status = 1 && ( ( devices.disabled = 0 && devices.ignore = 0 ) ) ) ) = "1")]
- Status: NOCHG
- Rule #4 (BGP Session established):
- SQL[SELECT state FROM alerts WHERE rule_id = '4' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM bgpPeers WHERE (bgpPeers.device_id = '19') && (bgpPeers.bgpPeerFsmEstablishedTime < "300" && bgpPeers.bgpPeerState = "established")]
- Status: NOCHG
- Rule #8 (Sensor under limit):
- SQL[SELECT state FROM alerts WHERE rule_id = '8' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM sensors WHERE (sensors.device_id = '19') && (sensors.sensor_current < sensors.sensor_limit_low && sensors.sensor_alert = "1" )]
- Status: NOCHG
- Rule #19 (Power Devices up/down):
- SQL[SELECT state FROM alerts WHERE rule_id = '19' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.status = 0 && ( ( devices.disabled = 0 && devices.ignore = 0 ) ) ) ) = "1" && devices.type = "Power" )]
- Status: NOCHG
- Rule #20 (Network Devices up/down):
- SQL[SELECT state FROM alerts WHERE rule_id = '20' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.status = 0 && ( ( devices.disabled = 0 && devices.ignore = 0 ) ) ) ) = "1" && devices.type = "Network" )]
- Status: NOCHG
- Rule #21 (Servers up/down):
- SQL[SELECT state FROM alerts WHERE rule_id = '21' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.status = 0 && ( ( devices.disabled = 0 && devices.ignore = 0 ) ) ) ) = "1" && devices.type = "Server" && devices.os NOT REGEXP "Print" )]
- Status: NOCHG
- Rule #22 (Power Device Rebooted):
- SQL[SELECT state FROM alerts WHERE rule_id = '22' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.disabled = 0 && devices.ignore = 0 ) ) = "1" && devices.type = "Power" && devices.uptime < "300" )]
- Status: NOCHG
- Rule #23 (Network Device Rebooted):
- SQL[SELECT state FROM alerts WHERE rule_id = '23' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.disabled = 0 && devices.ignore = 0 ) ) = "1" && devices.type = "Network" && devices.uptime < "300" )]
- Status: NOCHG
- Rule #24 (Server Rebooted):
- SQL[SELECT state FROM alerts WHERE rule_id = '24' && device_id = '19' ORDER BY id DESC LIMIT 1]
- SQL[SELECT * FROM devices WHERE (devices.device_id = '19') && ( ( ( devices.disabled = 0 && devices.ignore = 0 ) ) = "1" && devices.type = "Server" && devices.uptime < "300" && devices.os NOT REGEXP "Print" )]
- Status: NOCHG
- #### End Alerts ####
- SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES ('poll','env-01','1484152858.1697','0.934','1','librenms.prp.lcl\n')]
- ./poller.php env-01 2017-01-11 11:40:59 - 1 devices polled in 0.934 secs
- SNMP: Get[4/0.08s] Walk [0/0.00s]
- MySQL: Cell[8/0.00s] Row[9/0.00s] Rows[15/0.01s] Column[3/0.00s] Update[1/0.00s] Insert[2/0.01s] Delete[0/0.00s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement