No config files found in etc
Status: Alpha
Brought to you by:
kemuri
install seems OK, but...
I click on Importer, and get:
No nagios.cfg data found.
In local.inc I set:
define("NAGIOS_ETC","/etc/nagios/");
/etc/nagios has been chmod'ed 0777 for this purpose.
Inside are the current configs, but nagat isn't finding
any. It gives me choices to import
/etc/nagios/nagios.cfg and /etc/nagios/cgi.cfg any way
(which exist and are also 0777), but checking them and
clicking import does nothing but reload the page.
Anf idea what's going on?
Logged In: NO
Here is what I am getting... same kinda thing... installed from debian-apt
Processing file : /etc/nagios/nagios.cfg..
Warning: fopen(/etc/nagios/nagatcfg.dat): failed to open stream: Permission
denied in /usr/share/nagat/plugin_default.inc on line 98
Warning: fwrite(): supplied argument is not a valid stream resource in
/usr/share/nagat/plugin_default.inc on line 99
Warning: fclose(): supplied argument is not a valid stream resource in
/usr/share/nagat/plugin_default.inc on line 100
ok!
Read 1 configuration files.
Logged In: NO
Had the same problem on SuSE 9.1.
chmod 666 all files within /etc/nagios/ produced same problem.
However, chmod 666 the nagios directory itself fixed it!
Logged In: NO
To fix the problem from the previous comment, make sure
that you provide read/write access to the actualy directory
and not just the files. I got access to all files int
he /etc/nagios directory, but I didn't change /etc/nagios ,
once I did that, everything worked.
As far as the etc command goes, if your using
the /etc/nagios install, then just remove all "etc/" stuff and
just leave "" there instead, it should work fine.
Processing file : /etc/nagios/nagios.cfg..
Warning: fopen(/etc/nagios/nagatcfg.dat): failed to open
stream:
Permission
denied in /usr/share/nagat/plugin_default.inc on line 98
Warning: fwrite(): supplied argument is not a valid stream
resource
in
/usr/share/nagat/plugin_default.inc on line 99
Warning: fclose(): supplied argument is not a valid stream
resource
in
/usr/share/nagat/plugin_default.inc on line 100
ok!
Read 1 configuration files.
Logged In: NO
I have the same problem, however when I change the
permission nothing happens.
Anybody help me ?
I did.
chmod 666 /usr/local/nagios
chmod 666 /usr/loca/nagios/etc.
Thank you.
Hugo