I'm having some problems getting Nagios 2.5 and Oreon 1.3.1-1 up and running. I used the directions here for the install, though admittedly this is on a SLES 10 box rather than Debian. install.sh for both Nagios and Oreon appear to process without incident.
Several problems arise. First of all, running:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
yields:
Error: cannot open config file '/usr/local/nagios/etc/checkcommands.cfg' for reading: Invalid Argument
owner of /nagios/etc and files within appears to be wwwrun.nagios. user nagios is a member of nagios group, but wwwrun is not. Don't know if I need to chown wwwrun.nagios or chown nagios.www, or if chmod is in order.
opening up nagios in web browser, I can log in fine using nagiosadmin as user, but clicking on service detail yields:
Error: Could not read object configuration data!
I presume this is related to the prior problem.
Opened Oreon config in the web browser. First config page shows:
Nagios User: nagios
Nagios Group: nagios
Apache User: wwwrun
Apache Group: www
Nagios Version: 2.x
Nagios Configuration Directory: /usr/local/nagios/etc
Nagios Plugins: /usr/local/nagios/libexec
RRDTool Binary: /usr/bin/rrdtool
I verified all file paths are correct. Click next and the succeeding page yields OKs for PHP version (5.12) and all PHP plugins (MySQL, GD, LDAP, SNMP, XML, PEAR), but it stops at "Writable Nagios Config Directory", with no error message following it.
Also, for some reason /etc/init.d/nagios is an empty file so issuing restart has no effect.
If there are any tips as to the next steps, I would greatly appreciate it.
Several problems arise. First of all, running:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
yields:
Error: cannot open config file '/usr/local/nagios/etc/checkcommands.cfg' for reading: Invalid Argument
owner of /nagios/etc and files within appears to be wwwrun.nagios. user nagios is a member of nagios group, but wwwrun is not. Don't know if I need to chown wwwrun.nagios or chown nagios.www, or if chmod is in order.
opening up nagios in web browser, I can log in fine using nagiosadmin as user, but clicking on service detail yields:
Error: Could not read object configuration data!
I presume this is related to the prior problem.
Opened Oreon config in the web browser. First config page shows:
Nagios User: nagios
Nagios Group: nagios
Apache User: wwwrun
Apache Group: www
Nagios Version: 2.x
Nagios Configuration Directory: /usr/local/nagios/etc
Nagios Plugins: /usr/local/nagios/libexec
RRDTool Binary: /usr/bin/rrdtool
I verified all file paths are correct. Click next and the succeeding page yields OKs for PHP version (5.12) and all PHP plugins (MySQL, GD, LDAP, SNMP, XML, PEAR), but it stops at "Writable Nagios Config Directory", with no error message following it.
Also, for some reason /etc/init.d/nagios is an empty file so issuing restart has no effect.
If there are any tips as to the next steps, I would greatly appreciate it.
Comment