diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-07 20:16:18 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-07 20:16:18 (GMT) |
commit | bbbe965a6eb3a56c1bb9765c631fdec27792e4a2 (patch) | |
tree | 197564476b2569a0170ca20438b091f0fa0ae782 /plugins | |
parent | 259bf73dd93d79a3e81cc4f54e38b687371d40d3 (diff) | |
download | monitoring-plugins-bbbe965a6eb3a56c1bb9765c631fdec27792e4a2.tar.gz |
Make output for CPU load nicer
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@375 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index b9aae1c..1c9dc0a 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -148,9 +148,9 @@ int main(int argc, char **argv){ | |||
148 | else if(utilization >= lvalue_list[1+offset] && return_code<STATE_WARNING) | 148 | else if(utilization >= lvalue_list[1+offset] && return_code<STATE_WARNING) |
149 | return_code=STATE_WARNING; | 149 | return_code=STATE_WARNING; |
150 | 150 | ||
151 | asprintf(&output_message," (%lu min. %lu%)",lvalue_list[0+offset], utilization); | 151 | asprintf(&output_message," %lu%% (%lu min average)", utilization, lvalue_list[0+offset]); |
152 | asprintf(&temp_string,"%s%s",temp_string,output_message); | 152 | asprintf(&temp_string,"%s%s",temp_string,output_message); |
153 | offset+=3; //move accross the array | 153 | offset+=3; //move across the array |
154 | } | 154 | } |
155 | if (strlen(temp_string)>10) { | 155 | if (strlen(temp_string)>10) { |
156 | // we had at least on loop | 156 | // we had at least on loop |