mirror of https://github.com/nicolargo/glances.git
First try for the Folders plugin in the WebUI
This commit is contained in:
parent
0c3129cf96
commit
ca47c2c97e
|
|
@ -99,7 +99,7 @@ critical=90
|
|||
# Allow additionnals files types (comma-separated FS type)
|
||||
#allow=zfs
|
||||
|
||||
#[folders]
|
||||
[folders]
|
||||
# Define a folder list to monitor
|
||||
# The list is composed of items (list_#nb <= 10)
|
||||
# An item is defined by:
|
||||
|
|
@ -107,14 +107,14 @@ critical=90
|
|||
# * careful: optional careful threshold (in MB)
|
||||
# * warning: optional warning threshold (in MB)
|
||||
# * critical: optional critical threshold (in MB)
|
||||
#folder_1_path=/tmp
|
||||
#folder_1_careful=2500
|
||||
#folder_1_warning=3000
|
||||
#folder_1_critical=3500
|
||||
#folder_2_path=/home/nicolargo/Videos
|
||||
#folder_2_warning=17000
|
||||
#folder_2_critical=20000
|
||||
#folder_3_path=/nonexisting
|
||||
folder_1_path=/tmp
|
||||
folder_1_careful=2500
|
||||
folder_1_warning=3000
|
||||
folder_1_critical=3500
|
||||
folder_2_path=/home/nicolargo/Videos
|
||||
folder_2_warning=17000
|
||||
folder_2_critical=20000
|
||||
folder_3_path=/nonexisting
|
||||
|
||||
[sensors]
|
||||
# Sensors core thresholds (in Celsius...)
|
||||
|
|
|
|||
|
|
@ -497,7 +497,7 @@ class _GlancesCurses(object):
|
|||
'diskio').get_stats_display(args=self.args)
|
||||
stats_fs = stats.get_plugin('fs').get_stats_display(
|
||||
args=self.args, max_width=plugin_max_width)
|
||||
stats_folder = stats.get_plugin('folder').get_stats_display(
|
||||
stats_folders = stats.get_plugin('folders').get_stats_display(
|
||||
args=self.args, max_width=plugin_max_width)
|
||||
stats_raid = stats.get_plugin('raid').get_stats_display(
|
||||
args=self.args)
|
||||
|
|
@ -675,7 +675,7 @@ class _GlancesCurses(object):
|
|||
self.new_line()
|
||||
self.display_plugin(stats_fs)
|
||||
self.new_line()
|
||||
self.display_plugin(stats_folder)
|
||||
self.display_plugin(stats_folders)
|
||||
self.new_line()
|
||||
self.display_plugin(stats_raid)
|
||||
self.new_line()
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
<script type="text/javascript" src="services/plugins/glances_diskio.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_docker.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_fs.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_folders.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_ip.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_load.js"></script>
|
||||
<script type="text/javascript" src="services/plugins/glances_mem.js"></script>
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
<section id="network" class="plugin table-row-group" ng-show="show.network" ng-include src="'plugins/network.html'"></section>
|
||||
<section id="diskio" class="plugin table-row-group" ng-show="show.diskio" ng-include src="'plugins/diskio.html'"></section>
|
||||
<section id="fs" class="plugin table-row-group" ng-show="show.fs" ng-include src="'plugins/fs.html'"></section>
|
||||
<section id="folders" class="plugin table-row-group" ng-show="show.folders" ng-include src="'plugins/folders.html'"></section>
|
||||
<section id="raid" class="plugin table-row-group" ng-show="statsRaid.hasDisks()" ng-include src="'plugins/raid.html'"></section>
|
||||
<section id="sensors" class="plugin table-row-group" ng-show="show.sensors && statsSensors.sensors.length > 0" ng-include src="'plugins/sensors.html'"></section>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue