Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24e2b6aa
authored
May 15, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove hardcoded graphite hostname
parent
4c340376
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
protocol.py
+5
-1
No files found.
protocol.py
View file @
24e2b6aa
...
...
@@ -5,6 +5,8 @@ import pickle
import
logging
import
time
import
struct
from
os
import
getenv
from
utils
import
SerialLineReceiverBase
from
agentcelery
import
agent_started
,
agent_stopped
...
...
@@ -51,7 +53,9 @@ class SerialLineReceiver(SerialLineReceiverBase):
client
=
GraphiteClientFactory
()
client
.
protocol
.
data
=
data
client
.
protocol
.
name
=
self
.
factory
.
vm
reactor
.
connectTCP
(
'10.7.0.96'
,
2004
,
client
)
reactor
.
connectTCP
(
getenv
(
'GRAPHITE_HOST'
,
'127.0.0.1'
),
int
(
getenv
(
'GRAPHITE_PORT'
,
'2004'
)),
client
)
def
handle_command
(
self
,
command
,
args
):
if
command
==
'agent_stopped'
:
...
...
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