URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 63434
[ Назад ]

Исходное сообщение
"Nagios и hostgroups.cfg"

Отправлено vova , 18-Янв-06 08:25 
Всем привет.
проблема с Нагиусом
volodya# /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Error: Invalid hostgroup object directive 'contact_groups'.
Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 4.

volodya# cat /usr/local/nagios/etc/hostgroups.cfg
define hostgroup{
hostgroup_name unix-servers
alias Unix Servers
contact_groups unix-admins
members mail
}

не подскажите, что ему не нравиться ?
заранее спасибо.


Содержание

Сообщения в этом обсуждении
"Nagios и hostgroups.cfg"
Отправлено Maxim , 18-Янв-06 08:49 
>Всем привет.
>проблема с Нагиусом
>volodya# /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg
>
>Nagios 2.0b4
>Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
>Last Modified: 08-02-2005
>License: GPL
>
>Reading configuration data...
>
>Error: Invalid hostgroup object directive 'contact_groups'.
>Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 4.
>
>
>volodya# cat /usr/local/nagios/etc/hostgroups.cfg
>define hostgroup{
>hostgroup_name unix-servers
>alias Unix Servers
>contact_groups unix-admins
>members mail
>}
>
>не подскажите, что ему не нравиться ?
>заранее спасибо.

http://nagios.sourceforge.net/docs/2_0/whatsnew.html

Contact group changes - The contact_groups directive has been moved from hostgroup definitions to host definitions. This was done in order to maintain consistency with the way service contacts are specified. Make sure to update your config files!


"Nagios и hostgroups.cfg"
Отправлено vova , 18-Янв-06 09:18 
>>Всем привет.
>>проблема с Нагиусом
>>volodya# /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg
>>
>>Nagios 2.0b4
>>Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
>>Last Modified: 08-02-2005
>>License: GPL
>>
>>Reading configuration data...
>>
>>Error: Invalid hostgroup object directive 'contact_groups'.
>>Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 4.
>>
>>
>>volodya# cat /usr/local/nagios/etc/hostgroups.cfg
>>define hostgroup{
>>hostgroup_name unix-servers
>>alias Unix Servers
>>contact_groups unix-admins
>>members mail
>>}
>>
>>не подскажите, что ему не нравиться ?
>>заранее спасибо.
>
>http://nagios.sourceforge.net/docs/2_0/whatsnew.html
>
>Contact group changes - The contact_groups directive has been moved from hostgroup
>definitions to host definitions. This was done in order to maintain
>consistency with the way service contacts are specified. Make sure to
>update your config files!


понял. спасибо большое.