摘要:
def setmailinfo(self, receiveUser, cc, subject, text, text_type, *attachmentFilePaths): # 设置邮件的基本信息(收件人,抄送,主题,正文,附件,可变参数附件路径列表) self.msg['From'] = sel 阅读全文
摘要:
import requests LOGIN_URL = "http://mydjangosite.com/accounts/login/"ENDPOINT_URL = 'http://mydjangosite.com/myendpoint/' '''Create a session.A sessio 阅读全文
摘要:
核心文件3千多行,谁受得了.改 阅读全文
摘要:
名称: Action-Email默认接收人: 故障{TRIGGER.STATUS},服务器:{HOSTNAME1}发生: {TRIGGER.NAME}故障!默认信息: 告警主机:{HOSTNAME1} 告警时间:{EVENT.DATE} {EVENT.TIME} 告警等级:{TRIGGER.SEVE 阅读全文
摘要:
1) Import the provided template. - TEMPLATE.VMWARE_ESXi_6.0_CIM.xml 2) Install Dependencies: # yum -y install sblim-wbemcli.x86_64 pywbem.noarch pytho 阅读全文
摘要:
Correct, if you use items with type "Zabbix agent" (so called passive checks). They will not work.Still older agents (prior to 4.0) work well with 4.0 阅读全文
摘要:
在项目中会用到argparse这个模块,相关demo代码如下: parser = argparse.ArgumentParser(description='File compare and upload ftp server')parser.add_argument('-path', metavar 阅读全文
摘要:
# -*- coding: utf-8 -*-import jenkinsclass TestJenkins(object): def __new__(cls, *args, **kwargs): server = 'http://1.1.1.1:8080/jenkins' username = ' 阅读全文