mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-13 19:39:08 -04:00
Add Warning message if a [monitor] section is detected in the Glances configuration file
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user