Révision cbfa6b45
support warning and critical environment variables
Like the mainline plugins do.
| tools/munin-plugins-busybox/if_err_.c | ||
|---|---|---|
| 3 | 3 |
#include <stdio.h> |
| 4 | 4 |
#include <string.h> |
| 5 | 5 |
#include <unistd.h> |
| 6 |
#include "common.h" |
|
| 6 | 7 |
|
| 7 | 8 |
#define PROC_NET_DEV "/proc/net/dev" |
| 8 | 9 |
|
| ... | ... | |
| 74 | 75 |
"trans.type COUNTER\n" |
| 75 | 76 |
"trans.negative rcvd\n" |
| 76 | 77 |
"trans.warning 1"); |
| 78 |
print_warncrit("rcvd");
|
|
| 79 |
print_warncrit("trans");
|
|
| 77 | 80 |
return 0; |
| 78 | 81 |
} |
| 79 | 82 |
} |
Formats disponibles : Unified diff