Daniel Henninger
09/12/2022, 5:36 PMDaniel Henninger
09/12/2022, 5:36 PMjidar
09/12/2022, 5:37 PMjidar
09/12/2022, 5:38 PMjidar
09/12/2022, 5:39 PMDaniel Henninger
09/12/2022, 5:40 PMhelindbe
09/12/2022, 6:43 PMcsharpsteen
09/12/2022, 10:11 PMAndrey Usatenko
09/13/2022, 7:41 AMndelic
09/13/2022, 11:26 AMMassimiliano (Max)
09/13/2022, 12:51 PM--debug
I see the fact ip6tables_version.rb
being called gazillions of times, and it causes the agent to run for 220 seconds, only looping on this fact execution.Massimiliano (Max)
09/13/2022, 12:54 PMiptables_version.rb
(it changes only the name of the command)Massimiliano (Max)
09/13/2022, 12:58 PMCVQuesty
09/13/2022, 1:19 PMSlackbot
09/13/2022, 1:19 PMRobert Vincent
09/13/2022, 1:24 PMCVQuesty
09/13/2022, 1:25 PMCVQuesty
09/13/2022, 1:25 PMRobert Vincent
09/13/2022, 1:26 PMRobert Vincent
09/13/2022, 1:26 PMCVQuesty
09/13/2022, 1:27 PM--no-external-facts
to the external fact callRobert Vincent
09/13/2022, 1:31 PMfacter -p --no-external-facts myfactname
?CVQuesty
09/13/2022, 1:34 PMCVQuesty
09/13/2022, 1:36 PMfacter <lookup> --no-external-facts
CVQuesty
09/13/2022, 1:36 PMCVQuesty
09/13/2022, 1:41 PMFacter.add("bluecat1") do
setcode do
%x{facter -p ipaddress |/usr/bin/awk -F "." '{print $1"."$2"."($3+1)"."4 }'}.chomp
end
end
So, I was doing a facter call from inside facter, and that fork-bombed. Instead, I did this:
Facter.add("bluecat1") do
setcode do
%x{facter -p ipaddress --no-external-facts |/usr/bin/awk -F "." '{print $1"."$2"."($3+1)"."4 }'}.chomp
end
end
worked perfectlyDr Bunsen Honeydew
09/13/2022, 1:45 PMvchepkov
09/13/2022, 1:45 PMFacter::value(:ipaddress)
instead ?Massimiliano (Max)
09/13/2022, 1:49 PMMassimiliano (Max)
09/13/2022, 1:49 PM