Hey,
im new to nagios and am wondering if any1 could help me plz, when i enter the command prompt /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
i get the following
Error: cannot open resource file’ /usr/local/nagios/etc/resource.cfg ’ for reading AND
Error: cannot open resource file’ /usr/local/nagios/etc/commands.cfg ’ for reading: no such file or directory
any commects would be really appreciated
thanks
rob
Have you checked your /etc/ dir under nagios that those cfg files exist? If they exist, have you checkd permissions?
Jason,thanks for emailing me back, i checked that folder and all the cfg files are there,how do you check the permission?
thanks
robbie
ls -al will show you the permissions, owner and group make sure all the cfg files are owned / grouped to the same user you configured nagios with.
ls -la
total 1024
drwxrwxr-x 2 nagios nagios 4096 Jun 30 16:55 .
drwxr-xr-x 9 root root 4096 Jun 27 13:27 …
-rw-r–r-- 1 nagios nagios 22615 Sep 20 2004
-rw-rw-r-- 1 nagios nagios 18564 Jun 30 14:42 cgi.cfg
-rw-rw-r-- 1 nagios nagios 6832 Nov 4 2004 checkcommands.cfg
-rw-rw-r-- 1 nagios nagios 2929 Jun 20 11:37 contactgroups.cfg
-rw-rw-r-- 1 nagios nagios 4296 May 9 13:37 contacts.cfg
-rw-rw-r-- 1 nagios nagios 1662 Oct 11 2003 dependencies.cfg
-rw-r–r-- 1 nagios nagios 469 Jul 2 2004 downtimeschedhst.cfg
-rw-r–r-- 1 nagios nagios 499 Jul 2 2004 downtimeschedsvc.cfg
-rw-rw-r-- 1 nagios nagios 2047 Oct 11 2003 escalations.cfg
-rw-rw-rw- 1 nagios nagios 34453 Jun 20 16:53 hostextinfo.cfg
-rw-r–r-- 1 root root 27139 Jun 14 2004 hostextinfo.cfg.06142004
-rw-r–r-- 1 root root 17849 Jun 11 2004 hostextinfo.cfg.old
-rw-rw-rw- 1 root root 17830 Jun 5 2004 hostextinfo.cfg.org
-rw-rw-r-- 1 nagios nagios 7515 Jun 20 16:20 hostgroups.cfg
-rw-r–r-- 1 root root 5977 Jun 11 2004 hostgroups.cfg.good
-rw-rw-r-- 1 nagios nagios 65973 Jun 23 09:38 hosts.cfg
-rw-r–r-- 1 root root 26678 Dec 12 2003 hosts.cfg.12122003
-rw-rw-r-- 1 nagios nagios 754 Jun 20 12:48 htpasswd.users
-rw-r–r-- 1 nagios nagios 137 Oct 1 2004 htpasswd.users2
-rw-rw-r-- 1 nagios nagios 4480 Jul 12 2004 misccommands.cfg
-rw-rw-r-- 1 nagios nagios 21864 Apr 16 17:00 nagios.cfg
-rw-r–r-- 1 root root 53621 Jun 4 2004 nagiosgood.tar.gz
-rwxrwxrwx 1 nagios nagios 21868 Jun 15 2004 nagiosmap.pl
-rwxr-xr-x 1 nagios nagios 21868 Jun 14 2004 nagiosmap.pl.good
-rw-rw-r-- 1 nagios nagios 4613 Aug 1 2004 nsca.cfg
-rw-r–r-- 1 nagios nagios 513 Jun 21 2004 perfparse.cfg
-rw-r–r-- 1 nagios nagios 782 Jul 2 2004 README
-rw-rw-r-- 1 nagios nagios 2988 Jun 25 12:18 resource.cfg
-rw-rw-rw- 1 nagios nagios 64696 May 8 14:09 serviceextinfo.cfg
-rw-rw-r-- 1 nagios nagios 300424 Jun 24 18:06 services.cfg
-rw-r–r-- 1 nagios nagios 21725 Dec 12 2003 tdnhosts.cfg
-rw-r–r-- 1 nagios nagios 42089 Dec 12 2003 tdn-services.cfg
-rw-rw-r-- 1 nagios nagios 1825 Oct 1 2004 timeperiods.cfg