Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcached2influx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lnf-da-control
memcached2influx
Commits
aba8fc6b
Commit
aba8fc6b
authored
2 years ago
by
Riccardo Sellari
Browse files
Options
Downloads
Patches
Plain Diff
no bananas version
parent
c76c3a3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memcached2Influx.py
+7
-7
7 additions, 7 deletions
memcached2Influx.py
with
7 additions
and
7 deletions
memcached2Influx.py
+
7
−
7
View file @
aba8fc6b
...
...
@@ -55,12 +55,12 @@ args = parser.parse_args()
#log in the influx DB
#python memcached2Influx.py -s vldantemon003.lnf.infn.it -po 8086 -f '/home/riccardo/Random bs go/Test/cofnigurationFile.txt'
#
try:
clientInflux
=
InfluxDBClient
(
host
=
args
.
server
,
port
=
args
.
port
,
username
=
args
.
username
,
password
=
args
.
password
)
clientInflux
.
switch_database
(
"
dcsMemDb
"
)
print
(
"
succesfully logged in
\n
"
)
#
except:
#
sys.exit("Error: Invalid parameters, please try again")
try
:
clientInflux
=
InfluxDBClient
(
host
=
args
.
server
,
port
=
args
.
port
,
username
=
args
.
username
,
password
=
args
.
password
)
clientInflux
.
switch_database
(
"
dcsMemDb
"
)
print
(
"
succesfully logged in
\n
"
)
except
:
sys
.
exit
(
"
Error: Invalid parameters, please try again
"
)
#log in the memcached DB
#memcached_server = "192.168.198.20"
...
...
@@ -82,4 +82,4 @@ try:
except
FileNotFoundError
as
e
:
sys
.
exit
(
"
Error:
"
+
args
.
iptable
+
"
is not valid or does not point to a DBFile.
"
)
except
TypeError
as
e
:
print
(
"
banana
"
)
\ No newline at end of file
print
(
"
program ended succesfully
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment