Windows Activation Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Windows Activation Monitoring

Post by vtrac »

Hi,
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
Nagios understands the following exit codes:
0 - Service is OK.
1 - Service has a WARNING.
2 - Service is in a CRITICAL status.
3 - Service status is UNKNOWN.


Regards,
Vinh
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: Windows Activation Monitoring

Post by kalyanpabolu »

Hello,

We have written a batch script in which we will receive an alert 30 days before the license expires. Thank you so much for all your support. :D

Regards,
Devendra
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Windows Activation Monitoring

Post by vtrac »

Great!! ... closing thread ... :-)
Locked