diff options
| -rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 3403eee6..d0f01721 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -169,7 +169,7 @@ int main(int argc, char **argv) { | |||
| 169 | int pcliberr = 0; | 169 | int pcliberr = 0; |
| 170 | int psnmperr = 0; | 170 | int psnmperr = 0; |
| 171 | char *pperrstring = NULL; | 171 | char *pperrstring = NULL; |
| 172 | snmp_error (&config.snmp_session, &pcliberr , &psnmperr, &pperrstring); | 172 | snmp_error(&config.snmp_session, &pcliberr, &psnmperr, &pperrstring); |
| 173 | die(STATE_UNKNOWN, "Failed to open SNMP session: %s\n", pperrstring); | 173 | die(STATE_UNKNOWN, "Failed to open SNMP session: %s\n", pperrstring); |
| 174 | } | 174 | } |
| 175 | 175 | ||
| @@ -180,7 +180,7 @@ int main(int argc, char **argv) { | |||
| 180 | int pcliberr = 0; | 180 | int pcliberr = 0; |
| 181 | int psnmperr = 0; | 181 | int psnmperr = 0; |
| 182 | char *pperrstring = NULL; | 182 | char *pperrstring = NULL; |
| 183 | snmp_error (active_session, &pcliberr , &psnmperr, &pperrstring); | 183 | snmp_error(active_session, &pcliberr, &psnmperr, &pperrstring); |
| 184 | 184 | ||
| 185 | if (psnmperr == SNMPERR_TIMEOUT) { | 185 | if (psnmperr == SNMPERR_TIMEOUT) { |
| 186 | // We exit with critical here for some historical reason | 186 | // We exit with critical here for some historical reason |
