<div>Hi,</div>
<div>what is the value of your $USER1$ variable ? is it set correctly?<br>what is your host definition for "teste"?</div>
<div> </div>
<div>Cheers,</div>
<div>Seb.B<br> </div>
<div><span class="gmail_quote">On 7/20/05, <b class="gmail_sendername">Fernando Gomes Lima</b> <<a href="mailto:flima@rio-de-janeiro.oilfield.slb.com">flima@rio-de-janeiro.oilfield.slb.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">   Gents,<br><br>I'm pretty new at this list and I'm hopeful that someone will help me out<br>with this problem. I'm trying to configure Nagios to monitor one specific
<br>interface at Cisco router. Through snmpwalk I got the number of interface<br>(5).<br><br>I create at checkcommands.cfg the following lines:<br><br>define command{<br>       command_name    check_snmp_cisco_if_up<br>       command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C
<br>$ARG2$<br>       }<br><br>At services.cfg I've inserted the following lines:<br><br>define service{<br><br>       host_name                       teste<br>       service_description             check_snmp_cisco_if_up<br>
       is_volatile                     0<br>       check_period                    24x7<br>       max_check_attempts              2<br>       normal_check_interval           1<br>       retry_check_interval            1<br>
       contact_groups                  nagios-admins,support<br>       notification_interval           120<br>       notification_period             24x7<br>       notification_options            c,r<br>       check_command
<br>check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public<br>       }<br><br>When I tested this command from libexec folder (./check_snmp -H<br><a href="http://192.168.96.1">192.168.96.1</a> -o interfaces.ifTable.ifEntry.ifOperStatus.5
 -C public), I got<br>a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP<br>problem - No data recieved from host"<br><br>Any help, tip, etc., are welcome.<br>Best Regards,<br>Fernando Lima
<br>Schlumberger<br>Security Engineer<br><a href="mailto:flima@slb.com">flima@slb.com</a><br><br>Office: +55 21 3824 6954<br>Mobile. : +55 21 9888 9046<br>(GMT: -03:00)<br><br><br><br><br>-------------------------------------------------------
<br>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies<br>from IBM. Find simple to follow Roadmaps, straightforward articles,<br>informative Webcasts and more! Get everything you need to get up to<br>speed, fast. 
<a href="http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click">http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click</a><br>_______________________________________________<br>Nagios-users mailing list
<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>