Projet

Général

Profil

Révision cbfa6b45

IDcbfa6b45786e6b11c8f31a75f04932f14ae96af1
Parent 8fbe0ebe
Enfant db74999f

Ajouté par Helmut Grohne il y a presque 13 ans

support warning and critical environment variables

Like the mainline plugins do.

Voir les différences:

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