Active Directory - User Last Logon X Days
Summary
This monitor will check for users that have not logged in for more than X days and are not administrator accounts.
The monitor can be used to create a ticket with the details of whether the user account is enabled or disabled and will also show their last login. Please see the format below:
User1 (Enabled/Disabled) - Last Login: 6/10/2022
Implementation
- Import the Active Directory - User Last Logon > X Days Monitor from the plugin.
- Duplicate the monitor and adjust the name as desired.
- Edit the duplicated monitor, setting the configuration:
- In the additional Condition section of the Configuration tab, scroll down to the bottom and locate the following line:
WHERE
LastLogon < NOW() - INTERVAL X DAY - Change X to your desired limit in days.
- In the additional Condition section of the Configuration tab, scroll down to the bottom and locate the following line:
- In the Alerting Tab, set the desired Alert Template:
- For ticketing, use the Ticket Creation - Computer alert template or an appropriate alternative.
- For any other action, select the desired alert template.
Dependencies
- Active Directory plugin
Target
Global - Should be run without explicitly defined targets.