You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(12) |
Jun
(56) |
Jul
(68) |
Aug
(141) |
Sep
(82) |
Oct
(76) |
Nov
(115) |
Dec
(74) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(65) |
Feb
(113) |
Mar
(82) |
Apr
(37) |
May
(44) |
Jun
(22) |
Jul
(12) |
Aug
(3) |
Sep
(17) |
Oct
(11) |
Nov
(23) |
Dec
(1) |
2006 |
Jan
(1) |
Feb
(9) |
Mar
(6) |
Apr
(12) |
May
(10) |
Jun
(23) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(4) |
Nov
(6) |
Dec
(15) |
2007 |
Jan
(17) |
Feb
(14) |
Mar
(20) |
Apr
(7) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(2) |
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(6) |
Jun
(5) |
Jul
(13) |
Aug
(2) |
Sep
(16) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Veiko K. <ve...@pa...> - 2004-12-15 08:25:45
|
Yves wrote: > I have an idea... > What version of nagios are you using ? Let me guess : 1.2 :) > If you are using 1.2, how did you compile nagios ? Suse 9.1-s official Nagios rpm package. ./configure \ --with-cgiurl=/nagios/cgi-bin \ --with-htmurl=/nagios \ --with-lockfile=/var/run/nagios.pid \ --with-nagios-user=%{nsusr} \ --with-nagios-grp=%{nsgrp} \ --with-command-user=%{cmdusr} \ --with-command-grp=%{cmdgrp} \ --prefix=%{_prefix} \ --exec-prefix=%{_prefix}/sbin \ --bindir=%{_prefix}/sbin \ --sbindir=%{_prefix}/lib/nagios/cgi \ --libexecdir=%{_prefix}/lib/nagios/plugins \ --datadir=%{_prefix}/share/nagios \ --sysconfdir=/etc/nagios \ --with-init-dir=/etc/init.d \ --localstatedir=/var/log/nagios \ --with-gd-inc=/usr/include/gd \ --enable-embedded-perl \ --with-perlcache So im going to compile nagios by myself. -- Veiko |
From: Tim W. <tim...@gm...> - 2004-12-14 18:08:25
|
And now reply All :) ---------- Forwarded message ---------- From: Tim Wuyts <tim...@gm...> Date: Tue, 14 Dec 2004 14:41:43 +0100 Subject: Re: [Perfparse-users] perfparse method 4 To: Veiko Kukk <ve...@pa...> Veiko, 1. misccommands.cfg: Nagios doesn't really care in which file you define things. So you can keep it in your nagios_perfparse.cfg file, as long as it is read by Nagios (as you did). 2. the path to the pipe This is $USER2$/var/perfdata-service.log ($USER2$ must be defined in one of the nagios cfg files, and point to your perfparse installation directory). In addition (I haven't checked if this was changed in 104.3) you should update perfparse_nagios_pipe_command.pl as shown below, so that the file does not get created as a regular file before perfparse can create it. Tim #! /usr/bin/perl -w use strict; my $file = shift @ARGV; die("Pipe $file not found!") unless (-p $file); open FH, ">$file" or die "'$file' could not be opened for appending\n"; print FH join("\t", @ARGV); print FH "\n"; close FH; On Tue, 14 Dec 2004 15:18:30 +0200, Veiko Kukk <ve...@pa...> wrote: > I'm confused. How to configure perfparse and nagios to use method 4? I'v > read perfparse manual, but its confusing. > > FIRST: > It says: > > With nagios-1.2, edit misccommands.cfg and add the following : > > define command{ > command_name process-service-perfdata > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } > > But do I really need to duplicate command definition for > process-service-perfdata? I already have that definition in file > PREFIX/etc/nagios_perfparse.cfg and nagios.cfg has line > cfg_file=PREFIX/etc/nagios_perfparse.cfg > > SECOND: > Manual says: In perfparse.cfg, Service_Log must be defined as > "|/path/to/the/pipe". > > Where is that pipe and how can I define it and where? > > -- > Veiko > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13.12.2004 > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Yves <yme...@pe...> - 2004-12-14 16:28:47
|
> Yves wrote: >> If you run nagios without perfparsed, nagios should create a file call= ed PERFDATA. And >> that file is a plain text file. > > You mean - before perfparsed? Documentation doesn't speak anything abou= t > perfparsed in method 4... I mean : without perfparsed :) > >> Now, remove that file. And in the perfparse.cfg config, set Service_Lo= g as >> "|PERFDATA". >> Don't create that file yourself. >> Then run perfparsed : it will create that file as a FIFO (eg: a named = pipe). Run >> nagios >> and nagios will output the data in the fifo. > > When I run perfparsed, I get log named perfparse.log.20041214.log: > > 2004/12/14 17:48:06 [perfparsed.c:171 3680 ] No module was loaded. > Check the Storage_Module_Load config option. > > I couldn't find anything about storage modul loading and method 4 in > documentation. > And it doesn't create pipe. To improve the FAQ, tell me where you would search for it in http://wiki.perfparse.org/tiki-list_faqs.php Then, have a look on that answer (the question needs some rewriting :) http://wiki.perfparse.org/tiki-view_faq.php?faqId=3D7#q12 > >> I also noticed that if your command *appends* data to the pipe, it doe= s not work for >> me. >> WRONG : echo data >> pipe >> OK : echo data > pipe >> >> Other questions ? :) > > Yes, what *my* command? > > I have in perfparse.cfg line. > Service_Log =3D "|/var/log/nagios/perfdata-service.log" > > and in nagios_perfparse.cfg the following lines: > define command{ > command_name process-service-perfdata > command_line /usr/local/bin/perfparse_nagios_pipe_command.p= l > /var/log/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" > "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } This is correct. > > define command{ > command_name process-host-perfdata > command_line /usr/local/bin/perfparse_nagios_pipe_command.p= l > /var/log/nagios/perfdata-host.log "$TIMET$" "$HOSTNAME$" "$OUTPUT$" > "$PERFDATA$" > } > > Its still not working for me. I have an idea... What version of nagios are you using ? Let me guess : 1.2 :) If you are using 1.2, how did you compile nagios ? Compile with --with-default-perfdata and it should work better. With --with-file-perfdata, it will not work With both --with-default-perfdata and --with-file-perfdata I notice that = it will not work (is this a bug in nagios ?) This is documented for methods 2 and 3, and also true for method 4. I'm updating the doc (development version only today). When you find a good answer that is not in the FAQ, could you reformulate= your question ? If you have time, could you also write it in the FAQ (it's a wiki) ? 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-12-14 16:01:01
|
Yves wrote: > If you run nagios without perfparsed, nagios should create a file called PERFDATA. And > that file is a plain text file. You mean - before perfparsed? Documentation doesn't speak anything about perfparsed in method 4... > Now, remove that file. And in the perfparse.cfg config, set Service_Log as "|PERFDATA". > Don't create that file yourself. > Then run perfparsed : it will create that file as a FIFO (eg: a named pipe). Run nagios > and nagios will output the data in the fifo. When I run perfparsed, I get log named perfparse.log.20041214.log: 2004/12/14 17:48:06 [perfparsed.c:171 3680 ] No module was loaded. Check the Storage_Module_Load config option. I couldn't find anything about storage modul loading and method 4 in documentation. And it doesn't create pipe. > I also noticed that if your command *appends* data to the pipe, it does not work for me. > WRONG : echo data >> pipe > OK : echo data > pipe > > Other questions ? :) Yes, what *my* command? I have in perfparse.cfg line. Service_Log = "|/var/log/nagios/perfdata-service.log" and in nagios_perfparse.cfg the following lines: define command{ command_name process-service-perfdata command_line /usr/local/bin/perfparse_nagios_pipe_command.pl /var/log/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } define command{ command_name process-host-perfdata command_line /usr/local/bin/perfparse_nagios_pipe_command.pl /var/log/nagios/perfdata-host.log "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" } Its still not working for me. -- Veiko |
From: Yves <yme...@pe...> - 2004-12-14 15:17:09
|
> Yves wrote: >> In latest version of the install guide (in perfparse-0.104.3), I read = "edit >> misccommands.cfg and comment out the following definitions for host an= d service >> performance data". > > Ok, I thought that supreme RTFM place is > http://perfparse.sourceforge.net/docs.php Well, it's being reorganized. Today, http://wiki.perfparse.org is a good place to go :) And because the install guide source is in doc/, that version is often th= e latest one. But it happens that we do some modifications in the development version a= nd put it on http://perfparse.sourceforge.net/docs.php before the next release. It's being reorganized... > >> If you have perfparse installed in /opt/perfparse (e.g. $USER2 is /opt= /perfparse), >> write >> this for the pipe : "|/opt/perfparse/var/perfdata-service.log". > > So it must *not* be the same file as perfdata-service.log in > nagios_perfparse.cfg? Yes, it has :) Same player plays again :) edit nagios.cfg (and other cfg files for nagios) and in the perfdata comm= and definition for services, define a file (let's call it PERFDATA here) where to write = the perfdata. If you run nagios without perfparsed, nagios should create a file called = PERFDATA. And that file is a plain text file. Now, remove that file. And in the perfparse.cfg config, set Service_Log a= s "|PERFDATA". Don't create that file yourself. Then run perfparsed : it will create that file as a FIFO (eg: a named pip= e). Run nagios and nagios will output the data in the fifo. Note : If you run nagios and perfparsed just after, nagios will not output data = in the second it was launched, and it lets time to perfparsed to create the pipe. If perfparsed runs and the file is not a pipe, it will not run (read the = logs) I also noticed that if your command *appends* data to the pipe, it does n= ot work for me. WRONG : echo data >> pipe OK : echo data > pipe Other questions ? :) 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-12-14 14:48:51
|
Yves wrote: > In latest version of the install guide (in perfparse-0.104.3), I read "edit > misccommands.cfg and comment out the following definitions for host and service > performance data". Ok, I thought that supreme RTFM place is http://perfparse.sourceforge.net/docs.php > If you have perfparse installed in /opt/perfparse (e.g. $USER2 is /opt/perfparse), write > this for the pipe : "|/opt/perfparse/var/perfdata-service.log". So it must *not* be the same file as perfdata-service.log in nagios_perfparse.cfg? -- Veiko |
From: Yves <yme...@pe...> - 2004-12-14 13:33:11
|
> I'm confused. How to configure perfparse and nagios to use method 4? I'= v > read perfparse manual, but its confusing. > > FIRST: > It says: > > With nagios-1.2, edit misccommands.cfg and add the following : > > define command{ > command_name process-service-perfdata > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } > > But do I really need to duplicate command definition for > process-service-perfdata? I already have that definition in file > PREFIX/etc/nagios_perfparse.cfg and nagios.cfg has line > cfg_file=3DPREFIX/etc/nagios_perfparse.cfg In latest version of the install guide (in perfparse-0.104.3), I read "ed= it misccommands.cfg and comment out the following definitions for host and s= ervice performance data". And I confirm that you should have only one definition like that. > > SECOND: > Manual says: In perfparse.cfg, Service_Log must be defined as > "|/path/to/the/pipe". > > Where is that pipe and how can I define it and where? Just give a file name and perfparsed will create it as a pipe. If the file already exists and is not a pipe, perfparsed will refuse to r= un and you will read a message in the log. If you have perfparse installed in /opt/perfparse (e.g. $USER2 is /opt/pe= rfparse), write this for the pipe : "|/opt/perfparse/var/perfdata-service.log". I will do some minor change in the install guide for the 2nd point. Thanks for the feedback (the best questions go into the FAQ on http://wik= i.perfparse.org :) 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-12-14 13:18:51
|
I'm confused. How to configure perfparse and nagios to use method 4? I'v read perfparse manual, but its confusing. FIRST: It says: With nagios-1.2, edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_pipe_command.pl $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } But do I really need to duplicate command definition for process-service-perfdata? I already have that definition in file PREFIX/etc/nagios_perfparse.cfg and nagios.cfg has line cfg_file=PREFIX/etc/nagios_perfparse.cfg SECOND: Manual says: In perfparse.cfg, Service_Log must be defined as "|/path/to/the/pipe". Where is that pipe and how can I define it and where? -- Veiko -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13.12.2004 |
From: Yves <yme...@pe...> - 2004-12-13 13:13:47
|
Hi, Do you have glib-dev (or something similar) installed ? You are using glib-1.2 : are you running configure with "--with-glib12=3D/path/to/glib-config" option ? On other systems, you are probably running with glib-2.0 (2.6.something). Yves > Hi all, > > i have a little problem, i can't compile perfparse. i get this error > message: > > db_macro_actions.c: In function `reset_host_delete_policy': > db_macro_actions.c:53: warning: implicit declaration of function > `g_string_printf' > db_macro_actions.c:69: warning: implicit declaration of function > `g_string_append_printf' > db_macro_actions.c: In function `db_version_error': > db_macro_actions.c:157: error: void value not ignored as it ought to be > make[2]: *** [libpp_mysql_la-db_macro_actions.lo] Error 1 > make[2]: Leaving directory `/usr/src/perfparse-0.104.3/libpp_mysql' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/perfparse-0.104.3' > make: *** [all] Error 2 > > linux version 2.4.20-3 > gcc 3.3 (Debian) > mysql 4.0.16 > nagios 1.2 > glib-1.2 > > on an other system (debian 2.4.26, mysql 4.0.22, glib-2.0) it works fin= e. > someone an idea, whats wrong? > > -- > NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl > GMX DSL-Netzanschluss + Tarif zum superg=FCnstigen Komplett-Preis! > > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > --=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: <Lok...@gm...> - 2004-12-13 11:06:44
|
Hi all, i have a little problem, i can't compile perfparse. i get this error message: db_macro_actions.c: In function `reset_host_delete_policy': db_macro_actions.c:53: warning: implicit declaration of function `g_string_printf' db_macro_actions.c:69: warning: implicit declaration of function `g_string_append_printf' db_macro_actions.c: In function `db_version_error': db_macro_actions.c:157: error: void value not ignored as it ought to be make[2]: *** [libpp_mysql_la-db_macro_actions.lo] Error 1 make[2]: Leaving directory `/usr/src/perfparse-0.104.3/libpp_mysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/perfparse-0.104.3' make: *** [all] Error 2 linux version 2.4.20-3 gcc 3.3 (Debian) mysql 4.0.16 nagios 1.2 glib-1.2 on an other system (debian 2.4.26, mysql 4.0.22, glib-2.0) it works fine. someone an idea, whats wrong? -- NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis! |
From: Yves <yme...@pe...> - 2004-12-13 10:36:59
|
Hi :) Following message is from Ben who has problems with mails. Yves Can you please check the caching on your browser and proxy server. Set your browser to check for new versions of the script every time, and if possible flush the cache on your browser and proxy. (The error message can be broadcast from the proxy as a valid page. But without the meta information to tell browser when to check for the page again. Therefore the browser caches the error. It's happened to me and driven me mad!) You may have a crash in the code beyond the header. The header is buffered, a crash destroys the buffer and hence the header. After your header add fflush(stderr). If this is the case you will now have a blank page returned, hopefully showing an error. Can you also tell me whether this on the main menu, or other pages? Ben > Hi All, > > I tried to compile the new version (0.104.3), but I have the same error= . > In the http error log I can see : > [error] [client 10.1.1.2] malformed header from script. Bad > header=3Dperfparse.cgi: perfparse.cgi, referer: > http://10.1.1.1/nagios/cgi-bin/perfparse.cgi > > This is before the debug (printf(stderr, "%s:%d\n", __FILE__,__LINE__);= ) in > inserted... > Same thing after I put it in the debug line (after the header() and in = the > headerGraphDisplay() function) > > I also tried "chmod ug+s perfparse.cgi" and nothing... > If I run the cgi from command line I get the HTML (from the apache user= and > root), but I don't get a png. > > The connection to the MtSQL is OK, I can see that when I changed the us= er, > then I don't get the HTML (by command prompt)... > > Thanks, > Gili > > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > --=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: Gili L. <Gi...@so...> - 2004-12-12 15:08:52
|
Hi All, I tried to compile the new version (0.104.3), but I have the same error. In the http error log I can see : [error] [client 10.1.1.2] malformed header from script. Bad header=perfparse.cgi: perfparse.cgi, referer: http://10.1.1.1/nagios/cgi-bin/perfparse.cgi This is before the debug (printf(stderr, "%s:%d\n", __FILE__,__LINE__);) in inserted... Same thing after I put it in the debug line (after the header() and in the headerGraphDisplay() function) I also tried "chmod ug+s perfparse.cgi" and nothing... If I run the cgi from command line I get the HTML (from the apache user and root), but I don't get a png. The connection to the MtSQL is OK, I can see that when I changed the user, then I don't get the HTML (by command prompt)... Thanks, Gili |
From: Ben C. <bcl...@pe...> - 2004-12-10 13:11:11
|
Alexander, Glad to hear this works. I have used your result in our new FAQ. Enjoy using PP! Ben Alexander Fichtenbauer wrote: > hi.. >=20 > thanks for help.. >=20 > did the modification, worked fine for me.. ;-) >=20 > now the performance data works fine for check_nt. >=20 > bye >=20 >=20 >=20 > alexander fichtenbauer=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > exacon-it > informationstechnologie > beratungsges.m.b.h. > grawatschgasse 4 > a-1230 wien >=20 > tel: +43 1 667 69 69 12 > fax: +43 1 667 69 71=20 > mobile: +43 664 207 51 00 > www.exacon.at >=20 >=20 > this message is intended for the individual named above and is confiden= tial and may also be privileged. if you are not the intended recipient, p= lease do not read, copy use or disclose this communication to others. als= o please notify the sender by replying to this message and then delete it= from your system. >=20 >=20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Ben Clewett [mailto:BCl...@pe...]=20 > Gesendet: Dienstag, 7. Dezember 2004 10:54 > An: Alexander Fichtenbauer > Cc: per...@li... > Betreff: Re: [Perfparse-users] no performance data in perfparse >=20 >=20 > Alexander, >=20 > Thanks for your information on problems with the performance data. It=20 > seems the 'quotes' are missing from the metric name on your check_nt=20 > plugin, when using method 3 and 4? >=20 > Our friend Jan Van der Veken noticed what might be your problem. When=20 > compiling Nagios he saw this in nagios.cfg: >=20 > -- begin snippet -- > # ILLEGAL MACRO OUTPUT CHARACTERS > # This options allows you to specify illegal characters that are # stri= pped from macros before being used in notifications, event # handlers, et= c. This DOES NOT affect macros used in service or # host check commands.= # The following macros are stripped of the characters you specify: > # $OUTPUT$, $PERFDATA$ >=20 > illegal_macro_output_chars=3D`~$&|'"<> > -- end snippet -- >=20 > If you alter this line to remove the ''''s, this might fix your problem. >=20 > If you can test this, this would make a great addition to our new FAQ: >=20 > http://wiki.perfparse.org/tiki-list_faqs.php >=20 > Kind regards, >=20 > Ben Clewett. >=20 >=20 >=20 > Alexander Fichtenbauer wrote: >=20 >=20 >>hello.. >>=20 >>have installed latest nagios cvs + nagios cvs-plugins >>=20 >>installed perfparse v0.103.2 >>=20 >>i=B4m monitoring several hosts with eg. check_nt and nsclient >>=20 >>now the problem: >>=20 >>got no binary/useful performance data into perfparse database. tryed=20 >>mode3 and 4. >>=20 >>the output from plugin looks good for eg. cpu load or harddisk usage: >>=20 >>1102350295 host NSClient CPU Load CPU Load 0% (10 min average) 0% (60 >>min average) 0% (1440 min average) OK 10 min avg Load=3D0%;80;95;0;100 = 60=20 >>min avg Load=3D0%;80;95;0;100 1440 min avg Load=3D0%;80;95;0;100 >>1102350335 host NSClient Disk Space C: c:\ - total: 3.99 Gb - used: 2.2= 7=20 >>Gb (57%) - free 1.72 Gb (43%) OK c:\ Used Space=3D2.27Gb;3.19;3.59;0.00= ;3.99 >>or other plugins data: >>=20 >>1102350345 host Secure HTTP [SSL] TCP OK - 0.000 second response time=20 >>on >>port 443 OK time=3D0.000472s;0.000000;0.000000;0.000000;10.000000 >>1102350375 host Netbios Session Service TCP OK - 0.001 second response=20 >>time on port 139 OK time=3D0.000514s;0.000000;0.000000;0.000000;10.0000= 00 >>1102350455 host LDAP TCP OK - 0.001 second response time on port 389 OK= =20 >>time=3D0.000775s;0.000000;0.000000;0.000000;10.000000 >>=20 >>some output from command line: >>=20 >>c:\ - total: 3.99 Gb - used: 2.47 Gb (62%) - free 1.52 Gb (38%) | 'c:\ >>Used Space'=3D2.47Gb;3.19;3.59;0.00;3.99 >>CPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average)=20 >>| '10 min avg Load'=3D0%;80;95;0;100 '60 min avg Load'=3D0%;80;95;0;1= 00 >>'1440 min avg Load'=3D0%;80;95;0;100 >>=20 >>the exchange nagios>perfparse in mode3 (perfparse logfile) or mode4 >>(pipe) is ok and working >>=20 >>ever get the data in perfparse raw plugin data. >>but as you see on the outputs there is performance data from the=20 >>plugins. >>=20 >>so, any suggestions to my problem, have no idea anymore. >>=20 >>perhaps someone can help >>=20 >>thanks >>=20 >>=20 >>alexander fichtenbauer >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>exacon-it >>=20 >=20 >=20 >=20 --=20 Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |
From: Alexander F. <ale...@ex...> - 2004-12-10 12:46:21
|
hi.. thanks for help.. did the modification, worked fine for me.. ;-) now the performance data works fine for check_nt. bye alexander fichtenbauer=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D exacon-it informationstechnologie beratungsges.m.b.h. grawatschgasse 4 a-1230 wien tel: +43 1 667 69 69 12 fax: +43 1 667 69 71=20 mobile: +43 664 207 51 00 www.exacon.at this message is intended for the individual named above and is = confidential and may also be privileged. if you are not the intended = recipient, please do not read, copy use or disclose this communication = to others. also please notify the sender by replying to this message and = then delete it from your system. -----Urspr=FCngliche Nachricht----- Von: Ben Clewett [mailto:BCl...@pe...]=20 Gesendet: Dienstag, 7. Dezember 2004 10:54 An: Alexander Fichtenbauer Cc: per...@li... Betreff: Re: [Perfparse-users] no performance data in perfparse Alexander, Thanks for your information on problems with the performance data. It=20 seems the 'quotes' are missing from the metric name on your check_nt=20 plugin, when using method 3 and 4? Our friend Jan Van der Veken noticed what might be your problem. When=20 compiling Nagios he saw this in nagios.cfg: -- begin snippet -- # ILLEGAL MACRO OUTPUT CHARACTERS # This options allows you to specify illegal characters that are # = stripped from macros before being used in notifications, event # = handlers, etc. This DOES NOT affect macros used in service or # host = check commands. # The following macros are stripped of the characters = you specify: # $OUTPUT$, $PERFDATA$ illegal_macro_output_chars=3D`~$&|'"<> -- end snippet -- If you alter this line to remove the ''''s, this might fix your problem. If you can test this, this would make a great addition to our new FAQ: http://wiki.perfparse.org/tiki-list_faqs.php Kind regards, Ben Clewett. Alexander Fichtenbauer wrote: > hello.. > =20 > have installed latest nagios cvs + nagios cvs-plugins > =20 > installed perfparse v0.103.2 > =20 > i=B4m monitoring several hosts with eg. check_nt and nsclient > =20 > now the problem: > =20 > got no binary/useful performance data into perfparse database. tryed=20 > mode3 and 4. > =20 > the output from plugin looks good for eg. cpu load or harddisk usage: > =20 > 1102350295 host NSClient CPU Load CPU Load 0% (10 min average) 0% (60 > min average) 0% (1440 min average) OK 10 min avg Load=3D0%;80;95;0;100 = 60=20 > min avg Load=3D0%;80;95;0;100 1440 min avg Load=3D0%;80;95;0;100 > 1102350335 host NSClient Disk Space C: c:\ - total: 3.99 Gb - used: = 2.27=20 > Gb (57%) - free 1.72 Gb (43%) OK c:\ Used = Space=3D2.27Gb;3.19;3.59;0.00;3.99 > or other plugins data: > =20 > 1102350345 host Secure HTTP [SSL] TCP OK - 0.000 second response time=20 > on > port 443 OK time=3D0.000472s;0.000000;0.000000;0.000000;10.000000 > 1102350375 host Netbios Session Service TCP OK - 0.001 second response = > time on port 139 OK = time=3D0.000514s;0.000000;0.000000;0.000000;10.000000 > 1102350455 host LDAP TCP OK - 0.001 second response time on port 389 = OK=20 > time=3D0.000775s;0.000000;0.000000;0.000000;10.000000 > =20 > some output from command line: > =20 > c:\ - total: 3.99 Gb - used: 2.47 Gb (62%) - free 1.52 Gb (38%) | 'c:\ > Used Space'=3D2.47Gb;3.19;3.59;0.00;3.99 > CPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average) = > | '10 min avg Load'=3D0%;80;95;0;100 '60 min avg = Load'=3D0%;80;95;0;100 > '1440 min avg Load'=3D0%;80;95;0;100 > =20 > the exchange nagios>perfparse in mode3 (perfparse logfile) or mode4 > (pipe) is ok and working > =20 > ever get the data in perfparse raw plugin data. > but as you see on the outputs there is performance data from the=20 > plugins. > =20 > so, any suggestions to my problem, have no idea anymore. > =20 > perhaps someone can help > =20 > thanks > =20 > =20 > alexander fichtenbauer > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > exacon-it > =20 |
From: Ben C. <bcl...@pe...> - 2004-12-08 17:27:39
|
Dear users, Information available now on announce mailing list about release of new version 0.104.3 and new forums on wiki.perfparse.org. Please subscribe to, or view only, perfparse-announce at: http://sourceforge.net/mail/?group_id=109355 Regards, Ben -- Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |
From: <mar...@be...> - 2004-12-08 13:16:21
|
Hi, =20 I would like to use the check_snmp plugin for getting several = performance data from different maschines. I just try the actual snapshot from nagios-plugins-1.4 but the plugin still did not deliver any performance data. Have anybody a patch for it ? =20 Regards Martin R=F6h |
From: Yves <yme...@pe...> - 2004-12-08 09:35:26
|
> Martin, > did you add the following to your perfparse.cfg: > Storage_Modules_Load =3D "mysql" > (BTW, this should be added to the FAQ) > > Otherwise perfparsed starts, but doesn't actually do anything..... I'm changing the behaviour of perfparsed and perfparse-log2* in order to = not start in such a case and print something in the log. This will be in next version... 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-12-07 19:14:26
|
Martin, did you add the following to your perfparse.cfg: Storage_Modules_Load =3D "mysql" (BTW, this should be added to the FAQ) Otherwise perfparsed starts, but doesn't actually do anything..... Tim On Tue, 07 Dec 2004 16:34:23 +0000, Ben Clewett <bcl...@pe...> wr= ote: > Martin, >=20 > Glad you found the mailing lists! >=20 > Can you please ensure that the check plugins you are using return > performance data. Something like: >=20 > CRITICAL - load average: 2.17, 1.92, 1.89 | > load1=3D2.170000;1.000000;2.000000;0.000000 > load5=3D1.920000;1.000000;2.000000;0.000000 > load15=3D1.890000;1.000000;2.000000;0.000000 >=20 > You can see the data after the '|'. >=20 > If this is the case, there are a number of other places this data can be > dropped or corrupted. If you can, please give an example of a plugin > output. >=20 > The host groups are not relevant. To edit these, check your > perfparse.cfg and look for: >=20 > # CGI management : > # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > # Default user permissions in the CGI. Accepted values are (ro|rw|hide) > Default_user_permissions_Policy =3D "rw" > Default_user_permissions_Host_groups =3D "rw" >=20 > Set to 'rw' to anable editing. >=20 > Ben. >=20 >=20 >=20 >=20 > mar...@be... wrote: >=20 > > Hi, > > > > I think I had successfully setup perfparse-0.104.2 with method 4 (pipe)= : > > The perfparsed is running, no errors in the perfparse error log and the > > timestamp of the pipe will be actualise regularly. But: I see no data i= n > > the mysql database. Must I configure the hostgroup parameter by the > > perfparse.cgi before I can see any data ? How must I configure the > > parameter ? I can create hostgroups by using the perfparse.cgi but I'm > > not able to add hosts to a hostgroup ?! > > > > Regards > > Martin R=F6h >=20 >=20 > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Ben C. <BCl...@pe...> - 2004-12-07 16:34:33
|
Martin, Glad you found the mailing lists! Can you please ensure that the check plugins you are using return=20 performance data. Something like: CRITICAL - load average: 2.17, 1.92, 1.89 |=20 load1=3D2.170000;1.000000;2.000000;0.000000=20 load5=3D1.920000;1.000000;2.000000;0.000000=20 load15=3D1.890000;1.000000;2.000000;0.000000 You can see the data after the '|'. If this is the case, there are a number of other places this data can be=20 dropped or corrupted. If you can, please give an example of a plugin=20 output. The host groups are not relevant. To edit these, check your=20 perfparse.cfg and look for: # CGI management : # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # Default user permissions in the CGI. Accepted values are (ro|rw|hide) Default_user_permissions_Policy =3D "rw" Default_user_permissions_Host_groups =3D "rw" Set to 'rw' to anable editing. Ben. mar...@be... wrote: > Hi, > =20 > I think I had successfully setup perfparse-0.104.2 with method 4 (pipe)= :=20 > The perfparsed is running, no errors in the perfparse error log and the= =20 > timestamp of the pipe will be actualise regularly. But: I see no data i= n=20 > the mysql database. Must I configure the hostgroup parameter by the=20 > perfparse.cgi before I can see any data ? How must I configure the=20 > parameter ? I can create hostgroups by using the perfparse.cgi but I'm=20 > not able to add hosts to a hostgroup ?! > =20 > Regards > Martin R=F6h |
From: Ben C. <BCl...@pe...> - 2004-12-07 16:27:47
|
Can you ensure that all files in the /cgi-bin directory are scripts?=20 Something like (on SUSE): ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/" I will have to think hard about any other options... Ben Massimiliano Minniti wrote: >=20 >=20 >=20 >> Morning Massimiliano, >=20 > Dear Ben, >=20 >> >> Sorry to hear you have been having problems. >> >> Can you tell me whether any of your graphs display? >=20 > I don't never display anyone of the grafhs. >=20 >> >> Can you tell me if you perfparse.cfg file is correctly readable by the= =20 >> apache system. >=20 > I added the following lines in file httpd.conf: >=20 > <Files ~ "/usr/local/nagios/etc/perfparse.cfg"> > Order allow,deny > Deny from all > </Files> >=20 > and now apache system read the perfpars.cfg, but the problem continue. >=20 >> >> Did you specified the location of the file correctly on compilation.=20 >> Eg, if file is /usr/local/nagios/etc/perfparse.cfg >> >> Did you use: >> >> ./configure --prefix=3D/usr/local/nagios >=20 > I complied nagios with this prefix. >=20 >> >> Do you use the History Report? Can you tell me whether the Gant chart= =20 >> displays on a sample History Report? >=20 > No, I don't use History Report. I don't know History Report! :( >=20 >> >> Can you try running the graph from the command prompt as follows: >> >> # su apache (or what ever user Apache uses.) >> $ cd cgi-bin >> $ export=20 >> QUERY_STRING=3D"?host=3Dmailsvr%2Edomain%2Eit&service=3DPOP3&metric=3D= time&forcescale=3D1&accuratescale=3D1&min=3D0%2E000000&max=3D10%2E000000&= select_line=3D1&s_val=3D1&s_smo=3D0&s_war=3D1&s_cri=3D1&s_sta=3D1&g_sigma= =3D14.000000&unit=3D%2C016108s&size=3D585x300&output=3DHistogram&timeperi= od=3Dr&reltime=3D00%3A00&reldays=3D1&title=3DHost+%27mailsvr%2domain%2Eit= %27+++Service+%27POP3%27+++Metric+%27time%27=94=20 >> >> $ ./perfchart.png > sample.png >> >> Can you use some safe binary reader, or vi, and look at the=20 >> sample.png. Does the top of the file contain something like: >> >> "Expires: Sun, 02 Jan 2000 01:01:01 GMT >> content-type: image/png >> >> <89>PNG" >> > I follow your steps and my system correctly processed the perfchart.png= =20 > and I read the correct lines in the top of the yuor example. >=20 >> >> Please let us know. >> >> Ben. >> >=20 > I have still this problem. >=20 > Very Thanks for your support! >=20 > Massimiliano >=20 >> >=20 >> >> >> >> Massimiliano Minniti wrote: >> >>> Hi All, >>> >>> In the visualization of the url to display the grafh of the my host=20 >>> on the web server launch the follow error message: >>> >>> "The image=20 >>> =93http://host.domain.it/nagios/cgi-bin/perfchart.png?host=3Dmailsvr%= 2Edomain%2Eit&service=3DPOP3&metric=3Dtime&forcescale=3D1&accuratescale=3D= 1&min=3D0%2E000000&max=3D10%2E000000&select_line=3D1&s_val=3D1&s_smo=3D0&= s_war=3D1&s_cri=3D1&s_sta=3D1&g_sigma=3D14.000000&unit=3D%2C016108s&size=3D= 585x300&output=3DHistogram&timeperiod=3Dr&reltime=3D00%3A00&reldays=3D1&t= itle=3DHost+%27mailsvr%2domain%2Eit%27+++Service+%27POP3%27+++Metric+%27t= ime%27&pid=3D22900=94=20 >>> cannot be displayed, because it contains errors" >>> >>> I look the apache log (error_log/access_log) but there aren't error=20 >>> messages about grafh visualization. >>> >>> My configuration is the following: >>> >>> pp/database/version | 0,15 | 2004-12-06 10:25:2= 3 | >>> pp/perfparse/compilation date|Nov 12 2004 16:34:17| 2004-12-01 15:39:= 01| >>> pp/perfparse/version | 0.103.1 | 2004-12-01 15:39:0= 1 | >>> pp/uname/machine | i686 | 2004-12-01 15:39:0= 1 | >>> pp/uname/nodename | host | 2004-12-01 15:39:0= 1 | >>> pp/uname/release | 2.6.5-1.358 | 2004-12-01 15:39:0= 1 | >>> pp/uname/sysname | Linux | 2004-12-01 15:39:0= 1 | >>> pp/uname/version| #1 Sat May 8 09:04:50 EDT 2004 | 2004-12-01 15:39:0= 1 | >>> >>> I have installed the following libraries: >>> gd-2.0.21-3 >>> gd-devel-2.0.21-3 >>> libpng-1.2.2-22 >>> >>> Any ideas? >>> >>> Thanks a lot for now >>> >>> Massimiliano Minniti >>> >>> >>> >>> ------------------------------------------------------- >>> SF email is sponsored by - The IT Product Guide >>> Read honest & candid reviews on hundreds of IT Products from real use= rs. >>> Discover which products truly live up to the hype. Start reading now.= =20 >>> http://productguide.itmanagersjournal.com/ >>> _______________________________________________ >>> Perfparse-users mailing list >>> Per...@li... >>> https://lists.sourceforge.net/lists/listinfo/perfparse-users >>> >> >> >=20 |
From: <mar...@be...> - 2004-12-07 16:06:33
|
Hi, =20 I think I had successfully setup perfparse-0.104.2 with method 4 = (pipe): The perfparsed is running, no errors in the perfparse error log and the timestamp of the pipe will be actualise regularly. But: I see no data = in the mysql database. Must I configure the hostgroup parameter by the perfparse.cgi before I can see any data ? How must I configure the = parameter ? I can create hostgroups by using the perfparse.cgi but I'm not able = to add hosts to a hostgroup ?! =20 Regards Martin R=F6h |
From: Massimiliano M. <mmi...@ab...> - 2004-12-07 16:04:47
|
> Morning Massimiliano, Dear Ben, > > Sorry to hear you have been having problems. > > Can you tell me whether any of your graphs display? I don't never display anyone of the grafhs. > > Can you tell me if you perfparse.cfg file is correctly readable by the > apache system. I added the following lines in file httpd.conf: <Files ~ "/usr/local/nagios/etc/perfparse.cfg"> Order allow,deny Deny from all </Files> and now apache system read the perfpars.cfg, but the problem continue. > > Did you specified the location of the file correctly on compilation. Eg, > if file is /usr/local/nagios/etc/perfparse.cfg > > Did you use: > > ./configure --prefix=/usr/local/nagios I complied nagios with this prefix. > > Do you use the History Report? Can you tell me whether the Gant chart > displays on a sample History Report? No, I don't use History Report. I don't know History Report! :( > > Can you try running the graph from the command prompt as follows: > > # su apache (or what ever user Apache uses.) > $ cd cgi-bin > $ export > QUERY_STRING="?host=mailsvr%2Edomain%2Eit&service=POP3&metric=time&forcescale=1&accuratescale=1&min=0%2E000000&max=10%2E000000&select_line=1&s_val=1&s_smo=0&s_war=1&s_cri=1&s_sta=1&g_sigma=14.000000&unit=%2C016108s&size=585x300&output=Histogram&timeperiod=r&reltime=00%3A00&reldays=1&title=Host+%27mailsvr%2domain%2Eit%27+++Service+%27POP3%27+++Metric+%27time%27” > > $ ./perfchart.png > sample.png > > Can you use some safe binary reader, or vi, and look at the sample.png. > Does the top of the file contain something like: > > "Expires: Sun, 02 Jan 2000 01:01:01 GMT > content-type: image/png > > <89>PNG" > I follow your steps and my system correctly processed the perfchart.png and I read the correct lines in the top of the yuor example. > > Please let us know. > > Ben. > I have still this problem. Very Thanks for your support! Massimiliano > > > > > Massimiliano Minniti wrote: > >> Hi All, >> >> In the visualization of the url to display the grafh of the my host on >> the web server launch the follow error message: >> >> "The image >> “http://host.domain.it/nagios/cgi-bin/perfchart.png?host=mailsvr%2Edomain%2Eit&service=POP3&metric=time&forcescale=1&accuratescale=1&min=0%2E000000&max=10%2E000000&select_line=1&s_val=1&s_smo=0&s_war=1&s_cri=1&s_sta=1&g_sigma=14.000000&unit=%2C016108s&size=585x300&output=Histogram&timeperiod=r&reltime=00%3A00&reldays=1&title=Host+%27mailsvr%2domain%2Eit%27+++Service+%27POP3%27+++Metric+%27time%27&pid=22900” >> cannot be displayed, because it contains errors" >> >> I look the apache log (error_log/access_log) but there aren't error >> messages about grafh visualization. >> >> My configuration is the following: >> >> pp/database/version | 0,15 | 2004-12-06 10:25:23 | >> pp/perfparse/compilation date|Nov 12 2004 16:34:17| 2004-12-01 15:39:01| >> pp/perfparse/version | 0.103.1 | 2004-12-01 15:39:01 | >> pp/uname/machine | i686 | 2004-12-01 15:39:01 | >> pp/uname/nodename | host | 2004-12-01 15:39:01 | >> pp/uname/release | 2.6.5-1.358 | 2004-12-01 15:39:01 | >> pp/uname/sysname | Linux | 2004-12-01 15:39:01 | >> pp/uname/version| #1 Sat May 8 09:04:50 EDT 2004 | 2004-12-01 15:39:01 | >> >> I have installed the following libraries: >> gd-2.0.21-3 >> gd-devel-2.0.21-3 >> libpng-1.2.2-22 >> >> Any ideas? >> >> Thanks a lot for now >> >> Massimiliano Minniti >> >> >> >> ------------------------------------------------------- >> 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://productguide.itmanagersjournal.com/ >> _______________________________________________ >> Perfparse-users mailing list >> Per...@li... >> https://lists.sourceforge.net/lists/listinfo/perfparse-users >> > > |
From: Yves <yme...@pe...> - 2004-12-07 13:58:16
|
>> When perfparsed breaks, if you can find the reason, tell us, and we'll= try to find a >> way >> to make perfparsed do something else than break. > > well, whenever there is a problem with one of the storage modules, it > simply exits: > e.g. if the db is unavailable or (like I had this morning) the > filesystem where the db resides is full. Last week I tried to use the > file_output and mysql storage modules, but the file_output module > would not load (haven't figured out why yet, it just said > "storage_file_output module failed to initialize itself"). In all > these cases, perfparsed exited. OK. In those cases, I consider that perfparsed should exit. I was just th= inking about cases where perfparsed could deal with the situation and does not. If the= re are any :) > The question of course is, what should perfparsed do? Should it exit > or not? I don't think there's a simple answer to that, except that in > case of failure, I'd like to know about it :) One place I look at is > the error log. The things I'd like to add to the error log is some > extra info when a module is succesfully initialised, a bigger buffer storage_%s module successfully loaded\n", storage_name done :) > for error messages (they get truncated at 256 chars), and a clear #define LOG_MESSAGE_LENGTH 1024 Is that OK for you ? > 'perfparsed stopped' message whenever there is a fatal error. Done (thanks to already implemented atexit function :) This is available in few minutes in perfparse-0.104.2ym2 on http://pagesperso.laposte.net/ymettier/perfparse-devel/ 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-12-07 13:36:08
|
On Tue, 7 Dec 2004 14:11:17 +0100 (CET), Yves <yme...@pe...> wrote: > > > > When perfparsed breaks, if you can find the reason, tell us, and we'll try to find a way > to make perfparsed do something else than break. well, whenever there is a problem with one of the storage modules, it simply exits: e.g. if the db is unavailable or (like I had this morning) the filesystem where the db resides is full. Last week I tried to use the file_output and mysql storage modules, but the file_output module would not load (haven't figured out why yet, it just said "storage_file_output module failed to initialize itself"). In all these cases, perfparsed exited. The question of course is, what should perfparsed do? Should it exit or not? I don't think there's a simple answer to that, except that in case of failure, I'd like to know about it :) One place I look at is the error log. The things I'd like to add to the error log is some extra info when a module is succesfully initialised, a bigger buffer for error messages (they get truncated at 256 chars), and a clear 'perfparsed stopped' message whenever there is a fatal error. Tim. > > 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/ - > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Yves <yme...@pe...> - 2004-12-07 13:11:22
|
> All, > > I'm trying to see what the best way is of monitoring perfparsed, > preferably using nagios itself. I'm currently using perfparsed in > combination with the write to pipe method. > > What are my options? > > 1. check_procs -c1:1 -C perfparsed -u nagios > this will notify me in case the daemon died. I could attach an event > handler to restart the perfparse daemon. > The problem with this method is that there is no way of knowing the > perfparse daemon is still doing anything useful, since nagios writes > to a named pipe, and this never fails. (and even then, should it fail, > there's apparently no trace of the failure anywhere). This hasn't > happened (yet), the daemon seems to die whenever something goes wrong. > > 2. write a (perl) check script that checks the perfparse_service_bin > (since I'm storing in a mysql db) for new data (i.e check the > timestamp of the most recent record, cry wolf if it's older than x > minutes). Attach an event handler to check for perfparsed still > running and eventually restarting it. In my view this is the only > right way to check the sanity of perfparse. > > I'd like to hear your thoughts on this, or any other ideas.... What about a plugin that does both ? Do you think that adding some "watchdog" function to perfparsed would be = a good idea ? I mean adding some "touch /var/lock/some.perparse.lock" feature in the main= loop. Your plugin could test that file mtime :) When perfparsed breaks, if you can find the reason, tell us, and we'll tr= y to find a way to make perfparsed do something else than break. 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/ - |