(no subject)

Fernando Gomes Lima flima at rio-de-janeiro.oilfield.slb.com
Fri Jul 22 19:07:46 CEST 2005


Sorry for dealy all,

The $USER1$ is the system user (in that case nagios),

The host definition is the same that I use to check through icmp and it
works, bellow you'll find it's config

define host{

        host_name               teste
        alias                   Teste router
        address                 192.168.5.254
        parents                 rio_router
        check_command           check-host-alive
        check_command           check-host-alive
        max_check_attempts      3
        notification_interval   30
        notification_period     24x7
        notification_options    d,u,r
        }

Fernando Lima
Schlumberger
Security Engineer
flima at slb.com

Office: +55 21 3824 6954
Mobile. : +55 21 9888 9046
(GMT: -03:00)
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Sébastien
Barbereau
Sent: Wednesday, July 20, 2005 11:24 AM
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] (no subject)


Hi,
what is the value of your $USER1$ variable ? is it set correctly?
what is your host definition for "teste"?

Cheers,
Seb.B

On 7/20/05, Fernando Gomes Lima <flima at rio-de-janeiro.oilfield.slb.com>
wrote:
   Gents,

I'm pretty new at this list and I'm hopeful that someone will help me out
with this problem. I'm trying to configure Nagios to monitor one specific
interface at Cisco router. Through snmpwalk I got the number of interface
(5).

I create at checkcommands.cfg the following lines:

define command{
       command_name    check_snmp_cisco_if_up
       command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C
$ARG2$
       }

At services.cfg I've inserted the following lines:

define service{

       host_name                       teste
       service_description             check_snmp_cisco_if_up
       is_volatile                     0
       check_period                    24x7
       max_check_attempts              2
       normal_check_interval           1
       retry_check_interval            1
       contact_groups                  nagios-admins,support
       notification_interval           120
       notification_period             24x7
       notification_options            c,r
       check_command
check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public
       }

When I tested this command from libexec folder (./check_snmp -H
192.168.96.1 -o interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got
a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP
problem - No data recieved from host"

Any help, tip, etc., are welcome.
Best Regards,
Fernando Lima
Schlumberger
Security Engineer
flima at slb.com

Office: +55 21 3824 6954
Mobile. : +55 21 9888 9046
(GMT: -03:00)




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list