initial commit; version 22.5.12042
This commit is contained in:
41
includes/polling/system/asco-qem-72ee2.inc.php
Normal file
41
includes/polling/system/asco-qem-72ee2.inc.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// This is mostly derp MIB which I have seen
|
||||
|
||||
// ASCO-QEM-72EE2::real_time_hour.0 = INTEGER: 14
|
||||
// ASCO-QEM-72EE2::real_time_minute.0 = INTEGER: 9
|
||||
// ASCO-QEM-72EE2::real_time_second.0 = INTEGER: 37
|
||||
// ASCO-QEM-72EE2::calendar_year.0 = INTEGER: 21
|
||||
// ASCO-QEM-72EE2::calendar_month.0 = INTEGER: 12
|
||||
// ASCO-QEM-72EE2::calendar_day_of_month.0 = INTEGER: 17
|
||||
// ASCO-QEM-72EE2::calendar_day_of_week.0 = INTEGER: 5
|
||||
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_date.0 = INTEGER: 2
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_month.0 = INTEGER: 12
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_year.0 = INTEGER: 21
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_hour.0 = INTEGER: 16
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_minutes.0 = INTEGER: 23
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_seconds.0 = INTEGER: 55
|
||||
// ASCO-QEM-72EE2::ts_data_gen_start_10th_of_seconds.0 = INTEGER: 1
|
||||
|
||||
// ASCO-QEM-72EE2::total_number_of_days_CP_has_been_energized.0 = INTEGER: 40
|
||||
|
||||
// there is no other way to get the real uptime except approximate days with real time
|
||||
if ($data = snmp_get_multi_oid($device, 'total_number_of_days_CP_has_been_energized.0 real_time_hour.0 real_time_minute.0 real_time_second.0', [], 'ASCO-QEM-72EE2')) {
|
||||
$poll_device['device_uptime'] = $data[0]['total_number_of_days_CP_has_been_energized'] * 86400 +
|
||||
$data[0]['real_time_hour'] * 3600 +
|
||||
$data[0]['real_time_minute'] * 60 +
|
||||
$data[0]['real_time_second'];
|
||||
}
|
||||
|
||||
// EOF
|
39
includes/polling/system/snmpv2-mib.inc.php
Normal file
39
includes/polling/system/snmpv2-mib.inc.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$snmpdata = snmp_get_multi_oid($device, [ 'sysUpTime.0', 'sysLocation.0', 'sysContact.0', 'sysName.0' ], [], 'SNMPv2-MIB', NULL, OBS_SNMP_ALL_UTF8);
|
||||
$polled = round(snmp_endtime());
|
||||
if (is_array($snmpdata[0]))
|
||||
{
|
||||
$poll_device = array_merge($poll_device, $snmpdata[0]);
|
||||
|
||||
if (isset($snmpdata[0]['sysUpTime']))
|
||||
{
|
||||
// SNMPv2-MIB::sysUpTime.0 = Timeticks: (2542831) 7:03:48.31
|
||||
$poll_device['sysUpTime'] = timeticks_to_sec($snmpdata[0]['sysUpTime']);
|
||||
}
|
||||
|
||||
$poll_device['sysName_SNMPv2'] = $poll_device['sysName']; // Store original sysName for devices who store hardware in this Oid
|
||||
}
|
||||
|
||||
$sysDescr = snmp_get_oid($device, 'sysDescr.0', 'SNMPv2-MIB', NULL, OBS_SNMP_ALL_UTF8);
|
||||
if (snmp_status() || snmp_error_code() === OBS_SNMP_ERROR_EMPTY_RESPONSE) // Allow empty response for sysDescr (not timeouts)
|
||||
{
|
||||
$poll_device['sysDescr'] = $sysDescr;
|
||||
}
|
||||
|
||||
$poll_device['sysObjectID'] = snmp_cache_sysObjectID($device);
|
||||
$poll_device['snmpEngineID'] = snmp_cache_snmpEngineID($device);
|
||||
|
||||
unset($snmpdata, $sysDescr);
|
||||
|
||||
//EOF
|
38
includes/polling/system/wowza-streaming-engine-mib.inc.php
Normal file
38
includes/polling/system/wowza-streaming-engine-mib.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterCreationTime.1 = Counter64: 1476474933375
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetGUID.1 = STRING: 321b377f-1d50-4121-872a-c4846fc2d7d0
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetHTTPHeaderServer.1 = STRING: WowzaStreamingEngine/4.5.0.01
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetRTMPTHeaderServer.1 = STRING: FlashCom/3.5.7
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetServerGUID.1 = STRING: 321b377f-1d50-4121-872a-c4846fc2d7d0
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetSessionGUID.1 = STRING: 41b4bfd0-0690-4e92-977f-832a199e3dd9
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetTimeRunning.1 = STRING: 4 days 0 hours 51 minutes 27 seconds
|
||||
//WOWZA-STREAMING-ENGINE-MIB::serverCounterGetVersion.1 = STRING: Wowza Streaming Engine 4 Monthly Edition 4.5.0.01 build18956
|
||||
|
||||
$data = snmp_get_multi_oid($device, 'serverCounterCreationTime.1', array(), 'WOWZA-STREAMING-ENGINE-MIB');
|
||||
|
||||
if (is_array($data[1]))
|
||||
{
|
||||
$polled = round($GLOBALS['exec_status']['endtime']);
|
||||
|
||||
// Override sysDescr, since it empty for wowza
|
||||
//$poll_device['sysDescr'] = $data[1]['serverCounterGetVersion'];
|
||||
|
||||
if ($data[1]['serverCounterCreationTime'] > 0)
|
||||
{
|
||||
$poll_device['device_uptime'] = $GLOBALS['exec_status']['endtime'] - ($data[1]['serverCounterCreationTime'] / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
//EOF
|
Reference in New Issue
Block a user