summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolargo <nicolas@nicolargo.com>2016-08-22 09:14:41 +0200
committerNicolargo <nicolas@nicolargo.com>2016-08-22 09:14:41 +0200
commit6517df9f73c837793efb6820e8682e0a2d6cd8d2 (patch)
treebe32d2269a8710fd9808c6a7d66973b9ae57c740
parentb5529925e93339552b99eb94740180e5481ee600 (diff)
Update docs for the new IRQ plugin
-rw-r--r--NEWS1
-rw-r--r--docs/_static/irq.pngbin0 -> 3980 bytes
-rw-r--r--docs/aoa/index.rst1
-rw-r--r--docs/aoa/irq.rst14
-rw-r--r--glances/plugins/glances_irq.py8
5 files changed, 20 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 0451dbc6..58b4d29f 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Enhancements and new features:
* Add Application Monitoring Process plugin (issue #780)
* Add a new "Ports scanner" plugin (issue #734)
+ * Add a new IRQ monitoring plugin (issue #911)
* Improve IP plugin to display public IP address (issue #646)
* CPU additionnal stats monitoring: Context switch, Interrupts... (issue #810)
* Filter processes by others stats (username) (issue #748)
diff --git a/docs/_static/irq.png b/docs/_static/irq.png
new file mode 100644
index 00000000..397a4e18
--- /dev/null
+++ b/docs/_static/irq.png
Binary files differ
diff --git a/docs/aoa/index.rst b/docs/aoa/index.rst
index ddef3689..adccf082 100644
--- a/docs/aoa/index.rst
+++ b/docs/aoa/index.rst
@@ -30,6 +30,7 @@ Legend:
disk
fs
folders
+ irq
sensors
ps
monitor
diff --git a/docs/aoa/irq.rst b/docs/aoa/irq.rst
new file mode 100644
index 00000000..8df73c1e
--- /dev/null
+++ b/docs/aoa/irq.rst
@@ -0,0 +1,14 @@
+.. _irq:
+
+IRQ
+===
+
+.. image:: ../_static/irq.png
+
+Glances displays the top 5 interrupts rate. This plugin is only available on
+GNU/Linux machine (stats are grabbed from the /proc/interrupts file).
+
+How to read the informations:
+
+* The first Column is the IRQ number / name
+* The Second column says how many times the CPU core has been interrupted during the last second
diff --git a/glances/plugins/glances_irq.py b/glances/plugins/glances_irq.py
index a7e5e698..e1c55b8b 100644
--- a/glances/plugins/glances_irq.py
+++ b/glances/plugins/glances_irq.py
@@ -56,12 +56,12 @@ class Plugin(GlancesPlugin):
def update(self):
"""Update the IRQ stats"""
- if not LINUX: # only available on GNU/Linux
- return []
-
# Reset the list
self.reset()
+ if not LINUX: # only available on GNU/Linux
+ return self.stats
+
if self.input_method == 'local':
with open('/proc/interrupts') as irq_proc:
time_since_update = getTimeSinceLastUpdate('irq')
@@ -105,7 +105,7 @@ class Plugin(GlancesPlugin):
# Init the return message
ret = []
- if not LINUX: # only available on GNU/Linux
+ if not LINUX: # only available on GNU/Linux
return ret
# Only process if stats exist and display plugin enable...