summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-04-15 09:03:42 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-04-15 09:03:42 +0000
commit3ac4d2fb21773a47872f4ea64b6757ebe7597537 (patch)
treec2f1004fbfdb38c8298bf1360ff3a19ebdafe7ad /plugins
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')
-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){
98 break; 98 break;
99 default: 99 default:
100 break; 100 break;
101 }
102 } 101 }
102 }
103 else{ 103 else{
104 switch(data_val){ 104 switch(data_val){
105 case 0: 105 case 0:
@@ -113,9 +113,9 @@ int main(int argc, char **argv){
113 break; 113 break;
114 default: 114 default:
115 break; 115 break;
116 }
117 } 116 }
118 } 117 }
118 }
119 119
120 120
121 /* return the status of the cluster */ 121 /* return the status of the cluster */
@@ -125,16 +125,16 @@ int main(int argc, char **argv){
125 state_text(return_code), (label==NULL)?"Service cluster":label, 125 state_text(return_code), (label==NULL)?"Service cluster":label,
126 total_services_ok,total_services_warning, 126 total_services_ok,total_services_warning,
127 total_services_unknown,total_services_critical); 127 total_services_unknown,total_services_critical);
128 } 128 }
129 else{ 129 else{
130 return_code=get_status(total_hosts_down+total_hosts_unreachable, thresholds); 130 return_code=get_status(total_hosts_down+total_hosts_unreachable, thresholds);
131 printf("CLUSTER %s: %s: %d up, %d down, %d unreachable\n", 131 printf("CLUSTER %s: %s: %d up, %d down, %d unreachable\n",
132 state_text(return_code), (label==NULL)?"Host cluster":label, 132 state_text(return_code), (label==NULL)?"Host cluster":label,
133 total_hosts_up,total_hosts_down,total_hosts_unreachable); 133 total_hosts_up,total_hosts_down,total_hosts_unreachable);
134 } 134 }
135 135
136 return return_code; 136 return return_code;
137 } 137}
138 138
139 139
140 140
@@ -151,7 +151,7 @@ int process_arguments(int argc, char **argv){
151 {"verbose", no_argument, 0,'v'}, 151 {"verbose", no_argument, 0,'v'},
152 {"help", no_argument, 0,'H'}, 152 {"help", no_argument, 0,'H'},
153 {0,0,0,0} 153 {0,0,0,0}
154 }; 154 };
155 155
156 /* no options were supplied */ 156 /* no options were supplied */
157 if(argc<2) 157 if(argc<2)
@@ -206,8 +206,8 @@ int process_arguments(int argc, char **argv){
206 default: 206 default:
207 return ERROR; 207 return ERROR;
208 break; 208 break;
209 } 209 }
210 } 210 }
211 211
212 if(data_vals==NULL) 212 if(data_vals==NULL)
213 return ERROR; 213 return ERROR;