Portál AbcLinuxu, 12. května 2025 12:55
/etc/nagios3/conf.d
jsem vytvoril soubor myftp.cfg
jehoz obsah je nasledujici:
define host { use generic-host host_name dns_stroje alias Muj FTP server address ip_stroje hostgroups all } define service { use generic-service host_name dns_stroje service_description FTP check_command check_ftp }Po restartu sluzby nagios-u nevidim pridany novy stroj. Proc ? Kde jsem prosim udelal chybu ?
tomas@kraken:~$ nagios3 -v /etc/nagios3/nagios.cfg Nagios Core 3.2.1 Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 03-09-2010 License: GPL Website: http://www.nagios.org Reading configuration data... Error: Cannot open resource file '/etc/nagios3/resource.cfg' for reading! Error in configuration file '/etc/nagios3/nagios.cfg' - Line 469 (Check result path is not a valid directory) Error processing main config file! ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed.na tomto radku se nachazi toto:
check_result_path=/var/lib/nagios3/spool/checkresults
Nicmene tento adresar existuje a opravneni k pristupu ma pouze uzivatel nagios.
/etc/nagios3/nagios.cfg
je uvedena tato direktiva:
cfg_dir=/etc/nagios3/conf.d
Predpokladam ze Nagios urcite includuje vsechny soubory z tohoto diru jelikoz:
/etc/nagios3/nagios.cfg
jiz pak nikde neni zminka na cestu /etc/nagios3/conf.d
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.