diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-14 04:09:19 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-14 04:09:19 +0000 |
commit | 4e318b9277ba5209fab447da5afa3c0a22a681d9 (patch) | |
tree | 65e99d3a8181584d75726390c5968270c21afa63 /plugins/check_ups.c | |
parent | b86b521b38a993b49e03f827859aea672fdfa806 (diff) | |
download | monitoring-plugins-4e318b9277ba5209fab447da5afa3c0a22a681d9.tar.gz |
use fperfdata
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@849 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ups.c')
-rw-r--r-- | plugins/check_ups.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 116e888c..f88e9e9f 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
@@ -167,13 +167,13 @@ main (int argc, char **argv) | |||
167 | result = max_state (result, STATE_WARNING); | 167 | result = max_state (result, STATE_WARNING); |
168 | } | 168 | } |
169 | asprintf (&data, "%s", | 169 | asprintf (&data, "%s", |
170 | perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", | 170 | fperfdata ("voltage", ups_utility_voltage, "V", |
171 | check_warn, (long)(1000*warning_value), | 171 | check_warn, warning_value, |
172 | check_crit, (long)(1000*critical_value), | 172 | check_crit, critical_value, |
173 | TRUE, 0, FALSE, 0)); | 173 | TRUE, 0, FALSE, 0)); |
174 | } else { | 174 | } else { |
175 | asprintf (&data, "%s", | 175 | asprintf (&data, "%s", |
176 | perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", | 176 | fperfdata ("voltage", ups_utility_voltage, "V", |
177 | FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); | 177 | FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); |
178 | } | 178 | } |
179 | } | 179 | } |