This commit is contained in:
Michael Grote 2021-09-21 20:52:48 +02:00
parent e3fa929cd7
commit 408f97134f

View file

@ -81,7 +81,7 @@ function get_voltage_value {
# gib überschrift aus wenn dirtyconfig nicht gesetzt ist
# weil aufruf dann nicht in "config" erfolgt
# wenn dirtyconfig nicht gesetzt sind, gebe überschrift aus
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo $line | awk '/voltage:/{
print "multigraph voltage_graph_""'"$name"'";
}'
@ -111,7 +111,7 @@ function get_bad_blocks_label {
}
function get_bad_blocks_value {
while read -r line; do
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo $line | awk '/bad-blocks:/{
print "multigraph bad_blocks_graph_""'"$name"'";
}'
@ -137,7 +137,7 @@ function get_write_sect_total_label {
}
function get_write_sect_total_value {
while read -r line; do
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo $line | awk '/write-sect-total:/{
print "multigraph write_sect_total_graph_""'"$name"'";
}'
@ -162,7 +162,7 @@ function get_write_sect_since_reboot_label {
}
function get_write_sect_since_reboot_value {
while read -r line; do
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo $line | awk '/write-sect-since-reboot:/{
print "multigraph write_sect_since_reboot_graph_""'"$name"'";
}'
@ -189,7 +189,7 @@ function get_temperature_label {
}
function get_temperature_value {
while read -r line; do
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo $line | awk '/temperature:/{
print "multigraph temperature_graph_""'"$name"'";
}'
@ -222,7 +222,7 @@ function get_cpu_label {
done
}
function get_cpu_value {
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo multigraph cpu_load_graph_$name
fi
while read -r line; do
@ -262,7 +262,7 @@ function get_memory_label {
done <<< "$data"
}
function get_memory_value {
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ]; then
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo multigraph memory_$name
fi
while read -r line; do