Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7f3d854d
authored
9 years ago
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Oracle Linux support
parent
a7afca28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
agent.py
+3
-3
linux/_linuxcontext.py
+1
-0
No files found.
agent.py
View file @
7f3d854d
...
...
@@ -75,9 +75,9 @@ class SerialLineReceiver(SerialLineReceiverBase):
def
send_status
(
self
):
import
psutil
disk_usage
=
{(
disk
.
device
.
replace
(
'/'
,
'_'
)):
psutil
.
disk_usage
(
disk
.
mountpoint
)
.
percent
for
disk
in
psutil
.
disk_partitions
()}
disk_usage
=
dict
((
disk
.
device
.
replace
(
'/'
,
'_'
),
psutil
.
disk_usage
(
disk
.
mountpoint
)
.
percent
)
for
disk
in
psutil
.
disk_partitions
())
args
=
{
"cpu"
:
dict
(
psutil
.
cpu_times
()
.
_asdict
()),
"ram"
:
dict
(
psutil
.
virtual_memory
()
.
_asdict
()),
"swap"
:
dict
(
psutil
.
swap_memory
()
.
_asdict
()),
...
...
This diff is collapsed.
Click to expand it.
linux/_linuxcontext.py
View file @
7f3d854d
...
...
@@ -39,6 +39,7 @@ mount_template_linux = (
distros
=
{
'Scientific Linux'
:
'rhel'
,
'Oracle Linux Server'
:
'rhel'
,
'CentOS'
:
'rhel'
,
'CentOS Linux'
:
'rhel'
,
'Debian'
:
'debian'
,
...
...
This diff is collapsed.
Click to expand it.
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