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 @@ * * Last Modified: $Date$ * - * Command line: check_ldap -h <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time> + * Command line: check_ldap -H <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time> * * Description: * @@ -109,17 +109,17 @@ main (int argc, char *argv[]) t_diff = time1 - time0; if (crit_time!=UNDEFINED && t_diff>=crit_time) { - printf ("LDAP critical - %i seconds response time\n", t_diff); + printf ("LDAP CRITICAL - %i seconds response time\n", t_diff); return STATE_CRITICAL; } if (warn_time!=UNDEFINED && t_diff>=warn_time) { - printf ("LDAP warning - %i seconds response time\n", t_diff); + printf ("LDAP WARNING - %i seconds response time\n", t_diff); return STATE_WARNING; } /* print out the result */ - printf ("LDAP ok - %i seconds response time\n", t_diff); + printf ("LDAP OK - %i seconds response time\n", t_diff); return STATE_OK; } @@ -198,7 +198,7 @@ process_arguments (int argc, char **argv) crit_time = atoi (optarg); break; default: - usage ("check_ldap: could not parse arguments\n"); + usage ("check_ldap: could not parse unknown arguments\n"); break; } } |