diff options
-rw-r--r-- | plugins/check_snmp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 56a586a..405ede3 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -135,7 +135,7 @@ int numoids = 0; | |||
135 | int numauthpriv = 0; | 135 | int numauthpriv = 0; |
136 | int numcontext = 0; | 136 | int numcontext = 0; |
137 | int verbose = 0; | 137 | int verbose = 0; |
138 | int usesnmpgetnext = FALSE; | 138 | bool usesnmpgetnext = false; |
139 | char *warning_thresholds = NULL; | 139 | char *warning_thresholds = NULL; |
140 | char *critical_thresholds = NULL; | 140 | char *critical_thresholds = NULL; |
141 | thresholds **thlds; | 141 | thresholds **thlds; |
@@ -148,7 +148,7 @@ size_t eval_size = OID_COUNT_STEP; | |||
148 | char *delimiter; | 148 | char *delimiter; |
149 | char *output_delim; | 149 | char *output_delim; |
150 | char *miblist = NULL; | 150 | char *miblist = NULL; |
151 | int needmibs = FALSE; | 151 | bool needmibs = false; |
152 | int calculate_rate = 0; | 152 | int calculate_rate = 0; |
153 | double offset = 0.0; | 153 | double offset = 0.0; |
154 | int rate_multiplier = 1; | 154 | int rate_multiplier = 1; |
@@ -302,7 +302,7 @@ main (int argc, char **argv) | |||
302 | } | 302 | } |
303 | 303 | ||
304 | /* Create the command array to execute */ | 304 | /* Create the command array to execute */ |
305 | if(usesnmpgetnext == TRUE) { | 305 | if(usesnmpgetnext) { |
306 | snmpcmd = strdup (PATH_TO_SNMPGETNEXT); | 306 | snmpcmd = strdup (PATH_TO_SNMPGETNEXT); |
307 | }else{ | 307 | }else{ |
308 | snmpcmd = strdup (PATH_TO_SNMPGET); | 308 | snmpcmd = strdup (PATH_TO_SNMPGET); |
@@ -777,7 +777,7 @@ process_arguments (int argc, char **argv) | |||
777 | miblist = optarg; | 777 | miblist = optarg; |
778 | break; | 778 | break; |
779 | case 'n': /* usesnmpgetnext */ | 779 | case 'n': /* usesnmpgetnext */ |
780 | usesnmpgetnext = TRUE; | 780 | usesnmpgetnext = true; |
781 | break; | 781 | break; |
782 | case 'P': /* SNMP protocol version */ | 782 | case 'P': /* SNMP protocol version */ |
783 | proto = optarg; | 783 | proto = optarg; |
@@ -831,7 +831,7 @@ process_arguments (int argc, char **argv) | |||
831 | * so we have a mib variable, rather than just an SNMP OID, | 831 | * so we have a mib variable, rather than just an SNMP OID, |
832 | * so we have to actually read the mib files | 832 | * so we have to actually read the mib files |
833 | */ | 833 | */ |
834 | needmibs = TRUE; | 834 | needmibs = true; |
835 | } | 835 | } |
836 | for (ptr = strtok(optarg, ", "); ptr != NULL; ptr = strtok(NULL, ", "), j++) { | 836 | for (ptr = strtok(optarg, ", "); ptr != NULL; ptr = strtok(NULL, ", "), j++) { |
837 | while (j >= oids_size) { | 837 | while (j >= oids_size) { |
@@ -1034,7 +1034,7 @@ validate_arguments () | |||
1034 | { | 1034 | { |
1035 | /* check whether to load locally installed MIBS (CPU/disk intensive) */ | 1035 | /* check whether to load locally installed MIBS (CPU/disk intensive) */ |
1036 | if (miblist == NULL) { | 1036 | if (miblist == NULL) { |
1037 | if ( needmibs == TRUE ) { | 1037 | if (needmibs) { |
1038 | miblist = strdup (DEFAULT_MIBLIST); | 1038 | miblist = strdup (DEFAULT_MIBLIST); |
1039 | }else{ | 1039 | }else{ |
1040 | miblist = ""; /* don't read any mib files for numeric oids */ | 1040 | miblist = ""; /* don't read any mib files for numeric oids */ |