Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for check_snmp [sf#3463985] #1029

Closed
monitoring-user opened this issue Sep 24, 2013 · 1 comment
Closed

Fixes for check_snmp [sf#3463985] #1029

monitoring-user opened this issue Sep 24, 2013 · 1 comment

Comments

@monitoring-user
Copy link

Submitted by None on 2011-12-22 14:34:18

A small patch:

  • response should not start with the delimiter
  • OID response value taken into account

--- nagios-plugins-1.4.15/plugins/check_snmp.c.rmap 2011-12-22 14:23:26.000000000 +0100
+++ nagios-plugins-1.4.15/plugins/check_snmp.c 2011-12-22 14:27:30.000000000 +0100
@@ -322,6 +322,7 @@
response = strstr (ptr, delimiter);
if (response == NULL)
break;

  •           response = response + 3;
    
            if (verbose > 2) {
                    printf("Processing oid %i (line %i)\n  oidname: %s\n  response: %s\n", i+1, line+1, oidname, response);
    

    @@ -353,6 +354,9 @@
    else if (strstr (response, "INTEGER: ")) {
    show = strstr (response, "INTEGER: ") + 9;
    }

  •           else if (strstr (response, "OID: ")) {
    
  •                   show = strstr (response, "OID: ") + 5;
    
  •           }
            else if (strstr (response, "STRING: ")) {
                    show = strstr (response, "STRING: ") + 8;
                    conv = "%.10g";
    
waja added a commit to waja/monitoring-plugins that referenced this issue Sep 30, 2013
Just turning attached patch of github issue monitoring-plugins#1029 into a push request
waja added a commit to waja/monitoring-plugins that referenced this issue Jan 26, 2014
by anonymous submission

- response should not start with the delimiter
- OID response value taken into account

Closes issue monitoring-plugins#1029
Closes push request 1173
waja added a commit to waja/monitoring-plugins that referenced this issue Jul 20, 2014
- response should not start with the delimiter
- OID response value taken into account

Closes issue monitoring-plugins#1029
Closes push request monitoring-plugins#1173
waja added a commit to waja/monitoring-plugins that referenced this issue Jul 20, 2014
- response should not start with the delimiter
- OID response value taken into account

Closes issue monitoring-plugins#1029
Closes push request monitoring-plugins#1173
waja added a commit to waja/monitoring-plugins that referenced this issue Jul 20, 2014
- response should not start with the delimiter
- OID response value taken into account

Closes issue monitoring-plugins#1029
Closes push request monitoring-plugins#1173
waja added a commit that referenced this issue Oct 2, 2015
- response should not start with the delimiter
- OID response value taken into account

Closes issue #1029
Closes push request #1173
@sni
Copy link
Contributor

sni commented Oct 2, 2015

merged

@sni sni closed this as completed Oct 2, 2015
mat813 pushed a commit to Absolight/monitoring-plugins that referenced this issue Sep 13, 2017
- response should not start with the delimiter
- OID response value taken into account

Closes issue monitoring-plugins#1029
Closes push request 1173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants