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: Jessica H. <Je...@gm...> - 2005-02-18 10:05:14
|
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... :-) -- 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 09:23:11
|
Daniel, I do not have a lot of time today to answer... You have 2 problems : mysql : you are probably using a broken mysql package. The only solution = I know is to download the source of mysql and compile/install it yourself. I will writ= e something on the wiki about that as soon as possible. g_path_get_basename : edit the code and replace it with g_basename. This = is a quick fix. A better fix is being prepared for next version. Yves > Ben, > > finally I've found some time to get back to my PerfParse problem and tr= y to > use the current version... > > Ben Clewett wrote on Friday, February 04, 2005 6:15 PM: > >> Daniel, >> >> Version 0.105.5 has been released containing this fix. This contains = no >> other changes from previous versions. >> >> If you had the time to check this works, this would be useful. >> >> Thanks for letting us know about the problem, >> >> Ben. > > > I've tried 0.105.5 and 0.105.6, but both didn't work to let me successf= ully > use PerfParse. > > After doing the following extention in libpp_common/libpp_common.h: > > > diff -u ./libpp_common/libpp_common.h ./libpp_common/libpp_common.h.ori= g > --- ./libpp_common/libpp_common.h 2005-02-17 09:46:05.293086000 += 0100 > +++ ./libpp_common/libpp_common.h.orig 2005-02-17 09:46:00.287824000 += 0100 > @@ -139,7 +139,6 @@ > #ifdef USE_GLIB12 > #define g_string_hash(x) (g_str_hash((x)->str)) > #define g_path_get_dirname g_dirname > -#define g_path_get_basename g_basename > #define g_string_printf g_string_sprintf > #define g_string_append_printf g_string_sprintfa > #endif > > > I've tried to build PerfParse with shared libraries: > > > ./configure --prefix=3D/usr/local/nagios --with-glib12=3D/usr/local > --with-libiconv-prefix=3D/usr/local/lib --with-included-gettext > --with-db=3Dmysql > > ***************************************************** > Configuration options: > > Prefix: /usr/local/nagios > Perfparse: Selected > DB tools: Selected > CGI: Selected > > HTTP path for images: /nagios/images > Installation path for images: ${datadir}/perfparse/images > Installation path for CGIs: ${exec_prefix}/sbin > Using glib1.2: 1.2.10 > Database support: mysql > > ***************************************************** > > make > > But, make still throws the following errors: > > make all-recursive > make[1]: Entering directory > `/local/root/tmp/nagios/addons/perfparse-0.105.4' > Making all in intl > [...] > make[2]: Entering directory > `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules' > /bin/bash ../libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -Wall -o > libpp_storage_mysql.la -rpath /usr/local/nagios/lib -module libpp_stora= ge > _mysql_la-storage_mysql.lo libpp_storage_mysql_la-libstorage.lo > -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -R/usr/openwin/= lib > -L/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib > -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/= local > /mysql/lib/mysql -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -l= m > -L../libpp_mysql -lpp_mysql -ldl -lnsl -lm -lsocket > gcc -shared -Wl,-h -Wl,libpp_storage_mysql.so.0 -o > .libs/libpp_storage_mysql.so.0.0.0 > .libs/libpp_storage_mysql_la-storage_mysql.o .libs/ > libpp_storage_mysql_la-libstorage.o -z allextract > /usr/local/mysql/lib/mysql/libmysqlclient.a -z defaultextract > -R/local/root/tmp/nagios/ > addons/perfparse-0.105.6/libpp_mysql/.libs -R/usr/local/nagios/lib > -R/usr/local/lib -R/usr/lib -R/usr/openwin/lib -R/usr/local/ssl/lib -R/ > usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -L/usr/lib -L/usr/openwin= /lib > -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/lo > cal/mysql/lib/mysql -lposix4 -lcrypt -lgen > -L/local/root/tmp/nagios/addons/perfparse-0.105.6/libpp_mysql > /local/root/tmp/nagios/addons/per > fparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so -ldl -lnsl -lm -lsocket= -lc > Text relocation remains referenced > against symbol offset in file > <unknown> 0x5d0 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5d4 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5d8 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5dc > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5e0 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5e4 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > <unknown> 0x5e8 > /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) > [... ~3650 lines later ...] > __udiv64 0xd40 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > __udiv64 0xfd4 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > __udiv64 0x6c > /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) > __udiv64 0x1d8 > /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) > __mul64 0xd4c > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > __mul64 0xfe0 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > __mul64 0x80 > /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) > strtoll 0xcb8 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > strtoll 0xe8c > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > vfprintf 0x20 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) > vfprintf 0x8c8 > /usr/local/mysql/lib/mysql/libmysqlclient.a(dbug.o) > fstat64 0x320 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) > fstat64 0x324 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) > opendir 0x14 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) > stat64 0x25c > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) > readdir64 0x84 > /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) > ld: fatal: relocations remain against allocatable but non-writable sect= ions > collect2: ld returned 1 exit status > make[2]: *** [libpp_storage_mysql.la] Error 1 > make[2]: Leaving directory > `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/local/root/tmp/nagios/addons/perfparse-0.1= 05.6' > make: *** [all] Error 2 > > > I've also tried to compile it without using shared libraries, but it al= so > didn't allow to use PerfParse successfully: > > ./configure --prefix=3D/usr/local/nagios --with-glib12=3D/usr/local > --with-libiconv-prefix=3D/usr/local/lib --with-included-gettext > --with-db=3Dmysql --disable-shared > make > [ no errors yet :-)] > make install > > Unfortunately if I try to start perfparsed it produces the following er= ror > :-( > > perfparse.log.YYYYMMDD.log: > 2005/02/17 11:53:03 [ storage.c:61 14589 ] storage_mysql module fa= iled > to load (msg=3D'ld.so.1: perfparsed: fatal: > /usr/local/nagios/lib/libpp_storage_mysql.so: unknown file type') > > Did I make something wrong? > Why perfparsed tries to load an shared object if it has been configured= with > --disable-shared and compiled without errors? > > I'd be glad if you could help me. > > Best regards, > > Daniel > > > > > ------------------------------------------------------- > 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_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > 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://www.perfparse.org/ - |
From: Cisowski, D. <dan...@ed...> - 2005-02-17 11:49:14
|
Ben, finally I've found some time to get back to my PerfParse problem and try to use the current version... Ben Clewett wrote on Friday, February 04, 2005 6:15 PM: > Daniel, > > Version 0.105.5 has been released containing this fix. This contains no > other changes from previous versions. > > If you had the time to check this works, this would be useful. > > Thanks for letting us know about the problem, > > Ben. I've tried 0.105.5 and 0.105.6, but both didn't work to let me successfully use PerfParse. After doing the following extention in libpp_common/libpp_common.h: diff -u ./libpp_common/libpp_common.h ./libpp_common/libpp_common.h.orig --- ./libpp_common/libpp_common.h 2005-02-17 09:46:05.293086000 +0100 +++ ./libpp_common/libpp_common.h.orig 2005-02-17 09:46:00.287824000 +0100 @@ -139,7 +139,6 @@ #ifdef USE_GLIB12 #define g_string_hash(x) (g_str_hash((x)->str)) #define g_path_get_dirname g_dirname -#define g_path_get_basename g_basename #define g_string_printf g_string_sprintf #define g_string_append_printf g_string_sprintfa #endif I've tried to build PerfParse with shared libraries: ./configure --prefix=/usr/local/nagios --with-glib12=/usr/local --with-libiconv-prefix=/usr/local/lib --with-included-gettext --with-db=mysql ***************************************************** Configuration options: Prefix: /usr/local/nagios Perfparse: Selected DB tools: Selected CGI: Selected HTTP path for images: /nagios/images Installation path for images: ${datadir}/perfparse/images Installation path for CGIs: ${exec_prefix}/sbin Using glib1.2: 1.2.10 Database support: mysql ***************************************************** make But, make still throws the following errors: make all-recursive make[1]: Entering directory `/local/root/tmp/nagios/addons/perfparse-0.105.4' Making all in intl [...] make[2]: Entering directory `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules' /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libpp_storage_mysql.la -rpath /usr/local/nagios/lib -module libpp_storage _mysql_la-storage_mysql.lo libpp_storage_mysql_la-libstorage.lo -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -R/usr/openwin/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/local /mysql/lib/mysql -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -L../libpp_mysql -lpp_mysql -ldl -lnsl -lm -lsocket gcc -shared -Wl,-h -Wl,libpp_storage_mysql.so.0 -o .libs/libpp_storage_mysql.so.0.0.0 .libs/libpp_storage_mysql_la-storage_mysql.o .libs/ libpp_storage_mysql_la-libstorage.o -z allextract /usr/local/mysql/lib/mysql/libmysqlclient.a -z defaultextract -R/local/root/tmp/nagios/ addons/perfparse-0.105.6/libpp_mysql/.libs -R/usr/local/nagios/lib -R/usr/local/lib -R/usr/lib -R/usr/openwin/lib -R/usr/local/ssl/lib -R/ usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/lo cal/mysql/lib/mysql -lposix4 -lcrypt -lgen -L/local/root/tmp/nagios/addons/perfparse-0.105.6/libpp_mysql /local/root/tmp/nagios/addons/per fparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so -ldl -lnsl -lm -lsocket -lc Text relocation remains referenced against symbol offset in file <unknown> 0x5d0 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5d4 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5d8 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5dc /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5e0 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5e4 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5e8 /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o) [... ~3650 lines later ...] __udiv64 0xd40 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) __udiv64 0xfd4 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) __udiv64 0x6c /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) __udiv64 0x1d8 /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) __mul64 0xd4c /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) __mul64 0xfe0 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) __mul64 0x80 /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o) strtoll 0xcb8 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) strtoll 0xe8c /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) vfprintf 0x20 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o) vfprintf 0x8c8 /usr/local/mysql/lib/mysql/libmysqlclient.a(dbug.o) fstat64 0x320 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) fstat64 0x324 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) opendir 0x14 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) stat64 0x25c /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) readdir64 0x84 /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make[2]: *** [libpp_storage_mysql.la] Error 1 make[2]: Leaving directory `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/local/root/tmp/nagios/addons/perfparse-0.105.6' make: *** [all] Error 2 I've also tried to compile it without using shared libraries, but it also didn't allow to use PerfParse successfully: ./configure --prefix=/usr/local/nagios --with-glib12=/usr/local --with-libiconv-prefix=/usr/local/lib --with-included-gettext --with-db=mysql --disable-shared make [ no errors yet :-)] make install Unfortunately if I try to start perfparsed it produces the following error :-( perfparse.log.YYYYMMDD.log: 2005/02/17 11:53:03 [ storage.c:61 14589 ] storage_mysql module failed to load (msg='ld.so.1: perfparsed: fatal: /usr/local/nagios/lib/libpp_storage_mysql.so: unknown file type') Did I make something wrong? Why perfparsed tries to load an shared object if it has been configured with --disable-shared and compiled without errors? I'd be glad if you could help me. Best regards, Daniel |
From: Yves <yme...@pe...> - 2005-02-17 11:05:03
|
From a mail from Ben on per...@li...... Could anybody test the following, and also write a procedure to save/rest= ore data from a mysql (and postgresql for those who use PG) database server ? For MySQL-4.0.X or MySQL-4.1.X. Both would even be better :) We would be pleased to put that document on the Wiki.perfparse.org. Please tell us if you can do this for the perfparse project, Yves > > Comment about MySQL 4.1.x > > Not tested, but I have no reason to believe PP will not work on this > version. There are no compatibility issues with the code we run. > > However upgrading from 4.0.x and older, to 4.1.x is another questions. > If you want to do this, you will have to dump all your data, upgrade > MySQL, then reimport your data. > > If you dump, please remember to add to the top of the dump script: > > SET FOREIGN_KEY_CHECKS =3D 0; > > And at the bottom: > > SET FOREIGN_KEY_CHECKS =3D 1; > > I hope this is of use to somebody. > > Ben > --=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: Yves <yme...@pe...> - 2005-02-17 09:09:15
|
Hello, > I've find no answers to my problems, but some things are very strange..= . > I start nagios with > /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg > > than I get this output on the command line : > > erfparse-log2* [options] [...] > Missing value for option --serviceperf-log There is probably a typing mistake where you defined perfparse in nagios = config files. Please check them. > /usr/local/nagios/var/perfdata-service.log: line 1: 1108629383: command= not > found Some other explanation : you defined something like perfparse --serviceperf-log /usr/local/nagios/var/perfdata-service.log And nagios, for some reason that I don't know, wants to run "perfparse --= serviceperf-log " and then "/usr/local/nagios/var/perfdata-service.log" Check if you did not type some hidden character somewhere (retype everyth= ing by hand, no copy/paste and this sometimes helps) > My perfdata-service.log: > 1108629443 jholle Ping PING OK - Packet loss =3D 0%, RTA =3D 0= .36 ms > OK If you only have that, perfparse will read it but not give you any perfor= mance data. Performance data follow a | character. Have a look at http://wiki.perfparse.org/tiki-view_faq.php?faqId=3D6#q7 http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN185 to understand. > So this "command" is the timestamp. > > When I try > > agios@rzvlabwks:/usr/local/nagios/bin> perfparse-log2any --help > Perfparse-log2* [Optionen] [...] > 2005/02/17 09:39:09 [perfparse-log2any.c:160 22750 ] No module was lo= aded. > Check the Storage_Module_Load config option. You don't have any Storage_Module_Load item in your config file. Please run perfparse-log2any --show_config, edit the output and put it in= your config file. The output of all perfparse tools with --show_config is supposed to be co= mpatible with the config file and has been made in such a way that it should always be = up to date. This is not the case with the sample config files that we forget to updat= e. Check the faqs (http://wiki.perfparse.org/tiki-list_faqs.php) on how to d= o it. > And in perfparse.log.20050217.log: > > 2005/02/17 08:49:50 [perfparse-log2any.c:155 21654 ] FIFO ist fü= r > PerfParse nicht als Quelle autorisiert > 2005/02/17 08:52:06 [perfparse-log2any.c:155 21714 ] FIFO ist fü= r > PerfParse nicht als Quelle autorisiert > 2005/02/17 09:27:44 [perfparse-log2any.c:155 22482 ] FIFO ist fü= r > PerfParse nicht als Quelle autorisiert > 2005/02/17 09:31:09 [perfparse-log2any.c:155 22584 ] FIFO ist fü= r > PerfParse nicht als Quelle autorisiert > 2005/02/17 09:39:06 [perfparse-log2any.c:155 22744 ] FIFO ist fü= r > PerfParse nicht als Quelle autorisiert This is a message to all who run perfparse in another language than Engli= sh : please run perfparse in English when you want to copy/paste things, or translate the= m to us. Here, I recognize the word "FIFO" and I guess that it complains because y= ou ran perfparsed and the file you defined for the perfdata already exists as a = file. It should either exist as a FIFO or not exist. It it does not exists, perfparse doe= s not complain and creates it. > I don't know what all this mean but i thing that no storage module > /storage_mysql.c) is loaded, but I don't know. Probably right. Storage_Module_Load =3D "mysql" for example ? There is another option for= the directory where to find storage modules. Check the output of perfparsed --show_conf= ig :) 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: Jessica H. <Je...@gm...> - 2005-02-17 08:44:22
|
Hi, I've find no answers to my problems, but some things are very strange... I start nagios with /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg than I get this output on the command line : erfparse-log2* [options] -e, --error-log <string> : Perfparse log --drop-file <string> : File for dropped lines -l, --serviceperf-log <string> : Input log source (from nagios or perfparsed) --history_start_tm <integer> : Start timestamp for history retreiving --history_end_tm <integer> : End timestamp for history retreiving -s, --status-bar : Show status bar -r, --report : Print a report --no-raw-data : Don't store raw data --no-bin-data : Don't store bin data --storage_modules_dir <string> : Path where storage modules are --storage_modules_load <string> : Modules to load (CSV) --show_config : Show config Missing value for option --serviceperf-log /usr/local/nagios/var/perfdata-service.log: line 1: 1108629383: command not found My perfdata-service.log: 1108629443 jholle Ping PING OK - Packet loss = 0%, RTA = 0.36 ms OK So this "command" is the timestamp. When I try agios@rzvlabwks:/usr/local/nagios/bin> perfparse-log2any --help Perfparse-log2* [Optionen] -e, --error-log <string> : Perfparse log --drop-file <string> : File for dropped lines -l, --serviceperf-log <string> : Input log source (from nagios or perfparsed) --history_start_tm <integer> : Start timestamp for history retreiving --history_end_tm <integer> : End timestamp for history retreiving -s, --status-bar : Show status bar -r, --report : Print a report --no-raw-data : Don't store raw data --no-bin-data : Don't store bin data --storage_modules_dir <string> : Path where storage modules are --storage_modules_load <string> : Modules to load (CSV) --show_config : Show config 2005/02/17 09:39:09 [perfparse-log2any.c:160 22750 ] No module was loaded. Check the Storage_Module_Load config option. My perfdata.cfg: nagios@rzvlabwks:/usr/local/nagios/etc> cat perfparse.cfg # WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING # # When you submit a bug, please run perfparse-log2* or perfparsed or whatever # the binary is, with --show_config option (and your other usual options) # instead of sending this file. # Example : # perfparsed -c ../etc/perfparse.cfg --show_config # # Send this file only when you cannot output anything from your tool. # # WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING # # Config file. # # In all cases, variables used as: # # 1. From program default defined by configure. # # 2. From this file. # # 3. From variables passed to programs. # # Server managment (perfparsed only) : # ==================================== Server_Port = 1976 # Parser managment : # ================== # Performance Data Log Files ("-" for stdin) : Service_Log = "|/usr/local/nagios/var/perfdata-service.log" Service_Log_Position_Mark_Path = "/usr/local/nagios/var" # Error handling : Error_Log = "/usr/local/nagios/var/perfparse.log" Error_Log_Rotate = "Yes" Error_Log_Keep_N_Days = "7" Drop_File = "/tmp/perfparse.drop" Drop_File_Rotate = "Yes" Drop_File_Keep_N_Days = "7" # Lock file for only one perfparse running at the same time Lock_File = "/var/lock/perfparse.lock" # Reporting options : # =================== # Do not display completion status of perfparse: Show_Status_Bar = "no" # Display a report on exit of perfparse: Do_Report = "no" # CGI managment : # =============== # Default user permissions in the CGI. Accepted values are (ro|rw|hide) Default_user_permissions_Policy = "rw" Default_user_permissions_Host_groups = "rw" Default_user_permissions_Summary = "rw" # Output logger : # =============== # set Output_Log_File to "yes" to enable it Output_Log_File = "yes" Output_Log_Filename = "/var/log/perfparse_output_log" Output_Log_Rotate = "yes" Output_Log_Keep_N_Days = "7" # Socket_output managment : # ========================= Use_Storage_Socket_Output = "no" Storage_Socket_Output_Host_Name = "localhost" Storage_Socket_Output_Port = "1974" # Perfparsed server managment : # ============================= Server_Port = "1976" # Database managment : # ==================== Use_Storage_Mysql = "yes" No_Raw_Data = "yes" No_Bin_Data = "yes" # Database Authentication DB_User = "root" DB_Name = "perfparse" DB_Pass = "" DB_Host = "127.0.0.1" # misc Dummy_Hostname = "dummy" And in perfparse.log.20050217.log: 2005/02/17 08:49:50 [perfparse-log2any.c:155 21654 ] FIFO ist für PerfParse nicht als Quelle autorisiert 2005/02/17 08:52:06 [perfparse-log2any.c:155 21714 ] FIFO ist für PerfParse nicht als Quelle autorisiert 2005/02/17 09:27:44 [perfparse-log2any.c:155 22482 ] FIFO ist für PerfParse nicht als Quelle autorisiert 2005/02/17 09:31:09 [perfparse-log2any.c:155 22584 ] FIFO ist für PerfParse nicht als Quelle autorisiert 2005/02/17 09:39:06 [perfparse-log2any.c:155 22744 ] FIFO ist für PerfParse nicht als Quelle autorisiert I don't know what all this mean but i thing that no storage module /storage_mysql.c) is loaded, but I don't know. Can anyone help me pleas? -- 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: Eduardo M. <ema...@bs...> - 2005-02-16 18:36:26
|
I have installed perfparse and compiled nagios for it. Perfparse install method 1 on an RHAS3 box. I have a few hosts, groups... The process info page shows Performance Data Being Processed?Yes I see the perfparse page @ https://host/nagios/cgi-bin/perfparse.cgi but executing any of the following links does not show hosts or any adata. Data Analysis Options Graph Binary Data View and Graph Binary Data View Raw Plugin Data View Stored Graphs So I found out that I have not been able to get the mysql database tables populated with data because the following command was not running. How are people running this command? /opt/nagios/bin/perfparse-log2mysql --serviceperf-log /opt/nagios/var/perfdata-service.log Any comments would be greatly appreciated. -Eduardo |
From: Jessica H. <Je...@gm...> - 2005-02-16 09:36:55
|
> Hi, > > Another problem is that no data is storaged into the database. The > tables are all there, because I've seen them with show tables and > describe <name> > > The database: > > ./mysql (as root) > dann > mysql> create database perfparse; > mysql> quit > > now in my perfparse directory: > > cat mysql_create.sql | mysql -u root -p -D perfparse > > This only works as root (i don't know why) > > now ./mysql again and a look to the database: > > mysql> use perfparse; > Database changed > mysql> show tables; > +---------------------------------+ > | Tables_in_perfparse | > +---------------------------------+ > | perfdata_bin_summary | > | perfdata_bin_summary_data | > | perfdata_bin_summary_del_policy | > | perfdata_bin_summary_header | > | perfdata_delete_policy | > | perfdata_graphs | > | perfdata_host | > | perfdata_host_group | > | perfdata_prefs | > | perfdata_raw_summary | > | perfdata_raw_summary_data | > | perfdata_registry | > | perfdata_service | > | perfdata_service_bin | > | perfdata_service_metric | > | perfdata_service_raw | > | perfdata_state | > | perfdata_users | > +---------------------------------+ > 18 rows in set (0.00 sec) > > mysql> > describe > perfdata_service; > +------------------------+--------------------------------+------+-----+----------+-------+ > | Field | Type | Null | Key | Default | > Extra > | > +------------------------+--------------------------------+------+-----+----------+-------+ > | service_id | int(11) | | UNI | 0 | | > | host_name | varchar(75) | | PRI | | | > | service_description | varchar(75) | | PRI | | | > | last_perfdata_raw | int(11) | YES | MUL | NULL | | > | raw_delete_policy | int(11) | YES | | NULL | | > | raw_delete_policy_name | varchar(20) | YES | MUL | NULL | | > | raw_delete_policy_type | enum('template','user','host') | | | template | > | > | is_deleted | tinyint(4) | YES | | 0 > | > | > +------------------------+--------------------------------+------+-----+----------+-------+ > 8 rows in set (0.00 sec) > > mysql> select host_name > -> from perfdata_service; > Empty set (0.00 sec) > > > This is empty... I've worked after this documentation: > > http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > > > > In the perfdata-service log, are always the newest datas and it is > updated regularly. > > > Then create a Nagios command to run perfparse-log2mysql every time a > log is > generated. > > Is this the command??? > > # vi perfparse_nagios_pipe_command.pl > add at the end... > system ('/opt/nagios/bin/perfparse-log2mysql --serviceperf-log > /opt/nagios/var/perfdata-service.log'); > > I do this this like in this documentation: > http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > > But in the original documentation are more things described like: > > 5.2. Periodic Nagios Log Parse > > > Then add the following four lines to the 'HOST AND SERVICE > PERFORMANCE DATA PROCESSING COMMANDS' section: > > > xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log > xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT > $\t$PERFDATA$ > > xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log > xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC > $\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$ > > > > > Should I write this down? or not? > > > > 5.3. Nagios Invokes Perfparse > > > Edit misccommands.cfg and add the following : > > > define command{ > command_name process-service-perfdata > command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME > $\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | > $USER2$/bin/perfparse-log2mysql -c $USER2$/etc/perfparse.cfg > } > > > $USER2$ is defined in resources.cfg and points to the > Perfparse installation directory. > > > > > > In perfparse.cfg, Service_Log must be defined as "-". > > > > 5.4. Periodic User Log Parse > > > Edit misccommands.cfg and add the following : > > > define command{ > command_name process-service-perfdata > command_line $USER2$/bin/perfparse_nagios_command.pl > $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" > "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } > > > $USER2$ is defined in resources.cfg and points to the > Perfparse installation directory. > > > > > What's up with this??? Can I write down two of the same misccommands > in one cfg? I think not! I think I can use a command_name only once > a time, or I'm wrong? > > > > Edit a script like this : > > > #!/bin/sh > $USER2=/perfparse/installation/directory > > mv ${USER2}/var/perfdata-service.log > ${USER2}/var/perfdata-service.log1 > cat ${USER2}/var/perfdata-service.log1 | > ${USER2}/bin/perfparse-log2mysql -c ${USER2}/etc/perfparse.cfg > rm ${USER2}/var/perfdata-service.log1 > > > In perfparse.cfg, Service_Log must be defined as "-". > > > And what is this? Where should I let this script, How should I name > this? Must I write down something in a config file? > > > Sorry for my questions which looks like I'm a dummbass but I know > not so mus about this. I'm learning all these things but I don't > know what I should do now. > Wenn I look at googel for my problems I don't find many things. For > nagios I've found a very good german forum but I've found no english > or german perfparse forum. :-( > And this mesage is reporting by nagios: Perfparse-log2* [options] -e, --error-log <string> : Perfparse log --drop-file <string> : File for dropped lines -l, --serviceperf-log <string> : Input log source (from nagios or perfparsed) --history_start_tm <integer> : Start timestamp for history retreiving --history_end_tm <integer> : End timestamp for history retreiving -s, --status-bar : Show status bar -r, --report : Print a report --no-raw-data : Don't store raw data --no-bin-data : Don't store bin data --storage_modules_dir <string> : Path where storage modules are --storage_modules_load <string> : Modules to load (CSV) --show_config : Show config Missing value for option --serviceperf-log /usr/local/nagios/var/perfdata-service.log: line 1: 1108546252: command not found I don't know what it mean... -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Tim W. <tim...@gm...> - 2005-02-16 09:22:00
|
On Wed, 16 Feb 2005 08:39:32 +0000, Ben Clewett <bcl...@pe...> wrote: > Tim, > > Good question! > > I missed a vital index off the raw data. This is added just for new > users to the create script. For existing users, you have to run the > command manually. See my posting: > > http://sourceforge.net/mailarchive/message.php?msg_id=10813814 > > The reason for not updating the database version: > > - The addition of this index took my little Linux box nearly 24 hours. > So I think not something appropriate for a quick schema change. > > - The database update method does not work with PostgreSQL, therefore > this would have left mysql at a different version. This must be dealt > with soon. > > Sorry to hear your not so involved with PerfParse :( > > It seems just when there is so much to do with Nagiostat, Nagios 2.0, > database conversions needed, graphs with multiple metrics, outage > reports, missing graphics, more reports needed, requests for graph zoom > options... There are less of us to do it. I guess we'll just have to > work harder :) No worries yet... I'm trying to get my new department to use Nagios as monitoring tool. If I succeed (and it looks like it's going the right way for the moment) I should have more time to look into a few perfparse things as well. (But we still just have to work harder :) ) Tim > > Ben > > > Tim Wuyts wrote: > > Ben, > > > > just found 105.6 (I was looking in the wrong place). A quick question: > > I read in the changelog:Correct index added to perfdata_service_raw > > for fast raw reports. (BC) > > > > The db version is still 0.19, so I was wondering where / what did you > > cahnge exactly? > > > > Regards, > > Tim > > > > > > > > > > On Tue, 15 Feb 2005 21:41:07 +0100, Tim Wuyts <tim...@gm...> wrote: > > > >>Ben, > >> > >>don't know if you've noticed it, but there's a minor bug in the raw > >>summary report. I can't download 105.6 (it doesn't seem to be on > >>sourceforge yet), so I created a patch against 105.5 (see attach) > >> > >>I'm sorry if I haven't been able to do a lot of PP stuff, I've just > >>switched departments, and PP is now on the bottom of the priority list > >>:( I do keep an eye on the mailing lists, and try to answer where I > >>can.... > >> > >>Regards, > >>Tim > >> > >> > >>On Tue, 15 Feb 2005 17:20:53 +0000, Ben Clewett <bcl...@pe...> wrote: > >> > >>>Dear users, > >>> > >>>A casual release with no new features. Containing fixes to allow total > >>>deletion of hosts to work, and several develop bits. > >>> > >>>Regards, Ben. > >>> > >>>------------------------------------------------------- > >>>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_id=6595&alloc_id=14396&op=click > >>>_______________________________________________ > >>>Perfparse-announce mailing list > >>>Per...@li... > >>>https://lists.sourceforge.net/lists/listinfo/perfparse-announce > >>> > >> > >> > >> > > > |
From: Yves <yme...@pe...> - 2005-02-16 09:20:02
|
Perfparse is being developped in an environment with nagios-1.2. However, the "pipe" feature was developped in mind that nagios-2.0 users = will use it intensively. Some users reported that they are using nagios-2.0bX and they do not seem= to complain about it. Yves > Which version of Nagios do the developers recommend using (1 or 2)? > I have been using version 1.2 but I like the beta 2.01b version. > Has perfparse been tested and used on Nagios version 2.01b? > Please comment. I would like to use it and am in the process of setting > it up. > Thank you, > -Eddie --=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: Jessica H. <Je...@gm...> - 2005-02-16 09:17:57
|
Hi, Another problem is that no data is storaged into the database. The tables are all there, because I've seen them with show tables and describe <name> The database: ./mysql (as root) dann mysql> create database perfparse; mysql> quit now in my perfparse directory: cat mysql_create.sql | mysql -u root -p -D perfparse This only works as root (i don't know why) now ./mysql again and a look to the database: mysql> use perfparse; Database changed mysql> show tables; +---------------------------------+ | Tables_in_perfparse | +---------------------------------+ | perfdata_bin_summary | | perfdata_bin_summary_data | | perfdata_bin_summary_del_policy | | perfdata_bin_summary_header | | perfdata_delete_policy | | perfdata_graphs | | perfdata_host | | perfdata_host_group | | perfdata_prefs | | perfdata_raw_summary | | perfdata_raw_summary_data | | perfdata_registry | | perfdata_service | | perfdata_service_bin | | perfdata_service_metric | | perfdata_service_raw | | perfdata_state | | perfdata_users | +---------------------------------+ 18 rows in set (0.00 sec) mysql> describe perfdata_service; +------------------------+--------------------------------+------+-----+----------+-------+ | Field | Type | Null | Key | Default | Extra | +------------------------+--------------------------------+------+-----+----------+-------+ | service_id | int(11) | | UNI | 0 | | | host_name | varchar(75) | | PRI | | | | service_description | varchar(75) | | PRI | | | | last_perfdata_raw | int(11) | YES | MUL | NULL | | | raw_delete_policy | int(11) | YES | | NULL | | | raw_delete_policy_name | varchar(20) | YES | MUL | NULL | | | raw_delete_policy_type | enum('template','user','host') | | | template | | | is_deleted | tinyint(4) | YES | | 0 | | +------------------------+--------------------------------+------+-----+----------+-------+ 8 rows in set (0.00 sec) mysql> select host_name -> from perfdata_service; Empty set (0.00 sec) This is empty... I've worked after this documentation: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example In the perfdata-service log, are always the newest datas and it is updated regularly. Then create a Nagios command to run perfparse-log2mysql every time a log is generated. Is this the command??? # vi perfparse_nagios_pipe_command.pl add at the end... system ('/opt/nagios/bin/perfparse-log2mysql --serviceperf-log /opt/nagios/var/perfdata-service.log'); I do this this like in this documentation: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example But in the original documentation are more things described like: 5.2. Periodic Nagios Log Parse Then add the following four lines to the 'HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS' section: xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT $\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC $\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$ Should I write this down? or not? 5.3. Nagios Invokes Perfparse Edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME $\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | $USER2$/bin/perfparse-log2mysql -c $USER2$/etc/perfparse.cfg } $USER2$ is defined in resources.cfg and points to the Perfparse installation directory. In perfparse.cfg, Service_Log must be defined as "-". 5.4. Periodic User Log Parse Edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_command.pl $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } $USER2$ is defined in resources.cfg and points to the Perfparse installation directory. What's up with this??? Can I write down two of the same misccommands in one cfg? I think not! I think I can use a command_name only once a time, or I'm wrong? Edit a script like this : #!/bin/sh $USER2=/perfparse/installation/directory mv ${USER2}/var/perfdata-service.log ${USER2}/var/perfdata-service.log1 cat ${USER2}/var/perfdata-service.log1 | ${USER2}/bin/perfparse-log2mysql -c ${USER2}/etc/perfparse.cfg rm ${USER2}/var/perfdata-service.log1 In perfparse.cfg, Service_Log must be defined as "-". And what is this? Where should I let this script, How should I name this? Must I write down something in a config file? Sorry for my questions which looks like I'm a dummbass but I know not so mus about this. I'm learning all these things but I don't know what I should do now. Wenn I look at googel for my problems I don't find many things. For nagios I've found a very good german forum but I've found no english or german perfparse forum. :-( -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail -- 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: Tim W. <tim...@gm...> - 2005-02-16 09:17:25
|
Here in our company we only use 1.2, since Nagios 2.x is still said to be 'in beta'. And since 1.2 fulfills our needs, I don't think we will switch to 2.x anytime soon. Of course this implies that we are only running perfparse with Nagios 1.2. I have not had the time to set up a Nagios 2.x test environment. I hope to do this in a few weeks... Tim On Tue, 15 Feb 2005 15:38:25 -0600, Eduardo Martinez <ema...@bs...> wrote: > Which version of Nagios do the developers recommend using (1 or 2)? > I have been using version 1.2 but I like the beta 2.01b version. > Has perfparse been tested and used on Nagios version 2.01b? > Please comment. I would like to use it and am in the process of setting > it up. > Thank you, > -Eddie > > ------------------------------------------------------- > 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_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Jessica H. <Je...@gm...> - 2005-02-16 09:16:01
|
Hi, Another problem is that no data is storaged into the database. The tables are all there, because I've seen them with show tables and describe <name> The database: ./mysql (as root) dann mysql> create database perfparse; mysql> quit now in my perfparse directory: cat mysql_create.sql | mysql -u root -p -D perfparse This only works as root (i don't know why) now ./mysql again and a look to the database: mysql> use perfparse; Database changed mysql> show tables; +---------------------------------+ | Tables_in_perfparse | +---------------------------------+ | perfdata_bin_summary | | perfdata_bin_summary_data | | perfdata_bin_summary_del_policy | | perfdata_bin_summary_header | | perfdata_delete_policy | | perfdata_graphs | | perfdata_host | | perfdata_host_group | | perfdata_prefs | | perfdata_raw_summary | | perfdata_raw_summary_data | | perfdata_registry | | perfdata_service | | perfdata_service_bin | | perfdata_service_metric | | perfdata_service_raw | | perfdata_state | | perfdata_users | +---------------------------------+ 18 rows in set (0.00 sec) mysql> describe perfdata_service; +------------------------+--------------------------------+------+-----+----------+-------+ | Field | Type | Null | Key | Default | Extra | +------------------------+--------------------------------+------+-----+----------+-------+ | service_id | int(11) | | UNI | 0 | | | host_name | varchar(75) | | PRI | | | | service_description | varchar(75) | | PRI | | | | last_perfdata_raw | int(11) | YES | MUL | NULL | | | raw_delete_policy | int(11) | YES | | NULL | | | raw_delete_policy_name | varchar(20) | YES | MUL | NULL | | | raw_delete_policy_type | enum('template','user','host') | | | template | | | is_deleted | tinyint(4) | YES | | 0 | | +------------------------+--------------------------------+------+-----+----------+-------+ 8 rows in set (0.00 sec) mysql> select host_name -> from perfdata_service; Empty set (0.00 sec) This is empty... I've worked after this documentation: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example In the perfdata-service log, are always the newest datas and it is updated regularly. Then create a Nagios command to run perfparse-log2mysql every time a log is generated. Is this the command??? # vi perfparse_nagios_pipe_command.pl add at the end... system ('/opt/nagios/bin/perfparse-log2mysql --serviceperf-log /opt/nagios/var/perfdata-service.log'); I do this this like in this documentation: http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example But in the original documentation are more things described like: 5.2. Periodic Nagios Log Parse Then add the following four lines to the 'HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS' section: xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT $\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC $\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$ Should I write this down? or not? 5.3. Nagios Invokes Perfparse Edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME $\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | $USER2$/bin/perfparse-log2mysql -c $USER2$/etc/perfparse.cfg } $USER2$ is defined in resources.cfg and points to the Perfparse installation directory. In perfparse.cfg, Service_Log must be defined as "-". 5.4. Periodic User Log Parse Edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_command.pl $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } $USER2$ is defined in resources.cfg and points to the Perfparse installation directory. What's up with this??? Can I write down two of the same misccommands in one cfg? I think not! I think I can use a command_name only once a time, or I'm wrong? Edit a script like this : #!/bin/sh $USER2=/perfparse/installation/directory mv ${USER2}/var/perfdata-service.log ${USER2}/var/perfdata-service.log1 cat ${USER2}/var/perfdata-service.log1 | ${USER2}/bin/perfparse-log2mysql -c ${USER2}/etc/perfparse.cfg rm ${USER2}/var/perfdata-service.log1 In perfparse.cfg, Service_Log must be defined as "-". And what is this? Where should I let this script, How should I name this? Must I write down something in a config file? Sorry for my questions which looks like I'm a dummbass but I know not so mus about this. I'm learning all these things but I don't know what I should do now. Wenn I look at googel for my problems I don't find many things. For nagios I've found a very good german forum but I've found no english or german perfparse forum. :-( -- 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: Ben C. <bcl...@pe...> - 2005-02-16 08:42:52
|
Tim, PS, what was the minor bug? Ben Tim Wuyts wrote: > Ben, > > just found 105.6 (I was looking in the wrong place). A quick question: > I read in the changelog:Correct index added to perfdata_service_raw > for fast raw reports. (BC) > > The db version is still 0.19, so I was wondering where / what did you > cahnge exactly? > > Regards, > Tim > > > > > On Tue, 15 Feb 2005 21:41:07 +0100, Tim Wuyts <tim...@gm...> wrote: > >>Ben, >> >>don't know if you've noticed it, but there's a minor bug in the raw >>summary report. I can't download 105.6 (it doesn't seem to be on >>sourceforge yet), so I created a patch against 105.5 (see attach) >> >>I'm sorry if I haven't been able to do a lot of PP stuff, I've just >>switched departments, and PP is now on the bottom of the priority list >>:( I do keep an eye on the mailing lists, and try to answer where I >>can.... >> >>Regards, >>Tim >> >> >>On Tue, 15 Feb 2005 17:20:53 +0000, Ben Clewett <bcl...@pe...> wrote: >> >>>Dear users, >>> >>>A casual release with no new features. Containing fixes to allow total >>>deletion of hosts to work, and several develop bits. >>> >>>Regards, Ben. >>> >>>------------------------------------------------------- >>>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_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Perfparse-announce mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-announce >>> >> >> >> > |
From: Ben C. <bcl...@pe...> - 2005-02-16 08:41:33
|
Tim, Good question! I missed a vital index off the raw data. This is added just for new users to the create script. For existing users, you have to run the command manually. See my posting: http://sourceforge.net/mailarchive/message.php?msg_id=10813814 The reason for not updating the database version: - The addition of this index took my little Linux box nearly 24 hours. So I think not something appropriate for a quick schema change. - The database update method does not work with PostgreSQL, therefore this would have left mysql at a different version. This must be dealt with soon. Sorry to hear your not so involved with PerfParse :( It seems just when there is so much to do with Nagiostat, Nagios 2.0, database conversions needed, graphs with multiple metrics, outage reports, missing graphics, more reports needed, requests for graph zoom options... There are less of us to do it. I guess we'll just have to work harder :) Ben Tim Wuyts wrote: > Ben, > > just found 105.6 (I was looking in the wrong place). A quick question: > I read in the changelog:Correct index added to perfdata_service_raw > for fast raw reports. (BC) > > The db version is still 0.19, so I was wondering where / what did you > cahnge exactly? > > Regards, > Tim > > > > > On Tue, 15 Feb 2005 21:41:07 +0100, Tim Wuyts <tim...@gm...> wrote: > >>Ben, >> >>don't know if you've noticed it, but there's a minor bug in the raw >>summary report. I can't download 105.6 (it doesn't seem to be on >>sourceforge yet), so I created a patch against 105.5 (see attach) >> >>I'm sorry if I haven't been able to do a lot of PP stuff, I've just >>switched departments, and PP is now on the bottom of the priority list >>:( I do keep an eye on the mailing lists, and try to answer where I >>can.... >> >>Regards, >>Tim >> >> >>On Tue, 15 Feb 2005 17:20:53 +0000, Ben Clewett <bcl...@pe...> wrote: >> >>>Dear users, >>> >>>A casual release with no new features. Containing fixes to allow total >>>deletion of hosts to work, and several develop bits. >>> >>>Regards, Ben. >>> >>>------------------------------------------------------- >>>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_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Perfparse-announce mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-announce >>> >> >> >> > |
From: Ben C. <bcl...@pe...> - 2005-02-16 08:32:05
|
Hi, Sorry, nagiostat and PerfParse use different data storage. At the moment, one or the other. I don't use nagiostat so I cannot comment on the ability of this system, if there are other members who can comment on how it compares, I would be interested in knowing my self :) Ben. Horvath Tamas wrote: > Hi list members! > > I've used Nagios 1.x from more than one year. > > I've just began to read Nagios 2.0 documentation, because I would like to > migrate from 1.2 to 2.0. I read about the new Nagiostat utility which seems > to me very useful. > > In the documentation > (http://nagios.sourceforge.net/docs/2_0/nagiostats.html) MRTG integration is > mentioned, but it would be nice if I can drow Nagiostat's statistic with PP. > Does PP capable of it? > > Thanks in advance, Tamas! > > > > > ------------------------------------------------------- > 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_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Eduardo M. <ema...@bs...> - 2005-02-15 21:38:42
|
Which version of Nagios do the developers recommend using (1 or 2)? I have been using version 1.2 but I like the beta 2.01b version. Has perfparse been tested and used on Nagios version 2.01b? Please comment. I would like to use it and am in the process of setting it up. Thank you, -Eddie |
From: Horvath T. <zs...@ax...> - 2005-02-15 19:14:22
|
Hi list members! I've used Nagios 1.x from more than one year. I've just began to read Nagios 2.0 documentation, because I would like to migrate from 1.2 to 2.0. I read about the new Nagiostat utility which seems to me very useful. In the documentation (http://nagios.sourceforge.net/docs/2_0/nagiostats.html) MRTG integration is mentioned, but it would be nice if I can drow Nagiostat's statistic with PP. Does PP capable of it? Thanks in advance, Tamas! |
From: Ben C. <bcl...@pe...> - 2005-02-15 17:39:13
|
Hi Jessica, I have cc'd this reply to mailing list perfparse-users, where there is a lot of good quality information and some people who probably know more than me about using PerfParse in anger :) Thanks for pointing out the problems with the documentation. It's on my TODO list to draw all the docs together. You problems do seem to be database related. Have a look at this topics in our FAQ: http://wiki.perfparse.org/tiki-view_faq.php?faqId=5#q15 The Icon problem. There is some information in the installation guide from Garry about linking Nagios directly to PerfParse. Is this what you are looking for? There are no 'official' PerfParse icons I know about yet. If you have any more problems, please contact my self or the mailing list. Kind regards, Ben. Jessica Holle wrote: > Hi, > > I hope you can help me a little bit. After descided to use nagiostat > to show the graphs of Nagios and I've written the very very big > configuration file and it failed, I wanted to show the graphs with > PerfParse > > I'm looking on the following site : > http://www.nagiosexchange.org/Perfparse-users.30.0.html? > &tx_maillisttofaq_pi1[mode]=1&tx_maillisttofaq_pi1[showUid]=2215 > > And you comment on this documentation: > http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > > This is much more better to understand as the "big" documentation on > www.perfparse.org but I don't understand some things. > > > "Then create a Nagios command to run perfparse-log2mysql every time > a log is > generated." > > I don't know how this command should look like. > > "# vi /var/spool/cron/crontabs/root > # Purge PerfParse DB daily at 3 AM. > 0 1 * * * /opt/nagios/bin/perfparse-db-purge > > # ps -ef | grep cron > root <number> 1 0 Jan 26 ? 0:00 /usr/sbin/cron > # kill -HUP <number> " > > And this I don't understand too... I've no path like this and > nothing it looks like. > > I've added the things like in this documentation an when I click on > the perfparse logo in Nagios I get this: > > An error occured with the SQL: > "Could not connect to MySQL using: Database = 'perfparse', Host > = '127.0.0.1', Username = 'nagios', Password = ''" > Failure Message: > "Access denied for user: '@localhost' to database 'perfparse'" > > I think this is a right problem on the MySQL database, but I don't > know why. > > Another question ist, how get I the little icons next to the > services in Nagios? This icons, when I click on them, that I see the > graph für this service??? Is it with a serviceextinfo.cfg? How looks > then the entry for the notes url? > > I hope you know what I mean and you will help me... > > Yours truely > > Jessica Holle > > > > |
From: Ben C. <bcl...@pe...> - 2005-02-15 17:23:01
|
Dear users, A casual release with no new features. Containing fixes to allow total deletion of hosts to work, and several develop bits. Regards, Ben. |
From: <Seb...@ku...> - 2005-02-14 15:05:42
|
A little follow up here... See below for new info. Best regards, Sebastian Bergstroem > -----Original Message----- > From: Yves [mailto:yme...@pe...]=20 > Sent: den 8 februari 2005 13:56 > To: per...@li... > Cc: Bergstr=F6m Sebastian > Subject: RE: [Perfparse-users] Perl file missing and InnoDB? >=20 > > I checked a few things: > > > > The perfdata-service.log exists: > > nagios@ksabnetmon:/usr/local/nagios/var$ ls=20 > perfdata-service.log -lac > > -rw-rw-r-- 1 nagios nagios 78 Feb 8 13:14=20 > perfdata-service.log >=20 > This is a problem : it should not be a file but a pipe. > Remove that file, run Perfparsed, and then run nagios.=20 > Otherwise nagios creates the file and perfparsed complains. The perfdata-service.log file is created even though I did start = perfparsed first. Can I start perfparsed with any debugging switches? To try locate what = is going wrong? >=20 > > This worries me: > > > > nagios@ksabnetmon:/usr/local/nagios/bin$=20 /usr/local/nagios/bin/perfparsed > > 2005/02/08 13:11:23 [perfparsed.c:180 28406 ] No module=20 > was loaded. Check the > > Storage_Module_Load config option. >=20 > Check this : http://wiki.perfparse.org/tiki-view_faq.php?faqId=3D7#q12 I used the following command, it seems like perfparsed started ok. At = least, it didn't complain. /usr/local/nagios/bin/perfparsed --storage_modules_dir = --storage_modules_load >=20 > 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/ - >=20 >=20 |
From: Ben C. <bcl...@pe...> - 2005-02-11 08:17:59
|
Nick, Very glad it does work. My guess is that your version of gcc, which has only be released a short time, completed some very deep checking. This is where this warning was found. We know the code works, but we will have to look into it further to find out what gcc has found. Or possibly being the latest gcc, it's a bug in gcc. But thankfully I think this unlikely :) Sorry about the deletion problem. Know bug. Will be fixed on next version. Please keep us informed of any PerfParse problems and solution you find, and enjoy the product. Kind regards, Ben Clewett. Nick Smith wrote: > Yves wrote: > >>> Nick, >>> >>> I am sorry but I am out of options. I can't see anything wrong with the >>> code, or replicate your error. >> >> >> >>>>>>> config_file.c:105: warning: null argument where non-null required >>>>>>> (arg 1) >>>>>>> config_file.c:105: warning: null argument where non-null required >>>>>>> (arg 2) >> >> >> >> I have one last idea : suppose there is a wrong character in that >> line. A character you >> cannot see. It sometimes happen when you copy/paste code from unsafe >> sources. >> >> Either edit config_file.c with a hex editor and check that all the >> characters are >> allowed, or delete that line and type it again by hand. No copy/paste. >> >> Also try to remove that line to see if there are still warnings. >> >> This is my last idea, but if something strange happen, it can give us >> other ideas... :) > > > Well, I tried commenting out the first line that reports the error, and > typing in by hand again above... and exactly the same problem. All very > odd. Howerer, since it's just a warning, compilation went ahead OK and I > installed it all OK, and it;s been collecting data that I can graph for > a few days now. I'll try and poke around a bit later to see if I can pin > it down further. > > I was going to say it's not caused any problems (and it probably is > unrelated), but I just found that: > > The first database purge I attempted: Marked a host for deleting that I > am no longer capturing data for. Then ran perfparse-db-purge, and got: > > +-----------------------------------------------------------------------------+ > > | Deleting data flagged for deletionAn error occured with the SQL: > > "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE > perfdata_service.host_name = perfdata_host.host_name AND > perfdata_host.is_deleted = 1" > > Failure Message: > > "Cannot delete or update a parent row: a foreign key constraint fails" > > Is this USER ERROR? ;-) > > Cheers > Nick > > > > > > > ------------------------------------------------------- > 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_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Nick S. <ni...@sm...> - 2005-02-10 21:41:14
|
Yves wrote: >>Nick, >> >>I am sorry but I am out of options. I can't see anything wrong with the >>code, or replicate your error. > > >>>>>>config_file.c:105: warning: null argument where non-null required >>>>>>(arg 1) >>>>>>config_file.c:105: warning: null argument where non-null required >>>>>>(arg 2) > > > I have one last idea : suppose there is a wrong character in that line. A character you > cannot see. It sometimes happen when you copy/paste code from unsafe sources. > > Either edit config_file.c with a hex editor and check that all the characters are > allowed, or delete that line and type it again by hand. No copy/paste. > > Also try to remove that line to see if there are still warnings. > > This is my last idea, but if something strange happen, it can give us other ideas... :) Well, I tried commenting out the first line that reports the error, and typing in by hand again above... and exactly the same problem. All very odd. Howerer, since it's just a warning, compilation went ahead OK and I installed it all OK, and it;s been collecting data that I can graph for a few days now. I'll try and poke around a bit later to see if I can pin it down further. I was going to say it's not caused any problems (and it probably is unrelated), but I just found that: The first database purge I attempted: Marked a host for deleting that I am no longer capturing data for. Then ran perfparse-db-purge, and got: +-----------------------------------------------------------------------------+ | Deleting data flagged for deletionAn error occured with the SQL: "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE perfdata_service.host_name = perfdata_host.host_name AND perfdata_host.is_deleted = 1" Failure Message: "Cannot delete or update a parent row: a foreign key constraint fails" Is this USER ERROR? ;-) Cheers Nick |
From: Tong Y. <To...@in...> - 2005-02-10 19:39:17
|
Here is my config for my nagios_perfparse.cfg. I only use the = process-service one because I have no need to graph host data. For the = host one, instead of adding SERVICE you add HOST to each variable. I = have only tested this with a few plugins (check_load check_disk) but it = seems to work for those and I am able to get a graph back. As I add-in = more checks I will let you know if I run into any problems. define command{ command_name process-service-perfdata command_line = /usr/local/nagios/bin/perfparse_nagios_pipe_command.pl = /usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" = "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$" }=20 -----Original Message----- From: Ben Clewett [mailto:bcl...@pe...]=20 Sent: Thursday, February 10, 2005 2:22 AM To: Tong Young Cc: yme...@pe...; per...@li... Subject: Re: [Perfparse-users] Perparse Method 4 (pipe) The document you mention I believe is: http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example Supplied kindly by Alex Peeters. If you have found this useful, I'll link this from our FAQ. Thanks for the advise on Nagios 2.x. PerfParse is not 'officially' able = to read this, but only because I don't use Nagios 2.x and I have yet to = get back comments about how this works. I am after any such comments in order to update our documentation, so = thanks for your observations. Would you have a tested example of a = configuration? Regards, Ben. Tong Young wrote: > Thanks. Just want to say that someone posted a link to a document on = installing Perfparse with the pipe method and I followed the = instructions contained there and it works perfectly. So if anyone is = having problems they should have a look at that link. It was posted = within the last two days I believe. The subject line is Good = Documentation or something similar. > =20 > And someone posted that they are getting perfdata written to the = perfdata-service.log in the form of $ signs. I would guess that you are = using Nagios 2.0.. The variables $PERFDATA$ and one other has changed = to $SERVICEPERFDATA$ and so forth.. Check out the documentation for = Nagios 2.0 or the sample config files. One of them contains the changes = made to the variables. >=20 > ________________________________ >=20 > From: per...@li... on behalf of Yves > Sent: Thu 2/10/2005 12:50 AM > To: per...@li... > Subject: Re: [Perfparse-users] Perparse Method 4 (pipe) >=20 >=20 >=20 >=20 >=20 >>I have read through the documentation and groups and got it working,=20 >>but I need to manually run ./perfparsed before the=20 >>service-perfdata.log file is created by nagios. Is this by design? >=20 >=20 >=20 > If you are running nagios-1.2, yes, this is by design. > Perfparsed reads from a pipe, and creates it if necessary. If you run=20 > nagios-1.2 before, it will write to whatever the file is, and if it = does not exist, write a new file. > If the design was to run perfparsed after nagios, you would loose the=20 > data written in that file, or have perfparsed block because of that = regular file. >=20 > 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/ - >=20 >=20 >=20 > ------------------------------------------------------- > 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 >=20 >=20 >=20 > ------------------------------------------------------- > 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=CCk > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 |
From: Tim W. <tim...@gm...> - 2005-02-10 13:17:10
|
You can update the perl script that nagios uses to write the data to the pipe (in your config this is /usr/local/nagios/bin/perfparse_nagios_command.pl), so that it will not write anything if the pipe does not exist. That way, you prohibit the script from creating it as a regular file if it doesn't exist yet. I believe this should do the trick. Tim. #! /usr/bin/perl -w use strict; my $file = shift @ARGV; exit(0) 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 Wed, 9 Feb 2005 17:42:14 -0800, Tong Young <To...@in...> wrote: > > I have read through the documentation and groups and got it working, but I > need to manually run ./perfparsed before the service-perfdata.log file is > created by nagios. Is this by design? > > Should I create some script to run perfparsed before nagios starts. Or did > I miss something that is suppose to run perfparsed by itself? Thanks! > > I am running Nagios 2.0 on debian sarge. Here are my config files: > > nagios_performance.cfg: > > define command{ > command_name process-service-perfdata > command_line /usr/local/nagios/bin/perfparse_nagios_command.pl > /usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" > "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$" > } > > define command{ > command_name process-host-perfdata > command_line /usr/local/nagios/bin/perfparse_nagios_command.pl > /usr/local/nagios/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" > "$OUTPUT$" "$PERFDATA$" > } > > perfparsed.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 = "/tmp/perfparse.drop" > > # > # 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 = "|/usr/local/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 = "/usr/local/nagios/var" > > # Lock file for perfparsed > # Daemon_Lock = "string" > Daemon_Lock = "/usr/local/nagios/var/perfparsed.lock" > > # Run perfparsed as a daemon > # Daemonize = "Y/N" > Daemonize = "no" > > # 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 = > "/usr/local/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 = "dummy" > > # Don't store raw data > # No_Raw_Data = "Y/N" > No_Raw_Data = "no" > > # Don't store bin data > # No_Bin_Data = "Y/N" > No_Bin_Data = "no" > > # Path where storage modules are > # Storage_Modules_Dir = "string" > Storage_Modules_Dir = "/usr/local/nagios/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 = "/usr/local/nagios/var/storage_modules.status" > > > > # Storage Module : mysql > # ============================== > > # Database user > # DB_User = "string" > DB_User = "-removed-" > > # Database password > # DB_Pass = "string" > DB_Pass = "-removed-" > > # Database name > # DB_Name = "string" > DB_Name = "-removed-" > > # Database hostname > # DB_Host = "string" > DB_Host = "localhost" > > > > > > |