NEW CATEGORIES: Active Directory, Replication
Checks the full replication of an Active Directory and replaces the original code from the check_wmi_plus.ini file (which does not really check the replication).
Tested with AD 2012/2012R2 and shows the number of failed replicas.
This sample actually contains a couple of useful checks.
They check IO performance. The first check against a logical drive, the second against a physical drive.
Fields to check for Warning/critical states are provided along with performance data.
The Logical check needs a single parameter - the Windows drive letter eg C:
If you do not specify ARG1 then the check will not work.
The Physical check needs a single parameter - the Windows drive letter eg C:
If you do not specify ARG1 then the check will return information on the first drive it finds (because the query uses LIKE and %.)
I have not tested the physical check on too many systems so the physical drives names might not be as expected. If you are not finding what you expect leave ARG1 blank and use the -d parameter to view the debug output and find the actual WMI Query output - that will include the actual physical drives names for that specific system.
This sample contains a single check that is nearly useful. It is useful since it returns useful information, but it is only nearly useful since the core mode, checkprocess, actually does it better. This was actually the first way I planned to implement this check, but then decided it would be better off as and option to checkprocess.
This sample shows a very minimalistic check. It includes the minimum ini fields to make the check usable - inihelp, query and display.
This is not a very useful check in itself.
This sample shows a complete check (ie uses/list every possible setting) and heavily documents how each field should be used.
This is not a very useful check in itself (although it should largely work).