/[monit]/monit/validate.c
ViewVC logotype

Diff of /monit/validate.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.142 by martinp, Fri Aug 5 11:21:18 2005 UTC revision 1.143 by martinp, Thu Sep 1 01:10:27 2005 UTC
# Line 780  static void check_checksum(Service_T s) Line 780  static void check_checksum(Service_T s)
780    
781        /* if we are testing for changes only, the value is variable */        /* if we are testing for changes only, the value is variable */
782        if(cs->test_changes) {        if(cs->test_changes) {
         Event_post(s, EVENT_CHANGED, TRUE, cs->action,  
           "'%s' checksum was changed for %s", s->name, s->path);  
783          /* reset expected value for next cycle */          /* reset expected value for next cycle */
784          FREE(cs->hash);          FREE(cs->hash);
785          cs->hash= xstrdup(s->inf->cs_sum);          cs->hash= xstrdup(s->inf->cs_sum);
786            Event_post(s, EVENT_CHANGED, TRUE, cs->action,
787              "'%s' checksum was changed for %s", s->name, s->path);
788        } else {        } else {
789          /* we are testing constant value for failed or passed state */          /* we are testing constant value for failed or passed state */
790          Event_post(s, EVENT_CHECKSUM, TRUE, cs->action,          Event_post(s, EVENT_CHECKSUM, TRUE, cs->action,

Legend:
Removed from v.1.142  
changed lines
  Added in v.1.143

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26