56 |
#include "alert.h" |
#include "alert.h" |
57 |
#include "monit_process.h" |
#include "monit_process.h" |
58 |
|
|
59 |
|
|
60 |
/* Private prototypes */ |
/* Private prototypes */ |
|
static int is_unsafe(unsigned char *c); |
|
61 |
static char *is_str_defined(char *); |
static char *is_str_defined(char *); |
62 |
|
static int is_unsafe(unsigned char *c); |
63 |
static char *is_str_defined_default(char *); |
static char *is_str_defined_default(char *); |
64 |
|
|
65 |
|
|
66 |
/** |
/** |
67 |
* General purpose utility methods. |
* General purpose utility methods. |
68 |
* |
* |
572 |
|
|
573 |
for(t= s->timestamplist; t; t= t->next) { |
for(t= s->timestamplist; t; t= t->next) { |
574 |
|
|
575 |
printf(" %-20s = if %s %s %d second(s) then %s\n", |
if(t->test_changes) { |
576 |
"Timestamp", |
printf(" %-20s = if %s was changed then %s\n", |
577 |
t->pathname, |
"Timestamp", |
578 |
operatornames[t->operator], |
t->pathname, |
579 |
t->time, |
actionnames[t->action]); |
580 |
actionnames[t->action]); |
} else { |
581 |
|
printf(" %-20s = if %s %s %d second(s) then %s\n", |
582 |
|
"Timestamp", |
583 |
|
t->pathname, |
584 |
|
operatornames[t->operator], |
585 |
|
t->time, |
586 |
|
actionnames[t->action]); |
587 |
|
} |
588 |
|
|
589 |
} |
} |
590 |
|
|