echo ohne '
This commit is contained in:
parent
690bb832cf
commit
0047fd2984
1 changed files with 30 additions and 30 deletions
|
@ -42,56 +42,56 @@ if [ "$1" = "config" ]; then
|
|||
# setze optionen
|
||||
echo multigraph mikrotik_temperature_graph_$name
|
||||
echo graph_title temperature $name # Titelzeile
|
||||
echo 'graph_vlabel °C' # Text links, hochkant
|
||||
echo 'graph_category mikrotik' # Kategorie
|
||||
echo 'graph_args -l 0'
|
||||
echo 'temperature.label cpu temperature'
|
||||
echo 'temperature.warning 75'
|
||||
echo 'temperature.critical 90'
|
||||
echo graph_vlabel °C # Text links, hochkant
|
||||
echo graph_category mikrotik # Kategorie
|
||||
echo graph_args -l 0
|
||||
echo temperature.label cpu temperature
|
||||
echo temperature.warning 75
|
||||
echo temperature.critical 90
|
||||
fi
|
||||
if echo $line | grep 'voltage:' > /dev/null; then
|
||||
echo multigraph mikrotik_voltage_graph_$name
|
||||
echo graph_title voltage $name
|
||||
echo 'graph_vlabel volt'
|
||||
echo 'graph_category mikrotik'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'voltage.label voltage'
|
||||
echo graph_vlabel volt
|
||||
echo graph_category mikrotik
|
||||
echo graph_args -l 0
|
||||
echo voltage.label voltage
|
||||
fi
|
||||
if echo $line | grep 'bad-blocks:' > /dev/null; then
|
||||
echo multigraph mikrotik_bad_blocks_graph_$name
|
||||
echo graph_title bad blocks $name
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category mikrotik'
|
||||
echo 'graph_args -l 0 --upper-limit 100'
|
||||
echo 'bad_blocks.label bad_blocks'
|
||||
echo 'bad_blocks.warning 2'
|
||||
echo 'bad_blocks.critical 25'
|
||||
echo graph_vlabel %
|
||||
echo graph_category mikrotik
|
||||
echo graph_args -l 0 --upper-limit 100
|
||||
echo bad_blocks.label bad_blocks
|
||||
echo bad_blocks.warning 2
|
||||
echo bad_blocks.critical 25
|
||||
fi
|
||||
if echo $line | grep 'write-sect-total:' > /dev/null; then
|
||||
echo multigraph mikrotik_write_sect_total_graph_$name
|
||||
echo graph_title Total sector writes $name
|
||||
echo 'graph_vlabel count'
|
||||
echo 'graph_category mikrotik'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'write_sect_total.label write_sect_total'
|
||||
echo graph_vlabel count
|
||||
echo graph_category mikrotik
|
||||
echo graph_args -l 0
|
||||
echo write_sect_total.label write_sect_total
|
||||
fi
|
||||
if echo $line | grep 'write-sect-since-reboot:' > /dev/null; then
|
||||
echo multigraph mikrotik_write_sect_since_reboot_graph_$name
|
||||
echo graph_title Sector writes since reboot $name
|
||||
echo 'graph_vlabel count'
|
||||
echo 'graph_category mikrotik'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'write_sect_since_reboot.label write_sect_since_reboot'
|
||||
echo graph_vlabel count
|
||||
echo graph_category mikrotik
|
||||
echo graph_args -l 0
|
||||
echo write_sect_since_reboot.label write_sect_since_reboot
|
||||
fi
|
||||
if echo $line | grep 'cpu-load:' > /dev/null; then
|
||||
echo multigraph mikrotik_cpu_load_graph_$name
|
||||
echo graph_title cpu load $name
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category mikrotik'
|
||||
echo 'graph_args -l 0 --upper-limit 100'
|
||||
echo 'cpu_load.label cpu_load'
|
||||
echo 'cpu_load.warning 75'
|
||||
echo 'cpu_load.critical 90'
|
||||
echo graph_vlabel %
|
||||
echo graph_category mikrotik
|
||||
echo graph_args -l 0 --upper-limit 100
|
||||
echo cpu_load.label cpu_load
|
||||
echo cpu_load.warning 75
|
||||
echo cpu_load.critical 90
|
||||
fi
|
||||
done <<< "$data"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue