From 6f660d87859f4c119c0138f40453a6f829d33a7e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 17 Nov 2015 01:41:28 +0100 Subject: hosts-stats: Ignore dry-run and only-important runs We do not want to update the nagios state for dry-run or only-important runs, as they might result in a different state (and may cause flapping). --- hosts-state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts-state b/hosts-state index c4e228b..1ef151e 100755 --- a/hosts-state +++ b/hosts-state @@ -21,7 +21,7 @@ my $summary = { status => 0 }; -open(my $reports, '-|', '/usr/sbin/bcfg2-reports', 'clients', '--fields=state,time,total,good,bad,extra,modified'); +open(my $reports, '-|', '/usr/sbin/bcfg2-reports', 'clients', '--no-dry-run', '--no-only-important', '--fields=state,time,total,good,bad,extra,modified'); my $header = 1; while(<$reports>) { -- cgit v1.2.3-1-g7c22