Build precise queries to find exactly what you need
Press ESC to close
The plugin is returning the right values but if you test it will never return warning or critical because the last if is not correct. To fix it replace it with: if ( $cpu_status eq “critical” or $switchfabricutil_status eq “critical” or $sysbufferutil_status eq “critical” ) { print “SNMP_ENVIRONMENT CRITICAL : $OUTPUT “; exit $STATE_CRITICAL; } elsif ( $cpu_status eq “warning” or $switchfabricutil_status eq “warning” or $sysbufferutil_status eq “warning” ) { print “SNMP_ENVIRONMENT WARNING : $OUTPUT “; exit $STATE_WARNING; } else { print “SNMP_ENVIRONMENT OK : $OUTPUT “; exit $STATE_OK; }
Anyway thanks a lot for the plugin.
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!