X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=plugins%2FvRealiseOps%2Fmon_plugin_vrops.py;h=309cec9a51c25dfd7f1a85c04341214fe2766a47;hb=cea9af8fa73e2442415b31ef6dcd6ac45d80fe86;hp=986376b487c5d92ecbb0c96974d4dd33039b569b;hpb=07f4f49ac725a07ba696b794fa26718a15d07082;p=osm%2FMON.git diff --git a/plugins/vRealiseOps/mon_plugin_vrops.py b/plugins/vRealiseOps/mon_plugin_vrops.py index 986376b..309cec9 100644 --- a/plugins/vRealiseOps/mon_plugin_vrops.py +++ b/plugins/vRealiseOps/mon_plugin_vrops.py @@ -35,7 +35,7 @@ import json from OpenSSL.crypto import load_certificate, FILETYPE_PEM import os import datetime -from socket import gethostname +from socket import getfqdn from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) @@ -48,8 +48,8 @@ PERIOD_MSEC = {'HR':3600000,'DAY':86400000,'WEEK':604800000,'MONTH':2678400000,' #To Do - Add actual webhook url & certificate #SSL_CERTIFICATE_FILE_NAME = 'vROPs_Webservice/SSL_certificate/www.vrops_webservice.com.cert' #webhook_url = "https://mano-dev-1:8080/notify/" #for testing -webhook_url = "https://" + gethostname() + ":8080/notify/" -SSL_CERTIFICATE_FILE_NAME = ('vROPs_Webservice/SSL_certificate/' + gethostname() + ".cert") +webhook_url = "https://" + getfqdn() + ":8080/notify/" +SSL_CERTIFICATE_FILE_NAME = ('vROPs_Webservice/SSL_certificate/' + getfqdn() + ".cert") #SSL_CERTIFICATE_FILE_NAME = 'vROPs_Webservice/SSL_certificate/10.172.137.214.cert' #for testing MODULE_DIR = os.path.dirname(__file__)