initial commit; version 22.5.12042

This commit is contained in:
2022-12-12 23:28:25 -05:00
commit af1b03d79f
17653 changed files with 22692970 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('apache_bits' => 'Traffic',
'apache_hits' => 'Hits',
'apache_cpu' => 'CPU Utilisation',
'apache_scoreboard' => 'Scoreboard Statistics');
// EOF

View File

@ -0,0 +1,27 @@
<?php
/**
* 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
*
*/
$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));
}
print_navbar($navbar);
// EOF

View File

@ -0,0 +1,17 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('asterisk_peers' => 'Active Peers',
'asterisk_activecall' => 'Active Calls');
// EOF

View File

@ -0,0 +1,36 @@
<?php
/**
* 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
*
*/
$app_sections = array('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['auth'] = array('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['queries'] = array('bind_query_rejected' => "Rejected queries",
'bind_query_in' => "Incoming queries",
'bind_query_out' => "Outgoing queries");
// EOF

View File

@ -0,0 +1,16 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('ceph_osd' => 'OSD','ceph_iops' => 'OPS','ceph_speed' => 'Ceph I/O',);
// EOF

View File

@ -0,0 +1,18 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array(
'dhcpkit_packets' => "Packets",
'dhcpkit_msgtypes' => "Message types",
);
/* End of file dhcpkit.inc.php */

View File

@ -0,0 +1,25 @@
<?php
/**
* 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
*
*/
$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');
// EOF

View File

@ -0,0 +1,19 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('drbd_network_bits' => 'Network Traffic',
'drbd_disk_bits' => 'Disk Traffic',
'drbd_unsynced' => 'Unsynced Data',
'drbd_queue' => 'Queues');
// EOF

View File

@ -0,0 +1,97 @@
<?php
/**
* 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
*
*/
$app_sections = array();
$app_modules = array(
"as" => array(
"rrd" => "wmi-app-exchange-as.rrd",
"descr" => "ActiveSync",
"graphs" => array(
'exchange_as_pingcmd' => 'Ping 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(
'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_oab_dlcom' => 'Download Tasks Completed'
)
),
"owa" => array(
"rrd" => "wmi-app-exchange-owa.rrd",
"descr" => "Outlook Web App",
"graphs" => array(
'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',
'exchange_trans_subque' => 'Submission Queues'
)
),
"smtp" => array(
"rrd" => "wmi-app-exchange-smtp.rrd",
"descr" => "SMTP",
"graphs" => array(
'exchange_trans_smtp' => "SMTP Connections"
)
),
"is" => array(
"rrd" => "wmi-app-exchange-is.rrd",
"descr" => "Information Store",
"graphs" => array(
'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(
'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'];
}
}
unset($app_modules);
// EOF

View File

@ -0,0 +1,16 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('exim-mailqueue_total' => 'Total mail in queue');
// EOF

View File

@ -0,0 +1,18 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('exim_sent' => 'Exim - Sent / Received',
'exim_spam' => 'Exim - Spam / Virus',
'exim_reject' =>'Exim - Rejected / Bounced');
// EOF

View File

@ -0,0 +1,17 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('freeradius_authentication' => 'FreeRADIUS Authentication',
'freeradius_accounting' => 'FreeRADIUS Accounting');
// EOF

View File

@ -0,0 +1,19 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array(
'icecast_current' => 'IceCast - Current',
'icecast_max' => 'IceCast - Maximum'
);
// EOF

View File

@ -0,0 +1,19 @@
<?php
/**
* html/pages/device/apps/ioping.inc.php
* 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
*
*/
$app_graphs['default'] = array('ioping_timing' => 'I/O Timings',
'ioping_speed' => 'Speed',
'ioping_iops' => 'IOPs');
// EOF

View File

@ -0,0 +1,52 @@
<?php
/**
* 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
*
*/
// defines tabs
$app_sections = array(
'memory' => 'Memory',
'threads' => 'Threads',
'classes' => 'Classes',
'gc' => 'Garbage Collector',
'system' => 'System Information',
);
// defines graphs in memory tab
$app_graphs['memory'] = array(
'jvmoverjmx_memory_summary' => 'Memory Summary',
'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(
'jvmoverjmx_threads' => 'Threads',
);
$app_graphs['classes'] = array(
'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',
'jvmoverjmx_gc_young_count' => 'GC Young Collection Count',
'jvmoverjmx_gc_old_count' => 'GC Old Collection Count',
);
$app_graphs['system'] = array(
'jvmoverjmx_system_uptime' => 'Uptime',
);
// EOF

View File

@ -0,0 +1,27 @@
<?php
/**
* 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>
* @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',
);
// EOF

View File

@ -0,0 +1,19 @@
<?php
/**
* Observium
*
* This files is part of Observium.
*
* @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');

View File

@ -0,0 +1,17 @@
<?php
/**
* Observium
*
* This files is part of Observium.
*
* @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');

View File

@ -0,0 +1,18 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('mailscanner_sent' => 'Sent / Received',
'mailscanner_spam' => 'Spam / Virus',
'mailscanner_reject' => 'Rejected / Waiting / Relayed');
// EOF

View File

@ -0,0 +1,22 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('memcached_bits' => 'Traffic',
'memcached_commands' => 'Commands',
'memcached_data' => 'Data Size',
'memcached_items' => 'Items',
'memcached_uptime' => 'Uptime',
'memcached_threads' => 'Threads',
);
// EOF

View File

@ -0,0 +1,24 @@
<?php
/**
* 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
*
*/
$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',
);
// EOF

View 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

View File

@ -0,0 +1,75 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage web
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
*
*/
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_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);
$graph_array = array();
$graph_array['height'] = "100";
$graph_array['width'] = "512";
$graph_array['to'] = get_time();
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = 'application_mssql_memory_usage';
$graph_array['from'] = get_time('day');
$graph_array['legend'] = "no";
$graph = generate_graph_tag($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['border'] = "#EA8F00";
$percentage_bar['border'] = "#E25A00";
$percentage_bar['bg'] = "#f0f0f0";
$percentage_bar['width'] = "100%";
$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' => '');
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
}
unset($percentage_bar, $graph_array, $overlib_content, $graph, $link, $link_array);
// EOF

View File

@ -0,0 +1,57 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage web
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
*
*/
$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);
$graph_array = array();
$graph_array['height'] = "100";
$graph_array['width'] = "512";
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = 'application_mssql_cpu_usage';
$graph_array['from'] = $config['time']['day'];
$graph_array['legend'] = "no";
$graph = generate_graph_tag($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['width'] = "100%";
$percentage_bar['text'] = $cpu_load_percent."%";
$percentage_bar['text_c'] = "#FFFFFF";
$percentage_bar['bars'][0] = array('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>
<?php
unset($percentage_bar, $graph_array, $overlib_content, $graph, $link, $link_array);
// EOF

View File

@ -0,0 +1,49 @@
<?php
/**
* 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
*
*/
$app_sections = array('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['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['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',
);
// EOF

View File

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

View File

@ -0,0 +1,21 @@
<?php
/**
* Observium
*
* This files is part of Observium.
*
* @package observium
* @subpackage applications
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
$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'
);
// EOF

View File

@ -0,0 +1,17 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('nginx_connections' => 'Connections',
'nginx_req' => 'Requests');
// EOF

View File

@ -0,0 +1,21 @@
<?php
/**
* Observium
*
* 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
*
*/
$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');

View File

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

View File

@ -0,0 +1,22 @@
<?php
/**
* 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
*
*/
$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');
// EOF

View File

@ -0,0 +1,40 @@
<?php
/**
* 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
*
*/
// 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");
// 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");
}
$app_graphs['default'] = array('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['buffer'] = array('ntpd_buffer' => 'NTPD Server - Buffer');
$app_graphs['packets'] = array('ntpd_bits' => 'NTPD Server - Packets Sent/Received',
'ntpd_packets' => 'NTPD Server - Packets Dropped/Ignored');
// EOF

View File

@ -0,0 +1,17 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('openvpn_nclients' => 'Connected Clients',
'openvpn_bits' => 'VPN Traffic');
// EOF

View File

@ -0,0 +1,18 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('postfix_mailgraph_sent' => 'Postfix - Sent / Received',
'postfix_mailgraph_spam' => 'Postfix - Spam / Virus',
'postfix_mailgraph_reject' => 'Postfix - Rejected / Bounced');
// EOF

View File

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

View File

@ -0,0 +1,25 @@
<?php
/**
* 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
*
*/
$app_sections = array('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['live'] = array('postgresql_connects' => 'Connection Count',
'postgresql_queries' => 'Query Types');
// EOF

View File

@ -0,0 +1,28 @@
<?php
/**
* 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
*
*/
$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
);
// EOF

View File

@ -0,0 +1,22 @@
<?php
/**
* 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
*
*/
$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');
// EOF

View File

@ -0,0 +1,84 @@
<?php
/**
* 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
*
*/
## FIXME -- THIS IS MESSY AND NEEDS TO BE FIXED.
global $config;
$total = true;
$rrddir = $config['rrd_dir']."/".$device['hostname'];
$files = array();
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'
);
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>");
print_graph_row($graph_array);
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 ($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>");
print_graph_row($graph_array);
echo("</td></tr>");
}
}
// EOF

View File

@ -0,0 +1,23 @@
<?php
/**
* 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
*
*/
$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');
// EOF

View File

@ -0,0 +1,20 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array(
'varnish_backend' => 'Varnish Backend',
'varnish_cache' => 'Varnish Cache',
'varnish_lru' => 'Varnish LRU',
);
// EOF

View File

@ -0,0 +1,17 @@
<?php
/**
* 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
*
*/
$app_graphs['default'] = array('vmwaretools_mem' => 'Memory Resource Allocation',
'vmwaretools_cpu' => 'CPU Resource Allocation');
// EOF

View File

@ -0,0 +1,33 @@
<?php
/**
* 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
*
*/
$app_sections = array('system' => "System",
'backend' => "Backend",
'jvm' => "Java VM",
);
$app_graphs['system'] = array(
'zimbra_fdcount' => 'Open file descriptors',
);
$app_graphs['backend'] = array(
'zimbra_mtaqueue' => 'MTA queue size',
'zimbra_connections' => 'Open connections',
'zimbra_threads' => 'Threads',
);
$app_graphs['jvm'] = array(
'zimbra_jvmthreads' => 'JVM Threads',
);
// EOF