Forum: Cfengine Help
Subject: !! Duplicate selection of value for variable
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,18976,18976#msg-18976

This is driving me nuts.  I have two identical cfengine 3.0.5p1 servers on 
HP-UX 11.23.  On the first server the bundle below runs fine.  But on the 
second server it produces errors:


cf3 Initiate variable convergence...
cf3 Initiate variable convergence...
cf3  !! Duplicate selection of value for variable "mia" in scope notseen
cf3 Rule from /home/root/inputs/notseen1hr.cf at/before line 11
cf3 # Knowledge map reporting feature is only available in version Nova and 
above
cf3  -> Defined classes = { 10_0_101_14 10_101_0_201 32_bit Day29 Friday 
GMT_Hr15 HQ_R24D HQ_R24D_dodeahr_org Hr11 Hr11_
Q3 Lcycle_0 Min40_45 Min42 Morning October Q3 Yr2010 agent any cfengine_3 
cfengine_3_0 cfengine_3_0_5p1 community_editio
n compiled_on_hpux11_23 dodeahr_org entropy_cfengine_in_low 
entropy_cfengine_out_low entropy_dns_in_low entropy_dns_out_
low entropy_ftp_in_low entropy_ftp_out_low entropy_icmp_in_low 
entropy_icmp_out_low entropy_irc_in_low entropy_irc_out_l
ow entropy_misc_in_low entropy_misc_out_low entropy_netbiosdgm_in_low 
entropy_netbiosdgm_out_low entropy_netbiosns_in_lo
w entropy_netbiosns_out_low entropy_netbiosssn_in_low 
entropy_netbiosssn_out_low entropy_nfsd_out_low entropy_smtp_in_lo
w entropy_smtp_out_low entropy_ssh_out_low entropy_tcpack_in_low 
entropy_tcpack_out_low entropy_tcpfin_in_low entropy_tc
pfin_out_low entropy_tcpsyn_in_low entropy_tcpsyn_out_low entropy_udp_in_low 
entropy_udp_out_low entropy_www_in_low entr
opy_www_out_low entropy_wwws_in_low entropy_wwws_out_low hp_ux_B_11_23 
hp_ux_ia64 hp_ux_ia64_B_11_23 hp_ux_ia64_B_11_23_
U hpux hq_r24d_dodeahr_org ia64 ipv4_10 ipv4_10_0 ipv4_10_0_101 
ipv4_10_0_101_14 ipv4_10_101 ipv4_10_101_0 ipv4_10_101_0
_201 net_iface_lan0 net_iface_lan1 net_iface_lo0 org otherprocs_low_normal 
rootprocs_high_normal verbose_mode }
cf3  -> Negated Classes = { }
cf3  !! Duplicate selection of value for variable "mia" in scope notseen
cf3 Rule from /home/root/inputs/notseen1hr.cf at/before line 22
cf3 Initiate variable convergence...
cf3  !! Duplicate selection of value for variable "mia" in scope notseen
cf3 Rule from /home/root/inputs/notseen1hr.cf at/before line 11




body common control
{
bundlesequence          => { 
                        "notseen"
                        };
}
bundle agent notseen
{
vars:
        "mia"           slist   => { hostsseen("1","notseen","name") };
classes:
        "isnotseen"     not     => regcmp("","$(mia)");
reports:
   isnotseen::
        "Peers not seen by $(sys.fqhost) in the last hour";
        "More information is at https://$(sys.fqhost)/cfengine/lastseen.html";
        "Not seen client/peer: $(mia)";
}


Any ideas?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to