info nagios core

Matteo Armao <[email protected]> Wed, 1 Feb 2017 18:30:18 +0100
Newsgroups gmane.network.nagios.plugins
Message-ID <CAPQx8oa2HGwGONKynigLB3qrzZhHqD+ydNWTR50p-GvbBuSBgA__16604.0063523271$1486564108$gmane$org@mail.gmail.com>
Good Evening,
I need help about check_snmp! command for internal temperature monitoring
of a switch/router.
I must write a service in my configuration file like this:

define service{
        use                     generic-service ;
        host_name               RouterBoard
        service_description     Port 1 Link Status
        check_command           check_snmp!-C public -o ifOperStatus.2 -r 1
-m RFC1213-MIB
        }
What is the correct syntax?