mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
check_snmp: formatting
This commit is contained in:
parent
f5ad4275ff
commit
553a230a28
1 changed files with 2 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ int main(int argc, char **argv) {
|
|||
int pcliberr = 0;
|
||||
int psnmperr = 0;
|
||||
char *pperrstring = NULL;
|
||||
snmp_error (&config.snmp_session, &pcliberr , &psnmperr, &pperrstring);
|
||||
snmp_error(&config.snmp_session, &pcliberr, &psnmperr, &pperrstring);
|
||||
die(STATE_UNKNOWN, "Failed to open SNMP session: %s\n", pperrstring);
|
||||
}
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ int main(int argc, char **argv) {
|
|||
int pcliberr = 0;
|
||||
int psnmperr = 0;
|
||||
char *pperrstring = NULL;
|
||||
snmp_error (active_session, &pcliberr , &psnmperr, &pperrstring);
|
||||
snmp_error(active_session, &pcliberr, &psnmperr, &pperrstring);
|
||||
|
||||
if (psnmperr == SNMPERR_TIMEOUT) {
|
||||
// We exit with critical here for some historical reason
|
||||
|
|
|
|||
Loading…
Reference in a new issue