Page 1 of 1

Check_snmp_storage returning error

Posted: Sun Jul 09, 2017 2:26 pm
by jay.thakkar
I am using nagios core 4.3.7 installed on Centos 7. I want to monitor the storage of remote host through SNMP and I configured as below.

Code: Select all

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Desktop-0079
        service_description             Desktop-0079 storage
        check_command                   check_snmp_storage_v1!/!85!95! -r
       }
but getting error like this:
(Return code of 255 is out of bounds : (No output on stdout) stderr: SNMP object version 5.0703 does not match $SNMP::VERSION 5.0702 at /usr/local/share/perl5/DynaLoader.pm line 213.))

I have tried all the possible things given on internet to solve this error but I am stuck. Please help!

Re: Check_snmp_storage returning error

Posted: Mon Jul 10, 2017 1:45 pm
by tgriep
I have seen errors like this in the past, it usually means that the permissions for the plugin is incorrect or that one of the required perl modules permissions is not set correctly.
When the Nagios process runs a plugin, it runs it using the nagios user account, try running the plugin while logged in to the system as the nagios user and and post the error so we can view it.
Also, post the plugin here so we can view it's requirements.