added versioning

This commit is contained in:
Kevin 2021-06-29 17:36:05 +02:00
parent a94e45a7c7
commit 8ac3faba25

View File

@ -24,6 +24,7 @@ import psutil
global module_list global module_list
module_list = [] module_list = []
version = "1.1"
######################################################################################### #########################################################################################
@ -382,7 +383,7 @@ def discover(osyst, servicelist):
elif osyst == "Linux": elif osyst == "Linux":
lnx_service(servicelist, memcpu) lnx_service(servicelist, memcpu)
else: else:
print ("\nPandora FMS Autodiscovery plugin.") print ("\nPandora FMS Autodiscovery plugin v{}".format(version))
print ("Checks the status of the services in list and monitors CPU and Memory for each of them.\n") print ("Checks the status of the services in list and monitors CPU and Memory for each of them.\n")
print ("Usage:") print ("Usage:")
print ("{} [options] [--usage]".format(argv[0])) print ("{} [options] [--usage]".format(argv[0]))