summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_snmp.c12
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;
135int numauthpriv = 0; 135int numauthpriv = 0;
136int numcontext = 0; 136int numcontext = 0;
137int verbose = 0; 137int verbose = 0;
138int usesnmpgetnext = FALSE; 138bool usesnmpgetnext = false;
139char *warning_thresholds = NULL; 139char *warning_thresholds = NULL;
140char *critical_thresholds = NULL; 140char *critical_thresholds = NULL;
141thresholds **thlds; 141thresholds **thlds;
@@ -148,7 +148,7 @@ size_t eval_size = OID_COUNT_STEP;
148char *delimiter; 148char *delimiter;
149char *output_delim; 149char *output_delim;
150char *miblist = NULL; 150char *miblist = NULL;
151int needmibs = FALSE; 151bool needmibs = false;
152int calculate_rate = 0; 152int calculate_rate = 0;
153double offset = 0.0; 153double offset = 0.0;
154int rate_multiplier = 1; 154int 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 */