Commit version 24.12.13800
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,14 +18,13 @@
|
||||
$clusterusers = snmp_get($device, 'clusterConcurrentUsers.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
$iveusers = snmp_get($device, 'iveConcurrentUsers.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
|
||||
if (!is_null($clusterusers) and !is_null($iveusers))
|
||||
{
|
||||
rrdtool_update_ng($device, 'juniperive-users', array(
|
||||
'clusterusers' => $clusterusers,
|
||||
'iveusers' => $iveusers,
|
||||
));
|
||||
if (!is_null($clusterusers) and !is_null($iveusers)) {
|
||||
rrdtool_update_ng($device, 'juniperive-users', [
|
||||
'clusterusers' => $clusterusers,
|
||||
'iveusers' => $iveusers,
|
||||
]);
|
||||
|
||||
$graphs['juniperive_users'] = TRUE;
|
||||
$graphs['juniperive_users'] = TRUE;
|
||||
}
|
||||
|
||||
// Meetings
|
||||
@ -33,14 +32,13 @@ if (!is_null($clusterusers) and !is_null($iveusers))
|
||||
$meetingusers = snmp_get($device, 'meetingUserCount.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
$meetings = snmp_get($device, 'meetingCount.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
|
||||
if (is_numeric($meetingusers) and is_numeric($meetings))
|
||||
{
|
||||
rrdtool_update_ng($device, 'juniperive-meetings', array(
|
||||
'meetingusers' => $meetingusers,
|
||||
'meetings' => $meetings,
|
||||
));
|
||||
if (is_numeric($meetingusers) and is_numeric($meetings)) {
|
||||
rrdtool_update_ng($device, 'juniperive-meetings', [
|
||||
'meetingusers' => $meetingusers,
|
||||
'meetings' => $meetings,
|
||||
]);
|
||||
|
||||
$graphs['juniperive_meetings'] = TRUE;
|
||||
$graphs['juniperive_meetings'] = TRUE;
|
||||
}
|
||||
|
||||
// Connections
|
||||
@ -48,29 +46,27 @@ if (is_numeric($meetingusers) and is_numeric($meetings))
|
||||
$webusers = snmp_get($device, 'signedInWebUsers.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
$mailusers = snmp_get($device, 'signedInMailUsers.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
|
||||
if (!is_null($webusers) and !is_null($mailusers))
|
||||
{
|
||||
rrdtool_update_ng($device, 'juniperive-connections', array(
|
||||
'webusers' => $webusers,
|
||||
'mailusers' => $mailusers,
|
||||
));
|
||||
if (!is_null($webusers) and !is_null($mailusers)) {
|
||||
rrdtool_update_ng($device, 'juniperive-connections', [
|
||||
'webusers' => $webusers,
|
||||
'mailusers' => $mailusers,
|
||||
]);
|
||||
|
||||
$graphs['juniperive_connections'] = TRUE;
|
||||
$graphs['juniperive_connections'] = TRUE;
|
||||
}
|
||||
|
||||
// Storage
|
||||
|
||||
$diskpercent = snmp_get($device, 'diskFullPercent.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
$logpercent = snmp_get($device, 'logFullPercent.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
$logpercent = snmp_get($device, 'logFullPercent.0', '-OQv', 'PULSESECURE-PSG-MIB');
|
||||
|
||||
if (!is_null($diskpercent) and !is_null($logpercent))
|
||||
{
|
||||
rrdtool_update_ng($device, 'juniperive-storage', array(
|
||||
'diskpercent' => $diskpercent,
|
||||
'logpercent' => $logpercent,
|
||||
));
|
||||
if (!is_null($diskpercent) and !is_null($logpercent)) {
|
||||
rrdtool_update_ng($device, 'juniperive-storage', [
|
||||
'diskpercent' => $diskpercent,
|
||||
'logpercent' => $logpercent,
|
||||
]);
|
||||
|
||||
$graphs['juniperive_storage'] = TRUE;
|
||||
$graphs['juniperive_storage'] = TRUE;
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user