Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
- Get the CPU Usage for Windows, Solaris and Linux servers. - Works automatically for an unlimited number of CPUs - Perfomance data can be graphed with pnp4nagios using the template. - Works automatically for MS Windows, Solaris and Linux servers By Martin Fuerstenau
Current Version
1.0
Last Release Date
2012-10-10
Owner
Martin Fuerstenau
License
Other
Compatible With
The plugin
Template for pnp4nagios
As it says
Purpose and features of the program:
Author: Martin Fuerstenau, Oce Printing Systems, martin.fuerstenau_at_oce.com
Date written: 14 Apr 2011 Published: 10 Oct 2012
- Get the CPU Usage for Windows, Solaris and Linux servers. - Works automatically for an unlimited number of CPUs - Perfomance data can be graphed with pnp4nagios using the template. - Works for MS Windows, Solaris and Linux servers - OS will be detected. No need to handle it over.
Sample command definition:
define command{ command_name check_cpu_usage command_line /usr/lib/nagios/ops_plugins/check_cpu_usage -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$ }
The syntax: check_cpu_usage -H <host>|--hostname=<host> [-C <community>|--community=<community>] [-v <1|2c>|--snmpversion=<1|2c>] [-t <timeout>|--timeout=<timeout>] [-n|--noperfdata] [-w <threshold>|--warning=<threshold>] [-c <threshold>|--critical=<threshold>]
or
check_cpu_usage -h|--help
check_cpu_usage -V|--version
This plugin check the CPU usage of solaris, linux and windows servers
-h|--help Print detailed help screen -V|--version Print version information -H <host>|--hostname=<host> Hostname/IP-Adress to use for the check. -C <community>|--community=<community> SNMP community that should be used to access the switch. Default: public -n|--noperfdata Don't print performance data. -t <timeout>|--timeout=<timeout> Seconds before plugin times out. Default: 60 -v <1|2c>|--snmpversion=<1|2c> SNMP version details for command-line debugging (can repeat up to 3 times) Default: 1 -w <threshold>|--warning=<threshold> Warning threshold in percent. Default: 80 -c <threshold>|--critical=<threshold> Critical threshold in percent. Default: 90
Something about the perfdata template. This template includes a control break. You will always have 4 cpus in on graph with 4 different colors.If you wanna change it you have to play aorunt with $counter1 and $counter2 in the template.
Pretty good although out of the box I was getting the OID issue above. Simple fix though, insert this on line 141: $_ =~ s/iso.+ = INTEGER: (d+)/$1/g; That will parse out the OID data and just leave you with the integer value. Other than that, it works great. Tested on Windows and Linux no problem.
Great plugin except my output is showing OIDs: OK: Average CPU usage: 0%, CPU-0:iso.3.6.1.2.1.25.3.3.1.2.1 = INTEGER: 5%, CPU-1:iso.3.6.1.2.1.25.3.3.1.2.2 = INTEGER: 9%, CPU-2:iso.3.6.1.2.1.25.3.3.1.2.3 = INTEGER: 1%, CPU-3:iso.3.6.1.2.1.25.3.3.1.2.4 = INTEGER: 1%, CPU-4:iso.3.6.1.2.1.25.3.3.1.2.5 = INTEGER: 3%, CPU-5:iso.3.6.1.2.1.25.3.3.1.2.6 = INTEGER: 1%, CPU-6:iso.3.6.1.2.1.25.3.3.1.2.7 = INTEGER: 0%, CPU-7:iso.3.6.1.2.1.25.3.3.1.2.8 = INTEGER: 1% How can i fix this?
I don't know your setup. Feel free to contact me via email. Martin
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!