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_group

Rating
0 votes
Favoured:
0
Current Version
1
Last Release Date
2011-07-07
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
Owner
License
GPL
Hits
148821
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!
Nagios plugin to Check how many users in a group check_group.vbs
This script verifies if the number of users in a particular group changes.
The output in debug mode Example:

Command:
cscript.exe //nologo C:PROGRA~2NC_Netscr
iptcheck_group.vbs -g CN=Domain Admins,CN=Users -u 4

Output:
CN=Domain Admins,CN=Users
LDAP://CN=Domain Admins,CN=Users,DC=cado,DC=local
user : CN=Domain Admins : mntos
user : CN=Domain Admins : Mcia
user : CN=Domain Admins : bides
user : CN=Domain Admins : rLagito
user : CN=Domain Admins : Ffex
user : CN=Domain Admins : Administrator
CN=Domain Admins contains ; 6 ; users
Group CN=Domain Admins,OU=Groups has, Total of 6 users.
CRITICAL - The group CN=Domain Admins,CN=Users has changed from 4 users, to 6

Without the debug mode it just shows the final line:
CRITICAL - The group CN=Domain Admins,CN=Users has changed from 4 users, to 6

Should be called using NC_Net or other windows nagios client.

The remote call should something like:
/check_nt -H r2355-t 60 -v RUNSCRIPT -l cscript.exe //nologo C:PROGRA~1NC_Netscriptcheck_group.vbs -g CN=Domain Admins,CN=Users -u 4"