Observium_CE/includes/polling/os/juniperive.inc.php

73 lines
1.9 KiB
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage poller
* @copyright (C) Adam Armstrong
*
*/
// FIXME move below to poller graphs definitions
// Users
$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', [
'clusterusers' => $clusterusers,
'iveusers' => $iveusers,
]);
$graphs['juniperive_users'] = TRUE;
}
// Meetings
$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', [
'meetingusers' => $meetingusers,
'meetings' => $meetings,
]);
$graphs['juniperive_meetings'] = TRUE;
}
// Connections
$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', [
'webusers' => $webusers,
'mailusers' => $mailusers,
]);
$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');
if (!is_null($diskpercent) and !is_null($logpercent)) {
rrdtool_update_ng($device, 'juniperive-storage', [
'diskpercent' => $diskpercent,
'logpercent' => $logpercent,
]);
$graphs['juniperive_storage'] = TRUE;
}
// EOF