summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_pgsql.c48
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
62int process_arguments(int, char **); 62static int process_arguments(int, char **);
63int validate_arguments(void); 63static int validate_arguments(void);
64void print_usage(void); 64static void print_usage(void);
65void print_help(void); 65static void print_help(void);
66bool is_pg_logname(char *); 66static bool is_pg_logname(char *);
67int do_query(PGconn *, char *); 67static int do_query(PGconn *, char *);
68 68
69char *pghost = NULL; /* host name of the backend server */ 69static char *pghost = NULL; /* host name of the backend server */
70char *pgport = NULL; /* port of the backend server */ 70static char *pgport = NULL; /* port of the backend server */
71int default_port = DEFAULT_PORT; 71static char *pgoptions = NULL;
72char *pgoptions = NULL; 72static char *pgtty = NULL;
73char *pgtty = NULL; 73static char dbName[NAMEDATALEN] = DEFAULT_DB;
74char dbName[NAMEDATALEN] = DEFAULT_DB; 74static char *pguser = NULL;
75char *pguser = NULL; 75static char *pgpasswd = NULL;
76char *pgpasswd = NULL; 76static char *pgparams = NULL;
77char *pgparams = NULL; 77static double twarn = (double)DEFAULT_WARN;
78double twarn = (double)DEFAULT_WARN; 78static double tcrit = (double)DEFAULT_CRIT;
79double tcrit = (double)DEFAULT_CRIT; 79static char *pgquery = NULL;
80char *pgquery = NULL; 80static char *pgqueryname = NULL;
81static char *query_warning = NULL;
82static char *query_critical = NULL;
83static thresholds *qthresholds = NULL;
84static int verbose = 0;
85
81#define OPTID_QUERYNAME -1000 86#define OPTID_QUERYNAME -1000
82char *pgqueryname = NULL;
83char *query_warning = NULL;
84char *query_critical = NULL;
85thresholds *qthresholds = NULL;
86int verbose = 0;
87 87
88/****************************************************************************** 88/******************************************************************************
89 89