duplicate services definition
Livio Zanol Puppim
livio.zanol.puppim at gmail.com
Mon Jun 1 22:03:21 CEST 2009
Hello!
I'm trying to modify how my configuration files are written, and have
choosed to make one CFG file per host monitored. The file contain the host
itself and all the services monitored on that host. Using this configuration
makes nagios3 return a bunch of WARNING messages about "Duplicate
definition", but works just fine. Are there any problems in using this kind
of design?
Nagios version 3.0.3
Configuration Example:
define host{
use servers
host_name SERVER_1
alias SERVER 1
address 192.168.0.1
_IF_INDEX 123
}
define service{
use generic-service-3min
host_name SERVER_1
service_description CHECK_4CPUs_20_50
check_command check-cpu-snmp-hostmib-4cpu!25%!50%
contact_groups cg-Discos
}
define service{
use generic-service-3min
host_name SERVER_1
service_description CHECK_VIRMEM_WIN
check_command check-virmem-snmp-win!100!500
}
define service{
use generic-service-3min
host_name SERVER_1
service_description CHECK_RAMMEM_HOSTMIB
check_command check-rammem-snmp-hostmib!1!2
}
define service{
use generic-service-3min
host_name SERVER_1
service_description IFDATAS_INDEX
check_command check-ifs-snmp-index!$_HOSTIF_INDEX$
contact_groups cg-Discos
}
define service{
use generic-service-3min
host_name SERVER_1
service_description CHECK_VIRMEM_WIN
check_command check-virmem-snmp-win!100!500
}
define service{
use generic-service-3min
host_name SERVER_1
service_description CHECK_RAMMEM_HOSTMIB
check_command check-rammem-snmp-hostmib!1!2
}
define service{
use generic-service-3min
host_name SERVER_1
service_description IFDATAS_INDEX
check_command check-ifs-snmp-index!$_HOSTIF_INDEX$
contact_groups cg-Discos
}
WARNING MESSAGE:
Warning: Duplicate definition found for service 'IFDATAS_INDEX' on host
'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line 30)
Warning: Duplicate definition found for service 'CHECK_RAMMEM_HOSTMIB' on
host 'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line
23)
Warning: Duplicate definition found for service 'CHECK_VIRMEM_WIN' on host
'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line 17)
Running pre-flight check on configuration data...
--
[]'s
Lívio Zanol Puppim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090601/99d5ccfe/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
-------------- next part --------------
_______________________________________________
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