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
21905
Files:
FileDescription
check_users.plcheck_users.pl
Nagios CSP

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!
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!