Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg'

Steve Schryburt steve_schryburt at mitel.com
Tue May 17 17:40:02 CEST 2005


Andreas Ericsson <ae <at> op5.se> writes:

> 
> Can you try the getnagioscfg.c program at http://oss.op5.se/nagios? If 
> that picks up everything OK, I'll know how to patch it in Nagios.
> 
> Just download it, compile (gcc getnagioscfg.c -o getnagioscfg) and run 
> like so;
> ./getnagioscfg /usr/local/etc/nagios.cfg

It looks like getnagioscfg picked up all the configuration files.

# ./getnagioscfg ../etc/nagios.cfg
Entering . 1 levels deep now
; no match for osts
; no match for .bak
; no match for bak2
; no match for hide
returning to
Entering . 1 levels deep now
; no match for .bak
; no match for .nql
; no match for .bak
returning to
:   13881b; mtime: 1114456100; /usr/local/nagios/etc/checkcommands.cfg
:    4309b; mtime: 1114455373; /usr/local/nagios/etc/misccommands.cfg
:    1174b; mtime: 1116010037; /server1.cfg
:    1144b; mtime: 1116010037; /server2.cfg
:    1140b; mtime: 1116010037; /server3.cfg
:    1150b; mtime: 1116010037; /server4.cfg
:    1114b; mtime: 1116010037; /server5.cfg
:    1146b; mtime: 1116010037; /server6.cfg
:    1148b; mtime: 1116010037; /server7.cfg
:    1152b; mtime: 1116010037; /server8.cfg
:    1148b; mtime: 1116010037; /server9.cfg
:    1174b; mtime: 1116010037; /server10.cfg
:    1148b; mtime: 1116010037; /server11.cfg
:    1149b; mtime: 1116010037; /server12.cfg
:    1121b; mtime: 1116010037; /server13.cfg
:    1166b; mtime: 1116010037; /server14.cfg
:    1158b; mtime: 1116010037; /server15.cfg
:    1148b; mtime: 1116010037; /server16.cfg
:    1155b; mtime: 1116010037; /server17.cfg
:    1150b; mtime: 1116010037; /server18.cfg
:    1160b; mtime: 1116010037; /server19.cfg
:    1150b; mtime: 1116010037; /server20.cfg
:    1155b; mtime: 1116010037; /server21.cfg
:    1164b; mtime: 1116010037; /server22.cfg
:    1152b; mtime: 1116010037; /server23.cfg
:    1146b; mtime: 1116010037; /R1N1V2.cfg
:    1146b; mtime: 1116010037; /server24.cfg
:    1147b; mtime: 1116010037; /server25.cfg
:    1159b; mtime: 1116010037; /server26.cfg
:    1178b; mtime: 1116010037; /server27.cfg
:    1143b; mtime: 1116010037; /server28.cfg
:    1176b; mtime: 1116010348; /server29.cfg
:    1152b; mtime: 1116010037; /server30.cfg
:   62277b; mtime: 1116004366; /services.cfg
:    1146b; mtime: 1116010037; /usr/local/nagios/etc/hosts/R1N1V2.cfg
:     827b; mtime: 1114457411; /usr/local/nagios/etc/contactgroups.cfg
:    3227b; mtime: 1114457815; /usr/local/nagios/etc/contacts.cfg
:    1027b; mtime: 1116013134; /usr/local/nagios/etc/hostgroups.cfg
:    2046b; mtime: 1114309616; /usr/local/nagios/etc/timeperiods.cfg
:    5052b; mtime: 1116009763; /usr/local/nagios/etc/hostextinfo.cfg

Let me know if I can provide more information.

Thanks for helping me out.  
Stephen S.





-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
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