diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 +0000 |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 +0000 |
commit | 91b223642a7b7f493cf87f507928d249ede27e5a (patch) | |
tree | bb3f6a3c74a1b7f806fa22b1ee0ad07480b4fa71 /plugins/check_ldap.c | |
parent | 831d03cd768cb4d1f96d3cabd6262a0a55f904e7 (diff) | |
download | monitoring-plugins-91b223642a7b7f493cf87f507928d249ede27e5a.tar.gz |
Code clean-up
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@403 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r-- | plugins/check_ldap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 90fe6225..5b983f4b 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 | } |