cpu_value umbenennen
This commit is contained in:
parent
83fb6477ae
commit
ae5832d793
1 changed files with 7 additions and 8 deletions
|
@ -201,8 +201,8 @@ function get_temperature_value {
|
|||
done <<< "$data"
|
||||
}
|
||||
|
||||
function get_cpulabel {
|
||||
echo multigraph cpu_load$name
|
||||
function get_cpu_label {
|
||||
echo multigraph cpu_load_graph_$name
|
||||
echo graph_title cpu load $name
|
||||
echo graph_vlabel %
|
||||
echo graph_category mikrotik
|
||||
|
@ -221,9 +221,9 @@ function get_cpulabel {
|
|||
c=$(( $c + 1 ))
|
||||
done
|
||||
}
|
||||
function get_cpuvalue {
|
||||
function get_cpu_value {
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
|
||||
echo multigraph cpu_load$name
|
||||
echo multigraph cpu_load_graph_$name
|
||||
fi
|
||||
while read -r line; do
|
||||
echo $line | awk '/cpu-load:/{
|
||||
|
@ -329,9 +329,9 @@ if [ "$1" = "config" ]; then
|
|||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "1" ]; then
|
||||
get_temperature_value
|
||||
fi
|
||||
get_cpulabel
|
||||
get_cpu_label
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "1" ]; then
|
||||
get_cpuvalue
|
||||
get_cpu_value
|
||||
fi
|
||||
get_memory_label
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "1" ]; then
|
||||
|
@ -346,8 +346,7 @@ get_bad_blocks_value
|
|||
get_write_sect_total_value
|
||||
get_write_sect_since_reboot_value
|
||||
get_temperature_value
|
||||
get_cpuvalue
|
||||
|
||||
get_cpu_value
|
||||
get_memory_value
|
||||
exit 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue