Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_group
1
2011-07-07
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
GPL
148882
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 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"
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"
Reviews (0)
Be the first to review this listing!