summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-28 11:52:15 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-28 11:52:15 +0200
commit553a230a287b2b0294f0a0bbff7767493fe98657 (patch)
tree7093f757128466b7bfd438bab9082b27d0f1cd5a /plugins
parentf5ad4275ff9b9810d784b89a47863e41bc8c368e (diff)
downloadmonitoring-plugins-553a230a287b2b0294f0a0bbff7767493fe98657.tar.gz
check_snmp: formatting
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_snmp.c4
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