Toggle navigation
Toggle navigation
This project
Loading...
Sign in
guizhou-monitorV2.0.1
/
agent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangmingm
8 years ago
Commit
78beaea1a636db67bbef728b0d5a4fabe985e3a1
1 parent
702652e0
修改getPingStatus方法。
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
src/com/sitech/ismp/coll/CollMySQL.java
src/com/sitech/ismp/coll/CollMySQLBySql.java
src/com/sitech/ismp/coll/CollMySQL.java
View file @
78beaea
...
...
@@ -54,11 +54,6 @@ public class CollMySQL implements CollMySQLMBean {
public
Vector
<
TblATO_KPIDETAIL
>
getPingStatus
(
HashMap
<
String
,
String
>
params
)
{
try
{
CollMySQLBySql
collector
=
new
CollMySQLBySql
();
logger
.
info
(
"***********************************"
);
logger
.
info
(
"***********************************"
);
logger
.
info
(
"***********************************"
);
logger
.
info
(
"***********************************"
);
logger
.
info
(
"********** CollMySQL execute getPingStatus *************************"
);
return
collector
.
getPingStatus
(
params
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"Exception while getPingStatus"
,
e
);
...
...
src/com/sitech/ismp/coll/CollMySQLBySql.java
View file @
78beaea
...
...
@@ -260,9 +260,11 @@ public class CollMySQLBySql {
int
end
=
url
.
lastIndexOf
(
":"
);
String
ipAddr
=
url
.
substring
(
start
+
2
,
end
);
log
.
info
(
" ***/////////////////// ipAddr="
+
ipAddr
+
"//////////////////"
);
CheckConnectionState
server
=
new
CheckConnectionState
();
String
unitId
=
"10-11-35-10"
+
":"
+
deviceId
+
"-SYS"
;
String
kpiId
=
"FM-00-10-001-999"
;
// mysql 主机连接状态
CheckConnectionState
server
=
new
CheckConnectionState
();
String
unitId
=
KBP_CLASS
+
"-10"
+
":"
+
deviceId
+
"-SYS"
;
ParamterBean
bean
=
new
ParamterBean
();
bean
.
setType
(
"mysql"
);
bean
.
setDEVICE_IP
(
ipAddr
);
...
...
@@ -271,7 +273,7 @@ public class CollMySQLBySql {
TblATO_KPIDETAIL
kpidetail
=
new
TblATO_KPIDETAIL
();
try
{
kpidetail
.
setUNIT_ID
(
unitId
);
kpidetail
.
setKPI_ID
(
"FM-00-11-001-999"
);
kpidetail
.
setKPI_ID
(
kpiId
);
kpidetail
.
setCLL_TIME
(
new
Date
());
kpidetail
.
setKPI_VALUE
(
stat
);
}
catch
(
ParseException
e
)
{
...
...
Please
register
or
login
to post a comment