From: Carsten F. <ma...@db...> - 2004-11-18 15:23:10
|
Greatings, I configured PerfParse with a simple ./configure Maybe an interesting part of the output is this one: --------------- checking for gdlib-config... no configure: WARNING: Could not find gdlib-config. You will have to specify the options manually in CFLAGS and LDFLAGS when running make ... Configuration options: Using glib2.0: 2.4.7 --------------- I thought it's not that horrible, cause he told me to use 2.4.7 So I compiled it with make (all?) No errors occured. Now Nagios saves me every incoming service status in my MySQL-Database. But only in the table perfdata_service_raw. Why not in perfdata_service_bin and perfdata_service_metric? The file perfgraph.cgi works fine too, but no graphs were created. To do this, I should start the /usr/local/bin/perfparse.sh I edited the file, cause some errors occured - files didn't exist, so I added them manualy to the script: ERROR_LOG="/usr/local/etc/perfparse.log" NAGIOS_LOCK_FILE="/usr/local/nagios/var/nagios.lock" PERF_FILE="-" These values are okay (are they?) and no errors any longer. But it doesnt create any picture (graphs) and I don't know, how this short code of the script would be able to do this... Quintessence: Everything works fine, but picture-generator and I didn't receive any error messages. PS: pp/database/version 0.15 pp/perfparse/version 0.103.1 pp/perfparse/compilation date Nov 18 2004 10:27:02 pp/uname/sysname Linux (Debian Sarge) pp/uname/nodename badmax.mt.einsundeins.de pp/uname/release 2.6.7-1-686 pp/uname/version #1 Thu Jul 8 05:36:53 EDT 2004 pp/uname/machine i686 Any ideas? Thanks a lot for now Carsten |
From: Yves M. <yme...@li...> - 2004-11-18 15:42:32
|
> Greatings, > > I configured PerfParse with a simple ./configure Maybe an interesting > part of the output is this one: > --------------- > checking for gdlib-config... no > configure: WARNING: Could not find gdlib-config. This is probably the reason why you cannot have graphs. Do you have gd installed ? (gd and gd-devel if you are using packages) If yes, what version ? If you have gdlib-config installed, check the --with-gdlib_config_dir opt= ion for configure. And if you still have compilation problems, consider upgrading= to 0.103.2 that was released today :) > You will have to specify the options manually in CFLAGS and LDFLAGS whe= n > running make > ... > Configuration options: > Using glib2.0: 2.4.7 > --------------- > I thought it's not that horrible, cause he told me to use 2.4.7 This is OK :) > Now Nagios saves me every incoming service status in my MySQL-Database. > But only in the table perfdata_service_raw. Why not in > perfdata_service_bin and perfdata_service_metric? Probably because your plugins don't output performance data ? I let Ben o= r somebody else help you on that : I'm quite bad to help on that subject :) > The file perfgraph.cgi works fine too, but no graphs were created. gd > To do this, I should start the /usr/local/bin/perfparse.sh I edited the > file, cause some errors occured - files didn't exist, so I added them > manualy to the script: > ERROR_LOG=3D"/usr/local/etc/perfparse.log" > NAGIOS_LOCK_FILE=3D"/usr/local/nagios/var/nagios.lock" > PERF_FILE=3D"-" You can use the -c option and the $prefix/etc/perfparse.cfg.template file= for your configuration file. You can also use the --show_config option that prints= the options effectively used (the template config file may not be up to date) All the perfparse tools recognize the -c and --show_config options. > These values are okay (are they?) and no errors any longer. But it > doesnt create any picture (graphs) and I don't know, how this short cod= e > of the script would be able to do this... Try again with a correct configuration file :) > Quintessence: Everything works fine, but picture-generator and I didn't > receive any error messages. > > PS: > pp/database/version 0.15 > pp/perfparse/version 0.103.1 Upgrade to 0.103.2 where some minor bugs were fixed, including one on a p= roblem with gd :) > pp/perfparse/compilation date Nov 18 2004 10:27:02 > pp/uname/sysname Linux (Debian Sarge) > pp/uname/nodename badmax.mt.einsundeins.de > pp/uname/release 2.6.7-1-686 > pp/uname/version #1 Thu Jul 8 05:36:53 EDT 2004 > pp/uname/machine i686 > > Any ideas? Well, try again and tell us :) 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: Carsten F. <ma...@db...> - 2004-11-19 08:44:47
|
Hi, > Do you have gd installed ? (gd and gd-devel if you are using packages) > If yes, what version ? I am that stupid!! I've installed libglib*! Don't ask me why... Now ./configure doesn't give me any bad output, make (install) works fine and everything works as before. That's great. > Probably because your plugins don't output performance data ? I let Ben or somebody else > help you on that : I'm quite bad to help on that subject :) So let me ask in this way: How do I generate performance data? My current scripts for nrpe (add on for nagios for remote hosts) only gives me a human readable output. Maybe that's the _mistake_?! Maybe for your interest: this is the only addition I did to my nagios-config-files: define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | $USER2$/bin/perfparse-log2db -c $USER2$/etc/perfparse.cfg } Is this sufficient? Thanks folks Carsten |
From: Yves M. <yme...@li...> - 2004-11-19 09:12:49
|
>> Probably because your plugins don't output performance data ? I let Be= n or somebody >> else >> help you on that : I'm quite bad to help on that subject :) > So let me ask in this way: How do I generate performance data? My > current scripts for nrpe (add on for nagios for remote hosts) only give= s > me a human readable output. Maybe that's the _mistake_?! > > Maybe for your interest: this is the only addition I did to my > nagios-config-files: > define command{ > command_name process-service-perfdata > command_line /usr/bin/printf "%b" > "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDAT= A$\n" > | $USER2$/bin/perfparse-log2db -c $USER2$/etc/perfparse.cfg > } > Is this sufficient? I don't know if nrpe is able to generate performance data. But before checking that, run your plugins on the command line and check = the result. performance data are after the | character of the output : some output | key1=3Dvalue1 key2=3Dvalue2 The performance data format is more complex than what I wrote. Read the d= ocs. But if you don't have something like "| key1=3Dvalue1 key2=3Dvalue2", the= problem is the plugin that cannot output performance data. Get the latest plugins on the nagiosplug.sf.net CVS :) 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: Tim W. <tim...@gm...> - 2004-11-19 09:26:02
|
The problem is not with nrpe, nrpe simply allows you to safely run nagios commands on other servers than the one nagios is running on, and transfer the output to nagios. You will need to check each and every server to see if the commands that nrpe runs on these servers output perfdata. so ... Step 1: check configuration files on the Nagios server and make a list of servers and the commands that nrpe runs on them. Step 2: on each of these servers, run the actual command (not nrpe) and check the output for perfdata. Step 3: upgrade the commands on each server if necessary. hope this helps. Tim On Fri, 19 Nov 2004 10:12:44 +0100 (CET), Yves Mettier <yme...@li...> wrote: > > > > >> Probably because your plugins don't output performance data ? I let Ben or somebody > >> else > >> help you on that : I'm quite bad to help on that subject :) > > So let me ask in this way: How do I generate performance data? My > > current scripts for nrpe (add on for nagios for remote hosts) only gives > > me a human readable output. Maybe that's the _mistake_?! > > > > Maybe for your interest: this is the only addition I did to my > > nagios-config-files: > > define command{ > > command_name process-service-perfdata > > command_line /usr/bin/printf "%b" > > "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" > > | $USER2$/bin/perfparse-log2db -c $USER2$/etc/perfparse.cfg > > } > > Is this sufficient? > > I don't know if nrpe is able to generate performance data. > But before checking that, run your plugins on the command line and check the result. > performance data are after the | character of the output : > > some output | key1=value1 key2=value2 > The performance data format is more complex than what I wrote. Read the docs. > But if you don't have something like "| key1=value1 key2=value2", the problem is the > plugin that cannot output performance data. Get the latest plugins on the > nagiosplug.sf.net CVS :) > > > > 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://perfparse.sf.net/ - > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Carsten F. <ma...@db...> - 2004-11-19 09:28:47
|
Oh my god. That's not worth to do, you know: time is money. Maybe I can use some of the standard plugins and maybe the output of them will be stored correctly and I see some performance graphs for them. Thanks a lot for your help! PS: Do you still need a translator? I could do this for Germany. |
From: Yves M. <yme...@li...> - 2004-11-19 09:44:22
|
> Oh my god. That's not worth to do, you know: time is money. > > Maybe I can use some of the standard plugins and maybe the output of > them will be stored correctly and I see some performance graphs for the= m. Some of the standard plugin are not compliant yet with performance graphs= . I have not followed the news, but some here can answer better than me. Tell us what standard plugin you are using :) > Thanks a lot for your help! :) > PS: Do you still need a translator? I could do this for Germany. Yes. I will create the po/de.po file to make things easier for you. Just edit = that file. You can find it on http://pagesperso.laposte.net/ymettier/perfparse-devel/perfparse-0.104.0/= in 0.104.0ym13 (just wait for me to upload it :) Thanks in advance from the perfparse team, and from all the happy German-= speaking users :) 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: Ben C. <BCl...@pe...> - 2004-11-19 10:00:15
|
A general note about plugins. Since the start of PerfParse this has been a real battle. Only recently did the standard distribution have any performance data. What we did have was sometimes wrong or badly formatted. Our PP developer Garry Cook was kind enough to organize a fix for many of them. However a lot of these fixes never made it to the distribution. I am glad to say where has been big change in the plugin development. Ton Voon is now drawing together all patches and working hard to get a quality release soon. One of these aims it to ensure all standard plugins produce good performance data, which work on all major platforms. So thankfully soon these problems of some metrics not appearing because of bad performance data will be a thing of the past. In the mean while I strongly suggest that if you have any issue with missing or bad performance data, please get the absolute latest plugins: http://nagiosplug.sourceforge.net/snapshot/ (marked nagios-plugins-HEAD-200411190547.tar.gz) Check that your problems have been fixed. If not, contact the nagiosplug-devel news group and report any errors. Thanks! Carsten Franke wrote: > Maybe I can use some of the standard plugins and maybe the output of > them will be stored correctly and I see some performance graphs for them. > PS: Do you still need a translator? I could do this for Germany. Yes, and yes please! Wait until the next version, or get the pre-release from here: http://pagesperso.laposte.net/ymettier/perfparse-devel/perfparse-0.104.0/ I am sure Yves can do an introduction into how this is used. Regards, Ben. |