Alerting on temperature against device with multiple temperature sensors
Hi all,
I'm trying to set up temperature alerts on a Cisco 4500. I just SVN up'd to 5742.
The device has a whole whack of temperature sensors, but I only care about the one that shown as "CPU".
I've constructed a checker, but it doesn't seem to work. That is, it's accepted properly by Observium, but when I check the details of the alert, it says that it's never been checked (0/0/0/1). I suspect that means the format of my check is wrong or something?
Here's the checker:
Check condition: sensor_value gt 10 Association device match: hostname match rgw01.lab Association entity match: sensor_descr match CPU
Can anyone tell what I might be missing?
Here's output from ./poller -h rgw01.lab -m temperature -d
[root@monitor01 logs]# /opt/observium/poller.php -h 10.219.45.254 -m temperature -d DEBUG! Observium v0.14.8.5742 Poller
Starting polling run:
SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '10.219.45.254' ORDER BY `device_id` ASC] WARNING: 0 devices polled. Did you specify a device that does not exist? /opt/observium/poller.php: 10.219.45.254 - 0 devices polled in 0.002 secs MySQL: Cell[0/0s] Row[0/0s] Rows[1/0s] Column[0/0s] Update[0/0s] Insert[0/0s] Delete[0/0s] [root@monitor01 logs]# /opt/observium/poller.php -h rgw01.lab -m temperature -d DEBUG! Observium v0.14.8.5742 Poller
Starting polling run:
SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'rgw01.lab' ORDER BY `device_id` ASC]
SQL[SELECT * FROM `devices` WHERE `device_id` = '203']
SQL[SELECT * FROM devices_attribs WHERE `device_id` = '203']
SQL[SELECT * FROM `alert_tests` WHERE 1] Cached 5 alert rules.
SQL[SELECT *,`alert_table`.`alert_table_id` AS `alert_table_id` FROM `alert_table` LEFT JOIN `alert_table-state` ON `alert_table`.`alert_table_id` = `alert_table-state`.`alert_table_id` WHERE `device_id` = '203'] Array ( [1] => Array ( [alert_test_id] => 1 [entity_type] => port [alert_name] => Peering Link Utilization [alert_message] => Peering link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc )
[1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc )
)
[and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
[2] => Array ( [alert_test_id] => 2 [entity_type] => port [alert_name] => Transit Link Utilization [alert_message] => Transit link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc )
[1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc )
)
[and] => 0 [severity] => crit [delay] => 0 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
[3] => Array ( [alert_test_id] => 3 [entity_type] => port [alert_name] => Core Link Utilization [alert_message] => Core link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc )
[1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc )
)
[and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
[4] => Array ( [alert_test_id] => 4 [entity_type] => temperature [alert_name] => Cisco 4500 Temperature "WARNING" [alert_message] => Temperature is > 47 degrees [conditions] => Array ( [0] => Array ( [value] => temperature [condition] => is [metric] => sensor_class )
[1] => Array ( [value] => 47 [condition] => gt [metric] => sensor_value )
)
[and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
[5] => Array ( [alert_test_id] => 5 [entity_type] => temperature [alert_name] => test [alert_message] => test [conditions] => Array ( [0] => Array ( [value] => [condition] => 10 [metric] => sensor_value gt )
)
[and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
) Array ( [port] => Array ( [19364] => Array ( [3] => Array ( [alert_table_id] => 1059 [alert_test_id] => 3 [device_id] => 203 [entity_type] => port [entity_id] => 19364 [alert_assocs] => 6 [delay] => 0 [ignore_until] => [ignore_until_ok] => 0 [last_checked] => 1407793566 [last_changed] => 1404681033 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => Checks OK [alert_status] => 1 [last_alerted] => 0 [state] => {"metrics":{"ifInOctets_perc":7,"ifOutOctets_perc":0}} [count] => 0 [state_entry] => 1 )
)
[19365] => Array ( [3] => Array ( [alert_table_id] => 1060 [alert_test_id] => 3 [device_id] => 203 [entity_type] => port [entity_id] => 19365 [alert_assocs] => 6 [delay] => 0 [ignore_until] => [ignore_until_ok] => 0 [last_checked] => 1407793566 [last_changed] => 1404681033 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => Checks OK [alert_status] => 1 [last_alerted] => 0 [state] => {"metrics":{"ifInOctets_perc":0,"ifOutOctets_perc":7}} [count] => 0 [state_entry] => 1 )
)
)
[temperature] => Array ( [20682] => Array ( [4] => Array ( [alert_table_id] => 1121 [alert_test_id] => 4 [device_id] => 203 [entity_type] => temperature [entity_id] => 20682 [alert_assocs] => 7 [delay] => 0 [ignore_until] => [ignore_until_ok] => [last_checked] => 0 [last_changed] => 0 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => [alert_status] => -1 [last_alerted] => 0 [state] => [count] => 0 [state_entry] => 1 )
[5] => Array ( [alert_table_id] => 1126 [alert_test_id] => 5 [device_id] => 203 [entity_type] => temperature [entity_id] => 20682 [alert_assocs] => 8 [delay] => 0 [ignore_until] => [ignore_until_ok] => [last_checked] => 0 [last_changed] => 0 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => [alert_status] => -1 [last_alerted] => 0 [state] => [count] => 0 [state_entry] => 1 )
)
)
) rgw01.lab 203 iosxe (cisco) DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqtn -m DISMAN-EVENT-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' .1.3.6.1.2.1.1.3.0 .1.3.6.1.2.1.1.3.0 158141991
RRD /opt/observium/rrd/rgw01.lab/status.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/status.rrd N:1] stdout[OK u:0.00 s:0.00 r:0.02] stderr[]] RRD /opt/observium/rrd/rgw01.lab/ping.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/ping.rrd N:1.17] stdout[OK u:0.00 s:0.00 r:0.02] stderr[]] RRD /opt/observium/rrd/rgw01.lab/ping_snmp.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/ping_snmp.rrd N:11.22] stdout[OK u:0.00 s:0.00 r:0.03] stderr[]]
including: includes/polling/system.inc.php DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysUpTime.0 sysLocation.0 sysContact.0 sysName.0 sysUpTime.0 = 18:7:16:59.92 sysLocation.0 = sysContact.0 = sysName.0 = rgw01.lab.example.com
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysDescr.0 Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSAL-M), Version 03.03.02.SG RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Wed 24-
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysObjectID.0 .1.3.6.1.4.1.9.1.874
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Ovqn -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' snmpEngineID.0 "80 00 00 09 03 00 00 00 00 00 00 00 "
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqv -m HOST-RESOURCES-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' hrSystemUptime.0 No Such Object available on this agent at this OID
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -OUqv -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' snmpEngineTime.0 1581350
Using SNMP Agent sysUpTime (1581419 seconds) RRD /opt/observium/rrd/rgw01.lab/uptime.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/uptime.rrd N:1581419] stdout[OK u:0.00 s:0.00 r:0.09] stderr[]] Uptime: 18 days, 7h 16m 59s GEO-API REQUEST: http://open.mapquestapi.com/nominatim/v1/search.php?format=json&addressd... Module [ system ] time: 0.223s
including: includes/polling/os.inc.php
SQL[SELECT * FROM `entPhysical` WHERE `device_id` = '203' AND `entPhysicalIndex` = '1']
Hardware: WS-C4503-E Version: 03.03.02.SG RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems Features: UNIVERSAL Serial: Asset: Module [ os ] time: 0.0025s Polled in 0.2479 seconds Updating rgw01.lab - Array ( [uptime] => 1581419 [location_geoapi] => mapquest [location_lat] => [location_lon] => [location_city] => Unknown [location_county] => Unknown [location_state] => Unknown [location_country] => Unknown [last_polled] => Array ( [0] => NOW() )
[last_polled_timetaken] => 0.2479 [device_state] => a:1:{s:15:"poller_mod_perf";a:2:{s:6:"system";s:6:"0.2230";s:2:"os";s:6:"0.0025";}} )
SQL[UPDATE `devices` set `uptime` ='1581419',`location_geoapi` ='mapquest',`location_lat` ='',`location_lon` ='',`location_city` ='Unknown',`location_county` ='Unknown',`location_state` ='Unknown',`location_country` ='Unknown',`last_polled` =NOW(),`last_polled_timetaken` ='0.2479',`device_state` ='a:1:{s:15:"poller_mod_perf";a:2:{s:6:"system";s:6:"0.2230";s:2:"os";s:6:"0.0025";}}' WHERE `device_id` = '203'] UPDATED!
Checking alerts Array ( [device_status] => 1 [device_status_type] => [device_ping] => 1.17 [device_snmp] => 11.22 [device_uptime] => 1581141 [device_duration_poll] => 5.22 )
SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('poll','rgw01.lab','1407793842.5655','0.260','1')] /opt/observium/poller.php: rgw01.lab - 1 devices polled in 0.260 secs MySQL: Cell[0/0s] Row[2/0s] Rows[1/0s] Column[0/0s] Update[1/0s] Insert[1/0s] Delete[0/0s] [root@monitor01 logs]#
Jason,
Just saw this while trying to clean my inbox; it's been over a month but I didn't see a reply.
So for completeness: the sensor subentities are currently broken; use sensor entity with "sensor_class is temperature" as extra entity match.
Tom
On 11/08/2014 23:58, Jason Lixfeld wrote:
Hi all,
I'm trying to set up temperature alerts on a Cisco 4500. I just SVN up'd to 5742.
The device has a whole whack of temperature sensors, but I only care about the one that shown as "CPU".
I've constructed a checker, but it doesn't seem to work. That is, it's accepted properly by Observium, but when I check the details of the alert, it says that it's never been checked (0/0/0/1). I suspect that means the format of my check is wrong or something?
Here's the checker:
Check condition: sensor_value gt 10 Association device match: hostname match rgw01.lab Association entity match: sensor_descr match CPU
Can anyone tell what I might be missing?
Here's output from ./poller -h rgw01.lab -m temperature -d
[root@monitor01 logs]# /opt/observium/poller.php -h 10.219.45.254 -m temperature -d DEBUG! Observium v0.14.8.5742 Poller
Starting polling run:
SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '10.219.45.254' ORDER BY `device_id` ASC] WARNING: 0 devices polled. Did you specify a device that does not exist? /opt/observium/poller.php: 10.219.45.254 - 0 devices polled in 0.002 secs MySQL: Cell[0/0s] Row[0/0s] Rows[1/0s] Column[0/0s] Update[0/0s] Insert[0/0s] Delete[0/0s] [root@monitor01 logs]# /opt/observium/poller.php -h rgw01.lab -m temperature -d DEBUG! Observium v0.14.8.5742 Poller
Starting polling run:
SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'rgw01.lab' ORDER BY `device_id` ASC]
SQL[SELECT * FROM `devices` WHERE `device_id` = '203']
SQL[SELECT * FROM devices_attribs WHERE `device_id` = '203']
SQL[SELECT * FROM `alert_tests` WHERE 1] Cached 5 alert rules.
SQL[SELECT *,`alert_table`.`alert_table_id` AS `alert_table_id` FROM `alert_table` LEFT JOIN `alert_table-state` ON `alert_table`.`alert_table_id` = `alert_table-state`.`alert_table_id` WHERE `device_id` = '203'] Array ( [1] => Array ( [alert_test_id] => 1 [entity_type] => port [alert_name] => Peering Link Utilization [alert_message] => Peering link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc )
[1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc ) ) [and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => ) [2] => Array ( [alert_test_id] => 2 [entity_type] => port [alert_name] => Transit Link Utilization [alert_message] => Transit link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc ) [1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc ) ) [and] => 0 [severity] => crit [delay] => 0 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => ) [3] => Array ( [alert_test_id] => 3 [entity_type] => port [alert_name] => Core Link Utilization [alert_message] => Core link utilization threshold exceeded [conditions] => Array ( [0] => Array ( [value] => 50 [condition] => gt [metric] => ifInOctets_perc ) [1] => Array ( [value] => 50 [condition] => gt [metric] => ifOutOctets_perc ) ) [and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => ) [4] => Array ( [alert_test_id] => 4 [entity_type] => temperature [alert_name] => Cisco 4500 Temperature "WARNING" [alert_message] => Temperature is > 47 degrees [conditions] => Array ( [0] => Array ( [value] => temperature [condition] => is [metric] => sensor_class ) [1] => Array ( [value] => 47 [condition] => gt [metric] => sensor_value ) ) [and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => ) [5] => Array ( [alert_test_id] => 5 [entity_type] => temperature [alert_name] => test [alert_message] => test [conditions] => Array ( [0] => Array ( [value] => [condition] => 10 [metric] => sensor_value gt ) ) [and] => 0 [severity] => crit [delay] => 1 [alerter] => default [enable] => 1 [suppress_recovery] => 0 [ignore_until] => )
) Array ( [port] => Array ( [19364] => Array ( [3] => Array ( [alert_table_id] => 1059 [alert_test_id] => 3 [device_id] => 203 [entity_type] => port [entity_id] => 19364 [alert_assocs] => 6 [delay] => 0 [ignore_until] => [ignore_until_ok] => 0 [last_checked] => 1407793566 [last_changed] => 1404681033 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => Checks OK [alert_status] => 1 [last_alerted] => 0 [state] => {"metrics":{"ifInOctets_perc":7,"ifOutOctets_perc":0}} [count] => 0 [state_entry] => 1 )
) [19365] => Array ( [3] => Array ( [alert_table_id] => 1060 [alert_test_id] => 3 [device_id] => 203 [entity_type] => port [entity_id] => 19365 [alert_assocs] => 6 [delay] => 0 [ignore_until] => [ignore_until_ok] => 0 [last_checked] => 1407793566 [last_changed] => 1404681033 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => Checks OK [alert_status] => 1 [last_alerted] => 0 [state] => {"metrics":{"ifInOctets_perc":0,"ifOutOctets_perc":7}} [count] => 0 [state_entry] => 1 ) ) ) [temperature] => Array ( [20682] => Array ( [4] => Array ( [alert_table_id] => 1121 [alert_test_id] => 4 [device_id] => 203 [entity_type] => temperature [entity_id] => 20682 [alert_assocs] => 7 [delay] => 0 [ignore_until] => [ignore_until_ok] => [last_checked] => 0 [last_changed] => 0 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => [alert_status] => -1 [last_alerted] => 0 [state] => [count] => 0 [state_entry] => 1 ) [5] => Array ( [alert_table_id] => 1126 [alert_test_id] => 5 [device_id] => 203 [entity_type] => temperature [entity_id] => 20682 [alert_assocs] => 8 [delay] => 0 [ignore_until] => [ignore_until_ok] => [last_checked] => 0 [last_changed] => 0 [last_recovered] => 0 [last_failed] => 0 [has_alerted] => 0 [last_message] => [alert_status] => -1 [last_alerted] => 0 [state] => [count] => 0 [state_entry] => 1 ) ) )
) rgw01.lab 203 iosxe (cisco) DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqtn -m DISMAN-EVENT-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' .1.3.6.1.2.1.1.3.0 .1.3.6.1.2.1.1.3.0 158141991
RRD /opt/observium/rrd/rgw01.lab/status.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/status.rrd N:1] stdout[OK u:0.00 s:0.00 r:0.02] stderr[]] RRD /opt/observium/rrd/rgw01.lab/ping.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/ping.rrd N:1.17] stdout[OK u:0.00 s:0.00 r:0.02] stderr[]] RRD /opt/observium/rrd/rgw01.lab/ping_snmp.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/ping_snmp.rrd N:11.22] stdout[OK u:0.00 s:0.00 r:0.03] stderr[]]
including: includes/polling/system.inc.php DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysUpTime.0 sysLocation.0 sysContact.0 sysName.0 sysUpTime.0 = 18:7:16:59.92 sysLocation.0 = sysContact.0 = sysName.0 = rgw01.lab.example.com
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysDescr.0 Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSAL-M), Version 03.03.02.SG RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Wed 24-
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' sysObjectID.0 .1.3.6.1.4.1.9.1.874
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Ovqn -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' snmpEngineID.0 "80 00 00 09 03 00 00 00 00 00 00 00"
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -Oqv -m HOST-RESOURCES-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' hrSystemUptime.0 No Such Object available on this agent at this OID
DEBUG: SNMP Auth options = -v2c -c '*' /usr/bin/snmpget -v2c -c '*' -OUqv -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'rgw01.lab':'161' snmpEngineTime.0 1581350
Using SNMP Agent sysUpTime (1581419 seconds) RRD /opt/observium/rrd/rgw01.lab/uptime.rrd already exists - no need to create. RRD[cmd[update /opt/observium/rrd/rgw01.lab/uptime.rrd N:1581419] stdout[OK u:0.00 s:0.00 r:0.09] stderr[]] Uptime: 18 days, 7h 16m 59s GEO-API REQUEST: http://open.mapquestapi.com/nominatim/v1/search.php?format=json&addressd... Module [ system ] time: 0.223s
including: includes/polling/os.inc.php
SQL[SELECT * FROM `entPhysical` WHERE `device_id` = '203' AND `entPhysicalIndex` = '1']
Hardware: WS-C4503-E Version: 03.03.02.SG RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems Features: UNIVERSAL Serial: Asset: Module [ os ] time: 0.0025s Polled in 0.2479 seconds Updating rgw01.lab - Array ( [uptime] => 1581419 [location_geoapi] => mapquest [location_lat] => [location_lon] => [location_city] => Unknown [location_county] => Unknown [location_state] => Unknown [location_country] => Unknown [last_polled] => Array ( [0] => NOW() )
[last_polled_timetaken] => 0.2479 [device_state] => a:1:{s:15:"poller_mod_perf";a:2:{s:6:"system";s:6:"0.2230";s:2:"os";s:6:"0.0025";}}
)
SQL[UPDATE `devices` set `uptime` ='1581419',`location_geoapi` ='mapquest',`location_lat` ='',`location_lon` ='',`location_city` ='Unknown',`location_county` ='Unknown',`location_state` ='Unknown',`location_country` ='Unknown',`last_polled` =NOW(),`last_polled_timetaken` ='0.2479',`device_state` ='a:1:{s:15:"poller_mod_perf";a:2:{s:6:"system";s:6:"0.2230";s:2:"os";s:6:"0.0025";}}' WHERE `device_id` = '203'] UPDATED!
Checking alerts Array ( [device_status] => 1 [device_status_type] => [device_ping] => 1.17 [device_snmp] => 11.22 [device_uptime] => 1581141 [device_duration_poll] => 5.22 )
SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('poll','rgw01.lab','1407793842.5655','0.260','1')] /opt/observium/poller.php: rgw01.lab - 1 devices polled in 0.260 secs MySQL: Cell[0/0s] Row[2/0s] Rows[1/0s] Column[0/0s] Update[1/0s] Insert[1/0s] Delete[0/0s] [root@monitor01 logs]# _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Jason Lixfeld
-
Tom Laermans