Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_users (windows)

Last Release Date
2014-09-12
Compatible With
  • Nagios 3.x
Hits
21689
Files:
FileDescription
check_users.plcheck_users.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_users looks at the number of users, along with an allowed user list and returns warning and critical based on thresholds or if an unknown user is logged into the system.

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$"

Reviews (1)
byx.fred, May 20, 2020
Works perfect!