Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Received noSuchName(2) error-status at error-index 4

  1. #1
    Join Date
    Dec 2009
    Location
    Québec
    Posts
    14

    Default Received noSuchName(2) error-status at error-index 4

    maybe someone has an idea about this?

    snmpwalk -v 2c -c myCommunity 192.168.3.30 | grep -i /data
    HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /data
    /usr/lib64/nagios/plugins/check_centreon_snmp_remote_storage -H 192.168.3.30 -C myCommunity -v 1 -n -d /data
    ERROR: Received noSuchName(2) error-status at error-index 4.
    - You must specify the disk name when option -n is used.
    /usr/lib64/nagios/plugins/check_centreon_snmp_remote_storage -H 192.168.3.30 -C myCommunity -v 1 -n -d "/data"
    ERROR: Received noSuchName(2) error-status at error-index 4.
    - You must specify the disk name when option -n is used.
    But if I only use the index number, it works...

    /usr/lib64/nagios/plugins/check_centreon_snmp_remote_storage -H 192.168.3.30 -C myCommunity -v 1 -d 34
    Disk OK - /data TOTAL: 1154.947GB USED: 905.092GB (78%) FREE: 249.855GB (22%)|size=1240114593792B used=971834777600B;1116103134412;1178108864102
    thanks for suggesting.

    ren

  2. #2
    Join Date
    Dec 2004
    Location
    Montgeron
    Age
    38
    Posts
    1,129

    Default

    Can you try using version 2c ?
    Raphaël 'SurcouF' Bordet
    Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
    Dons Paypal

  3. #3
    Join Date
    Dec 2009
    Location
    Québec
    Posts
    14

    Default

    Hi surcouf,

    it has a similar effect:

    /usr/lib64/nagios/plugins/check_centreon_snmp_remote_storage -H 192.168.3.30 -C myCommunity -v 2 -n -d "/data"
    Disk CRITICAL - no output (-p number expected... it doesn't exist, try another disk number)
    /usr/lib64/nagios/plugins/check_centreon_snmp_remote_storage -H 192.168.3.30 -C myCommunity -v 2 -n -d /data
    Disk CRITICAL - no output (-p number expected... it doesn't exist, try another disk number)
    any idea?

    thanks for your reply

    René

  4. #4
    Join Date
    Dec 2004
    Location
    Montgeron
    Age
    38
    Posts
    1,129

    Default

    Quote Originally Posted by ronmaster View Post
    maybe someone has an idea about this?

    But if I only use the index number, it works...

    thanks for suggesting.

    ren
    Can you try this following command and show the result :
    Code:
    snmpwalk -OvaqU -v 2c -c myCommunity 192.168.3.30 | grep -i /data|od -cx
    Raphaël 'SurcouF' Bordet
    Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
    Dons Paypal

  5. #5
    Join Date
    Dec 2009
    Location
    Québec
    Posts
    14

    Default

    bonjour SurcouF

    this is the result of the command '' snmpwalk -OvaqU -v 2c -c bioinfo 192.168.3.30 | grep -i /data|od -cx''

    Code:
    0000000   /   d   a   t   a  \n   "   /   d   a   t   a   "  \n   "   :
               642f    7461    0a61    2f22    6164    6174    0a22    3a22
    0000020   0       -   n   r       -   v   e   r   b   o   s   e       -
               2030    6e2d    2072    762d    7265    6f62    6573    2d20
    0000040   a   u   t   h       /   v   a   r   /   r   u   n   /   g   d
               7561    6874    2f20    6176    2f72    7572    2f6e    6467
    0000060   m   /   a   u   t   h   -   f   o   r   -   g   d   m   -   m
               2f6d    7561    6874    662d    726f    672d    6d64    6d2d
    0000100   5   z   U   T   1   /   d   a   t   a   b   a   s   e       -
               7a35    5455    2f31    6164    6174    6162    6573    2d20
    0000120   n   o   l   i   s   t   e   n       t   c   p       v   t   1
               6f6e    696c    7473    6e65    7420    7063    7620    3174
    0000140   "  \n
               0a22
    0000142
    I hope you can see something in that. If not , I will post an image of the result (Tab-like delimited).


    Merci

    René

  6. #6
    Join Date
    Dec 2004
    Location
    Montgeron
    Age
    38
    Posts
    1,129

    Default

    Quote Originally Posted by ronmaster View Post
    bonjour SurcouF

    this is the result of the command '' snmpwalk -OvaqU -v 2c -c bioinfo 192.168.3.30 | grep -i /data|od -cx''

    Code:
    0000000   /   d   a   t   a  \n   "   /   d   a   t   a   "  \n   "   :
               642f    7461    0a61    2f22    6164    6174    0a22    3a22
    0000020   0       -   n   r       -   v   e   r   b   o   s   e       -
               2030    6e2d    2072    762d    7265    6f62    6573    2d20
    0000040   a   u   t   h       /   v   a   r   /   r   u   n   /   g   d
               7561    6874    2f20    6176    2f72    7572    2f6e    6467
    0000060   m   /   a   u   t   h   -   f   o   r   -   g   d   m   -   m
               2f6d    7561    6874    662d    726f    672d    6d64    6d2d
    0000100   5   z   U   T   1   /   d   a   t   a   b   a   s   e       -
               7a35    5455    2f31    6164    6174    6162    6573    2d20
    0000120   n   o   l   i   s   t   e   n       t   c   p       v   t   1
               6f6e    696c    7473    6e65    7420    7063    7620    3174
    0000140   "  \n
               0a22
    0000142
    I hope you can see something in that. If not , I will post an image of the result (Tab-like delimited).


    Merci

    René
    There too mush result. I don't understand.
    You must only have this following:
    Code:
    0000000   /   d   a   t   a  \n
               642f    7461    0a61
    I expect the others strings are issued from some warnings of grep.
    Raphaël 'SurcouF' Bordet
    Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
    Dons Paypal

  7. #7
    Join Date
    Aug 2008
    Posts
    17

    Default

    I have the same issue

    i did a fresh install of centreon (on a debian 5)

    I have 3 hosts configured.
    The first can have his File Systems Monitored
    the 2 other have the error :

    ERROR: Received noSuchName(2) error-status at error-index 4.
    - You must specify the disk name when option -n is used.

    when i do a simple snmpwalk from the centreon server with the oid .1.3.6.1.2.1.25.2.3.1.3 i can list all the FS of the 3 servers.

    But when using check_centreon_snmp_remote_storage (either with v1 or v2c) whith the args, still have the error for 2 servers :

    centreon# /usr/local/nagios/libexec/check_centreon_snmp_remote_storage -H X.X.X.1 -n -d "/" -w 80 -c 90 -C public -v 1
    Disk OK - / TOTAL: 1.832GB USED: 0.181GB (9%) FREE: 1.651GB (91%)|size=1967263744B used=194658304B;1573810995;1770537369

    centreon:/etc/snmp# /usr/local/nagios/libexec/check_centreon_snmp_remote_storage -H X.X.X.2 -n -d "/" -w 80 -c 90 -C public -v 1
    ERROR: Received noSuchName(2) error-status at error-index 4.
    - You must specify the disk name when option -n is used.

  8. #8
    Join Date
    Aug 2008
    Posts
    17

    Default

    Hmmmm strange thing, but my servers are responding fine now...

  9. #9
    Join Date
    Dec 2009
    Location
    Québec
    Posts
    14

    Default

    thanks for replying y2n,

    I do not know what is going on. upgrading to version 2.1.9. I doubt that it will fix it...

    rene

  10. #10
    Join Date
    Dec 2009
    Location
    Québec
    Posts
    14

    Default

    upgrading 2.1.9 did not arrange things.

    but, just by curiosity, here is my snmpd.conf config. It is really basic. If someone finds something weird, thanks to tell me

    # First, map the community name "public" into a "security name"

    # sec.name source community
    com2sec notConfigUser default myCommunity

    ####
    # Second, map the security name into a group name:

    # groupName securityModel securityName
    group notConfigGroup v1 notConfigUser
    group notConfigGroup v2c notConfigUser

    ####
    # Third, create a view for us to let the group have rights to:

    # Make at least snmpwalk -v 1 localhost -c public system fast again.
    # name incl/excl subtree mask(optional)
    view systemview included .1.3.6.1
    view systemview included .1.3.6.1

    ####
    # Finally, grant the group read-only access to the systemview view.

    # group context sec.model sec.level prefix read write notif
    access notConfigGroup "" any noauth exact systemview none systemview

    ...

Similar Threads

  1. Replies: 21
    Last Post: 23rd January 2013, 12:10
  2. Replies: 7
    Last Post: 16th December 2010, 13:55
  3. Replies: 3
    Last Post: 23rd February 2010, 11:04
  4. Replies: 0
    Last Post: 4th October 2007, 21:57
  5. Replies: 6
    Last Post: 9th August 2005, 14:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •