using snmp oid
Ricardo Delgado
ricardodelgadoar at yahoo.com.ar
Mon Nov 2 21:35:03 CET 2009
Hi, i need use snmp to monitoring ups
i define
1.- in SERVICES_NAGIOS2.CFG
define service{
use generic-service
host_name my-ups
service_description Uptime
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 8
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_snmp!.1.3.6.1.2.1.1.3.0 # OID uptime
}
in COMMANDS.CFG
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C readonly -o $ARG1$
}
in each ups ej UPS1.CFG?
define service{
use generic-service ; Name of service template to use
host_name UPS1
service_description UPTIME check_command check_snmp
}
Is correct?
-----------------------------------
\|||||||/
( @ @ )
------oOOo-( )---oOOo--------
| Ricardo Delgado |
| |
|http://delgado.homelinux.net|
| |
| |
| |
| |
---------------0ooo---------
ooo0 ( )
( ) ) /
\ ( (_/
\_)
Por Favor, no hagas Top Posting
http://es.wikipedia.org/wiki/Top-posting
Por Favor, sin formato html
http://es.wikipedia.org/wiki/Netiquette
Sin formatos propietarios.
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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