Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
63135c37
Commit
63135c37
authored
Jan 05, 2015
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.6 supports Python 3 except syntax. Who knew?
parent
63ef0ac3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ZEO/nagios.py
src/ZEO/nagios.py
+2
-2
No files found.
src/ZEO/nagios.py
View file @
63135c37
...
...
@@ -71,8 +71,8 @@ def check(addr, output_metrics, status, per):
s
=
socket
.
socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
try
:
s
.
connect
(
addr
)
except
socket
.
error
:
return
error
(
"Can't connect %s"
%
sys
.
exc_info
()[
1
]
)
except
socket
.
error
as
err
:
return
error
(
"Can't connect %s"
%
err
)
fp
=
s
.
makefile
()
fp
.
write
(
'
\
x00
\
x00
\
x00
\
x04
ruok'
)
fp
.
flush
()
...
...
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