Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -4,16 +4,16 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('apache_bits' => 'Traffic',
'apache_hits' => 'Hits',
'apache_cpu' => 'CPU Utilisation',
'apache_scoreboard' => 'Scoreboard Statistics');
$app_graphs['default'] = ['apache_bits' => 'Traffic',
'apache_hits' => 'Hits',
'apache_cpu' => 'CPU Utilisation',
'apache_scoreboard' => 'Scoreboard Statistics'];
// EOF

View File

@ -4,22 +4,25 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$navbar['brand'] = nicecase($app['app_type']);
$navbar['class'] = "navbar-narrow";
foreach ($app_sections as $app_section => $app_section_text)
{
if (!$vars['app_section']) { $vars['app_section'] = $app_section; }
$navbar['brand'] = nicecase($app['app_type']);
$navbar['options'][$app_section]['text'] = $app_section_text;
if ($vars['app_section'] == $app_section) { $navbar['options'][$app_section]['class'] = "active"; }
$navbar['options'][$app_section]['url'] = generate_url($vars,array('app_section'=>$app_section));
foreach ($app_sections as $app_section => $app_section_text) {
if (!$vars['app_section']) {
$vars['app_section'] = $app_section;
}
$navbar['brand'] = nicecase($app['app_type']);
$navbar['options'][$app_section]['text'] = $app_section_text;
if ($vars['app_section'] == $app_section) {
$navbar['options'][$app_section]['class'] = "active";
}
$navbar['options'][$app_section]['url'] = generate_url($vars, ['app_section' => $app_section]);
}
print_navbar($navbar);

View File

@ -4,14 +4,14 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('asterisk_peers' => 'Active Peers',
'asterisk_activecall' => 'Active Calls');
$app_graphs['default'] = ['asterisk_peers' => 'Active Peers',
'asterisk_activecall' => 'Active Calls'];
// EOF

View File

@ -4,33 +4,33 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_sections = array('stats' => "Server statistics",
'auth' => "Authoritative",
'resolv' => "Resolving",
'queries' => "Queries");
$app_sections = ['stats' => "Server statistics",
'auth' => "Authoritative",
'resolv' => "Resolving",
'queries' => "Queries"];
$app_graphs['stats'] = array('bind_req_in' => "Incoming requests",
'bind_answers' => "Answers Given",
'bind_updates' => "Dynamic Updates",
'bind_req_proto' => "Request protocol details",
'bind_cache' => "Cache content");
$app_graphs['stats'] = ['bind_req_in' => "Incoming requests",
'bind_answers' => "Answers Given",
'bind_updates' => "Dynamic Updates",
'bind_req_proto' => "Request protocol details",
'bind_cache' => "Cache content"];
$app_graphs['auth'] = array('bind_zone_maint' => "Zone maintenance");
$app_graphs['auth'] = ['bind_zone_maint' => "Zone maintenance"];
$app_graphs['resolv'] = array('bind_resolv_queries' => "Queries",
'bind_resolv_errors' => "Errors",
'bind_resolv_rtt' => "Query RTT",
'bind_resolv_dnssec' => "DNSSEC validation");
$app_graphs['resolv'] = ['bind_resolv_queries' => "Queries",
'bind_resolv_errors' => "Errors",
'bind_resolv_rtt' => "Query RTT",
'bind_resolv_dnssec' => "DNSSEC validation"];
$app_graphs['queries'] = array('bind_query_rejected' => "Rejected queries",
'bind_query_in' => "Incoming queries",
'bind_query_out' => "Outgoing queries");
$app_graphs['queries'] = ['bind_query_rejected' => "Rejected queries",
'bind_query_in' => "Incoming queries",
'bind_query_out' => "Outgoing queries"];
// EOF

View File

@ -4,13 +4,13 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('ceph_osd' => 'OSD','ceph_iops' => 'OPS','ceph_speed' => 'Ceph I/O',);
$app_graphs['default'] = ['ceph_osd' => 'OSD', 'ceph_iops' => 'OPS', 'ceph_speed' => 'Ceph I/O',];
// EOF

View File

@ -3,16 +3,16 @@
/**
* Observium Network Management and Monitoring System
*
* @package observium
* @subpackage applications
* @author Sander Steffann <sander@steffann.nl>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Sander Steffann <sander@steffann.nl>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array(
'dhcpkit_packets' => "Packets",
$app_graphs['default'] = [
'dhcpkit_packets' => "Packets",
'dhcpkit_msgtypes' => "Message types",
);
];
/* End of file dhcpkit.inc.php */

View File

@ -4,22 +4,22 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('dovecot_commands' => 'Commands',
'dovecot_connected' => 'Connected sessions',
'dovecot_auth' => 'Auth',
'dovecot_auth_cache' => 'Auth cache hitrate %',
'dovecot_io' => 'IO',
'dovecot_storage' => 'Storage',
'dovecot_cache' => 'Mail cache hits',
'dovecot_usage' => 'Context Switches',
'dovecot_pages' => 'Page Reclaims',
'dovecot_cpu' => 'CPU usage');
$app_graphs['default'] = ['dovecot_commands' => 'Commands',
'dovecot_connected' => 'Connected sessions',
'dovecot_auth' => 'Auth',
'dovecot_auth_cache' => 'Auth cache hitrate %',
'dovecot_io' => 'IO',
'dovecot_storage' => 'Storage',
'dovecot_cache' => 'Mail cache hits',
'dovecot_usage' => 'Context Switches',
'dovecot_pages' => 'Page Reclaims',
'dovecot_cpu' => 'CPU usage'];
// EOF

View File

@ -4,16 +4,16 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('drbd_network_bits' => 'Network Traffic',
'drbd_disk_bits' => 'Disk Traffic',
'drbd_unsynced' => 'Unsynced Data',
'drbd_queue' => 'Queues');
$app_graphs['default'] = ['drbd_network_bits' => 'Network Traffic',
'drbd_disk_bits' => 'Disk Traffic',
'drbd_unsynced' => 'Unsynced Data',
'drbd_queue' => 'Queues'];
// EOF

View File

@ -4,92 +4,90 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_sections = array();
$app_modules = array(
"as" => array(
"rrd" => "wmi-app-exchange-as.rrd",
"descr" => "ActiveSync",
"graphs" => array(
$app_sections = [];
$app_modules = [
"as" => [
"rrd" => "wmi-app-exchange-as.rrd",
"descr" => "ActiveSync",
"graphs" => [
'exchange_as_pingcmd' => 'Ping Commands Pending',
'exchange_as_syncmd' => 'Sync Commands Pending',
'exchange_as_syncmd' => 'Sync Commands Pending',
'exchange_as_curreqs' => 'Current Requests'
)
),
"auto" => array(
"rrd" => "wmi-app-exchange-auto.rrd",
"descr" => "Autodiscover",
"graphs" => array(
]
],
"auto" => [
"rrd" => "wmi-app-exchange-auto.rrd",
"descr" => "Autodiscover",
"graphs" => [
'exchange_auto_totalreqs' => 'Total Requests',
'exchange_auto_errors' => 'Total Error Responses'
)
),
"oab" => array(
"rrd" => "wmi-app-exchange-oab.rrd",
"descr" => "Offline Address Book",
"graphs" => array(
'exchange_oab_dlq' => 'Download Tasks Queued',
'exchange_auto_errors' => 'Total Error Responses'
]
],
"oab" => [
"rrd" => "wmi-app-exchange-oab.rrd",
"descr" => "Offline Address Book",
"graphs" => [
'exchange_oab_dlq' => 'Download Tasks Queued',
'exchange_oab_dlcom' => 'Download Tasks Completed'
)
),
"owa" => array(
"rrd" => "wmi-app-exchange-owa.rrd",
"descr" => "Outlook Web App",
"graphs" => array(
]
],
"owa" => [
"rrd" => "wmi-app-exchange-owa.rrd",
"descr" => "Outlook Web App",
"graphs" => [
'exchange_owa_rtime' => 'Response Times',
'exchange_owa_users' => 'Unique Users'
)
),
"trans" => array(
"rrd" => "wmi-app-exchange-tqs.rrd",
"descr" => "Transport Queues",
"graphs" => array(
'exchange_trans_queue' => 'Total Queues',
'exchange_trans_mbque' => 'Active Mailbox Delivery Queues',
]
],
"trans" => [
"rrd" => "wmi-app-exchange-tqs.rrd",
"descr" => "Transport Queues",
"graphs" => [
'exchange_trans_queue' => 'Total Queues',
'exchange_trans_mbque' => 'Active Mailbox Delivery Queues',
'exchange_trans_subque' => 'Submission Queues'
)
),
"smtp" => array(
"rrd" => "wmi-app-exchange-smtp.rrd",
"descr" => "SMTP",
"graphs" => array(
]
],
"smtp" => [
"rrd" => "wmi-app-exchange-smtp.rrd",
"descr" => "SMTP",
"graphs" => [
'exchange_trans_smtp' => "SMTP Connections"
)
),
"is" => array(
"rrd" => "wmi-app-exchange-is.rrd",
"descr" => "Information Store",
"graphs" => array(
]
],
"is" => [
"rrd" => "wmi-app-exchange-is.rrd",
"descr" => "Information Store",
"graphs" => [
'exchange_is_active' => 'Active Connection Count',
'exchange_is_users' => 'Current User Count',
'exchange_is_rpcreq' => 'RPC Requests',
'exchange_is_rpcfail' => 'Failed RPC Requests'
)
),
"mailbox" => array(
"rrd" => "wmi-app-exchange-mailbox.rrd",
"descr" => "Mailbox",
"graphs" => array(
]
],
"mailbox" => [
"rrd" => "wmi-app-exchange-mailbox.rrd",
"descr" => "Mailbox",
"graphs" => [
'exchange_mb_latency' => 'RPC Average Latency',
'exchange_mb_queued' => 'Messages Queued for Submission',
'exchange_mb_msgs' => 'Messages per Second'
)
)
);
]
]
];
foreach ($app_modules as $module => $data)
{
if (is_file(get_rrd_path($device, $data['rrd'])))
{
$app_sections[$module] = $data['descr'];
$app_graphs[$module] = $data['graphs'];
}
foreach ($app_modules as $module => $data) {
if (is_file(get_rrd_path($device, $data['rrd']))) {
$app_sections[$module] = $data['descr'];
$app_graphs[$module] = $data['graphs'];
}
}
unset($app_modules);

View File

@ -4,13 +4,13 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('exim-mailqueue_total' => 'Total mail in queue');
$app_graphs['default'] = ['exim-mailqueue_total' => 'Total mail in queue'];
// EOF

View File

@ -4,15 +4,15 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('exim_sent' => 'Exim - Sent / Received',
'exim_spam' => 'Exim - Spam / Virus',
'exim_reject' =>'Exim - Rejected / Bounced');
$app_graphs['default'] = ['exim_sent' => 'Exim - Sent / Received',
'exim_spam' => 'Exim - Spam / Virus',
'exim_reject' => 'Exim - Rejected / Bounced'];
// EOF

View File

@ -4,14 +4,14 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('freeradius_authentication' => 'FreeRADIUS Authentication',
'freeradius_accounting' => 'FreeRADIUS Accounting');
$app_graphs['default'] = ['freeradius_authentication' => 'FreeRADIUS Authentication',
'freeradius_accounting' => 'FreeRADIUS Accounting'];
// EOF

View File

@ -4,16 +4,16 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array(
'icecast_current' => 'IceCast - Current',
'icecast_max' => 'IceCast - Maximum'
);
$app_graphs['default'] = [
'icecast_current' => 'IceCast - Current',
'icecast_max' => 'IceCast - Maximum'
];
// EOF

View File

@ -5,15 +5,15 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('ioping_timing' => 'I/O Timings',
'ioping_speed' => 'Speed',
'ioping_iops' => 'IOPs');
$app_graphs['default'] = ['ioping_timing' => 'I/O Timings',
'ioping_speed' => 'Speed',
'ioping_iops' => 'IOPs'];
// EOF

View File

@ -4,49 +4,49 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2014, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @copyright (C) Adam Armstrong
*
*/
// defines tabs
$app_sections = array(
'memory' => 'Memory',
$app_sections = [
'memory' => 'Memory',
'threads' => 'Threads',
'classes' => 'Classes',
'gc' => 'Garbage Collector',
'system' => 'System Information',
);
'gc' => 'Garbage Collector',
'system' => 'System Information',
];
// defines graphs in memory tab
$app_graphs['memory'] = array(
$app_graphs['memory'] = [
'jvmoverjmx_memory_summary' => 'Memory Summary',
'jvmoverjmx_heap' => 'Heap',
'jvmoverjmx_nonheap' => 'Non Heap',
'jvmoverjmx_eden' => 'Eden Space',
'jvmoverjmx_perm' => 'Permanent Generation',
'jvmoverjmx_old' => 'Old Generation',
);
'jvmoverjmx_heap' => 'Heap',
'jvmoverjmx_nonheap' => 'Non Heap',
'jvmoverjmx_eden' => 'Eden Space',
'jvmoverjmx_perm' => 'Permanent Generation',
'jvmoverjmx_old' => 'Old Generation',
];
// defines graphs in threads tab
$app_graphs['threads'] = array(
$app_graphs['threads'] = [
'jvmoverjmx_threads' => 'Threads',
);
];
$app_graphs['classes'] = array(
$app_graphs['classes'] = [
'jvmoverjmx_classes' => 'Classes',
);
];
$app_graphs['gc'] = array(
'jvmoverjmx_gc_young_time' => 'GC Young Gen Collection Time',
'jvmoverjmx_gc_old_time' => 'GC Old Gen Collection Time',
$app_graphs['gc'] = [
'jvmoverjmx_gc_young_time' => 'GC Young Gen Collection Time',
'jvmoverjmx_gc_old_time' => 'GC Old Gen Collection Time',
'jvmoverjmx_gc_young_count' => 'GC Young Collection Count',
'jvmoverjmx_gc_old_count' => 'GC Old Collection Count',
);
'jvmoverjmx_gc_old_count' => 'GC Old Collection Count',
];
$app_graphs['system'] = array(
$app_graphs['system'] = [
'jvmoverjmx_system_uptime' => 'Uptime',
);
];
// EOF

View File

@ -4,24 +4,24 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2014, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@memetic.org>
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@memetic.org>
* @copyright (C) 2006-2014 Adam Armstrong
*
*/
$app_graphs['default'] = array(
'kamailio_errors' => 'Errors',
'kamailio_shmen' => 'Shared Memory Usage',
'kamailio_core' => 'Core Stats',
'kamailio_registrar' => 'Registrations',
'kamailio_usrloc' => 'Users',
'kamailio_tmx' => 'TMX',
'kamailio_tcp' => 'TCP',
'kamailio_sl123' => 'SL 100 -> 3XX',
'kamailio_sl4' => 'SL 400 -> 4XX',
'kamailio_sl56' => 'SL 500 -> XXX',
);
$app_graphs['default'] = [
'kamailio_errors' => 'Errors',
'kamailio_shmen' => 'Shared Memory Usage',
'kamailio_core' => 'Core Stats',
'kamailio_registrar' => 'Registrations',
'kamailio_usrloc' => 'Users',
'kamailio_tmx' => 'TMX',
'kamailio_tcp' => 'TCP',
'kamailio_sl123' => 'SL 100 -> 3XX',
'kamailio_sl4' => 'SL 400 -> 4XX',
'kamailio_sl56' => 'SL 500 -> XXX',
];
// EOF

View File

@ -5,15 +5,15 @@
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @package observium
* @subpackage applications
* @copyright (C) 2006 - 2013 Adam Armstrong
*
*/
$app_graphs['default'] = array('lighttpd_hits' => 'Hits',
'lighttpd_traffic' => 'Traffic',
'lighttpd_uptime' => 'Lighttpd Uptime',
'lighttpd_servers' => 'Busy / Idle Workers',
'lighttpd_scoreboardstatistics' => 'Scoreboard Statistics');
$app_graphs['default'] = ['lighttpd_hits' => 'Hits',
'lighttpd_traffic' => 'Traffic',
'lighttpd_uptime' => 'Lighttpd Uptime',
'lighttpd_servers' => 'Busy / Idle Workers',
'lighttpd_scoreboardstatistics' => 'Scoreboard Statistics'];

View File

@ -5,13 +5,13 @@
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @package observium
* @subpackage applications
* @copyright (C) 2006 - 2013 Adam Armstrong
*
*/
$app_graphs['default'] = array('lvs_stats_connections' => 'Connections per Second',
'lvs_stats_packets' => 'Packets per Second',
'lvs_stats_bytes' => 'Bytes per Second');
$app_graphs['default'] = ['lvs_stats_connections' => 'Connections per Second',
'lvs_stats_packets' => 'Packets per Second',
'lvs_stats_bytes' => 'Bytes per Second'];

View File

@ -4,15 +4,15 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('mailscanner_sent' => 'Sent / Received',
'mailscanner_spam' => 'Spam / Virus',
'mailscanner_reject' => 'Rejected / Waiting / Relayed');
$app_graphs['default'] = ['mailscanner_sent' => 'Sent / Received',
'mailscanner_spam' => 'Spam / Virus',
'mailscanner_reject' => 'Rejected / Waiting / Relayed'];
// EOF

View File

@ -4,19 +4,19 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('memcached_bits' => 'Traffic',
'memcached_commands' => 'Commands',
'memcached_data' => 'Data Size',
'memcached_items' => 'Items',
'memcached_uptime' => 'Uptime',
'memcached_threads' => 'Threads',
);
$app_graphs['default'] = ['memcached_bits' => 'Traffic',
'memcached_commands' => 'Commands',
'memcached_data' => 'Data Size',
'memcached_items' => 'Items',
'memcached_uptime' => 'Uptime',
'memcached_threads' => 'Threads',
];
// EOF

View File

@ -4,21 +4,21 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('mongodb_commands' => 'Commands',
'mongodb_queue' => 'Queues',
'mongodb_mem' => 'Memory',
'mongodb_replication' => 'Replication',
'mongodb_wired' => 'Wired Storage Engine',
'mongodb_connections' => 'Connections',
'mongodb_network' => 'Network',
);
$app_graphs['default'] = ['mongodb_commands' => 'Commands',
'mongodb_queue' => 'Queues',
'mongodb_mem' => 'Memory',
'mongodb_replication' => 'Replication',
'mongodb_wired' => 'Wired Storage Engine',
'mongodb_connections' => 'Connections',
'mongodb_network' => 'Network',
];
// EOF

View File

@ -4,35 +4,38 @@
*
* 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
* @package observium
* @subpackage applications
* @author Solomon Seal <slm4996+observium@gmail.com> 2014-04
* @copyright (C) Adam Armstrong
*
*/
$sql = "SELECT * FROM `applications-state` WHERE `application_id` = ?";
$app_state = dbFetchRow($sql, array($app['app_id']));
$app_data = safe_unserialize($app_state['app_state']);
$sql = "SELECT * FROM `applications-state` WHERE `application_id` = ?";
$app_state = dbFetchRow($sql, [$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";
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';
if (!empty($app_data['memory'])) {
$app_graphs['system']['mssql_memory_usage'] = 'Memory';
}
$app_graphs['stats'] = array(
'mssql_stats' => 'Users'
);
$app_graphs['stats'] = [
'mssql_stats' => 'Users'
];
$app_graphs['buffers'] = array(
'mssql_buffer_page' => 'Page Lookups',
'mssql_buffer_pglife' => 'Page Life Expectancy',
'mssql_buffer_stalls' => 'Free List Stalls'
);
$app_graphs['buffers'] = [
'mssql_buffer_page' => 'Page Lookups',
'mssql_buffer_pglife' => 'Page Life Expectancy',
'mssql_buffer_stalls' => 'Free List Stalls'
];
// EOF

View File

@ -4,20 +4,20 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage web
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
* @package observium
* @subpackage web
* @copyright (C) Adam Armstrong
*
*/
if (!safe_empty($app_data['memory'])) {
$memory_used = $app_data['memory']['used'] - $app_data['memory']['cache'];
$memory_used_perc = round(float_div($memory_used, $app_data['memory']['total']) * 100, 2);
$memory_used = $app_data['memory']['used'] - $app_data['memory']['cache'];
$memory_used_perc = round(float_div($memory_used, $app_data['memory']['total']) * 100, 2);
$memory_cached_perc = round(float_div($app_data['memory']['cache'], $app_data['memory']['total']) * 100, 2);
$memory_free = $app_data['memory']['total'] - $app_data['memory']['used'];
$memory_free_perc = round(float_div($memory_free, $app_data['memory']['total']) * 100, 2);
$memory_free = $app_data['memory']['total'] - $app_data['memory']['used'];
$memory_free_perc = round(float_div($memory_free, $app_data['memory']['total']) * 100, 2);
$graph_array = array();
$graph_array = [];
$graph_array['height'] = "100";
$graph_array['width'] = "512";
$graph_array['to'] = get_time();
@ -25,49 +25,49 @@ if (!safe_empty($app_data['memory'])) {
$graph_array['type'] = 'application_mssql_memory_usage';
$graph_array['from'] = get_time('day');
$graph_array['legend'] = "no";
$graph = generate_graph_tag($graph_array);
$graph = generate_graph_tag($graph_array);
$link_array = $graph_array;
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$overlib_content = generate_overlib_content($graph_array, $app['app_instance'] . " - Memory Usage");
$percentage_bar = array();
$percentage_bar = [];
//$percentage_bar['border'] = "#EA8F00";
$percentage_bar['border'] = "#E25A00";
$percentage_bar['bg'] = "#f0f0f0";
$percentage_bar['width'] = "100%";
$percentage_bar['text'] = $memory_free_perc."%";
$percentage_bar['text'] = $memory_free_perc . "%";
$percentage_bar['text_c'] = "#E25A00";
$percentage_bar['bars'][0] = array('percent' => $memory_used_perc, 'colour' => '#EE9955', 'text' => $memory_used_perc.'%');
$percentage_bar['bars'][1] = array('percent' => $memory_cached_perc, 'colour' => '#f0e0a0', 'text' => '');
$percentage_bar['bars'][0] = ['percent' => $memory_used_perc, 'colour' => '#EE9955', 'text' => $memory_used_perc . '%'];
$percentage_bar['bars'][1] = ['percent' => $memory_cached_perc, 'colour' => '#f0e0a0', 'text' => ''];
echo(overlib_link($link, $graph, $overlib_content, NULL));
?>
<div class="box box-solid">
<div class="title"><i class="<?php echo $config['icon']['mempool']; ?>"></i> Memory</div>
<div class="content">
<table width="100%" class="table table-striped table-condensed-more ">
<tr>
<td colspan="7">
<?php echo(percentage_bar($percentage_bar)); ?>
</td>
</tr>
<tr class="small">
<td><i style="font-size: 7px; line-height: 7px; background-color: #EE9955; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Used</td>
<td><?php echo(formatStorage($memory_used).' ('.$memory_used_perc.'%)'); ?></td>
<td><i style="font-size: 7px; line-height: 7px; background-color: #f0e0a0; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Cached</td>
<td><?php echo(formatStorage($app_data['memory']['cache']).' ('.$memory_cached_perc.'%)'); ?></td>
<td><i style="font-size: 7px; line-height: 7px; background-color: #f0f0f0; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Free</td>
<td><?php echo(formatStorage($memory_free).' ('.$memory_free_perc.'%)'); ?></td>
</tr>
</table>
</div>
</div>
<?php
?>
<div class="box box-solid">
<div class="title"><i class="<?php echo $config['icon']['mempool']; ?>"></i> Memory</div>
<div class="content">
<table width="100%" class="table table-striped table-condensed-more ">
<tr>
<td colspan="7">
<?php echo(percentage_bar($percentage_bar)); ?>
</td>
</tr>
<tr class="small">
<td><i style="font-size: 7px; line-height: 7px; background-color: #EE9955; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Used</td>
<td><?php echo(format_bytes($memory_used) . ' (' . $memory_used_perc . '%)'); ?></td>
<td><i style="font-size: 7px; line-height: 7px; background-color: #f0e0a0; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Cached</td>
<td><?php echo(format_bytes($app_data['memory']['cache']) . ' (' . $memory_cached_perc . '%)'); ?></td>
<td><i style="font-size: 7px; line-height: 7px; background-color: #f0f0f0; border: 1px #aaa solid;">&nbsp;&nbsp;&nbsp;</i> Free</td>
<td><?php echo(format_bytes($memory_free) . ' (' . $memory_free_perc . '%)'); ?></td>
</tr>
</table>
</div>
</div>
<?php
}
unset($percentage_bar, $graph_array, $overlib_content, $graph, $link, $link_array);

View File

@ -4,51 +4,51 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage web
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
* @package observium
* @subpackage web
* @copyright (C) Adam Armstrong
*
*/
$cpu_counter = $app_data['cpu']['proc'];
$time_counter = $app_data['cpu']['time'];
$cpu_counter = $app_data['cpu']['proc'];
$time_counter = $app_data['cpu']['time'];
$cpu_load_percent = round(float_div($cpu_counter, $time_counter) * 100, 2);
$background = get_percentage_colours($cpu_load_percent);
$background = get_percentage_colours($cpu_load_percent);
$graph_array = array();
$graph_array = [];
$graph_array['height'] = "100";
$graph_array['width'] = "512";
$graph_array['to'] = $config['time']['now'];
$graph_array['to'] = get_time();
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = 'application_mssql_cpu_usage';
$graph_array['from'] = $config['time']['day'];
$graph_array['from'] = get_time('day');
$graph_array['legend'] = "no";
$graph = generate_graph_tag($graph_array);
$graph = generate_graph_tag($graph_array);
$link_array = $graph_array;
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$overlib_content = generate_overlib_content($graph_array, $app['app_instance'] . " - CPU Usage");
$percentage_bar = array();
$percentage_bar['border'] = "#".$background['left'];
$percentage_bar['bg'] = "#".$background['right'];
$percentage_bar = [];
$percentage_bar['border'] = "#" . $background['left'];
$percentage_bar['bg'] = "#" . $background['right'];
$percentage_bar['width'] = "100%";
$percentage_bar['text'] = $cpu_load_percent."%";
$percentage_bar['text'] = $cpu_load_percent . "%";
$percentage_bar['text_c'] = "#FFFFFF";
$percentage_bar['bars'][0] = array('percent' => $cpu_load_percent);
$percentage_bar['bars'][0] = ['percent' => $cpu_load_percent];
echo(overlib_link($link, $graph, $overlib_content, NULL));
?>
<table width="100%" class="table table-striped table-condensed-more ">
<tr>
<td class="entity">Current CPU Load</td>
<td style="width: 90px;"></td>
<td style="width: 200px;"><?php echo percentage_bar($percentage_bar); ?></td>
</tr>
</table>
<table width="100%" class="table table-striped table-condensed-more ">
<tr>
<td class="entity">Current CPU Load</td>
<td style="width: 90px;"></td>
<td style="width: 200px;"><?php echo percentage_bar($percentage_bar); ?></td>
</tr>
</table>
<?php

View File

@ -4,46 +4,46 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_sections = array('system' => "System",
'queries' => "Queries",
'innodb' => "InnoDB");
$app_sections = ['system' => "System",
'queries' => "Queries",
'innodb' => "InnoDB"];
$app_graphs['system'] = array(
'mysql_connections' => 'Connections',
'mysql_status' => 'Process List',
'mysql_files_tables' => 'Files and Tables',
'mysql_myisam_indexes' => 'MyISAM Indexes',
'mysql_network_traffic' => 'Network Traffic',
'mysql_table_locks' => 'Table Locks',
'mysql_temporary_objects' => 'Temporary Objects'
);
$app_graphs['system'] = [
'mysql_connections' => 'Connections',
'mysql_status' => 'Process List',
'mysql_files_tables' => 'Files and Tables',
'mysql_myisam_indexes' => 'MyISAM Indexes',
'mysql_network_traffic' => 'Network Traffic',
'mysql_table_locks' => 'Table Locks',
'mysql_temporary_objects' => 'Temporary Objects'
];
$app_graphs['queries'] = array(
'mysql_command_counters' => 'Command Counters',
'mysql_query_cache' => 'Query Cache',
'mysql_query_cache_memory' => 'Query Cache Memory',
'mysql_select_types' => 'Select Types',
'mysql_slow_queries' => 'Slow Queries',
'mysql_sorts' => 'Sorts',
);
$app_graphs['queries'] = [
'mysql_command_counters' => 'Command Counters',
'mysql_query_cache' => 'Query Cache',
'mysql_query_cache_memory' => 'Query Cache Memory',
'mysql_select_types' => 'Select Types',
'mysql_slow_queries' => 'Slow Queries',
'mysql_sorts' => 'Sorts',
];
$app_graphs['innodb'] = array(
'mysql_innodb_buffer_pool' => 'InnoDB Buffer Pool',
'mysql_innodb_buffer_pool_activity' => 'InnoDB Buffer Pool Activity',
'mysql_innodb_insert_buffer' => 'InnoDB Insert Buffer',
'mysql_innodb_io' => 'InnoDB IO',
'mysql_innodb_io_pending' => 'InnoDB IO Pending',
'mysql_innodb_log' => 'InnoDB Log',
'mysql_innodb_row_operations' => 'InnoDB Row Operations',
'mysql_innodb_semaphores' => 'InnoDB semaphores',
'mysql_innodb_transactions' => 'InnoDB Transactions',
);
$app_graphs['innodb'] = [
'mysql_innodb_buffer_pool' => 'InnoDB Buffer Pool',
'mysql_innodb_buffer_pool_activity' => 'InnoDB Buffer Pool Activity',
'mysql_innodb_insert_buffer' => 'InnoDB Insert Buffer',
'mysql_innodb_io' => 'InnoDB IO',
'mysql_innodb_io_pending' => 'InnoDB IO Pending',
'mysql_innodb_log' => 'InnoDB Log',
'mysql_innodb_row_operations' => 'InnoDB Row Operations',
'mysql_innodb_semaphores' => 'InnoDB semaphores',
'mysql_innodb_transactions' => 'InnoDB Transactions',
];
// EOF

View File

@ -5,14 +5,14 @@
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('nfs_nfs2' => 'NFS2',
'nfs_nfs3' => 'NFS3',
'nfs_nfs4' => 'NFS4');
$app_graphs['default'] = ['nfs_nfs2' => 'NFS2',
'nfs_nfs3' => 'NFS3',
'nfs_nfs4' => 'NFS4'];
// EOF

View File

@ -5,17 +5,17 @@
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('nfsd_rc' => 'NFSd RC',
'nfsd_io' => 'NFSd I/O',
'nfsd_net' => 'NFSd Net',
'nfsd_rpc' => 'NFSd RPC',
'nfsd_proc3' => 'NFSd v3'
);
$app_graphs['default'] = ['nfsd_rc' => 'NFSd RC',
'nfsd_io' => 'NFSd I/O',
'nfsd_net' => 'NFSd Net',
'nfsd_rpc' => 'NFSd RPC',
'nfsd_proc3' => 'NFSd v3'
];
// EOF

View File

@ -4,14 +4,14 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('nginx_connections' => 'Connections',
'nginx_req' => 'Requests');
$app_graphs['default'] = ['nginx_connections' => 'Connections',
'nginx_req' => 'Requests'];
// EOF

View File

@ -5,17 +5,17 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array(
'nsd_queries' => 'NSD - DNS traffic',
'nsd_memory' => 'NSD - Memory statistics',
'nsd_qtype' => 'NSD - Queries by Query type',
'nsd_rcode' => 'NSD - Queries by Return code',
'nsd_axfr' => 'NSD - Requests for AXFR',
'nsd_zones' => 'NSD - Zones');
$app_graphs['default'] = [
'nsd_queries' => 'NSD - DNS traffic',
'nsd_memory' => 'NSD - Memory statistics',
'nsd_qtype' => 'NSD - Queries by Query type',
'nsd_rcode' => 'NSD - Queries by Return code',
'nsd_axfr' => 'NSD - Requests for AXFR',
'nsd_zones' => 'NSD - Zones'];

View File

@ -5,13 +5,13 @@
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('ntpclient_stats' => 'Statistics',
'ntpclient_freq' => 'Frequency');
$app_graphs['default'] = ['ntpclient_stats' => 'Statistics',
'ntpclient_freq' => 'Frequency'];
// EOF

View File

@ -4,19 +4,19 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('ntpdserver_stats' => 'Statistics',
'ntpdserver_freq' => 'Frequency',
'ntpdserver_stratum' => 'Stratum',
'ntpdserver_buffer' => 'Buffer',
'ntpdserver_bits' => 'Packets Sent/Received',
'ntpdserver_packets' => 'Packets Dropped/Ignored',
'ntpdserver_uptime' => 'Uptime');
$app_graphs['default'] = ['ntpdserver_stats' => 'Statistics',
'ntpdserver_freq' => 'Frequency',
'ntpdserver_stratum' => 'Stratum',
'ntpdserver_buffer' => 'Buffer',
'ntpdserver_bits' => 'Packets Sent/Received',
'ntpdserver_packets' => 'Packets Dropped/Ignored',
'ntpdserver_uptime' => 'Uptime'];
// EOF

View File

@ -4,37 +4,36 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
// Set variables
$rrd_server = get_rrd_path($device, "app-ntpd-server-".$app['app_id'].".rrd");
$rrd_client = get_rrd_path($device, "app-ntpd-client-".$app['app_id'].".rrd");
$ntpd_type = (is_file($rrd_server) ? "server" : "client");
$rrd_server = get_rrd_path($device, "app-ntpd-server-" . $app['app_id'] . ".rrd");
$rrd_client = get_rrd_path($device, "app-ntpd-client-" . $app['app_id'] . ".rrd");
$ntpd_type = (is_file($rrd_server) ? "server" : "client");
// Test if this is a server or client install and set app_sections accordingly
if ($ntpd_type == "server")
{
$app_sections = array('server' => "System",
'buffer' => "Buffer",
'packets' => "Packets");
if ($ntpd_type == "server") {
$app_sections = ['server' => "System",
'buffer' => "Buffer",
'packets' => "Packets"];
}
$app_graphs['default'] = array('ntpd_stats' => 'NTP Client - Statistics',
'ntpd_freq' => 'NTP Client - Frequency');
$app_graphs['default'] = ['ntpd_stats' => 'NTP Client - Statistics',
'ntpd_freq' => 'NTP Client - Frequency'];
$app_graphs['server'] = array('ntpd_stats' => 'NTPD Server - Statistics',
'ntpd_freq' => 'NTPD Server - Frequency',
'ntpd_uptime' => 'NTPD Server - Uptime',
'ntpd_stratum' => 'NTPD Server - Stratum');
$app_graphs['server'] = ['ntpd_stats' => 'NTPD Server - Statistics',
'ntpd_freq' => 'NTPD Server - Frequency',
'ntpd_uptime' => 'NTPD Server - Uptime',
'ntpd_stratum' => 'NTPD Server - Stratum'];
$app_graphs['buffer'] = array('ntpd_buffer' => 'NTPD Server - Buffer');
$app_graphs['buffer'] = ['ntpd_buffer' => 'NTPD Server - Buffer'];
$app_graphs['packets'] = array('ntpd_bits' => 'NTPD Server - Packets Sent/Received',
'ntpd_packets' => 'NTPD Server - Packets Dropped/Ignored');
$app_graphs['packets'] = ['ntpd_bits' => 'NTPD Server - Packets Sent/Received',
'ntpd_packets' => 'NTPD Server - Packets Dropped/Ignored'];
// EOF

View File

@ -4,14 +4,14 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('openvpn_nclients' => 'Connected Clients',
'openvpn_bits' => 'VPN Traffic');
$app_graphs['default'] = ['openvpn_nclients' => 'Connected Clients',
'openvpn_bits' => 'VPN Traffic'];
// EOF

View File

@ -4,15 +4,15 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('postfix_mailgraph_sent' => 'Postfix - Sent / Received',
'postfix_mailgraph_spam' => 'Postfix - Spam / Virus',
'postfix_mailgraph_reject' => 'Postfix - Rejected / Bounced');
$app_graphs['default'] = ['postfix_mailgraph_sent' => 'Postfix - Sent / Received',
'postfix_mailgraph_spam' => 'Postfix - Spam / Virus',
'postfix_mailgraph_reject' => 'Postfix - Rejected / Bounced'];
// EOF

View File

@ -1,5 +1,5 @@
<?php
$app_graphs['default'] = array('postfix_qshape_stats' => 'Postfix - Queue Shape');
$app_graphs['default'] = ['postfix_qshape_stats' => 'Postfix - Queue Shape'];
// EOF

View File

@ -4,22 +4,22 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_sections = array('stats' => "Stats",
'live' => "Live");
$app_sections = ['stats' => "Stats",
'live' => "Live"];
$app_graphs['stats'] = array('postgresql_xact' => 'Commit Count',
'postgresql_blks' => 'Blocks Count',
'postgresql_tuples' => 'Tuples Count',
'postgresql_tuples_query' => 'Tuples Count per Query');
$app_graphs['stats'] = ['postgresql_xact' => 'Commit Count',
'postgresql_blks' => 'Blocks Count',
'postgresql_tuples' => 'Tuples Count',
'postgresql_tuples_query' => 'Tuples Count per Query'];
$app_graphs['live'] = array('postgresql_connects' => 'Connection Count',
'postgresql_queries' => 'Query Types');
$app_graphs['live'] = ['postgresql_connects' => 'Connection Count',
'postgresql_queries' => 'Query Types'];
// EOF

View File

@ -4,25 +4,25 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('powerdns-recursor_queries' => 'Questions and answers per second',
'powerdns-recursor_tcpqueries' => 'TCP Questions and answers per second, unauthorized packets/s',
'powerdns-recursor_errors' => 'Packet errors per second',
'powerdns-recursor_limits' => 'Limitations per second',
'powerdns-recursor_latency' => 'Questions answered within latency',
'powerdns-recursor_outqueries' => 'Questions vs Outqueries',
'powerdns-recursor_qalatency' => 'Question/Answer latency in ms',
'powerdns-recursor_timeouts' => 'Corrupt / Failed / Timed out',
'powerdns-recursor_cache' => 'Cache sizes',
'powerdns-recursor_load' => 'Concurrent Queries',
/* 'powerdns-recursor_hitrate' => 'Cache hitrate',*/ // FIXME have to fix up the graph def before uncomment
/* 'powerdns-recursor_cpuload' => 'CPU load',*/ // FIXME have to fix up the graph def before uncomment
);
$app_graphs['default'] = ['powerdns-recursor_queries' => 'Questions and answers per second',
'powerdns-recursor_tcpqueries' => 'TCP Questions and answers per second, unauthorized packets/s',
'powerdns-recursor_errors' => 'Packet errors per second',
'powerdns-recursor_limits' => 'Limitations per second',
'powerdns-recursor_latency' => 'Questions answered within latency',
'powerdns-recursor_outqueries' => 'Questions vs Outqueries',
'powerdns-recursor_qalatency' => 'Question/Answer latency in ms',
'powerdns-recursor_timeouts' => 'Corrupt / Failed / Timed out',
'powerdns-recursor_cache' => 'Cache sizes',
'powerdns-recursor_load' => 'Concurrent Queries',
/* 'powerdns-recursor_hitrate' => 'Cache hitrate',*/ // FIXME have to fix up the graph def before uncomment
/* 'powerdns-recursor_cpuload' => 'CPU load',*/ // FIXME have to fix up the graph def before uncomment
];
// EOF

View File

@ -4,19 +4,19 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('powerdns_latency' => 'Latency',
'powerdns_fail' => 'Corrupt / Failed / Timed out',
'powerdns_packetcache' => 'Packet Cache',
'powerdns_querycache' => 'Query Cache',
'powerdns_recursing' => 'Recursing Queries and Answers',
'powerdns_queries' => 'Total UDP/TCP Queries and Answers',
'powerdns_queries_udp' => 'Detail UDP IPv4/IPv6 Queries and Answers');
$app_graphs['default'] = ['powerdns_latency' => 'Latency',
'powerdns_fail' => 'Corrupt / Failed / Timed out',
'powerdns_packetcache' => 'Packet Cache',
'powerdns_querycache' => 'Query Cache',
'powerdns_recursing' => 'Recursing Queries and Answers',
'powerdns_queries' => 'Total UDP/TCP Queries and Answers',
'powerdns_queries_udp' => 'Detail UDP IPv4/IPv6 Queries and Answers'];
// EOF

View File

@ -4,10 +4,10 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
@ -15,70 +15,63 @@
global $config;
$total = true;
$total = TRUE;
$rrddir = $config['rrd_dir']."/".$device['hostname'];
$files = array();
$rrddir = $config['rrd_dir'] . "/" . $device['hostname'];
$files = [];
if ($handle = opendir($rrddir))
{
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != ".." &&
str_starts($file, "app-shoutcast-".$app['app_id']))
{
array_push($files, $file);
if ($handle = opendir($rrddir)) {
while (FALSE !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." &&
str_starts($file, "app-shoutcast-" . $app['app_id'])) {
array_push($files, $file);
}
}
}
}
if (isset($total) && $total == true)
{
$graphs = array(
'shoutcast_multi_bits' => 'Traffic Statistics - Total of all Shoutcast servers',
'shoutcast_multi_stats' => 'Shoutcast Statistics - Total of all Shoutcast servers'
);
if (isset($total) && $total == TRUE) {
$graphs = [
'shoutcast_multi_bits' => 'Traffic Statistics - Total of all Shoutcast servers',
'shoutcast_multi_stats' => 'Shoutcast Statistics - Total of all Shoutcast servers'
];
foreach ($graphs as $key => $text)
{
$graph_type = $key;
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = "application_".$key;
echo('<h3>'.$text.'</h3>');
echo("<tr bgcolor='$row_colour'><td colspan=5>");
foreach ($graphs as $key => $text) {
$graph_type = $key;
$graph_array['to'] = get_time();
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = "application_" . $key;
echo('<h3>' . $text . '</h3>');
echo("<tr bgcolor='$row_colour'><td colspan=5>");
print_graph_row($graph_array);
print_graph_row($graph_array);
echo("</td></tr>");
}
echo("</td></tr>");
}
}
foreach ($files as $id => $file)
{
$hostname = str_replace(['app-shoutcast-'.$app['app_id'].'-', '.rrd'], '', $file);
list($host, $port) = explode('_', $hostname, 2);
$graphs = array(
'shoutcast_bits' => 'Traffic Statistics - '.$host.' (Port: '.$port.')',
'shoutcast_stats' => 'Shoutcast Statistics - '.$host.' (Port: '.$port.')'
);
foreach ($files as $id => $file) {
$hostname = str_replace(['app-shoutcast-' . $app['app_id'] . '-', '.rrd'], '', $file);
[$host, $port] = explode('_', $hostname, 2);
$graphs = [
'shoutcast_bits' => 'Traffic Statistics - ' . $host . ' (Port: ' . $port . ')',
'shoutcast_stats' => 'Shoutcast Statistics - ' . $host . ' (Port: ' . $port . ')'
];
foreach ($graphs as $key => $text)
{
$graph_type = $key;
$graph_array['height'] = "100";
$graph_array['width'] = "215";
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = "application_".$key;
$graph_array['hostname'] = $hostname;
echo('<h3>'.$text.'</h3>');
echo("<tr bgcolor='$row_colour'><td colspan=5>");
foreach ($graphs as $key => $text) {
$graph_type = $key;
$graph_array['height'] = "100";
$graph_array['width'] = "215";
$graph_array['to'] = get_time();
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = "application_" . $key;
$graph_array['hostname'] = $hostname;
echo('<h3>' . $text . '</h3>');
echo("<tr bgcolor='$row_colour'><td colspan=5>");
print_graph_row($graph_array);
print_graph_row($graph_array);
echo("</td></tr>");
}
echo("</td></tr>");
}
}
// EOF

View File

@ -4,20 +4,20 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('unbound_queries' => 'DNS traffic and cache hits',
'unbound_queue' => 'Queue statistics',
'unbound_memory' => 'Memory statistics',
'unbound_qtype' => 'Queries by Query type',
'unbound_rcode' => 'Queries by Return code',
'unbound_opcode' => 'Queries by Operation code',
'unbound_class' => 'Queries by Query class',
'unbound_flags' => 'Queries by Flags');
$app_graphs['default'] = ['unbound_queries' => 'DNS traffic and cache hits',
'unbound_queue' => 'Queue statistics',
'unbound_memory' => 'Memory statistics',
'unbound_qtype' => 'Queries by Query type',
'unbound_rcode' => 'Queries by Return code',
'unbound_opcode' => 'Queries by Operation code',
'unbound_class' => 'Queries by Query class',
'unbound_flags' => 'Queries by Flags'];
// EOF

View File

@ -4,17 +4,17 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array(
$app_graphs['default'] = [
'varnish_backend' => 'Varnish Backend',
'varnish_cache' => 'Varnish Cache',
'varnish_lru' => 'Varnish LRU',
);
'varnish_cache' => 'Varnish Cache',
'varnish_lru' => 'Varnish LRU',
];
// EOF

View File

@ -4,14 +4,14 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_graphs['default'] = array('vmwaretools_mem' => 'Memory Resource Allocation',
'vmwaretools_cpu' => 'CPU Resource Allocation');
$app_graphs['default'] = ['vmwaretools_mem' => 'Memory Resource Allocation',
'vmwaretools_cpu' => 'CPU Resource Allocation'];
// EOF

View File

@ -4,30 +4,30 @@
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage applications
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) Adam Armstrong
*
*/
$app_sections = array('system' => "System",
'backend' => "Backend",
'jvm' => "Java VM",
);
$app_sections = ['system' => "System",
'backend' => "Backend",
'jvm' => "Java VM",
];
$app_graphs['system'] = array(
'zimbra_fdcount' => 'Open file descriptors',
);
$app_graphs['system'] = [
'zimbra_fdcount' => 'Open file descriptors',
];
$app_graphs['backend'] = array(
'zimbra_mtaqueue' => 'MTA queue size',
'zimbra_connections' => 'Open connections',
'zimbra_threads' => 'Threads',
);
$app_graphs['backend'] = [
'zimbra_mtaqueue' => 'MTA queue size',
'zimbra_connections' => 'Open connections',
'zimbra_threads' => 'Threads',
];
$app_graphs['jvm'] = array(
'zimbra_jvmthreads' => 'JVM Threads',
);
$app_graphs['jvm'] = [
'zimbra_jvmthreads' => 'JVM Threads',
];
// EOF