diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-03-19 13:01:05 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-03-19 13:01:05 +0000 |
commit | 4f29ac7115a5852a747242fc7973a6137817c3df (patch) | |
tree | cc5fcb8d542ed67ffd3a25057292e4ba20924f6b /plugins/utils.h | |
parent | 8535da68ef4fdd8ccebc9a0fe72bf3bf61e71f65 (diff) | |
download | monitoring-plugins-4f29ac7115a5852a747242fc7973a6137817c3df.tar.gz |
make state_text a function
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@440 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 43b612c1..b345f7a2 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -17,6 +17,7 @@ char *my_basename (char *); void support (void); char *clean_revstring (const char *revstring); void print_revision (const char *, const char *); +void die (int result, const char *fmt, ...); void terminate (int result, char *msg, ...); extern RETSIGTYPE timeout_alarm_handler (int); @@ -71,17 +72,10 @@ void usage (char *msg); void usage2(char *msg, char *arg); void usage3(char *msg, char arg); +char *state_text (int result); #define max(a,b) (((a)>(b))?(a):(b)) -#define state_text(a) \ -(a)==0?"OK":\ -(a)==1?"WARNING":\ -(a)==2?"CRITICAL":\ -(a)==3?"UNKNOWN":\ -(a)==4?"DEPENDENT":\ -"UNKNOWN" - /* The idea here is that, although not every plugin will use all of these, most will or should. Therefore, for consistency, these very common options should have only these meanings throughout the overall suite */ |