summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 2c62a23..ba5b1d3 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -567,6 +567,18 @@ main (int argc, char **argv)
567 len = sizeof(perfstr)-strlen(perfstr)-1; 567 len = sizeof(perfstr)-strlen(perfstr)-1;
568 strncat(perfstr, show, len>ptr-show ? ptr-show : len); 568 strncat(perfstr, show, len>ptr-show ? ptr-show : len);
569 569
570 if (warning_thresholds) {
571 strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
572 strncat(perfstr, warning_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
573 }
574
575 if (critical_thresholds) {
576 if (!warning_thresholds)
577 strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
578 strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
579 strncat(perfstr, critical_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
580 }
581
570 if (type) 582 if (type)
571 strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1); 583 strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
572 strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1); 584 strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);