[Nagiosplug-checkins] CVS: nagiosplug/plugins check_ldap.c,1.5,1.6
Jeremy T. Bouse
undrgrid at users.sourceforge.net
Tue Mar 11 18:26:07 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv30364/plugins
Modified Files:
check_ldap.c
Log Message:
Code clean-up
Index: check_ldap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ldap.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** check_ldap.c 11 Mar 2003 22:22:10 -0000 1.5
--- check_ldap.c 12 Mar 2003 02:25:22 -0000 1.6
***************
*** 8,12 ****
* Last Modified: $Date$
*
! * Command line: check_ldap -h <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time>
*
* Description:
--- 8,12 ----
* Last Modified: $Date$
*
! * Command line: check_ldap -H <host> -b <base_dn> -p <port> -w <warn_time> -w <crit_time>
*
* Description:
***************
*** 110,124 ****
if (crit_time!=UNDEFINED && t_diff>=crit_time) {
! 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);
return STATE_WARNING;
}
/* print out the result */
! printf ("LDAP ok - %i seconds response time\n", t_diff);
return STATE_OK;
--- 110,124 ----
if (crit_time!=UNDEFINED && t_diff>=crit_time) {
! 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);
return STATE_WARNING;
}
/* print out the result */
! printf ("LDAP OK - %i seconds response time\n", t_diff);
return STATE_OK;
***************
*** 199,203 ****
break;
default:
! usage ("check_ldap: could not parse arguments\n");
break;
}
--- 199,203 ----
break;
default:
! usage ("check_ldap: could not parse unknown arguments\n");
break;
}
More information about the Commits
mailing list