help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: double warnings ?!


From: Wheeler, John
Subject: RE: double warnings ?!
Date: Mon, 12 May 2003 13:38:05 -0500

I edit the source and removed pass 2.

Cfengine version 2.0.6

    187 DoTree(1,"Main Tree");
    188 /* DoTree(2,"Main Tree"); */
    189 DoAlerts();
    190
    191 SummarizeObjects();
    192
    193 closelog();
    194 return 0;
    195 }
    196
    197 /*******************************************************************/
    198 /* Level 1                                                         */
"cfagent.c" line 190 of 1948 --9%-- col 1


Set the second argument to DoTree to the number of "passes" you would like.

wheeler

> -----Original Message-----
> From: Yves [mailto:address@hidden
> Sent: Monday, May 12, 2003 2:19 PM
> To: address@hidden
> Subject: double warnings ?!
> 
> Hello,
> 
> there are double warnings because of "pass 1" and "pass 2", how can I
> prevent it ?
> As you can see, I did not quite catch, why there is pass 2.
> 
> Syntax:
> -----------
> control:
>       actionsequence  = ( editfiles._checkit )
> 
> editfiles:
>         _checkit::
> 
>         { /var/spool/cron/crontabs/root
> 
>                WarnIfNoSuchLine  "0,30 * * * *
> /usr/local/cfengine/sbin/cfexecd -F"
>         }
> 
>         { /etc/services
> 
>                 WarnIfNoSuchLine "cfengine        5308/tcp       #
> Administrationstool"
>         }
> 
> 
> Result:
> ----------
> Warning, file /etc/services has no line matching cfengine        5308/tcp
> # Administrationstool
> Warning, file /var/spool/cron/crontabs/root has no line matching 0,30 * *
> * * /usr/local/cfengine/sbin/cfexecd -F
> Warning, file /etc/services has no line matching cfengine        5308/tcp
> # Administrationstool
> Warning, file /var/spool/cron/crontabs/root has no line matching 0,30 * *
> * * /usr/local/cfengine/sbin/cfexecd -F
> 
> 
> Output:
> ----------
> *********************************************************************
>  Main Tree Sched: editfiles._checkit pass 1 @ Fri May  9 09:54:55 2003
> *********************************************************************
> 
> 
>                   New temporary class additions
>                   --------( Pass 1 )-------
>                              _checkit
> Begin editing /etc/services
> Warning, file /etc/services has no line matching cfengine        5308/tcp
> # Administrationstool
> End editing /etc/services
> ....................................................................
> Begin editing /var/spool/cron/crontabs/root
> Warning, file /var/spool/cron/crontabs/root has no line matching 0,30 * *
> * * /usr/local/cfengine/sbin/cfexecd -F
> End editing /var/spool/cron/crontabs/root
> ....................................................................
> Job start time set to Fri May  9 09:54:55 2003
> 
> 
> *********************************************************************
>  Main Tree Sched: editfiles._checkit pass 2 @ Fri May  9 09:54:55 2003
> *********************************************************************
> 
> 
>                   New temporary class additions
>                   --------( Pass 2 )-------
>                              _checkit
> Begin editing /etc/services
> Warning, file /etc/services has no line matching cfengine        5308/tcp
> # Administrationstool
> End editing /etc/services
> ....................................................................
> Begin editing /var/spool/cron/crontabs/root
> Warning, file /var/spool/cron/crontabs/root has no line matching 0,30 * *
> * * /usr/local/cfengine/sbin/cfexecd -F
> End editing /var/spool/cron/crontabs/root
> ....................................................................
> Job start time set to Fri May  9 09:54:55 2003
> 
> 
> 
> Gruß Yves
> 
>  address@hidden am 09.05.2003
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cfengine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]