From: Ben C. <Be...@cl...> - 2004-08-27 14:14:14
|
I note the error is: Error, can't open configuration file: "//usr/local/etc/perfparse.cfg" The file you are after is: /usr/local/nagios/etc/perfparse.cfg Are you are configuring using: --prefix=/usr/local/nagios ?? This should work. :( Can you try deleting the program 'perfparse-db-tool' and doing a complete recompile, as stated in the README? Does this regenerate this program? If you run it, does it work? Ben Wilson Pires Jr wrote: >>Remember as well that by default PP will install the file: >>/usr/local/nagios/etc/perfparse.cfg.example >>You need to rename this: >>/usr/local/nagios/etc/perfparse.cfg >>And add your own settings. >>Ben. >> > > > [Wilson Pires Jr] > I've recompiled and reinstalled, as suggested by Paulo, and renamed and set > perfparse.cfg.example and perfparse.sh.example. But the problem remains. I > can't run the db update: > > [root@genesis bin]# ./perfparse-db-tool --update > Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" > > The files perfparse-db-tool and perfparse.cfg are owned by root, and > perfparse.sh is owned by nagios. Is this correct? > > /usr/local/nagios/bin > -rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse > -rwxr-xr-x 1 root root 1661 Jul 28 10:42 perfparse_daemon.sh > -rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfparse-db-purge > -rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfparse-db-tool > -rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfparse-install-db > -rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfparse-purge-db > -rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 perfparse.sh > > /usr/local/nagios/etc > [root@genesis etc]# ls -la perfparse.cfg* > -rw-r--r-- 1 root root 1303 Aug 27 10:58 perfparse.cfg > -rw-r--r-- 1 root root 1303 Aug 27 10:24 > perfparse.cfg.example > > As you can see I've tried to run the update as root. What is my mistake? Now > I can't see the pp web page: > > Error message: > malformed header from script. Bad header=<pre>: perfgraph.cgi > > Regarding the nagios restarting and stopping checks problems, they seems to > be solved. I've changed the use_retained_program_state from 0 to 1 and my > nagios is checking around 16 hours :-))) > > > >>Paulo Afonso Graner Fessel wrote: >> >> >>>Recompile perfparse according to the instructions: >>> >>>./configure \ >>> --prefix=/usr/local/nagios \ >>> --with-imagedir=/usr/local/nagios/share/images/ \ >>> --with-cgidir=/usr/local/nagios/sbin \ >>> --with-http_image_path=/nagios/images >>> >>>(Of course, I'm assuming that you've got nagios in /usr/local/nagios.) >>> >>>This way, perfparse.cfg will be installed at /usr/local/nagios/etc. >>> >>> >>>>>You should upgrade to 0.99.09. It may or may not help with >>>> >>>>this issue, >>>> >>>>>but there are a couple of other bugfixes/enhancements >>>> >>>>available in the >>>> >>>>>latest version. And don't forget to run >>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >>>> >>>>each upgrade... >>>> >>>>[Wilson Pires Jr] >>>>I'm upgrading, but I can't run the upgrade: >>>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>>>I'm logged as root. The perfparse.cfg owner is root. What >>>>mistake am I doing? >>>> >>>> > > |