Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zmops-test
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sanshi
zmops-test
Commits
d5bcacb5
Commit
d5bcacb5
authored
Dec 18, 2019
by
sanshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
1a878f2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
__init__.py
WorkCase/APP/__init__.py
+8
-8
__init__.py
WorkCase/__init__.py
+3
-4
No files found.
WorkCase/APP/__init__.py
View file @
d5bcacb5
...
@@ -366,7 +366,7 @@ class AppBase(object):
...
@@ -366,7 +366,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
monitorStatus
)
monitorStatus
=
monitorStatus
)
...
@@ -374,7 +374,7 @@ class AppBase(object):
...
@@ -374,7 +374,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
monitorStatus
)
monitorStatus
=
monitorStatus
)
...
@@ -382,7 +382,7 @@ class AppBase(object):
...
@@ -382,7 +382,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
monitorStatus
)
monitorStatus
=
monitorStatus
)
...
@@ -390,7 +390,7 @@ class AppBase(object):
...
@@ -390,7 +390,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
1
)
monitorStatus
=
1
)
...
@@ -399,7 +399,7 @@ class AppBase(object):
...
@@ -399,7 +399,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
monitorStatus
)
monitorStatus
=
monitorStatus
)
...
@@ -407,7 +407,7 @@ class AppBase(object):
...
@@ -407,7 +407,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
monitorType
=
monitorType
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
1
)
monitorStatus
=
1
)
...
@@ -415,7 +415,7 @@ class AppBase(object):
...
@@ -415,7 +415,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
parentHost
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
1
)
monitorStatus
=
1
)
...
@@ -424,7 +424,7 @@ class AppBase(object):
...
@@ -424,7 +424,7 @@ class AppBase(object):
response
=
self
.
device_create
(
response
=
self
.
device_create
(
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
token
=
self
.
token
,
hostName
=
name
,
hostType
=
host_type
,
iplist
=
iplist
,
dns
=
dns
,
monitorInterface
=
port
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
monitorType
=
1
,
manageLevel
=
1
,
parentHost
=
1
,
businessIds
=
businessIds
,
opsPerson
=
11
,
snmpCommunity
=
"
snmpCommunity
"
,
opsPerson
=
11
,
snmpCommunity
=
"
public
"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
ipmiAuthtype
=
1
,
ipmiPrivilege
=
1
,
ipmiUsername
=
"ipmiUsername"
,
ipmiPassword
=
"ipmiPassword"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
factoryId
=
1
,
model
=
"model"
,
version
=
"version"
,
serialnumber
=
"serialnumber"
,
description
=
"description"
,
monitorStatus
=
1
)
monitorStatus
=
1
)
...
...
WorkCase/__init__.py
View file @
d5bcacb5
...
@@ -78,11 +78,11 @@ class CaseBase:
...
@@ -78,11 +78,11 @@ class CaseBase:
"db_pw"
:
"Argus@2019"
,
"db_pw"
:
"Argus@2019"
,
"db_base"
:
"argus"
,
"db_base"
:
"argus"
,
#
"host_zabbix": "http://api.argus.zmops.cn",
"host_zabbix"
:
"http://api.argus.zmops.cn"
,
"host_zabbix"
:
"http://172.16.3.197:7070"
,
#
"host_zabbix": "http://172.16.3.197:7070",
"db_url_zabbix"
:
"172.16.2.153"
,
"db_url_zabbix"
:
"172.16.2.153"
,
"db_port_zabbix"
:
3306
,
"db_port_zabbix"
:
3306
,
"db_user_zabbix"
:
"zmops"
,
"db_user_zabbix"
:
"zmops"
,
"db_pw_zabbix"
:
"0VMoH
%
W7|h"
,
"db_pw_zabbix"
:
"0VMoH
%
W7|h"
,
"db_base_zabbix"
:
"zabbix"
"db_base_zabbix"
:
"zabbix"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment