Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Grabs values from Performance Monitor Counter. VBScript, calls typeperf.exe to get results. Code is sloppy, but free to use as needed.
Current Version
Last Release Date
June 12, 2009
Owner
Nagios Exchange
perfmon.vbs
wincheck_counter.exe stopped working for me, so I quickly threw this together mimicking that plugin.
I have not tested this in all environments. Requires typeperf.exe to work, works for me on 2003 and XP. It also needs access to write a temp file to %TEMP% environment variable (output of the typeperf.exe command). Some examples of usage:
cscript /nologo C:nrpe_ntpluginsperfmon.vbs -C "LogicalDisk" -I "C:" -P "Free Megabytes" -f "%f MB" -w 500 -c 100
cscript /nologo C:nrpe_ntpluginsperfmon.vbs -C "Memory" -P "Pages/sec" -f "%f" -w 100 -c 500
cscript /nologo C:nrpe_ntpluginsperfmon.vbs -C "Memory" -P "Available MBytes" -f "%f" -w 50 -c 10
cscript /nologo C:nrpe_ntpluginsperfmon.vbs -C "Processor" -I "_Total" -P "% Privileged Time" -f "%f" -w 95 -c 98
cscript /nologo C:nrpe_ntpluginsperfmon.vbs -C "PhysicalDisk" -I "_Total" -P "Split IO/sec" -f "%f" -w 100 -c 500
Edit: improved version, old version was doing an alphanumeric compare. Rookie mistake on my part.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!