summaryrefslogtreecommitdiffstats
path: root/plugins/check_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r--plugins/check_ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 90fe622..5b983f4 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -7,7 +7,7 @@
7 * 7 *
8 * Last Modified: $Date$ 8 * Last Modified: $Date$
9 * 9 *
10 * Command line: check_ldap -h <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time> 10 * Command line: check_ldap -H <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time>
11 * 11 *
12 * Description: 12 * Description:
13 * 13 *
@@ -109,17 +109,17 @@ main (int argc, char *argv[])
109 t_diff = time1 - time0; 109 t_diff = time1 - time0;
110 110
111 if (crit_time!=UNDEFINED && t_diff>=crit_time) { 111 if (crit_time!=UNDEFINED && t_diff>=crit_time) {
112 printf ("LDAP critical - %i seconds response time\n", t_diff); 112 printf ("LDAP CRITICAL - %i seconds response time\n", t_diff);
113 return STATE_CRITICAL; 113 return STATE_CRITICAL;
114 } 114 }
115 115
116 if (warn_time!=UNDEFINED && t_diff>=warn_time) { 116 if (warn_time!=UNDEFINED && t_diff>=warn_time) {
117 printf ("LDAP warning - %i seconds response time\n", t_diff); 117 printf ("LDAP WARNING - %i seconds response time\n", t_diff);
118 return STATE_WARNING; 118 return STATE_WARNING;
119 } 119 }
120 120
121 /* print out the result */ 121 /* print out the result */
122 printf ("LDAP ok - %i seconds response time\n", t_diff); 122 printf ("LDAP OK - %i seconds response time\n", t_diff);
123 123
124 return STATE_OK; 124 return STATE_OK;
125} 125}
@@ -198,7 +198,7 @@ process_arguments (int argc, char **argv)
198 crit_time = atoi (optarg); 198 crit_time = atoi (optarg);
199 break; 199 break;
200 default: 200 default:
201 usage ("check_ldap: could not parse arguments\n"); 201 usage ("check_ldap: could not parse unknown arguments\n");
202 break; 202 break;
203 } 203 }
204 } 204 }