1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

support warning and critical environment variables

Like the mainline plugins do.
This commit is contained in:
Helmut Grohne 2013-01-30 12:14:28 +01:00
parent 8fbe0ebe27
commit cbfa6b4578
10 changed files with 60 additions and 5 deletions

View file

@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "common.h"
#define PROC_NET_DEV "/proc/net/dev"
@ -74,6 +75,8 @@ int if_err_(int argc, char **argv) {
"trans.type COUNTER\n"
"trans.negative rcvd\n"
"trans.warning 1");
print_warncrit("rcvd");
print_warncrit("trans");
return 0;
}
}