Radwin Radios SNMP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
pmnykh
Posts: 19
Joined: Wed Dec 14, 2016 4:31 pm

Re: Radwin Radios SNMP

Post by pmnykh »

Code: Select all

[root@localhost libexec]# ./check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des 
SNMP OK - -63 | iso.3.6.1.4.1.4458.1000.1.5.56.2.0=-63
How can I add this task to the host check?
Host config file:
define host {
use linux-server
host_name radwin1
alias radwinradio1
address 192.168.1.110
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
contacts nagiosadmin
notification_interval 60
notification_period 24x7
first_notification_delay 0
notifications_enabled 1
}

define service{
use generic-service
host_name radwin1
service_description PING
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
}
When I tried to add

Code: Select all

define service{
        use                                  generic-service
        host_name                       radwin1
        service_description           PING
        check_command              check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des W -w 60 -c 70
        }
I got

Code: Select all

Checking objects...
Error: Service check command 'check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des W -w 60 -c 70' specified in service 'PING' for host 'radwin1' not defined anywhere!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Radwin Radios SNMP

Post by tgriep »

I guess that the MIB file and the PDF for that OID had mistakes in them. Glad you figured it out.

About the service check error.
First, in the commands.cfg file, create a check_snmp command like the following

Code: Select all

define command {
       command_name                             check_snmp
       command_line                             $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
Then edit your service check and change the check_command from

Code: Select all

check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des W -w 60 -c 70
to

Code: Select all

check_snmp! -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des -w 60 -c 70
That should work for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked