[Nagiosplug-checkins] nagiosplug/plugins check_cluster.c,1.2,1.3
Thomas Guyot
dermoth at users.sourceforge.net
Sun Apr 15 11:03:44 CEST 2007
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16:/tmp/cvs-serv4451/plugins
Modified Files:
check_cluster.c
Log Message:
Cosmetic change
Index: check_cluster.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_cluster.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- check_cluster.c 15 Apr 2007 08:50:58 -0000 1.2
+++ check_cluster.c 15 Apr 2007 09:03:42 -0000 1.3
@@ -98,8 +98,8 @@
break;
default:
break;
- }
}
+ }
else{
switch(data_val){
case 0:
@@ -113,9 +113,9 @@
break;
default:
break;
- }
}
}
+ }
/* return the status of the cluster */
@@ -125,16 +125,16 @@
state_text(return_code), (label==NULL)?"Service cluster":label,
total_services_ok,total_services_warning,
total_services_unknown,total_services_critical);
- }
+ }
else{
return_code=get_status(total_hosts_down+total_hosts_unreachable, thresholds);
printf("CLUSTER %s: %s: %d up, %d down, %d unreachable\n",
state_text(return_code), (label==NULL)?"Host cluster":label,
total_hosts_up,total_hosts_down,total_hosts_unreachable);
- }
+ }
return return_code;
- }
+}
@@ -151,7 +151,7 @@
{"verbose", no_argument, 0,'v'},
{"help", no_argument, 0,'H'},
{0,0,0,0}
- };
+ };
/* no options were supplied */
if(argc<2)
@@ -206,8 +206,8 @@
default:
return ERROR;
break;
- }
- }
+ }
+ }
if(data_vals==NULL)
return ERROR;
More information about the Commits
mailing list