You can add the if/then condition to your bat script to check for number of days left.
I'm not a programmer, so please find someone with that knowledge ...
I would check for number of days left, for example:
Code: Select all
if dayleft <= 60
exist 1
elseif daysleft <= 30
exist 2
else
exist 0
0 - Service is OK.
1 - Service has a WARNING.
2 - Service is in a CRITICAL status.
3 - Service status is UNKNOWN.
Regards,
Vinh