Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
commando677
bycommando677, August 15, 2013
If you get a no OID found this occurs if you have no alerts/warnings or information at all to report, the error kind of threw me for a loop to. I just commented that No OID found as long as I verified I was connecting correctly already.
I also made a modification to the faults check to report warnings correctly to Nagios. Here is the modified section I did.
if($type eq "fs") {
if($results[$i] > 4) {
$exit_state = NAGIOS_CRITICAL;
$output .= " " . $descriptions[$i] . "
";
}
if($results[$i] == 4) {
if ($exit_state ne NAGIOS_CRITICAL) {
$exit_state = NAGIOS_WARNING;
}
$output .= " " . $descriptions[$i] . "
";
}
next;
}
I also made a modification to the faults check to report warnings correctly to Nagios. Here is the modified section I did.
if($type eq "fs") {
if($results[$i] > 4) {
$exit_state = NAGIOS_CRITICAL;
$output .= " " . $descriptions[$i] . "
";
}
if($results[$i] == 4) {
if ($exit_state ne NAGIOS_CRITICAL) {
$exit_state = NAGIOS_WARNING;
}
$output .= " " . $descriptions[$i] . "
";
}
next;
}