diff options
Diffstat (limited to 'lib/utils_base.h')
| -rw-r--r-- | lib/utils_base.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 0cb371fd..b4bd92ee 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifndef _UTILS_BASE_ | 1 | #ifndef _UTILS_BASE_ |
| 2 | #define _UTILS_BASE_ | 2 | #define _UTILS_BASE_ |
| 3 | /* Header file for nagios plugins utils_base.c */ | 3 | /* Header file for Monitoring Plugins utils_base.c */ |
| 4 | 4 | ||
| 5 | #include "sha1.h" | 5 | #include "sha1.h" |
| 6 | 6 | ||
| @@ -52,7 +52,7 @@ typedef struct np_struct { | |||
| 52 | state_key *state; | 52 | state_key *state; |
| 53 | int argc; | 53 | int argc; |
| 54 | char **argv; | 54 | char **argv; |
| 55 | } nagios_plugin; | 55 | } monitoring_plugin; |
| 56 | 56 | ||
| 57 | range *parse_range_string (char *); | 57 | range *parse_range_string (char *); |
| 58 | int _set_thresholds(thresholds **, char *, char *); | 58 | int _set_thresholds(thresholds **, char *, char *); |
| @@ -102,4 +102,8 @@ void np_init(char *, int argc, char **argv); | |||
| 102 | void np_set_args(int argc, char **argv); | 102 | void np_set_args(int argc, char **argv); |
| 103 | void np_cleanup(); | 103 | void np_cleanup(); |
| 104 | 104 | ||
| 105 | /* mp_suid() returns true if the real and effective uids differs, such as when | ||
| 106 | * running a suid plugin */ | ||
| 107 | #define mp_suid() (getuid() != geteuid()) | ||
| 108 | |||
| 105 | #endif /* _UTILS_BASE_ */ | 109 | #endif /* _UTILS_BASE_ */ |
