felcor
(usa Red Hat)
Enviado em 21/05/2014 - 16:40h
Boa tarde pessoal.
Estou tomando uma surra pra funfar o Nagios aqui no trampo.
Vejam se podem me dar uma ajuda.
Criei um arquivo de host contendo as seguintes informações:
# Define the switch that we'll be monitoring
23
24 define host{
25 use generic-switch ; Inherit default values from a template
26 host_name SW_4507 ; The name we're giving to this switch
27 alias Cisco 4507 ; A longer name associated with the switch
28 address xx.xx.xx.xx ; IP address of the switch
29 hostgroups switches ; Host groups this switch is associated with
30 }
31
32 ###############################################################################
33 ###############################################################################
34 #
35 # SERVICE DEFINITIONS
36 #
37 ###############################################################################
38 ###############################################################################
39
40 define service{
41 use switches-services
42 hostgroup_name switches
43 service_description Conectividade
44 check_command check_ping!200.0,20%!600.0,60%
45 normal_check_interval 5
46 retry_check_interval 1
47 }
48
49 define service{
50 use switches-services
51 hostgroup_name switches
52 service_description Uptime
53 check_command check_snmp!-C corio -o sysUpTime.0
Logo após reiniciar o Nagios apresenta a seguinte mensagem:
Processing object config directory '/etc/nagios3/routers'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Error: Service check command 'check_snmp' specified in service 'Uptime' for host 'SW_4507_COR' not defined anywhere!
Checked 48 services.
O check_snmp está na pasta /usr/local/nagios3/libexec porém não consigo colher as informações via snmp do equipamento que pretendo monitorar.