I am having trouble importing my cfg files. I got the site up and running, ran through the setup.php and am now at the main index interface. When I go to Importer, I have the option to import 3 .cfg files. I try nagios.cfg (full path on page is correct), then cgi.cfg and then resource.cfg. I can go to the Online Editing link and it shows my nagios.cfg file, but if I click on the Nagios Cfg link at the top I get no values other than what looks to be default. If I click on Verify, then click the verify button, I get the following error:
Problem:
No objects found in database:
No objects found in database:
No objects found in database:
No objects found in database:Exec: /usr/local/nagios/bin/nagios -v /tmp/.nawui/nagios.cfg 2>&1 > /tmp/.nawui/nawui-output.49
Deleting configuration files:
Deleting file '/tmp/.nawui/nagios.cfg'...
Deleting file '/tmp/.nawui/cgi.cfg'...
Deleting file '/tmp/.nawui/resource.cfg'...
The path to the nagios binary is correct. I've chown'd permissions on the /tmp/.nawui dir. Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-01-16
Hi !
Take a look at your "etc" nagios directory...
Have you got right permissions on this directory?
Fred_g (France)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-09
Hello
I am a Redhat user and I am getting the same error
What permissions does the /etc/nagios directory have to have?
TIA
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem above has nothing to do with the permissions of the /etc/nagios directory. I would bet that the *.dat files are being written ok.
I'm also a Redhat user and I have this same problem. The problem seems to be that the config files are not written at all. I am experiencing this exact same problem with Nagat.
Both Nagat and Nawui write the *.dat files in the /etc/nagios directory (or /tmp depending on configuration) just fine but when I try to export, verify, etc. the cfg files, NOTHING is written anywhere including the /tmp/.nawui directory. I also do not see any error output in any log file anywhere.
Is there something special about the way serialized.inc write those files out? Could this be a php.ini problem?
I'm at a loss and I need this to work. I have hundreds of nodes I'm monitoring with more being added weekly and I'm starting to run out of hair to pull out. ;-)
Here is what I'm running:
Redhat 9.0 (2.4.20-8)
PHP 4.2.2
Apache 2.0.40
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am having trouble importing my cfg files. I got the site up and running, ran through the setup.php and am now at the main index interface. When I go to Importer, I have the option to import 3 .cfg files. I try nagios.cfg (full path on page is correct), then cgi.cfg and then resource.cfg. I can go to the Online Editing link and it shows my nagios.cfg file, but if I click on the Nagios Cfg link at the top I get no values other than what looks to be default. If I click on Verify, then click the verify button, I get the following error:
Problem:
No objects found in database:
No objects found in database:
No objects found in database:
No objects found in database:Exec: /usr/local/nagios/bin/nagios -v /tmp/.nawui/nagios.cfg 2>&1 > /tmp/.nawui/nawui-output.49
Deleting configuration files:
Deleting file '/tmp/.nawui/nagios.cfg'...
Deleting file '/tmp/.nawui/cgi.cfg'...
Deleting file '/tmp/.nawui/resource.cfg'...
The path to the nagios binary is correct. I've chown'd permissions on the /tmp/.nawui dir. Any suggestions?
Hi !
Take a look at your "etc" nagios directory...
Have you got right permissions on this directory?
Fred_g (France)
Hello
I am a Redhat user and I am getting the same error
What permissions does the /etc/nagios directory have to have?
TIA
The problem above has nothing to do with the permissions of the /etc/nagios directory. I would bet that the *.dat files are being written ok.
I'm also a Redhat user and I have this same problem. The problem seems to be that the config files are not written at all. I am experiencing this exact same problem with Nagat.
Both Nagat and Nawui write the *.dat files in the /etc/nagios directory (or /tmp depending on configuration) just fine but when I try to export, verify, etc. the cfg files, NOTHING is written anywhere including the /tmp/.nawui directory. I also do not see any error output in any log file anywhere.
Is there something special about the way serialized.inc write those files out? Could this be a php.ini problem?
I'm at a loss and I need this to work. I have hundreds of nodes I'm monitoring with more being added weekly and I'm starting to run out of hair to pull out. ;-)
Here is what I'm running:
Redhat 9.0 (2.4.20-8)
PHP 4.2.2
Apache 2.0.40