aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_cluster.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2007-04-15 09:03:42 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2007-04-15 09:03:42 +0000
commit3ac4d2fb21773a47872f4ea64b6757ebe7597537 (patch)
treec2f1004fbfdb38c8298bf1360ff3a19ebdafe7ad /plugins/check_cluster.c
parentce9156f56dabeb4c85566bd1bfcbd71d1e8905e2 (diff)
downloadmonitoring-plugins-3ac4d2fb21773a47872f4ea64b6757ebe7597537.tar.gz
Cosmetic change
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1690 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_cluster.c')
-rw-r--r--plugins/check_cluster.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index 98003f1f..10773f04 100644
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
@@ -98,8 +98,8 @@ int main(int argc, char **argv){
break;
default:
break;
- }
}
+ }
else{
switch(data_val){
case 0:
@@ -113,9 +113,9 @@ int main(int argc, char **argv){
break;
default:
break;
- }
}
}
+ }
/* return the status of the cluster */
@@ -125,16 +125,16 @@ int main(int argc, char **argv){
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 @@ int process_arguments(int argc, char **argv){
{"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 @@ int process_arguments(int argc, char **argv){
default:
return ERROR;
break;
- }
- }
+ }
+ }
if(data_vals==NULL)
return ERROR;