summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7626b34)
raw | patch | inline | side by side (parent: 7626b34)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 12 Nov 2003 05:53:06 +0000 (05:53 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 12 Nov 2003 05:53:06 +0000 (05:53 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@767 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_mrtg.c | patch | blob | history | |
plugins/check_nt.c | patch | blob | history |
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 5924f1790a8b10c981f2205fd6111a6fd6a3bf55..e13826446553254a56e17ed6a3746ed4867d5080 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
asprintf (&message, "%s. %s = %lu %s|%s",
(use_average == TRUE) ? _("Avg") : _("Max"),
label, rate, units,
- perfdata(label, rate, units,
- value_warning_threshold, value_warning_threshold,
- value_critical_threshold, value_critical_threshold,
+ perfdata(label, (long) rate, units,
+ (int) value_warning_threshold, (long) value_warning_threshold,
+ (int) value_critical_threshold, (long) value_critical_threshold,
0, 0, 0, 0));
}
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 91442a5a7557b13636a83a0c10c395ab48495e53..50bf9f03c485be64c557a59c4ec6fcc052cd1986 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
asprintf (&output_message, _("Wrong client version - running: %s, required: %s"), recv_buffer, value_list);
return_code = STATE_WARNING;
} else {
- asprintf (&output_message, recv_buffer);
+ asprintf (&output_message, "%s", recv_buffer);
return_code = STATE_OK;
}
break;
mem_commitLimit / 1048576, mem_commitByte / 1048567, percent_used_space,
(mem_commitLimit - mem_commitByte) / 1048576, (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100);
+ return_code=STATE_OK;
if(check_critical_value==TRUE && percent_used_space >= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && percent_used_space >= warning_value)
return_code=STATE_WARNING;
- else
- return_code=STATE_OK;
break;
return_code=STATE_OK;
}
else { /* inverse thresholds */
+ return_code=STATE_OK;
if(check_critical_value==TRUE && counter_value <= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && counter_value <= warning_value)
return_code=STATE_WARNING;
- else
- return_code=STATE_OK;
- }
+ }
}
break;