[SPAM] Re: check snmp with diferent community not work

Assaf Flatto nagios at flatto.net
Thu Nov 5 21:09:48 CET 2009


Ricardo Delgado wrote:
> Hi all, when configure 2 o more UPS with the same community it's work's fine, but when i add UPS with other community, it's not work.
> any ideas?
>
>
> #Servicio para chequear via snmp tiempo total sin apagar
>
>
> define service{
>       use                             generic-service
>
>       hostgroup_name                  ups
>       service_description             SYSTEM UP
>
>       is_volatile                     0
>       check_period                    24x7
>
>       max_check_attempts              3
>       normal_check_interval           5
>
>       retry_check_interval            1
>       contact_groups                  admins
>       notification_interval           0
>
>       notification_period             24x7
>       notification_options            c,r
>       check_command                   check_snmp!.1.3.6.1.2.1.1.3.0
> }
>
>
> then in each host 
>
> CONFIGURACION UPS1.CFG
>
>
> define host{
>       use                     generic-host            ; Name of host
>
> template to use
>       host_name               UPS EDIF
>
>       address                 10.14.12.106
>
>       hostgroups              ups
>
>       notes_url               http://10.14.12.106
> }
>
>
> define hostgroup{
>       hostgroup_name          ups
>       alias                   ups
>
> }
>
> #aqui especifico el comando por snmp
>
>
> define command{
>       command_name            check_snmp
>
>       command_line            /usr/local/nagios/libexec/check_snmp -C comun1 -H
> $HOSTADDRESS$ -o $ARG1$
> }
>
>
> CONFIGURACION UPS2.CFG
>
>
> define host{
>       use                     generic-host            ; Name of host
>
> template to use
>       host_name               UPS2 EDIF
>       address                 10.14.12.107
>       hostgroups              ups
>       notes_url               http://10.14.12.107
>
> }
>
>
> #aqui especifico el comando por snmp
>
>
> define command{
> #       command_name            check_snmp
>
>       command_line            /usr/local/nagios/libexec/check_snmp -C comun1 -H
> $HOSTADDRESS$ -o $ARG1$
> }
>
>
>
> this is an example to add other host with a diferent community, and not work!!
>
> ##CONFIGURATION UPS3.CFG
>
>
> define host{
>       use                     generic-host            ; Name of host
>
> template to use
>       host_name               UPS3 EDIF
>       address                 10.14.12.187
>       hostgroups              ups
>       notes_url               http://10.14.12.187
>
> }
>
>
> #aqui especifico el comando por snmp
>
>
> define command{
> #       command_name            check_snmp
>
>       command_line            /usr/local/nagios/libexec/check_snmp -C publica -H
> $HOSTADDRESS$ -o $ARG1$
> }
>
>
> I try changing the order in the parameters 
>
> 1.-  -H $HOSTADDRESS$ -C publica -o $ARG1$ 
>
> For
>
> 2.-  -H $HOSTADDRESS$ -o $ARG1$ -C publica 
>
>   
What is the error that you are getting ?

this will help know where the issue is .

Is the community  string  correct is the UPS restricting access by IP ?

what version of SNMP the UPS  is using ?

Assaf
 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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