Changeset 3aa92a99288199674668d8f00e7767069cb8ef34

Show
Ignore:
Timestamp:
07/01/11 03:08:08 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1309489688 -0400
git-parent:

[da6e5460a9074962d82313a6da2b190a8280b585]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1309489688 -0400
Message:

check status

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/Makefile.in

    rda6e546 r3aa92a9  
    156156stratcon_jlog_streamer.o:       @DTRACEHDR@ 
    157157noit_check_tools.o:     @DTRACEHDR@ 
     158noit_check.o:   @DTRACEHDR@ 
    158159 
    159160stratcond_@DTRACEOBJ@:    $(STRATCON_OBJS) 
  • src/dtrace_probes.d

    rda6e546 r3aa92a9  
    1717provider noit_check { 
    1818  probe dispatch(char *, char *, char *, char *); 
     19  probe status(char *, char *, char *, char *, int, int, char *); 
    1920}; 
  • src/noit_check.c

    rd10f13b r3aa92a9  
    4343#include <time.h> 
    4444 
     45#include "dtrace_probes.h" 
    4546#include "utils/noit_log.h" 
    4647#include "utils/noit_hash.h" 
     
    11261127  } 
    11271128 
     1129  if(NOIT_CHECK_STATUS_ENABLED()) { 
     1130    char id[UUID_STR_LEN+1]; 
     1131    uuid_unparse_lower(check->checkid, id); 
     1132    NOIT_CHECK_STATUS(id, check->module, check->name, check->target, 
     1133                      check->stats.current.available, 
     1134                      check->stats.current.state, 
     1135                      check->stats.current.status); 
     1136  } 
     1137 
    11281138  /* Write out our status */ 
    11291139  noit_check_log_status(check);