diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-11-17 01:41:28 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-11-17 01:41:28 +0100 |
commit | 6f660d87859f4c119c0138f40453a6f829d33a7e (patch) | |
tree | 641d92081b7aaca6d47175afb40ccef83845aa6e | |
parent | 3b04d1367015cca8324eba09f678daa42395166e (diff) | |
download | bcfg2-tools-6f660d87859f4c119c0138f40453a6f829d33a7e.tar.gz bcfg2-tools-6f660d87859f4c119c0138f40453a6f829d33a7e.tar.bz2 bcfg2-tools-6f660d87859f4c119c0138f40453a6f829d33a7e.zip |
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).
-rwxr-xr-x | hosts-state | 2 |
1 files changed, 1 insertions, 1 deletions
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>) { |