From: Veiko K. <ve...@pa...> - 2004-11-10 13:53:31
|
I have installed Nagios 1.2 from Suse 9.1 official rpm package and therefore I have nagios in /usr/lib/nagios and /usr/share/nagios. /usr/lib/nagios contains cgi and plugins directories and /usr/share/nagios contains contexthelp, docs, images, media, ssi, stylesheets directories and files: index.html, main.html, robots.txt side.html. In perfparse manual I read: "A typical user who has nagios installed in, say, /usr/local/nagios will want to use the following commands: $ ./configure \ --prefix=/usr/local/nagios \ --with-imagedir=/usr/local/nagios/share/images/ \ --with-cgidir=/usr/local/nagios/sbin \ --with-http_image_path=/nagios/images" But in my case, what should be the --prefix and other configure commands? -- veiko |
From: Ben C. <BCl...@pe...> - 2004-11-10 14:45:16
|
Veiko, You may need to search for some of these. If I give you some sample files to look for. Please let us know. The --with-imagedir image directory should contain the Nagios images, shared by PerfParse. Try doing a search for some of these: flapping.gif tacenabled.jpg sbgeneral.png The cgi --with-cgidir should contain at least these: history.cgi statuswml.cgi extinfo.cgi The --with-http_image_path is the browser http path to the above image directory. Check what Nagios uses, look at the source of the HTML... The --prefix is used to locate the nagios 'etc' and nagios 'var' directories. Which will contain nagios.cfg and nagios.log respectively. If these are not in a common subdirectory or not called 'etc' and 'var' then I believe you can use: --sysconfdir (for dir containing nagios.cfg) I am not sure of the directive for the final 'var' directory containing serviceperf.log. Maybe Yves might know? However, this file can be specified exactly in the perfparse.cfg. So not needed. Compile code and edit perfparse.cfg. Let us know, Ben. Veiko Kukk wrote: > I have installed Nagios 1.2 from Suse 9.1 official rpm package and > therefore I have nagios in /usr/lib/nagios and /usr/share/nagios. > /usr/lib/nagios contains cgi and plugins directories and > /usr/share/nagios contains contexthelp, docs, images, media, ssi, > stylesheets directories and files: index.html, main.html, robots.txt > side.html. > > In perfparse manual I read: > > "A typical user who has nagios installed in, say, /usr/local/nagios will > want to use the following commands: > > $ ./configure \ > --prefix=/usr/local/nagios \ > --with-imagedir=/usr/local/nagios/share/images/ \ > --with-cgidir=/usr/local/nagios/sbin \ > --with-http_image_path=/nagios/images" > > But in my case, what should be the --prefix and other configure commands? > |
From: Yves M. <yme...@li...> - 2004-11-10 14:55:48
|
> I am not sure of the directive for the final 'var' directory containing > serviceperf.log. Maybe Yves might know? However, this file can be > specified exactly in the perfparse.cfg. So not needed. Compile code > and edit perfparse.cfg. configure --help gives some useful information about paths : --sysconfdir is PREFIX/etc --localstatedir is PREFIX/var Find the others if you need them :) PREFIX is what you specified with --prefix of course :) Yves --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - |
From: Veiko K. <ve...@pa...> - 2004-11-11 11:32:56
|
I thing, I did this correctly. At least now I understand the logic. But now I have another problem - when doing as manual says: Run 'perfparse-db-tool --help' to see if this feature is available. If not, use the method described above, and then run 'perfparse-db-tool --update' to be sure that any new DB changes are utilized. and I get: perfparse-db-tool --update perfparse-db-tool: error while loading shared libraries: libpp_mysql.so.0: cannot open shared object file: No such file or directory Ben Clewett wrote: > The --with-imagedir image directory should contain the Nagios images, > shared by PerfParse. Try doing a search for some of these: > > flapping.gif > tacenabled.jpg > sbgeneral.png > > The cgi --with-cgidir should contain at least these: > > history.cgi > statuswml.cgi > extinfo.cgi > > The --with-http_image_path is the browser http path to the above image > directory. Check what Nagios uses, look at the source of the HTML... > > The --prefix is used to locate the nagios 'etc' and nagios 'var' > directories. Which will contain nagios.cfg and nagios.log respectively. > If these are not in a common subdirectory or not called 'etc' and 'var' > then I believe you can use: > > --sysconfdir (for dir containing nagios.cfg) > > I am not sure of the directive for the final 'var' directory containing > serviceperf.log. Maybe Yves might know? However, this file can be > specified exactly in the perfparse.cfg. So not needed. Compile code > and edit perfparse.cfg. > > Let us know, > > Ben. |
From: Veiko K. <ve...@pa...> - 2004-11-11 11:33:03
|
I thing, I did this correctly. At least now I understand the logic. But now I have another problem - when doing as manual says: Run 'perfparse-db-tool --help' to see if this feature is available. If not, use the method described above, and then run 'perfparse-db-tool --update' to be sure that any new DB changes are utilized. and I get: perfparse-db-tool --update perfparse-db-tool: error while loading shared libraries: libpp_mysql.so.0: cannot open shared object file: No such file or directory Ben Clewett wrote: > The --with-imagedir image directory should contain the Nagios images, > shared by PerfParse. Try doing a search for some of these: > > flapping.gif > tacenabled.jpg > sbgeneral.png > > The cgi --with-cgidir should contain at least these: > > history.cgi > statuswml.cgi > extinfo.cgi > > The --with-http_image_path is the browser http path to the above image > directory. Check what Nagios uses, look at the source of the HTML... > > The --prefix is used to locate the nagios 'etc' and nagios 'var' > directories. Which will contain nagios.cfg and nagios.log respectively. > If these are not in a common subdirectory or not called 'etc' and 'var' > then I believe you can use: > > --sysconfdir (for dir containing nagios.cfg) > > I am not sure of the directive for the final 'var' directory containing > serviceperf.log. Maybe Yves might know? However, this file can be > specified exactly in the perfparse.cfg. So not needed. Compile code > and edit perfparse.cfg. > > Let us know, > > Ben. |
From: Veiko K. <ve...@pa...> - 2004-11-11 11:33:21
|
Ben Clewett wrote: > I am glad to hear things are moving on and most of your problems have > been resolved. Please let us know for all other SUSE users who want to > use the nagios.rpm. I'll let you know when its finished and working. I have to say that during configure, the script didnt complain about missing libraries, but after that, during make i had to install devel packages for several libraries. for example freetype, png, xfree. I think that configure should not pass if mandatory libraries are not found in system.? > I think you need to suggest something like /usr/lib? for self compiled software I follow the rules of Filesystem Hierarchy Standard http://www.pathname.com/fhs/ which says: 4.8.2.1. Purpose The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr. Therefore it should be /usr/local/lib -- Veiko |