Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_users (windows)
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This script uses perl, so a perl environment must be available on the client. Tinyperl works well. Place the tinyperl environment under nsclient++/scripts/perl along with the script.
define host{
_ALLOWEDUSERS serviceuser adminuser guestuser
}
define command{
command_name check_windows_users
command_line $USER1$/check_nrpe -t 10 -H $HOSTADDRESS$ -c check_users -a 2 3 "$_HOSTALLOWEDUSERS$"
}
define service{
service_description windows users
check_command check_windows_users
}
nsclient.ini:
[/settings/external scripts/scripts]
check_users = scriptsperlcheck_users.exe $ARG1$ $ARG2$ "$ARG3$"
_ALLOWEDUSERS serviceuser adminuser guestuser
}
define command{
command_name check_windows_users
command_line $USER1$/check_nrpe -t 10 -H $HOSTADDRESS$ -c check_users -a 2 3 "$_HOSTALLOWEDUSERS$"
}
define service{
service_description windows users
check_command check_windows_users
}
nsclient.ini:
[/settings/external scripts/scripts]
check_users = scriptsperlcheck_users.exe $ARG1$ $ARG2$ "$ARG3$"
Reviews (1)
byx.fred, May 20, 2020
Works perfect!