initial commit; version 22.5.12042
This commit is contained in:
38
html/pages/device/apps/mssql.inc.php
Normal file
38
html/pages/device/apps/mssql.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage applications
|
||||
* @author Solomon Seal <slm4996+observium@gmail.com> 2014-04
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$sql = "SELECT * FROM `applications-state` WHERE `application_id` = ?";
|
||||
$app_state = dbFetchRow($sql, array($app['app_id']));
|
||||
$app_data = safe_unserialize($app_state['app_state']);
|
||||
|
||||
$app_sections['system'] = "System";
|
||||
if (!empty($app_data['stats']))
|
||||
$app_sections['stats'] = "Stats";
|
||||
if (!empty($app_data['buffer']))
|
||||
$app_sections['buffers'] = "Buffers";
|
||||
|
||||
$app_graphs['system']['mssql_cpu_usage'] = 'Processor';
|
||||
if (!empty($app_data['memory']))
|
||||
$app_graphs['system']['mssql_memory_usage'] = 'Memory';
|
||||
|
||||
$app_graphs['stats'] = array(
|
||||
'mssql_stats' => 'Users'
|
||||
);
|
||||
|
||||
$app_graphs['buffers'] = array(
|
||||
'mssql_buffer_page' => 'Page Lookups',
|
||||
'mssql_buffer_pglife' => 'Page Life Expectancy',
|
||||
'mssql_buffer_stalls' => 'Free List Stalls'
|
||||
);
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user