Home Directory

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

Directory

ovi1

Reviews(2)
byovi1, January 20, 2010
the file check_quotaNetApp.pl is empty
byovi1, January 20, 2010
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.