From e3076a6e2ba2dcefc0571f0ffe63fca129e0b183 Mon Sep 17 00:00:00 2001 From: Nicolargo Date: Thu, 1 Sep 2016 15:29:36 +0200 Subject: [PATCH] Add Warning message if a [monitor] section is detected in the Glances configuration file --- glances/amps_list.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glances/amps_list.py b/glances/amps_list.py index 49e9e159..eab3b0d6 100644 --- a/glances/amps_list.py +++ b/glances/amps_list.py @@ -56,6 +56,10 @@ class AmpsList(object): if self.config is None: return False + # Display a warning (deprecated) message if the monitor section exist + if "monitor" in self.config.sections(): + logger.warning("A deprecated [monitor] section exists in the Glances configuration file. You should use the new Applications Monitoring Process module instead (http://glances.readthedocs.io/en/develop/aoa/amps.html).") + header = "glances_" # For each AMP scrip, call the load_config method for s in self.config.sections():