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:
parent
8fbe0ebe27
commit
cbfa6b4578
10 changed files with 60 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue