I recently upgraded to 3.7.0 and just today noticed that some of my
passive checks were stale, but not getting marked as such. It appears to
be that check_freshness doesn't get set in services.cfg even if the
service is marked as check_freshness (I checked the GUI and the DB). I
swear this was working fine in whatever release I upgraded from.
Anyway, my fix is attached. Just do this:
(cd /usr/local/opsview/nagios/ &&\
patch -p0 < nagconfgen.pl.fix_freshness.patch)
# Reload opsview config here
Let me know if I've just missed some obvious setting, but if not, please
queue this up for 3.7.1.
--
Adam Carheden
"Carbs are worse for computers than they are for humans. So lay off the
spaghetti code!"
--- bin/nagconfgen.pl.orig 2010-05-07 16:35:34.000000000 -0600
+++ bin/nagconfgen.pl 2010-05-07 16:34:15.000000000 -0600
@@ -636,6 +636,7 @@
}
elsif ( $s->freshness_type eq "set_stale" ) {
$commandalias = "my_check_dummy!" . $s->stale_state . "!" . Opsview::Utils->make_shell_friendly( Opsview::Utils->cleanup_args_for_nagios( $s->stale_text ) );
+ $commandalias .= "\n\tcheck_freshness 1";
}
}
elsif ( $s->checktype->id == 5 ) { # SNMP polling
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users