diff options
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r-- | plugins/check_pgsql.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 76ed183..a6411a5 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -59,31 +59,31 @@ enum { | |||
59 | DEFAULT_CRIT = 8 | 59 | DEFAULT_CRIT = 8 |
60 | }; | 60 | }; |
61 | 61 | ||
62 | int process_arguments(int, char **); | 62 | static int process_arguments(int, char **); |
63 | int validate_arguments(void); | 63 | static int validate_arguments(void); |
64 | void print_usage(void); | 64 | static void print_usage(void); |
65 | void print_help(void); | 65 | static void print_help(void); |
66 | bool is_pg_logname(char *); | 66 | static bool is_pg_logname(char *); |
67 | int do_query(PGconn *, char *); | 67 | static int do_query(PGconn *, char *); |
68 | 68 | ||
69 | char *pghost = NULL; /* host name of the backend server */ | 69 | static char *pghost = NULL; /* host name of the backend server */ |
70 | char *pgport = NULL; /* port of the backend server */ | 70 | static char *pgport = NULL; /* port of the backend server */ |
71 | int default_port = DEFAULT_PORT; | 71 | static char *pgoptions = NULL; |
72 | char *pgoptions = NULL; | 72 | static char *pgtty = NULL; |
73 | char *pgtty = NULL; | 73 | static char dbName[NAMEDATALEN] = DEFAULT_DB; |
74 | char dbName[NAMEDATALEN] = DEFAULT_DB; | 74 | static char *pguser = NULL; |
75 | char *pguser = NULL; | 75 | static char *pgpasswd = NULL; |
76 | char *pgpasswd = NULL; | 76 | static char *pgparams = NULL; |
77 | char *pgparams = NULL; | 77 | static double twarn = (double)DEFAULT_WARN; |
78 | double twarn = (double)DEFAULT_WARN; | 78 | static double tcrit = (double)DEFAULT_CRIT; |
79 | double tcrit = (double)DEFAULT_CRIT; | 79 | static char *pgquery = NULL; |
80 | char *pgquery = NULL; | 80 | static char *pgqueryname = NULL; |
81 | static char *query_warning = NULL; | ||
82 | static char *query_critical = NULL; | ||
83 | static thresholds *qthresholds = NULL; | ||
84 | static int verbose = 0; | ||
85 | |||
81 | #define OPTID_QUERYNAME -1000 | 86 | #define OPTID_QUERYNAME -1000 |
82 | char *pgqueryname = NULL; | ||
83 | char *query_warning = NULL; | ||
84 | char *query_critical = NULL; | ||
85 | thresholds *qthresholds = NULL; | ||
86 | int verbose = 0; | ||
87 | 87 | ||
88 | /****************************************************************************** | 88 | /****************************************************************************** |
89 | 89 | ||