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

Windows User logged-in check

Rating
3 votes
Favoured:
1
Current Version
1.0
Last Release Date
2013-03-26
Compatible With
  • Nagios 3.x
Owner
License
Other
Hits
56121
Files:
FileDescription
check_wnin_users.tarcheck_wnin_users.tar
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!
Windows User logged-in check
This plugin allow to easily check how much users are logged-on a windows machine with SNMP enabled , no Agent needed.
in the .tar you can find everything needed to make this running in a minute :)
This plugin test an specific OID with SNMPWALK and then take the result and give an alert depending the threshold you gave on define service on your hosts.

it's really small and efficient, but this is my first plugin so if you find weird stuff, send me your idea! :)
Reviews (2)
bydorancemc, December 22, 2014
You can use:
"-Oqv"

and replace
value=`snmpwalk $1 -v1 -c $2 .1.3.6.1.2.1.25.1.5.0 | cut -d ":" -f2 | cut -d " " -f2`

with :
value=`snmpwalk $1 -v1 -c $2 -Oqv .1.3.6.1.2.1.25.1.5.0 `
byBareiro, September 4, 2014
Hello. Thanks for the plugin.

I found a difference in the processing of the output of snmpwalk:

# snmpwalk a.b.c.d -v2c -c community .1.3.6.1.2.1.25.1.5.0
HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 3

Therefore, I had to change it to:

# snmpwalk a.b.c.d -v2c -c community .1.3.6.1.2.1.25.1.5.0 | cut -d ":" -f4 | cut -d " " -f2
3

Best regards,
Daniel