From: Tong Y. <To...@in...> - 2005-02-18 19:38:29
|
You should refer everyone here first: = http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example =20 I am using Nagiox 2.x and I followed this document almost exactly and = got mine working. I didn't change the no raw data field to yes like = the document said. Oh and you'll need to change some of the fields in = your nagios_perfparse.cfg due to name changes in variables in 2.x =20 ________________________________ From: per...@li... on behalf of Yves Sent: Fri 2/18/2005 10:01 AM To: Eduardo Martinez Cc: per...@li... Subject: Re: [Perfparse-users] Install method 4 and error I am = receiving. Eduardo, your mail is excellent. I'm sorry to answer too short. I hope = some will answer longer. My answer is short because I don't know much at nagios-2.X; However, I know that with nagios-2.X, you can compile it to write the = perfdata directly to a pipe. So you don't need perfparse_nagios_pipe_command.pl. When you compile nagios, I see that you use --with-default-perfdata. = Isn't there another option to use the pipe ? > <SHELL>./configure --prefix=3D/opt/nagios \ > --with-template-objects \ > --with-template-extinfo \ > --with-init-dir=3D/etc/rc.d/init.d/ \ > --with-default-status \ > --with-default-comments \ > --with-default-retention \ > --with-default-downtime \ > --with-default-perfdata \ > --with-nagios-user=3Dnagios \ > --with-nagios-group=3Dnagios \ > --with-gd-inc=3D/opt/local/include \ > --with-gd-lib=3D/opt/local/lib I saw that command twice in your mail. This is probably why nagios = complains. > command_name process-service-perfdata > <SHELL>/opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg > Error: Command 'process-service-perfdata' has already been defined > Error: Could not register command (config file > '/opt/nagios/etc/nagios_perfparse.cfg', starting on line 19) I won't help you more on that because the solution is different : = configure your nagios-2.X to write directly to a pipe. Don't use = process-service-perfdata :) Those who use nagios-2.X, please help Eduardo because both Ben and I are = using nagios-1.2. Eduardo or anybody else, could you write a document on how to best = install nagios+perfparse when nagios is 2.0 ? Yves -- - 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://www.perfparse.org/ - ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick _______________________________________________ Perfparse-users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perfparse-users |