Code

Make output message for CPU Load a bit nicer
authorTon Voon <tonvoon@users.sourceforge.net>
Tue, 4 Mar 2003 23:56:26 +0000 (23:56 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Tue, 4 Mar 2003 23:56:26 +0000 (23:56 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@364 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_nt.c

index b9aae1c41329d7c1a5fc522dfb4640fc2aafa5ac..1c9dc0adac0c1d29fce17a1c26093cca5f75c190 100644 (file)
@@ -148,9 +148,9 @@ int main(int argc, char **argv){
                                        else if(utilization >= lvalue_list[1+offset] && return_code<STATE_WARNING)
                                                return_code=STATE_WARNING;
 
-                                       asprintf(&output_message," (%lu min. %lu%)",lvalue_list[0+offset], utilization);
+                                       asprintf(&output_message," %lu%% (%lu min average)", utilization, lvalue_list[0+offset]);
                                        asprintf(&temp_string,"%s%s",temp_string,output_message);
-                                       offset+=3;      //move accross the array 
+                                       offset+=3;      //move across the array 
                                }               
                                if (strlen(temp_string)>10) {
                                        // we had at least on loop