Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4397Themes and Skins12Add-ons750Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Databases check_neo4j_readonly.pl (Advanced Nagios Plugins Collection)
0.0 (0)
21.9K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)Davide Lemma (4)deskwork_itunes142 (4)Sam N (3)
See More
Newest Contributors
juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)Nitatemic (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Eduard Guloiu
EG

Eduard Guloiu

@eduard_guloiu

User Stats

Member Since: February 16, 2010

Favorites2

Views1

Projects3

check_IBM_performance
SAN and NAS
check_IBM_performance
Plugin for monitoring IBM Storage performance. Tested it on DS4100 & DS4700 & DS3512 (You have to have a compatible SMcli version - Storage Manager…
4.6 (13)
111.8K
2
Eduard Guloiu
GPL
check_pmta_connections
Email and Groupware
check_pmta_connections
Monitor PowerMTA in/out connections based on PMTA web status page. It's based on lynx --dump (so you have to have lynx) and greps text to…
5.0 (1)
95.2K
0
Eduard Guloiu
GPL
check_strings
Environmental
check_strings
Check value for specified string in a web page, and sends alerts for warning and critical threshold. I used it to monitor the datacenter's temperature…
5.0 (1)
98.3K
0
Eduard Guloiu
GPL
Count number of terminal server sessions

Returning results when everything is ok

The plugin does not return status data / perf data when everything is ok. it gets to :subroutine and then jumps to eof. This is what works for me (just added goto end before :subroutine) : @ECHO OFF setlocal EnableDelayedExpansion REM ------------------------------------------- REM - Version 0.4 - By [email protected] REM - Original Version REM ------------------------------------------- REM - Version 0.5 - By [email protected] REM - ADD CRITICAL AND WARNING STATUS REM ------------------------------------------- REM - Version 0.6 - By [email protected] REM - ADD USERNAME LOGGED IN REM ------------------------------------------- REM USAGE: check_user_count warn crit REM warn: Number of session before warning REM crit: Number of session before Critical REM Example: check_user_count 2 4 REM ------------------------------------------- REM CALLING SEQUENCE: REM command[nrpe_nt_check_users]=c:nrpe_ntpluginscheck_user_count.bat $ARG1$ $ARG2$ REM ------------------------------------------- set EX=0 set MS=OK SET /a COUNT=0 SET USER= FOR /f "TOKENS=1" %%i IN ('query session ^|find "rdp-tcp#"') DO SET /a COUNT+=1 FOR /f "TOKENS=2" %%G IN ('query session ^|find "rdp-tcp#"') DO ( call :subroutine %%G ) REM - WARNING (COUNT => $1) if %COUNT% GEQ %1 ( set EX=1 && set MS=WARNING && goto end ) REM - CRITICAL (COUNT => $2) if %COUNT% GEQ %2 ( set EX=2 && set MS=CRITICAL && goto end ) goto end :subroutine SET USER=%USER% %1 GOTO :eof :end ECHO %MS% Number of active sessions = %COUNT% Logged Users = !USER! ^| usersconnected=%COUNT% EXIT /b %EX%

Reviewed 13 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile