Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
e403c941
Commit
e403c941
authored
Jan 02, 2009
by
Antennipasi
Browse files
Changed diskusage-info human readable, added filesystem type..
parent
7e35246c
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/mods-available/monitor_core_module.inc.php
View file @
e403c941
...
...
@@ -192,7 +192,7 @@ class monitor_core_module {
$state
=
'ok'
;
/** Fetch the data into a array */
$dfData
=
shell_exec
(
"df"
);
$dfData
=
shell_exec
(
"df
-hTx tmpfs
"
);
// split into array
$df
=
explode
(
"
\n
"
,
$dfData
);
...
...
@@ -208,11 +208,12 @@ class monitor_core_module {
*/
$s
=
preg_split
(
"/[\s]+/"
,
$df
[
$i
]);
$data
[
$i
][
'fs'
]
=
$s
[
0
];
$data
[
$i
][
'size'
]
=
$s
[
1
];
$data
[
$i
][
'used'
]
=
$s
[
2
];
$data
[
$i
][
'available'
]
=
$s
[
3
];
$data
[
$i
][
'percent'
]
=
$s
[
4
];
$data
[
$i
][
'mounted'
]
=
$s
[
5
];
$data
[
$i
][
'type'
]
=
$s
[
1
];
$data
[
$i
][
'size'
]
=
$s
[
2
];
$data
[
$i
][
'used'
]
=
$s
[
3
];
$data
[
$i
][
'available'
]
=
$s
[
4
];
$data
[
$i
][
'percent'
]
=
$s
[
5
];
$data
[
$i
][
'mounted'
]
=
$s
[
6
];
/*
* calculate the state
*/
...
...
@@ -1304,4 +1305,4 @@ function monitorMailLog()
}
// end class
?>
\ No newline at end of file
?>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment