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: Yves M. <yme...@li...> - 2005-02-22 11:46:58
|
> 2005/02/22 12:35:35 [ storage.c:307 4148 ] Could not dump modules > status > the line: Could not dump modules status <-- whats the problem with the > modules status? Ben, consider this as a bug :) Olivier, this is probably a directory missing, or a wrong path in perfpar= se.cfg. Try to find what path it needs with "perfparsed --show_config". If you cannot find it, maybe you can edit perfparse/storage.c at line 307= and find what directory is missing ? I don't have a lot of time this week and I can only give short answers li= ke this. Sorry not to get more into the problem. But as soon as I can give short answers= like this, I do it :) 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://www.perfparse.org/ - |
From: Oliver M. <tr...@gm...> - 2005-02-22 11:37:41
|
I created the pipe with mknod, if I start perfparsed I get this: 2005/02/22 12:35:25 [ storage.c:208 3400 ] Perfparsed stopped 2005/02/22 12:35:35 [ storage.c:95 4148 ] storage_mysql module successfully loaded 2005/02/22 12:35:35 [ storage.c:95 4148 ] storage_stdout module successfully loaded 2005/02/22 12:35:35 [ storage.c:307 4148 ] Could not dump modules status 2005/02/22 12:35:36 [ storage.c:264 4148 ] Perfparsed : periodic cleanup the line: Could not dump modules status <-- whats the problem with the modules status? thx for help! Regards Oliver > >> > 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open > >> directory > >> > '/tmp/perfparse.drop' > >> > >> Why ? :) > > > > I dont know, no other programs have problems with /tmp... > > Well, let's suppose that perfparse wants the file to clean it... :) > Create it (empty) and check what perfparse does :) > > Ben or anybody, could you have a look on the code ? > The log says that it happens in clean_tools.c, line 101 :) > > >> > 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT > abgefangen > >> > 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped > >> > > >> > and perfparsed stopped :-( > >> > >> Do you stop it with Ctrl-C ? If not, where does this SIGINT signal come > >> from ? > > > > No, this message comes at the moment I start perfparsed > > This is strange. There is no reason that this signal happen except a > Ctrl-C. > It should not stop that way... I have no idea. > > [...] > > > Ok, done. but I see nothing in the mysql database :-( > > No hosts, no data, nothing. > > Where you enable mysql, could you also enable "stdout" ? Write > "mysql,stdout". > And run perfparsed NOT in daemon mode (check perfparse.cfg and don't put > the -d option). > You should have some data on the output... > I have no idea, but maybe this will give us some clues ? :) > > 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. -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Yves <yme...@pe...> - 2005-02-22 11:36:07
|
> How can I creat a Pipe (/var/nagios/perfdata-service.log)? > > 'var/nagios/perfdata-service.log' exists and is not a pipe > Perparsed stopped. > The faster way to do it is to remove that file and be sure that it does n= ot exist when you run perfparsed. Perfparsed creates it for you :) 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://www.perfparse.org/ - |
From: Oliver M. <tr...@gm...> - 2005-02-22 11:25:59
|
How can I creat a Pipe (/var/nagios/perfdata-service.log)? 'var/nagios/perfdata-service.log' exists and is not a pipe Perparsed stopped. > >> > 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open > >> directory > >> > '/tmp/perfparse.drop' > >> > >> Why ? :) > > > > I dont know, no other programs have problems with /tmp... > > Well, let's suppose that perfparse wants the file to clean it... :) > Create it (empty) and check what perfparse does :) > > Ben or anybody, could you have a look on the code ? > The log says that it happens in clean_tools.c, line 101 :) > > >> > 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT > abgefangen > >> > 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped > >> > > >> > and perfparsed stopped :-( > >> > >> Do you stop it with Ctrl-C ? If not, where does this SIGINT signal come > >> from ? > > > > No, this message comes at the moment I start perfparsed > > This is strange. There is no reason that this signal happen except a > Ctrl-C. > It should not stop that way... I have no idea. > > [...] > > > Ok, done. but I see nothing in the mysql database :-( > > No hosts, no data, nothing. > > Where you enable mysql, could you also enable "stdout" ? Write > "mysql,stdout". > And run perfparsed NOT in daemon mode (check perfparse.cfg and don't put > the -d option). > You should have some data on the output... > I have no idea, but maybe this will give us some clues ? :) > > 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. -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Yves <yme...@pe...> - 2005-02-22 10:58:14
|
>> > 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open >> directory >> > '/tmp/perfparse.drop' >> >> Why ? :) > > I dont know, no other programs have problems with /tmp... Well, let's suppose that perfparse wants the file to clean it... :) Create it (empty) and check what perfparse does :) Ben or anybody, could you have a look on the code ? The log says that it happens in clean_tools.c, line 101 :) >> > 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT abgefa= ngen >> > 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped >> > >> > and perfparsed stopped :-( >> >> Do you stop it with Ctrl-C ? If not, where does this SIGINT signal com= e >> from ? > > No, this message comes at the moment I start perfparsed This is strange. There is no reason that this signal happen except a Ctrl= -C. It should not stop that way... I have no idea. [...] > Ok, done. but I see nothing in the mysql database :-( > No hosts, no data, nothing. Where you enable mysql, could you also enable "stdout" ? Write "mysql,std= out". And run perfparsed NOT in daemon mode (check perfparse.cfg and don't put = the -d option). You should have some data on the output... I have no idea, but maybe this will give us some clues ? :) 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://www.perfparse.org/ - |
From: Oliver M. <tr...@gm...> - 2005-02-22 10:34:13
|
> > > If I start perfparsed like this: ./perfparsed -e > > /var/nagios/perfparsed.error.log & > > > > cat /usr/nagios/perfparsed.error.log > > > 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open > directory > > '/tmp/perfparse.drop' > > Why ? :) I dont know, no other programs have problems with /tmp... > > > 2005/02/22 10:15:03 [clean_tools.c:101 14071 ] Could not open > directory > > '/var/nagios/perfparse.drop' > > Why ? :) I dont know, nagios can write to /var/nagios... > > > 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT abgefangen > > 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped > > > > and perfparsed stopped :-( > > Do you stop it with Ctrl-C ? If not, where does this SIGINT signal come > from ? No, this message comes at the moment I start perfparsed > > > A additionnal question : why don't you use the "pipe method" with > perfaprse -e > "|some/path" ? I do this for informations why perfparsed not work ;) > If you want to do it, don't forget to > 1/ remove the file you specified with the -e option if it is a file. If it > is a pipe, > you can keep it > 2/ run perfparsed BEFORE nagios because perfparse creates the pipe but > complains if a > file with the same name exists, and nagios-1.2 creates that file. Ok, done. but I see nothing in the mysql database :-( No hosts, no data, nothing. > > 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. -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Yves <yme...@pe...> - 2005-02-22 09:36:19
|
> If I start perfparsed like this: ./perfparsed -e > /var/nagios/perfparsed.error.log & > > cat /usr/nagios/perfparsed.error.log > 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open directo= ry > '/tmp/perfparse.drop' Why ? :) > 2005/02/22 10:15:03 [clean_tools.c:101 14071 ] Could not open directo= ry > '/var/nagios/perfparse.drop' Why ? :) > 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT abgefange= n > 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped > > and perfparsed stopped :-( Do you stop it with Ctrl-C ? If not, where does this SIGINT signal come f= rom ? A additionnal question : why don't you use the "pipe method" with perfapr= se -e "|some/path" ? If you want to do it, don't forget to 1/ remove the file you specified with the -e option if it is a file. If i= t is a pipe, you can keep it 2/ run perfparsed BEFORE nagios because perfparse creates the pipe but co= mplains if a file with the same name exists, and nagios-1.2 creates that file. 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://www.perfparse.org/ - |
From: Oliver M. <tr...@gm...> - 2005-02-22 09:22:25
|
thyx for this hint matthias, In the perfparse.cfg I wrote this: Storage_Modules_Load = "mysql" Storage_Modules_Dir = "/usr/nagios/lib" If I start perfparsed like this: ./perfparsed -e /var/nagios/perfparsed.error.log & cat /usr/nagios/perfparsed.error.log 2005/02/22 10:13:56 [ storage.c:95 13892 ] storage_mysql module successfully loaded 2005/02/22 10:13:56 [ storage.c:307 13892 ] Could not dump modules status 2005/02/22 10:13:56 [ storage.c:264 13892 ] Perfparsed : periodic cleanup 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open directory '/tmp/perfparse.drop' 2005/02/22 10:14:31 [log_reader.c:547 13892 ] Signal SIGINT abgefangen 2005/02/22 10:14:31 [ storage.c:208 13892 ] Perfparsed stopped 2005/02/22 10:15:03 [ storage.c:95 14071 ] storage_mysql module successfully loaded 2005/02/22 10:15:03 [ storage.c:307 14071 ] Could not dump modules status 2005/02/22 10:15:03 [ storage.c:264 14071 ] Perfparsed : periodic cleanup 2005/02/22 10:15:03 [clean_tools.c:101 14071 ] Could not open directory '/var/nagios/perfparse.drop' 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT abgefangen 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped and perfparsed stopped :-( Oliver > per...@li... schrieb am 22.02.2005 > 09:42:37: > > > Hi, > > > > I use Nagios 1.2, MySQL 4.0.22 on a Gentoo-Box. > > > > I do this in nagios.cfg: > > > > cfg_file=/usr/nagios/etc/nagios_perfparse.cfg > > process_performance_data=1 > > host_perfdata_command=process-host-perfdata > > service_perfdata_command=process-service-perfdata > > > > in /usr/nagios/etc/nagios_perfparse.cfg: > > > > define command{ > > command_name process-service-perfdata > > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > > /var/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > > } > > > > The $USER2$ is added an points to: "/usr/nagios" > > > > In /usr/nagios/etc/perfparse.cfg: > > > > Service_Log = "|/var/nagios/perfdata-service.log" > > Use_Storage_Mysql = "yes" > > > > I created a mysql database and a user with the correct rights and put > this > > in the perfparse.cfg. > > > > The file /var/nagios/perfdata-service.log grows and grows but all I > found in > > the database are the Hosts. I think the Pipe-To-PerfParse is the right > for > > me. > > > > Can anybody help me with storage the data? what did I wrong with the > config? > > > > thx mate! > > Oliver > > > > Hi Oliver, > > did you start perfparsed? > I think perfparsed is still missing in the docs. > > matthias -- Was ist das denn? Das sind Beschleunigungslöcher, die machen den Computer schneller. ( Frei nach Homer J. Simpson ) Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail |
From: Oliver M. <tr...@gm...> - 2005-02-22 08:58:26
|
Oh f*ck ;) no... is there any documentation about starting perfparsed? Oliver > per...@li... schrieb am 22.02.2005 > 09:42:37: > > > Hi, > > > > I use Nagios 1.2, MySQL 4.0.22 on a Gentoo-Box. > > > > I do this in nagios.cfg: > > > > cfg_file=/usr/nagios/etc/nagios_perfparse.cfg > > process_performance_data=1 > > host_perfdata_command=process-host-perfdata > > service_perfdata_command=process-service-perfdata > > > > in /usr/nagios/etc/nagios_perfparse.cfg: > > > > define command{ > > command_name process-service-perfdata > > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > > /var/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > > } > > > > The $USER2$ is added an points to: "/usr/nagios" > > > > In /usr/nagios/etc/perfparse.cfg: > > > > Service_Log = "|/var/nagios/perfdata-service.log" > > Use_Storage_Mysql = "yes" > > > > I created a mysql database and a user with the correct rights and put > this > > in the perfparse.cfg. > > > > The file /var/nagios/perfdata-service.log grows and grows but all I > found in > > the database are the Hosts. I think the Pipe-To-PerfParse is the right > for > > me. > > > > Can anybody help me with storage the data? what did I wrong with the > config? > > > > thx mate! > > Oliver > > > > Hi Oliver, > > did you start perfparsed? > I think perfparsed is still missing in the docs. > > matthias -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: <Mat...@ka...> - 2005-02-22 08:50:19
|
per...@li... schrieb am 22.02.2005 09:42:37: > Hi, > > I use Nagios 1.2, MySQL 4.0.22 on a Gentoo-Box. > > I do this in nagios.cfg: > > cfg_file=/usr/nagios/etc/nagios_perfparse.cfg > process_performance_data=1 > host_perfdata_command=process-host-perfdata > service_perfdata_command=process-service-perfdata > > in /usr/nagios/etc/nagios_perfparse.cfg: > > define command{ > command_name process-service-perfdata > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > /var/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } > > The $USER2$ is added an points to: "/usr/nagios" > > In /usr/nagios/etc/perfparse.cfg: > > Service_Log = "|/var/nagios/perfdata-service.log" > Use_Storage_Mysql = "yes" > > I created a mysql database and a user with the correct rights and put this > in the perfparse.cfg. > > The file /var/nagios/perfdata-service.log grows and grows but all I found in > the database are the Hosts. I think the Pipe-To-PerfParse is the right for > me. > > Can anybody help me with storage the data? what did I wrong with the config? > > thx mate! > Oliver > Hi Oliver, did you start perfparsed? I think perfparsed is still missing in the docs. matthias |
From: <tr...@gm...> - 2005-02-22 08:42:46
|
Hi, I use Nagios 1.2, MySQL 4.0.22 on a Gentoo-Box. I do this in nagios.cfg: cfg_file=/usr/nagios/etc/nagios_perfparse.cfg process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata in /usr/nagios/etc/nagios_perfparse.cfg: define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_pipe_command.pl /var/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } The $USER2$ is added an points to: "/usr/nagios" In /usr/nagios/etc/perfparse.cfg: Service_Log = "|/var/nagios/perfdata-service.log" Use_Storage_Mysql = "yes" I created a mysql database and a user with the correct rights and put this in the perfparse.cfg. The file /var/nagios/perfdata-service.log grows and grows but all I found in the database are the Hosts. I think the Pipe-To-PerfParse is the right for me. Can anybody help me with storage the data? what did I wrong with the config? thx mate! Oliver -- Was ist das denn? Das sind Beschleunigungslöcher, die machen den Computer schneller. ( Frei nach Homer J. Simpson ) Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail |
From: Yves <yme...@pe...> - 2005-02-22 07:33:23
|
Install glib. For more help, we need to know on what system you are running (debian, ma= ndrakelinux, solaris... ?) > gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=3D\"/usr/local/nagios/lib\" > -DLOCALSTATEDIR=3D\"/usr/local/nagios/var\" > -DSYSCONFDIR=3D\"/usr/local/nagios/etc\" -DPREFIX=3D\"/usr/local/nagios= \" > -DLOCALEDIR=3D\"/usr/local/nagios/share/locale\" -I.. -g -O2 -Wall -MT > libpp_common_la-config_file.lo -MD -MP -MF > .deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o > .libs/libpp_common_la-config_file.o > config_file.c:40:18: glib.h: No such file or directory --=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://www.perfparse.org/ - |
From: Scott C. <sc...@gm...> - 2005-02-21 21:13:30
|
I am trying to compile perfparse 0.105.6 to use with Nagios 2.0b2. Nagios is running and functioning. The configure script appears to run without error but when I try to make perfparse I receive: make[2]: Leaving directory `/installs/perfparse-0.105.6/libnagios_perfdata_parser' Making all in libpp_common make[2]: Entering directory `/installs/perfparse-0.105.6/libpp_common' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. '-DLIBDIR="/usr/local/nagios/lib"' '-DLOCALSTATEDIR="/usr/local/nagios/var"' '-DSYSCONFDIR="/usr/local/nagios/etc"' '-DPREFIX="/usr/local/nagios"' '-DLOCALEDIR="/usr/local/nagios/share/locale"' -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF ".deps/libpp_common_la-config_file.Tpo" -c -o libpp_common_la-config_file.lo `test -f 'config_file.c' || echo './'`config_file.c; \ then mv -f ".deps/libpp_common_la-config_file.Tpo" ".deps/libpp_common_la-config_file.Plo"; else rm -f ".deps/libpp_common_la-config_file.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=\"/usr/local/nagios/lib\" -DLOCALSTATEDIR=\"/usr/local/nagios/var\" -DSYSCONFDIR=\"/usr/local/nagios/etc\" -DPREFIX=\"/usr/local/nagios\" -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF .deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o .libs/libpp_common_la-config_file.o config_file.c:40:18: glib.h: No such file or directory config_file.c: In function `config_argv': config_file.c:268: error: `gchar' undeclared (first use in this function) config_file.c:268: error: (Each undeclared identifier is reported only once config_file.c:268: error: for each function it appears in.) config_file.c:268: error: `str' undeclared (first use in this function) config_file.c:268: warning: implicit declaration of function `g_strdup_printf' config_file.c:270: warning: implicit declaration of function `g_free' make[2]: *** [libpp_common_la-config_file.lo] Error 1 make[2]: Leaving directory `/installs/perfparse-0.105.6/libpp_common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/installs/perfparse-0.105.6' make: *** [all] Error 2 linux1:/installs/perfparse-0.105.6 # Any help would be appreciated. Thanks |
From: Yves <yme...@pe...> - 2005-02-21 10:04:19
|
Fixed. Thanks! > replace > No_Raw_Data =3D "yes" > No_Bin_Data =3D "yes" > with > No_Raw_Data =3D "yes" > No_Bin_Data =3D "yes" --=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://www.perfparse.org/ - |
From: <Seb...@ku...> - 2005-02-19 14:06:57
|
Regarding file perfparse.cfg it says: replace No_Raw_Data =3D "yes" No_Bin_Data =3D "yes" with No_Raw_Data =3D "yes" No_Bin_Data =3D "yes"=20 I believe the last two rows should read no ? Best regards, Sebastian Bergstroem ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB seb...@ku... -----------------------------------------------=20 |
From: Tong Y. <To...@in...> - 2005-02-19 01:58:15
|
Here is the part I modified from my nagios_perfparse.cfg: command_line /usr/local/nagios/bin/perfparse_nagios_pipe_command.pl /usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$" } I am using nagios 2.0b1 on Debian Sarge.=20 -----Original Message----- From: Eduardo Martinez [mailto:ema...@bs...]=20 Sent: Friday, February 18, 2005 11:59 AM To: Tong Young Cc: yme...@pe...; per...@li... Subject: Re: [Perfparse-users] Install method 4 and error I am receiving. Can you please tell me what version of nagios you were using, what os you built it on and what variables are needed in nagios_perfparse.cfg for nagios version 2.x? Did you use --with-default-perfdata ? I followed this http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example = as well but it is not working for me. -Eduardo Tong Young wrote: >You should refer everyone here first: =20 >http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example >=20 >I am using Nagiox 2.x and I followed this document almost exactly and=20 >got mine working. I didn't change the no raw data field to yes like=20 >the document said. Oh and you'll need to change some of the fields in=20 >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=20 >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=20 >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.=20 >Isn't there another option to use the pipe ? > > =20 > >><SHELL>./configure --prefix=3D/opt/nagios \ --with-template-objects \=20 >>--with-template-extinfo \ --with-init-dir=3D/etc/rc.d/init.d/ \=20 >>--with-default-status \ --with-default-comments \=20 >>--with-default-retention \ --with-default-downtime \=20 >>--with-default-perfdata \ --with-nagios-user=3Dnagios \=20 >>--with-nagios-group=3Dnagios \ --with-gd-inc=3D/opt/local/include \=20 >>--with-gd-lib=3D/opt/local/lib >> =20 >> > >I saw that command twice in your mail. This is probably why nagios complains. > > > =20 > >> command_name process-service-perfdata >> =20 >> > > =20 > >><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=20 >>'/opt/nagios/etc/nagios_perfparse.cfg', starting on line 19) >> =20 >> > >I won't help you more on that because the solution is different :=20 >configure your nagios-2.X to write directly to a pipe. Don't use=20 >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=20 >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=20 >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 > > > > > > =20 > |
From: Eduardo M. <ema...@bs...> - 2005-02-18 19:59:59
|
Can you please tell me what version of nagios you were using, what os you built it on and what variables are needed in nagios_perfparse.cfg for nagios version 2.x? Did you use --with-default-perfdata ? I followed this http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example as well but it is not working for me. -Eduardo Tong Young wrote: >You should refer everyone here first: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > >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 > > >________________________________ > >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=/opt/nagios \ >>--with-template-objects \ >>--with-template-extinfo \ >>--with-init-dir=/etc/rc.d/init.d/ \ >>--with-default-status \ >>--with-default-comments \ >>--with-default-retention \ >>--with-default-downtime \ >>--with-default-perfdata \ >>--with-nagios-user=nagios \ >>--with-nagios-group=nagios \ >>--with-gd-inc=/opt/local/include \ >>--with-gd-lib=/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_id396&op=ick >_______________________________________________ >Perfparse-users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perfparse-users > > > > > > > |
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 |
From: Yves <yme...@pe...> - 2005-02-18 18:01:30
|
Eduardo, your mail is excellent. I'm sorry to answer too short. I hope so= me 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 per= fdata 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 compla= ins. > 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 : configu= re your nagios-2.X to write directly to a pipe. Don't use process-service-perfdat= a :) 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 instal= l nagios+perfparse when nagios is 2.0 ? 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://www.perfparse.org/ - |
From: Eduardo M. <ema...@bs...> - 2005-02-18 17:21:25
|
I redid my install from scratch. Trying to follow the FAQ for Method 4: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example I receive a command that mentions process-host-perfdata and process-service-perfdata already defined. I am installing Nagios 2.0b2 on RHAS3, using perfparse 0.105.5 I installed the following packages: MySQL-client-4.1.9-0.i386.rpm perl-CGI-2.81-89.10.i386.rpm MySQL-devel-4.1.9-0.i386.rpm perl-DBD-MySQL-2.9003-5.i386.rpm MySQL-server-4.1.9-0.i386.rpm perl-DBI-1.32-9.i386.rpm zlib-1.1.4-8.1 zlib-devel-1.1.4-8.1 libpng-1.2.2-25 libpng-devel-1.2.2-25 libjpeg-devel-6b-30 libjpeg-6b-30 libgd-devel-2.0.23-rhas3 libgd-2.0.23-rhas3 perfparse-0.105.5.tar.gz nagios-2.0b2.tar.gz nagios-plugins-1.4.tar.gz nrpe-2.0.tar.gz FOR NAGIOS: <SHELL>mkdir -p /opt/nagios/libexec <SHELL> mkdir -p /opt/nagios/bin <SHELL> mkdir -p /opt/nagios/etc <SHELL>./configure --prefix=/opt/nagios \ --with-template-objects \ --with-template-extinfo \ --with-init-dir=/etc/rc.d/init.d/ \ --with-default-status \ --with-default-comments \ --with-default-retention \ --with-default-downtime \ --with-default-perfdata \ --with-nagios-user=nagios \ --with-nagios-group=nagios \ --with-gd-inc=/opt/local/include \ --with-gd-lib=/opt/local/lib <SHELL>make all <SHELL>make fullinstall <SHELL>make install-config FOR NAGIOS PLUGINS: <SHELL>tar -zxvf nagios-plugins-1.4.tar.gz <SHELL>cd nagios-plugins-1.4 <SHELL>./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios <SHELL>make all <SHELL>make install FOR NRPE: <SHELL>tar -zxvf nrpe-2.0.tar.gz <SHELL>cd nrpe-2.0 <SHELL>./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios <SHELL>make all <SHELL>cp nrpe /opt/nagios/bin/ <SHELL>cp check_nrpe /opt/nagios/libexec/ <SHELL>touch /opt/nagios/etc/nrpe.cfg <SHELL>cat mynrpe.cfgsettings /opt/nagios/etc/nrpe.cfg <SHELL>echo "nrpe 5666/tcp #NRPE" >> /etc/services <SHELL>touch /etc/xinetd.d/nrpe <SHELL>cat mynrpesettings > /etc/xinetd.d/nrpe <SHELL>cd /opt/nagios/libexec <SHELL>service xinetd stop <SHELL>service xinetd start CHECKCONFIGURATION: ###############---------------############### define service{ name logmonitor_template ; service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information register 0 ; ITS JUST A TEMPLATE! normal_check_interval 1 retry_check_interval 1 contact_groups me is_volatile 0 check_period 24x7 max_check_attempts 5 notification_interval 0 notification_period 24x7 notifications_enabled 1 notification_options u,c,r } ###################Local Machine Checks###################### define service{ use logmonitor_template hostgroup Testbox service_description / check_command check_nrpe!check_root } define service { use logmonitor_template hostgroup Testbox service_description /boot check_command check_nrpe!check_boot } define service { use logmonitor_template hostgroup Testbox service_description /home check_command check_nrpe!check_home } define service { use logmonitor_template hostgroup Testbox service_description /opt check_command check_nrpe!check_opt } define service { use logmonitor_template hostgroup Testbox service_description /space check_command check_nrpe!check_space } define service{ use logmonitor_template hostgroup Testbox service_description /usr check_command check_nrpe!check_usr } define service{ use logmonitor_template hostgroup Testbox service_description /var check_command check_nrpe!check_var } define service{ use logmonitor_template hostgroup Testbox service_description memory check_command check_nrpe!check_mem.pl } define service{ use logmonitor_template hostgroup Testbox service_description swap check_command check_nrpe!check_swap } define service{ use logmonitor_template hostgroup Testbox service_description total_procs check_command check_nrpe!check_total_procs } define service{ use logmonitor_template hostgroup Testbox service_description zombie_procs check_command check_nrpe!check_zombie_procs } define service{ use logmonitor_template hostgroup Testbox service_description load check_command check_nrpe!check_load } define service{ use logmonitor_template hostgroup Testbox service_description users check_command check_nrpe!check_users } #####################Remote Server Checks########################## define service{ use logmonitor_template hostgroup Testbox service_description SSH check_command check_ssh } define service{ use logmonitor_template host_name MY-test service_description ping check_command check_ping } ###############---------------############### FOR PERFPARSE: <SHELL>./configure --prefix=/opt/nagios --with-imagedir=/opt/nagios/share/images/ --with-cgidir=/opt/nagios/sbin --with-http_image_path=/nagios/images --with-glib2=/usr/lib/glib-2.0 make make install-strip CONFIGURATION: chown -R nagios.nagios /opt/nagios/*/*perf* mysqladmin -u root -p create perfparse Enter password: <SHELL>cat perfparse-0.105.5/scripts/mysql_create.sql | /usr/bin/mysql -u root -p -D perfparse <SHELL>#vi /opt/nagios/etc/nagios.cfg process_performance_data = 1 cfg_file=/opt/nagios/etc/nagios_perfparse.cfg host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata <SHELL>#vi /opt/nagios/etc/resource.cfg $USER2$=/opt/nagios COMMENT OUT THE FOLLOWING: <SHELL>#vi /opt/nagios/etc/misccommands.cfg # 'process-host-perfdata' command definition #define command{ # command_name process-host-perfdata # command_line /usr/bin/printf "%b" "$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$OUTPUT$\t$PERFDATA$" >> /opt/nagios/var/host-perfdata.out # } # # # 'process-service-perfdata' command definition #define command{ # command_name process-service-perfdata # command_line /usr/bin/printf "%b" "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$LATENCY$\t$OUTPUT$\t$PERFDATA$" >> #/opt/nagios/var/service-perfdata.out # } # <SHELL>#vi /opt/nagios/etc/nagios_perfparse.cfg define command{ command_name process-service-perfdata command_line /opt/nagios/bin/perfparse_nagios_pipe_command.pl /opt/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } define command{ command_name process-host-perfdata command_line /opt/nagios/bin/perfparse_nagios_pipe_command.pl /opt/nagios/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" } <SHELL>cp /perfparse_nagios_pipe_command.pl /opt/nagios/bin/perfparse_nagios_pipe_command.pl <SHELL>#vi /opt/nagios/bin/perfparse_nagios_pipe_command.pl system ('/opt/nagios/bin/perfparse-log2mysql --serviceperf-log /opt/nagios/var/perfdata-service.log') <SHELL>#vi /opt/nagios/etc/perfparse.cfg ##################### Server_Port = 1976 Service_Log = "|/opt/nagios/var/perfdata-service.log" Service_Log_Position_Mark_Path = "/opt/nagios/var" Error_Log = "perfparse.log" Error_Log_Rotate = "Yes" Error_Log_Keep_N_Days = "7" Drop_File = "/opt/nagios/var" Drop_File_Rotate = "Yes" Drop_File_Keep_N_Days = "7" Daemonize = "yes" Daemon_Lock = "/opt/nagios/var/perfparsed.lock" Lock_File = "/var/lock/perfparse.lock" Show_Status_Bar = "no" Do_Report = "no" Default_user_permissions_Policy = "rw" Default_user_permissions_Host_groups = "rw" Default_user_permissions_Summary = "rw" Output_Log_File = "no" Output_Log_Filename = "/var/log/perfparse_output_log" Output_Log_Rotate = "yes" Output_Log_Keep_N_Days = "7" Use_Storage_Socket_Output = "no" Storage_Socket_Output_Host_Name = "localhost" Storage_Socket_Output_Port = "1974" Server_Port = "1976" Storage_Modules_Dir = "/usr/local/lib" Storage_Modules_Load = "mysql" Use_Storage_Mysql = "yes" No_Raw_Data = "yes" No_Bin_Data = "yes" DB_User = "root" DB_Name = "perfparse" DB_Pass = "new-password" DB_Host = "localhost" Dummy_Hostname = "localhost" <SHELL>touch /opt/nagios/var/perfdata-service.log <SHELL>chown nagios.nagios /opt/nagios/var/perfdata-service.log <SHELL>chmod 660 /opt/nagios/var/perfdata-service.log <SHELL>touch /opt/nagios/var/perfdata_log.perfdata-service.log.mark <SHELL>chown nagios.nagios perfdata_log.perfdata-service.log.mark <SHELL>chmod 600 perfdata_log.perfdata-service.log.mark RUN PERFPARSE DAEMON: /opt/nagios/bin/perfparsed -d --storage_modules_dir /opt/nagios/lib --storage_modules_load mysql SHOW CONFIGURATION: <SHELL>#/opt/nagios/bin/perfparsed --show_config PROBLEM: Starting nagios gives - ERROR COMMAND ALREADY DEFINED [1108746174] Nagios 2.0b2 starting... (PID=31797) [1108746174] LOG VERSION: 2.0 [1108746174] Error: Command 'process-host-perfdata' has already been defined [1108746174] Error: Could not register command (config file '/opt/nagios/etc/nagios_perfparse.cfg', starting on line 19) [1108746174] Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=31797) <SHELL>/opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg Error: Command 'process-host-perfdata' has already been defined 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) <SHELL>grep -R process-host-perfdata /opt/nagios/* /opt/nagios/etc/nagios_perfparse.cfg: command_name process-host-perfdata /opt/nagios/etc/misccommands.cfg:# 'process-host-perfdata' command definition /opt/nagios/etc/misccommands.cfg:# command_name process-host-perfdata /opt/nagios/etc/nagios.cfg:host_perfdata_command = process-host-perfdata I've double checked the files to see if the # signs were ok. I've looked just about everywhere for another command that specifies process-host-perfdata or process-service-data. What am I missing or did I do something wrong? <SHELL> less /opt/nagios/etc/perfparse.log.20050218.log 2005/02/18 07:36:58 [ storage.c:95 18449 ] storage_mysql module successfully loaded I am using this in a controlled test environment and would like to get it working for use in our real environment. Please please please help, -Eduardo <SHELL>/opt/nagios/bin/perfparsed --show_config > /var/tmp/perfparse.cfg Perfparsed [options] # File where Perfparse logs messages # Error_Log = "string" Error_Log = "perfparse.log" # Rotate Perfparse log files # Error_Log_Rotate = "Y/N" Error_Log_Rotate = "Yes" # Keep N days of error log. Compress recent logs and remove too old ones # Error_Log_Keep_N_Days = "value" Error_Log_Keep_N_Days = "7" # When perfparse cannot parse a line, it drops it to that file # Drop_File = "string" Drop_File = "/opt/nagios/var" # # Drop_File_Rotate = "Y/N" Drop_File_Rotate = "Yes" # Keep N days of drop file log. Compress recent logs and remove too old ones # Drop_File_Keep_N_Days = "value" Drop_File_Keep_N_Days = "7" # Port for perfparsed server # Put 0 or "" to disable the server # Server_Port = "value" Server_Port = "1976" # Log source from nagios (or other tools) that perfparse will scan # Authorized values: a file name, '-' for stdin, '|' for a fifo and '>' for a host:port socket # For sockets, a command 'history' will be sent before retreiving the data # Service_Log = "string" Service_Log = "|/opt/nagios/var/perfdata-service.log" # Save the read position in the nagios log file ? If yes, perfparse will start from that position instead of from the beginning # Service_Log_Save_Position = "Y/N" Service_Log_Save_Position = "yes" # Path for files containing the read position for nagios log files # Service_Log_Position_Mark_Path = "string" Service_Log_Position_Mark_Path = "/opt/nagios/var" # Lock file for perfparsed # Daemon_Lock = "string" Daemon_Lock = "/opt/nagios/var/perfparsed.lock" # Run perfparsed as a daemon # Daemonize = "Y/N" Daemonize = "yes" # Perform some periodic cleanup every day # Periodic_Cleanup = "Y/N" Periodic_Cleanup = "yes" # Lock file for perfparsed periodic cleanup process # Periodic_Cleanup_Lock = "string" Periodic_Cleanup_Lock = "/opt/nagios/var/perfparsed_periodic_cleanup.lock" # Perform some periodic cleanup every day at HHMM # Periodic_Cleanup_Hour = "value" Periodic_Cleanup_Hour = "0230" # Dummy hostname if gethostname() does not work # Dummy_Hostname = "string" Dummy_Hostname = "localhost" # Don't store raw data # No_Raw_Data = "Y/N" No_Raw_Data = "yes" # Don't store bin data # No_Bin_Data = "Y/N" No_Bin_Data = "yes" # Path where storage modules are # Storage_Modules_Dir = "string" Storage_Modules_Dir = "/usr/local/lib" # Modules to load (Coma separated values) # Storage_Modules_Load = "string" Storage_Modules_Load = "mysql" # File to contain Storage Modules Status # Storage_Modules_Status_File = "string" Storage_Modules_Status_File = "/opt/nagios/var/storage_modules.status" # Storage Module : mysql # ============================== # Database user # DB_User = "string" DB_User = "root" # Database password # DB_Pass = "string" DB_Pass = "new-password" # Database name # DB_Name = "string" DB_Name = "perfparse" # Database hostname # DB_Host = "string" DB_Host = "localhost" |
From: Steve G. <st...@ls...> - 2005-02-18 16:59:21
|
On Fri, Feb 18, 2005 at 11:29:07AM +0100, Yves wrote: > If ping is not just a test but a real need, check at nagiosplug.sf.net > if you have the latest version of the plugins. The 1.4 release version of check_ping doesn't do performance data. It's a little sad, because the big claim of 1.4 is perfdata support, and of course the first plugin everyone tries is check_ping, and ta-da! it doesn't do it. This caused me some alarm on my initial testing of 1.4. The other plagins I've tried *do* do perfdata. Steve -- "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net) |
From: Jessica H. <Je...@gm...> - 2005-02-18 10:49:57
|
Yes I found out that it is because of the new version of check_ping. In our comany we use the new plugins but with the old check_ping... So I need the plugin with the other output with the '|' When anybody has an idea or an fixed plugin i'm very very happy. I've looked to the plugin to write it in the right way, but it is not so easy if you can't something like perl, c or c++. When I've found a plugin i let you know. But when anybody can help, do this :-) > > http://wiki.perfparse.org/tiki-view_faq.php?faqId=6#q7 > > > > And I tested my plugin on the command mode: > > > > nagios@rzvlabwks:/usr/local/nagor/nagios/libexec> ./check_ping -H > > 172.16.1.114 -w 100.0,20% -c 500.0,60% > > PING OK - Packet loss = 0%, RTA = 0.32 ms > > > > And this doesn't look like the right output. > > You are right. > The bug is in the plugin, not in nagios or perfparse. > If ping is not just a test but a real need, check at nagiosplug.sf.net if > you have the > latest version of the plugins. > If yes, the only thing I can say is : edit it and fix the bug yourself. > Maybe somebody > here can help you to do it (not me... lack of time) > > If ping was just a test, forget about ping and try a plugin you need : > does it return > perfdata (with the pipe '|' character in the output) ? > > > PS to Ben or Yves: After it all works here I write a conclusion and in > which > > way I've done this. Should I mail this to you? I can mail it to you in > > german and in my broken english... :-) > > I answer only for me : when all works, a mail should not help a lot. I'm > more pleased > that you try and try again to use perfparse and send intelligent mails > when you have > problems. I'ts like a cake : I prefer to see you having pleasure to eat > the cake than to > know that you finished it :) > If you want to contribute, I see 2 ways to do it at least : > - write down all the questions you asked us or that you asked yourself, > write the > answer, and put them on the wiki.perfparse.org in the FAQ section. This > way, it can help > others in the future. > - write a documentation on how to install perfparse (and nagios too if you > want). I'm > sure that Germans will be happy to have such a documentation in their > language, not in > English. You can rewrite it in English too if you think you can do it : > our > documentation is so bad now :) > > I suggest that you contribute because if somebody had done it before, > maybe you would > read it and install perfparse faster :) > > 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. -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Yves <yme...@pe...> - 2005-02-18 10:29:13
|
> http://wiki.perfparse.org/tiki-view_faq.php?faqId=3D6#q7 > > And I tested my plugin on the command mode: > > nagios@rzvlabwks:/usr/local/nagor/nagios/libexec> ./check_ping -H > 172.16.1.114 -w 100.0,20% -c 500.0,60% > PING OK - Packet loss =3D 0%, RTA =3D 0.32 ms > > And this doesn't look like the right output. You are right. The bug is in the plugin, not in nagios or perfparse. If ping is not just a test but a real need, check at nagiosplug.sf.net if= you have the latest version of the plugins. If yes, the only thing I can say is : edit it and fix the bug yourself. M= aybe somebody here can help you to do it (not me... lack of time) If ping was just a test, forget about ping and try a plugin you need : do= es it return perfdata (with the pipe '|' character in the output) ? > PS to Ben or Yves: After it all works here I write a conclusion and in = which > way I've done this. Should I mail this to you? I can mail it to you in > german and in my broken english... :-) I answer only for me : when all works, a mail should not help a lot. I'm = more pleased that you try and try again to use perfparse and send intelligent mails wh= en you have problems. I'ts like a cake : I prefer to see you having pleasure to eat t= he cake than to know that you finished it :) If you want to contribute, I see 2 ways to do it at least : - write down all the questions you asked us or that you asked yourself, w= rite the answer, and put them on the wiki.perfparse.org in the FAQ section. This w= ay, it can help others in the future. - write a documentation on how to install perfparse (and nagios too if yo= u want). I'm sure that Germans will be happy to have such a documentation in their lan= guage, not in English. You can rewrite it in English too if you think you can do it : o= ur documentation is so bad now :) I suggest that you contribute because if somebody had done it before, may= be you would read it and install perfparse faster :) 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://www.perfparse.org/ - |
From: <Seb...@ku...> - 2005-02-18 10:28:06
|
Any check output should look like this: check_nt -H 172.21.7.2 -p 1248 -v CPULOAD -l 70,40,80 CPU Load 0% (70 min average) | '70 min avg Load'=3D0%;40;80;0;100 There should be a pipe at the end, it's the information after | that is = to be sent to perfparse. Are you sure you have downloaded and installed = all beta plugins? You need them to support performance data. There is a better plugin than check_ping which is called check_icmp. = We've had alot of discussions regarding check_icmp vs check_ping on the = nagios users maillist. If you could send me a copy of your conclusion that would be wonderful, = I have had some of your problems but haven't been able to resolve all of = them yet. Thanks in advance! ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB seb...@ku... -----------------------------------------------=20 > -----Original Message----- > From: Jessica Holle [mailto:Je...@gm...]=20 > Sent: den 18 februari 2005 11:05 > To: per...@li... > Subject: [Perfparse-users] Problems with MySQL and documentations >=20 > I have some more problem, or only one... we will see and I=20 > hope aou answer quick... :-) >=20 >=20 > My SQL database work fine now :-) > I can say I'm be proud of myself >=20 > But now I have a problems with the bin data...=20 >=20 > My database looks so: >=20 > mysql> select * from > perfdata_service_raw; > +----+-----------+---------------------+---------------------+ > -------------------------------------------+---------------+ > | id | host_name | service_description | ctime =20 > | txt_data =20 > | nagios_status > | > +----+-----------+---------------------+---------------------+ > -------------------------------------------+---------------+ > | 1 | jholle | Ping | 2005-02-18 10:23:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 2 | jholle | Ping | 2005-02-18 10:24:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.29 ms | 0 | > | 3 | jholle | Ping | 2005-02-18 10:25:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 4 | jholle | Ping | 2005-02-18 10:26:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 5 | jholle | Ping | 2005-02-18 10:27:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.34 ms | 0 | > | 6 | jholle | Ping | 2005-02-18 10:28:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.35 ms | 0 | > | 7 | jholle | Ping | 2005-02-18 10:29:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.38 ms | 0 | > | 8 | jholle | Ping | 2005-02-18 10:30:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.31 ms | 0 | > | 9 | jholle | Ping | 2005-02-18 10:31:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 10 | jholle | Ping | 2005-02-18 10:32:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 11 | jholle | Ping | 2005-02-18 10:33:37=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.29 ms | 0 | > | 12 | jholle | Ping | 2005-02-18 10:46:15=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.30 ms | 0 | > | 13 | jholle | Ping | 2005-02-18 10:48:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.30 ms | 0 | > | 14 | jholle | Ping | 2005-02-18 10:49:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.34 ms | 0 | > | 15 | jholle | Ping | 2005-02-18 10:50:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.31 ms | 0 | > | 16 | jholle | Ping | 2005-02-18 10:51:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.29 ms | 0 | > | 17 | jholle | Ping | 2005-02-18 10:52:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.33 ms | 0 | > | 18 | jholle | Ping | 2005-02-18 10:53:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.50 ms | 0 | > | 19 | jholle | Ping | 2005-02-18 10:54:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.43 ms | 0 | > | 20 | jholle | Ping | 2005-02-18 10:55:03=20 > | PING OK - > Packet loss =3D 0%, RTA =3D 0.34 ms | 0 > | > +----+-----------+---------------------+---------------------+ > -------------------------------------------+---------------+ > 20 rows in set (0.00 sec) >=20 > mysql> select * from perfdata_service_bin; > Empty set (0.00 sec) >=20 >=20 > I the raw data section is all of the right data but in the=20 > bin data section is no data. I thing that no graphs can be=20 > established because of this.=20 >=20 > I've read the information from Yve about this site: >=20 > http://wiki.perfparse.org/tiki-view_faq.php?faqId=3D6#q7 >=20 > And I tested my plugin on the command mode: >=20 > nagios@rzvlabwks:/usr/local/nagor/nagios/libexec> ./check_ping -H > 172.16.1.114 -w 100.0,20% -c 500.0,60% > PING OK - Packet loss =3D 0%, RTA =3D 0.32 ms >=20 >=20 > And this doesn't look like the right output. >=20 > # PROCESS PERFORMANCE DATA OPTION > # This determines whether or not Nagios will process=20 > performance # data returned from service and host checks. If=20 > this option is # enabled, host performance data will be=20 > processed using the # host_perfdata_command (defined below)=20 > and service performance # data will be processed using the=20 > service_perfdata_command (also # defined below). Read the=20 > HTML docs for more information on # performance data. > # Values: 1 =3D process performance data, 0 =3D do not process=20 > performance data >=20 > process_performance_data=3D1 >=20 >=20 >=20 > # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS #=20 > These commands are run after every host and service check is=20 > # performed. These commands are executed only if the #=20 > enable_performance_data option (above) is set to 1. The=20 > command # argument is the short name of a command definition=20 > that you # define in your host configuration file. Read the=20 > HTML docs for # more information on performance data. >=20 > host_perfdata_command=3Dprocess-host-perfdata > service_perfdata_command=3Dprocess-service-perfdata >=20 >=20 > This is in my nagios.cfg set.=20 >=20 > And my nagios web interface says: > Performance Data Being Processed? Yes >=20 >=20 > But I don't know how I get the bin data... >=20 > Please help me.... >=20 > PS to Ben or Yves: After it all works here I write a=20 > conclusion and in which way I've done this. Should I mail=20 > this to you? I can mail it to you in german and in my broken=20 > english... :-) >=20 > -- > DSL Komplett von GMX +++ Superg=FCnstig und stressfrei einsteigen! > AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 >=20 |
From: Ben C. <bcl...@pe...> - 2005-02-18 10:16:50
|
Jessica, There are a few reasons for this. It may be best to start from the beginning. Can you run a check plugin from the command line and see what you get? I hope you get something like: $ libexec/check_load -w 2,2,2 -c 3,3,3 OK - load average: 1.59, 1.33, 1.12|load1=1.59;2.00;3.00;0.00 load5=1.332.00;3.00;0.00 load15=1.12;2.00;3.00;0.00 You have another problem. If you get: $ libexec/check_load -w 2,2,2 -c 3,3,3 OK - load average: 1.59, 1.33, 1.12 You will have to download and install the latest plugins. Please let us know, Ben Jessica Holle wrote: > I have some more problem, or only one... we will see and I hope aou answer > quick... :-) > > > My SQL database work fine now :-) > I can say I'm be proud of myself > > But now I have a problems with the bin data... > > My database looks so: > > mysql> select * from > perfdata_service_raw; > +----+-----------+---------------------+---------------------+-------------------------------------------+---------------+ > | id | host_name | service_description | ctime | txt_data > | nagios_status > | > +----+-----------+---------------------+---------------------+-------------------------------------------+---------------+ > | 1 | jholle | Ping | 2005-02-18 10:23:37 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 2 | jholle | Ping | 2005-02-18 10:24:37 | PING OK - > Packet loss = 0%, RTA = 0.29 ms | 0 | > | 3 | jholle | Ping | 2005-02-18 10:25:37 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 4 | jholle | Ping | 2005-02-18 10:26:37 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 5 | jholle | Ping | 2005-02-18 10:27:37 | PING OK - > Packet loss = 0%, RTA = 0.34 ms | 0 | > | 6 | jholle | Ping | 2005-02-18 10:28:37 | PING OK - > Packet loss = 0%, RTA = 0.35 ms | 0 | > | 7 | jholle | Ping | 2005-02-18 10:29:37 | PING OK - > Packet loss = 0%, RTA = 0.38 ms | 0 | > | 8 | jholle | Ping | 2005-02-18 10:30:37 | PING OK - > Packet loss = 0%, RTA = 0.31 ms | 0 | > | 9 | jholle | Ping | 2005-02-18 10:31:37 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 10 | jholle | Ping | 2005-02-18 10:32:37 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 11 | jholle | Ping | 2005-02-18 10:33:37 | PING OK - > Packet loss = 0%, RTA = 0.29 ms | 0 | > | 12 | jholle | Ping | 2005-02-18 10:46:15 | PING OK - > Packet loss = 0%, RTA = 0.30 ms | 0 | > | 13 | jholle | Ping | 2005-02-18 10:48:03 | PING OK - > Packet loss = 0%, RTA = 0.30 ms | 0 | > | 14 | jholle | Ping | 2005-02-18 10:49:03 | PING OK - > Packet loss = 0%, RTA = 0.34 ms | 0 | > | 15 | jholle | Ping | 2005-02-18 10:50:03 | PING OK - > Packet loss = 0%, RTA = 0.31 ms | 0 | > | 16 | jholle | Ping | 2005-02-18 10:51:03 | PING OK - > Packet loss = 0%, RTA = 0.29 ms | 0 | > | 17 | jholle | Ping | 2005-02-18 10:52:03 | PING OK - > Packet loss = 0%, RTA = 0.33 ms | 0 | > | 18 | jholle | Ping | 2005-02-18 10:53:03 | PING OK - > Packet loss = 0%, RTA = 0.50 ms | 0 | > | 19 | jholle | Ping | 2005-02-18 10:54:03 | PING OK - > Packet loss = 0%, RTA = 0.43 ms | 0 | > | 20 | jholle | Ping | 2005-02-18 10:55:03 | PING OK - > Packet loss = 0%, RTA = 0.34 ms | 0 > | > +----+-----------+---------------------+---------------------+-------------------------------------------+---------------+ > 20 rows in set (0.00 sec) > > mysql> select * from perfdata_service_bin; > Empty set (0.00 sec) > > > I the raw data section is all of the right data but in the bin data section > is no data. I thing that no graphs can be established because of this. > > I've read the information from Yve about this site: > > http://wiki.perfparse.org/tiki-view_faq.php?faqId=6#q7 > > And I tested my plugin on the command mode: > > nagios@rzvlabwks:/usr/local/nagor/nagios/libexec> ./check_ping -H > 172.16.1.114 -w 100.0,20% -c 500.0,60% > PING OK - Packet loss = 0%, RTA = 0.32 ms > > > And this doesn't look like the right output. > > # PROCESS PERFORMANCE DATA OPTION > # This determines whether or not Nagios will process performance > # data returned from service and host checks. If this option is > # enabled, host performance data will be processed using the > # host_perfdata_command (defined below) and service performance > # data will be processed using the service_perfdata_command (also > # defined below). Read the HTML docs for more information on > # performance data. > # Values: 1 = process performance data, 0 = do not process performance data > > process_performance_data=1 > > > > # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS > # These commands are run after every host and service check is > # performed. These commands are executed only if the > # enable_performance_data option (above) is set to 1. The command > # argument is the short name of a command definition that you > # define in your host configuration file. Read the HTML docs for > # more information on performance data. > > host_perfdata_command=process-host-perfdata > service_perfdata_command=process-service-perfdata > > > This is in my nagios.cfg set. > > And my nagios web interface says: > Performance Data Being Processed? Yes > > > But I don't know how I get the bin data... > > Please help me.... > > PS to Ben or Yves: After it all works here I write a conclusion and in which > way I've done this. Should I mail this to you? I can mail it to you in > german and in my broken english... :-) > -- Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |