Forum: CFEngine Help
Subject: hostsseen "notseen" option not finding any hosts
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,24203,24203#msg-24203
This was working fine for several cfengine versions but stopped working after a
recent upgrade (currently running 3.2.3). Now, "notseen" never finds any
hosts. It should report at least one host not seen. "lastseen" works fine.
body common control
{
bundlesequence => { "notseen" };
}
bundle agent notseen
{
vars:
"hosts_notseen" slist => { hostsseen("1","notseen","name") },policy
=> "free";
reports:
cfengine_3::
"Not seen client/peer: $(hosts_notseen)";
}
wilma:/home/root/inputs# cf-agent -KI -f ./notseen.cf
R: Not seen client/peer: $(hosts_notseen)
Changing "notseen" to "lastseen" works:
wilma:/home/root/inputs# cf-agent -KI -f ./notseen.cf
R: Not seen client/peer: hornet...
R: Not seen client/peer: sally...
R: Not seen client/peer: tiamat...
R: Not seen client/peer: niflheim...
R: Not seen client/peer: triton...
R: Not seen client/peer: banshee...
R: Not seen client/peer: boxcar...
.
.
.
Is this a defect?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine