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: Daniele C. <dan...@ti...> - 2005-03-10 11:28:29
|
Hello, Currently, I'm using perfparse 0.105.6 and nagios 1.2 on a FreeBSD-5.3; MySQL version is 4.1.9 for portbld-freebsd5.3. As I'm trying to fine-tune system, I add and delete many service checks; now I have problems in deleting service data entirely. I marked services didn't need to delete bin and raw data always and ran perfparse-db-purge; data disappeared, but possibility to show graphs stayed. I checked the DB and noticed I can't delete the service from perfdata_service table as it was referenced by other tables - such as perfdata_raw_summary and perfdata_service_metric. So, to properly clean the DB I had to delete manually all entries releted to that service hoping not to leave trash around. Has anyone had my same problem? How he solved? I'd like to have a script - executed regurarly - that checks for services with no data and deletes them leaving no trash. May anyone who knows better perfparse DB sructure help me? Thanks in advance. Daniele |
From: Christophe <cgo...@gm...> - 2005-03-09 10:45:04
|
Hello, Currently, I'm using perfparse 0.100.7 and Nagios 1.2 I have two questions : Is there some plan to develop an archive solution for mysql data ? Currently my db size is near 15Go with 50 Mo lines (raw + bin). I'd like to keep some history but I don't know if my mysql server will work longer with this amount of data. And is it possible to have multiple counter in one graph (like cpu of 3 systems) ? Thank you. -- Christophe |
From: Steve G. <st...@ls...> - 2005-03-09 00:19:56
|
On Tue, Mar 08, 2005 at 07:03:43PM -0500, Dar...@cb... wrote: > I'm a newbie to perfparse and am having some trouble with performance > output. I am running Nagios 2.0b2 and Perfparse 0.105.6. When I view Raw > Plugin Data the Plugin Output column only contains $OUTPUT$ for ALL > hosts/services. > If anyone has experienced this problem or can shed any light I would > appreciate it. Make sure that the command that is sending the perfomance data to perfparse is using the the $SERVICEPERFDATA macro, not $PERFDATA. These (and many others) changed in Nagios 2.0. Steve -- "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net) |
From: <Dar...@cb...> - 2005-03-09 00:01:18
|
Hey All, Sorry about resending this, but the formatting was bad. I'm a newbie to perfparse and am having some trouble with performance output. I am running Nagios 2.0b2 and Perfparse 0.105.6. When I view Raw Plugin Data the Plugin Output column only contains $OUTPUT$ for ALL hosts/services. If anyone has experienced this problem or can shed any light I would appreciate it. Thanks, Darron |
From: <Dar...@cb...> - 2005-03-08 23:46:45
|
<FONT face=3D"Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size= =3D2><DIV>Hey All,</DIV><DIV> </DIV><DIV>I'm a newbie to perfparse and= am having some trouble with performance output. I am running Nagios 2.0b2 = and Perfparse <FONT face=3DArial>0.105.6. When I view Raw Plugin Data the P= lugin Output column only contains $OUTPUT$ for ALL hosts/services.</FONT></= DIV><DIV><FONT face=3DArial></FONT> </DIV><DIV><FONT face=3DArial>If a= nyone has experienced this problem or can shed any light I would appreciate= it.</FONT></DIV><DIV><FONT face=3DArial></FONT> </DIV><DIV><FONT face= =3DArial>Thanks,</FONT></DIV><DIV><FONT face=3DArial></FONT> </DIV><DI= V><FONT face=3DArial>Darron</FONT></DIV></FONT>= |
From: Jessica H. <Je...@gm...> - 2005-03-08 11:43:56
|
Hi, now I describe my Problem... When I go to the PerfParse site in my nagios I've all hosts and services. It looks so: mount: / / 2005-03-01 13:15:42 623 MB UP So I think there are values in the database. But no graph is schown... Why? I've tested all with the same files, only with less hosts and services an it works... I don't know what I should do now... And the proble with the daily log of nagios is also actual... -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Veiko K. <ve...@pa...> - 2005-03-08 09:23:19
|
Veiko Kukk wrote: > I'm using (actually trying to start using) perfparse-0.105.6 with method > 4 and I configured it according to > http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > > My problem is that its not collecting binary data, only raw data, why? > How to make it work correctly? Is there some error in this guide in wiki? What should I check to make it collect binary data and create graphs? -- Veiko Kukk |
From: Jessica H. <Je...@gm...> - 2005-03-04 08:06:12
|
Hi, we have copy my testperfparse to our big system. Now my boss told me that the daily log of nagios is missing... May it happen that this depends on PerfParse??? On my system this problem not established. But on the right system. I don't know what it depends on. Have anybody experiences with this? This ist since perfparse works on the system, that the log is missing regards Jessica -- 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: Jessica H. <Je...@gm...> - 2005-03-04 06:33:19
|
Hi, you can do this for the other check_nt checks too but only where perfdata is produced. I can say I've no programming knowledge.. :-) But when nothing works you must try something. When you have antother problem tell it, my I can help you... regards Jessica > Hi Jessica, > > Thanks for your tip! It works great!! Well. For the memory one > anyways. You didn't by chance change the other ones did you? My > programming knowledge is really bad and I'm not sure where to make the > other changes for the other checks. > > -----Original Message----- > From: Jessica Holle [mailto:Je...@gm...] > Sent: Wednesday, March 02, 2005 10:39 PM > To: Tong Young > Cc: per...@li... > Subject: Re: [Perfparse-users] Perfparse & nsclient memory check > > Hi Tom, > I've had the same problem. > You must correct the check_nt plugin, the file check_nt.c and make all > again and copy the new check_nt plugin to your other plugins. > > > case CHECK_MEMUSE: > > asprintf(&send_buffer,"%s&7", req_password); > fetch_data (server_address, server_port, send_buffer); > mem_commitLimit=atof(strtok(recv_buffer,"&")); > mem_commitByte=atof(strtok(NULL,"&")); > percent_used_space = (mem_commitByte / mem_commitLimit) > * > 100; > warning_used_space = ((float)warning_value / 100) * > mem_commitLimit; > critical_used_space = ((float)critical_value / 100) * > mem_commitLimit; > > /* Divisor should be 1048567, not 3044515, as we are > measuring "Commit Charge" here, > which equals RAM + Pagefiles. */ > asprintf(&output_message,_("Memory usage: total:%.2f Mb > - > used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)"), > mem_commitLimit / 1048567, mem_commitByte / 1048567, > percent_used_space, > (mem_commitLimit - mem_commitByte) / 1048567, > (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100); > > asprintf(&perfdata,_("Memoryusage=%.2fMb;%.2f;%.2f;0.00;%.2f"), > mem_commitByte / 1048567, > warning_used_space / 1048567, critical_used_space / > 1048567, mem_commitLimit / 1048567); > > return_code=STATE_OK; > if(check_critical_value==TRUE && percent_used_space >= > critical_value) > return_code=STATE_CRITICAL; > else if (check_warning_value==TRUE && percent_used_space > >= > warning_value) > return_code=STATE_WARNING; > > break; > > > > so it look at my plugin, the problem are the blanks between "Memory > usage". > When you check other things from check_nt it is the same problem. There > should not be a blank or a '!!! The " must stay. > > Test it and tell me if it works > > regard > > Jessica > > > > > > > > > Is anyone using nsclient (check_nt) successfully with perfparse? > > > > I have charts for some other things working so it would appear to me > > that perfparse is functioning correctly. And I get performance data > > back in what looks to be the correct format, but for some reason no > > charts appear. > > > > Here is the output in nagios from the status detail page: > > > > Status Information: Memory usage: total:945.66 Mb - used: 742.66 Mb > > (79%) - free: 202.99 Mb (21%) > > Performance Data: 'Memory usage'=742.66Mb;756.53;851.09;0.00;945.66 > > > > Here is the output if I run it at the command line: > > > > 0> ./check_nt -H testadmin01 -v MEMUSE -c 80 -w 90 > > > > Memory usage: total:945.66 Mb - used: 744.19 Mb (79%) - free: 201.47 > Mb > > (21%) | 'Memory usage'=744.19Mb;851.09;756.53;0.00;945.66 > > > > Can anyone shed some light on this? Thanks! > > > > Oh I'm using plugins v1.40...Around 2/10/2005.. And I'm using latest > > nagios 2.0 from cvs > > > > > > ------------------------------------------------------- > > 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. > > -- > Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS > GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail > > > ------------------------------------------------------- > 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: Tong Y. <To...@in...> - 2005-03-03 21:24:31
|
I'm not sure if this is what you are looking for. But there is an option to "Return to Main Menu" on the first Perfparse page. After there you can go to the Administrative Menu. And then from there, there is are some data retention policies where you can set how many days you want to retain data. =20 -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Jessica Holle Sent: Sunday, February 27, 2005 11:45 PM To: per...@li... Subject: [Perfparse-users] Data in Database Hi, I've already questions... I use the plugin check_icmp which output look like this: nagios@rzvlabwks:/usr/local/nagor/nagios/libexec> ./check_icmp -H jholle OK - jholle: rta 0.25 ms, lost 0%|rta=3D0.25ms;200;500;; pl=3D0%;60;80;; it's ok. But the Database look so: 42684 | jholle | Ping | rta | 2005-02-28 08:38:29 | 0 | 200 | 500 | 0 | | 42685 | jholle | Ping | pl | 2005-02-28 08:38:29 | =20 0 | 40 | 80 | 0 | So for the time is always a 0 value. Is this a known problem or what do I wrong? Another question is how many data is stored into my database. Is it defined how many data is stored? When yes where? Greetz Jessica -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail ------------------------------------------------------- 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 |
From: Tong Y. <To...@in...> - 2005-03-03 21:20:05
|
Hi Jessica, Thanks for your tip! It works great!! Well. For the memory one anyways. You didn't by chance change the other ones did you? My programming knowledge is really bad and I'm not sure where to make the other changes for the other checks. =20 -----Original Message----- From: Jessica Holle [mailto:Je...@gm...]=20 Sent: Wednesday, March 02, 2005 10:39 PM To: Tong Young Cc: per...@li... Subject: Re: [Perfparse-users] Perfparse & nsclient memory check Hi Tom, I've had the same problem.=20 You must correct the check_nt plugin, the file check_nt.c and make all again and copy the new check_nt plugin to your other plugins. case CHECK_MEMUSE: asprintf(&send_buffer,"%s&7", req_password); fetch_data (server_address, server_port, send_buffer); mem_commitLimit=3Datof(strtok(recv_buffer,"&")); mem_commitByte=3Datof(strtok(NULL,"&")); percent_used_space =3D (mem_commitByte / = mem_commitLimit) * 100; warning_used_space =3D ((float)warning_value / 100) * mem_commitLimit; critical_used_space =3D ((float)critical_value / 100) * mem_commitLimit; /* Divisor should be 1048567, not 3044515, as we are measuring "Commit Charge" here, which equals RAM + Pagefiles. */ asprintf(&output_message,_("Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)"), mem_commitLimit / 1048567, mem_commitByte / 1048567, percent_used_space, (mem_commitLimit - mem_commitByte) / 1048567, (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100); =20 asprintf(&perfdata,_("Memoryusage=3D%.2fMb;%.2f;%.2f;0.00;%.2f"), mem_commitByte / 1048567, warning_used_space / 1048567, critical_used_space / 1048567, mem_commitLimit / 1048567); return_code=3DSTATE_OK; if(check_critical_value=3D=3DTRUE && percent_used_space = >=3D critical_value) return_code=3DSTATE_CRITICAL; else if (check_warning_value=3D=3DTRUE && = percent_used_space >=3D warning_value) return_code=3DSTATE_WARNING; break; so it look at my plugin, the problem are the blanks between "Memory usage". When you check other things from check_nt it is the same problem. There should not be a blank or a '!!! The " must stay. Test it and tell me if it works regard Jessica > Is anyone using nsclient (check_nt) successfully with perfparse? >=20 > I have charts for some other things working so it would appear to me > that perfparse is functioning correctly. And I get performance data > back in what looks to be the correct format, but for some reason no > charts appear. >=20 > Here is the output in nagios from the status detail page: >=20 > Status Information: Memory usage: total:945.66 Mb - used: 742.66 Mb > (79%) - free: 202.99 Mb (21%)=20 > Performance Data: 'Memory usage'=3D742.66Mb;756.53;851.09;0.00;945.66=20 >=20 > Here is the output if I run it at the command line: >=20 > 0> ./check_nt -H testadmin01 -v MEMUSE -c 80 -w 90 >=20 > Memory usage: total:945.66 Mb - used: 744.19 Mb (79%) - free: 201.47 Mb > (21%) | 'Memory usage'=3D744.19Mb;851.09;756.53;0.00;945.66 >=20 > Can anyone shed some light on this? Thanks! >=20 > Oh I'm using plugins v1.40...Around 2/10/2005.. And I'm using latest > nagios 2.0 from cvs >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. --=20 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: <Mat...@ka...> - 2005-03-03 17:18:41
|
Hi all, after searching around in the nagiosplug cvs tree, I think there is no plugin which analyzes the system/user/idle cpu time. Of course, there is the check_load plugin. In my opinion, a detailed analysis of the system performance should contain at least the following metrics: - CPU: user/sys/idle and of course (since kernel 2.6) wait, collected via vmstat or even mpstat (for every single cpu) - Memory: total/used/ +/- buffers/cache using free or vmstat - swap: in/out, total/used - disk: blocks in/out using vmstat or even better using iostat (for details about every device) What do you think about it? Which plugins do you use? Thanks a lot. matthias |
From: Veiko K. <ve...@pa...> - 2005-03-03 08:47:15
|
Jessica Holle wrote: > Hi, > > I think you have written in perfparse.cfg > > No_Raw_Data = "yes" > No_Bin_Data = "yes" > > there should be "no" > > its a mistake... > > try it and let me know I have there: No_Raw_Data = "no" No_Bin_Data = "no" -- Veiko Kukk |
From: Veiko K. <ve...@pa...> - 2005-03-03 08:09:15
|
I'm using (actually trying to start using) perfparse-0.105.6 with method 4 and I configured it according to http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example My problem is that its not collecting binary data, only raw data, why? How to make it work correctly? -- Veiko Kukk |
From: Jessica H. <Je...@gm...> - 2005-03-03 06:39:25
|
Hi Tom, I've had the same problem. You must correct the check_nt plugin, the file check_nt.c and make all again and copy the new check_nt plugin to your other plugins. case CHECK_MEMUSE: asprintf(&send_buffer,"%s&7", req_password); fetch_data (server_address, server_port, send_buffer); mem_commitLimit=atof(strtok(recv_buffer,"&")); mem_commitByte=atof(strtok(NULL,"&")); percent_used_space = (mem_commitByte / mem_commitLimit) * 100; warning_used_space = ((float)warning_value / 100) * mem_commitLimit; critical_used_space = ((float)critical_value / 100) * mem_commitLimit; /* Divisor should be 1048567, not 3044515, as we are measuring "Commit Charge" here, which equals RAM + Pagefiles. */ asprintf(&output_message,_("Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)"), mem_commitLimit / 1048567, mem_commitByte / 1048567, percent_used_space, (mem_commitLimit - mem_commitByte) / 1048567, (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100); asprintf(&perfdata,_("Memoryusage=%.2fMb;%.2f;%.2f;0.00;%.2f"), mem_commitByte / 1048567, warning_used_space / 1048567, critical_used_space / 1048567, mem_commitLimit / 1048567); return_code=STATE_OK; if(check_critical_value==TRUE && percent_used_space >= critical_value) return_code=STATE_CRITICAL; else if (check_warning_value==TRUE && percent_used_space >= warning_value) return_code=STATE_WARNING; break; so it look at my plugin, the problem are the blanks between "Memory usage". When you check other things from check_nt it is the same problem. There should not be a blank or a '!!! The " must stay. Test it and tell me if it works regard Jessica > Is anyone using nsclient (check_nt) successfully with perfparse? > > I have charts for some other things working so it would appear to me > that perfparse is functioning correctly. And I get performance data > back in what looks to be the correct format, but for some reason no > charts appear. > > Here is the output in nagios from the status detail page: > > Status Information: Memory usage: total:945.66 Mb - used: 742.66 Mb > (79%) - free: 202.99 Mb (21%) > Performance Data: 'Memory usage'=742.66Mb;756.53;851.09;0.00;945.66 > > Here is the output if I run it at the command line: > > 0> ./check_nt -H testadmin01 -v MEMUSE -c 80 -w 90 > > Memory usage: total:945.66 Mb - used: 744.19 Mb (79%) - free: 201.47 Mb > (21%) | 'Memory usage'=744.19Mb;851.09;756.53;0.00;945.66 > > Can anyone shed some light on this? Thanks! > > Oh I'm using plugins v1.40...Around 2/10/2005.. And I'm using latest > nagios 2.0 from cvs > > > ------------------------------------------------------- > 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. -- 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: Tong Y. <To...@in...> - 2005-03-02 21:52:06
|
Is anyone using nsclient (check_nt) successfully with perfparse? I have charts for some other things working so it would appear to me that perfparse is functioning correctly. And I get performance data back in what looks to be the correct format, but for some reason no charts appear. Here is the output in nagios from the status detail page: Status Information: Memory usage: total:945.66 Mb - used: 742.66 Mb (79%) - free: 202.99 Mb (21%)=20 Performance Data: 'Memory usage'=3D742.66Mb;756.53;851.09;0.00;945.66=20 Here is the output if I run it at the command line: 0> ./check_nt -H testadmin01 -v MEMUSE -c 80 -w 90 Memory usage: total:945.66 Mb - used: 744.19 Mb (79%) - free: 201.47 Mb (21%) | 'Memory usage'=3D744.19Mb;851.09;756.53;0.00;945.66 Can anyone shed some light on this? Thanks! Oh I'm using plugins v1.40...Around 2/10/2005.. And I'm using latest nagios 2.0 from cvs |
From: Eduardo M. <ema...@bs...> - 2005-03-02 17:53:19
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Matthias, I have tried running perfparse as a daemon. I ran it like this /opt/nagios/bin/perfparsed -d -e /var/log/perfparsed.error.log --drop-file /var/log/perfdrop.log -l /opt/nagios/var/perfdata-service.log --storage_modules_dir /opt/nagios/lib --storage_modules_load mysql The module load successfully 2005/03/02 11:41:59 [ storage.c:95 11976 ] storage_mysql module successfully loaded But I sill see no data in the database. So I have returned to having Nagios invoke perfparse. Which still gives me the same result. ####### Ben, <SHELL> rm /opt/nagios/var/perfdata_log.perfdata-service.log.mark I restarted nagios and restarted the server just to be sure and then ran the command again. <SHELL> /opt/nagios/bin/perfparse-log2mysql -r -e /var/log/nagios.error -l /opt/nagios/var/perfdata-service.log --drop-file /var/log/perf-drop.log -U nagios -P password -D perfparse -H localhost +-----------------------------+ +-----------------------------+ | Generic statistics | | Nb Log Lines : 1 | | Nb lines parsed : 0 | | Nb lines dropped : 0 | | Start date : 2005-03-02 | | Elapsed time : 00:00:00 | | Start time : 10:24:01 | | Rate : (line/sec) 0.00 | +-----------------------------+ +-----------------------------+ +-----------------------------+ +-----------------------------+ | MySQL storage statistics | | | | New Hosts : 0 | | Metric/line : 0.00 | | New Metrics : 0 | | Metrics Recorded : 0 | | New Services : 0 | | Summary Rec Added : 0 | | New Summary Group : 0 | | SQL Queries : 19 | +-----------------------------+ +-----------------------------+ no luck yet The lock regenerated, perfdata_log.perfdata-service.log.mark has the following contents... though I am not sure if this helps.: <SHELL>less perfdata_log.perfdata-service.log.mark 0 -1573911398 -Eduardo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ per...@li... wrote: >Send Perfparse-users mailing list submissions to > per...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/perfparse-users >or, via email, send a message with subject or body 'help' to > per...@li... > >You can reach the person managing the list at > per...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Perfparse-users digest..." > > >Today's Topics: > > 1. Re: zero values in database (Jessica Holle) > 2. Re: Problems in getting data [Virus checked] (Veiko Kukk) > 3. RE: No Data in Database after checking config files... [Virus > checked] (Mat...@ka...) > 4. Re: No performance data gathered (Steve Greenland) > 5. Re:Contents of Perfparse-users digest (Eduardo Martinez) > 6. Re: Re:Contents of Perfparse-users digest (Ben Clewett) > >--__--__-- > >Message: 1 >Date: Wed, 2 Mar 2005 07:38:07 +0100 (MET) >From: "Jessica Holle" <Je...@gm...> >To: Ben Clewett <bcl...@pe...> >Cc: per...@li... >Subject: Re: [Perfparse-users] zero values in database > >Hi, > >this is the link of the check_icmp patch which doesn't work. >I tested it with all the plugins which i can download and the icmp plugin is >there, it doesn't work... > >http://perfparse.sourceforge.net/files/check_icmp.c.patch > > > > > >>Jessica Holle wrote: >> >> >>>Hi, >>> >>>here is the output with this link you gice: >>> >>> >>>nagios@rzvlabwks:~/nagios-plugins-HEAD-200503010547/plugins> patch >>>check_icmp.c check_icmp.c.patch >>>patching file check_icmp.c >>>Hunk #1 FAILED at 657. >>>1 out of 1 hunk FAILED -- saving rejects to file check_icmp.c.rej >>> >>>it doesn't work... >>> >>> >>You will have to report this to the author of this patch. Can you tell >>me where you got it from? >> >>The correct place for the line I gave you is after the textdomain line. >> But I see this was for the file check_load. I can see you confusion >>since this does not exist in check_icmp. :) >> >>This may still work. Try adding this after line 347, which will now read: >> >> icmp_sockerrno = udp_sockerrno = tcp_sockerrno = sockets = 0; >> >> setlocale(LC_NUMERIC, "POSIX"); >> >>This should result in all ',' becoming '.'. Both in input and output. >> >>I do very much hope this is your problem fixed. >> >>Ben. >> >> >> >> >> >> >> >> >> >> >> >>>Where is the right place for this? >>> >>>setlocale(LC_NUMERIC, "POSIX"); >>> >>>can I write it where I want? Sorry for my noob qustions... >>> >>> >>> >>> >>> >>>>Jessica, >>>> >>>>The fix I gave must work. Specifically the addition of this line in the >>>>correct place: >>>> >>>>setlocale(LC_NUMERIC, "POSIX"); >>>> >>>>This will convert the ',' to '.' and allow the plugin to work. >>>> >>>>I think you may need to start by downloading the very latest plugins >>>> >>>> >>>>>>from here: >>>>> >>>>> >>>>http://nagiosplug.sourceforge.net/snapshot/ >>>> >>>>Take the one containing the work 'HEAD'. >>>> >>>>Let me know, >>>> >>>>Ben >>>> >>>> >>>> >>>> >>>>Jessica Holle wrote: >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>I've tested the two things, but the problem is already the same. >>>>> >>>>>I can nithing find a place in the plugins where I should copy the one >>>>> >>>>> >>>>lin >>>> >>>> >>>> >>>>>you told. This is only in the check_load plugin. >>>>> >>>>>I think this problem is because of the point between the numbers there >>>>>should be a . !!! >>>>> >>>>>Another problem is the check_nt plugin... There are perfdata but no >>>>> >>>>> >>data >> >> >>>>is >>>> >>>> >>>> >>>>>written in the mysql database. >>>>> >>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_nt -H jholle -v >>>>>USEDDISKSPACE -l C -w 85 -c 95 >>>>>C:\ - total: 38,28 Gb - used: 3,72 Gb (10%) - free 34,56 Gb (90%) | >>>>> >>>>> >>'C:\ >> >> >>>>>Used Space'=3,72Gb;32,54;36,36;0.00;38,28 >>>>> >>>>>here are perfdata, this data is written in the log but not in the >>>>>database... >>>>> >>>>> >>>>>I've found patches for some plugins on the perparse homepage... but >>>>> >>>>> >>they >> >> >>>>>doesn't work... >>>>> >>>>>nagios@rzvlabwks:~/nagios-plugins-1.4/plugins> patch check_nt.c >>>>>check_nt.c.patch >>>>>patching file check_nt.c >>>>>Hunk #1 FAILED at 2. >>>>>Hunk #2 FAILED at 81. >>>>>Hunk #3 FAILED at 140. >>>>>Hunk #4 FAILED at 164. >>>>>Hunk #5 FAILED at 202. >>>>>Hunk #6 FAILED at 223. >>>>>Hunk #7 FAILED at 255. >>>>>Hunk #8 FAILED at 291. >>>>>Hunk #9 FAILED at 352. >>>>>Hunk #10 FAILED at 545. >>>>>Hunk #11 succeeded at 675 (offset 103 lines). >>>>>Hunk #12 succeeded at 685 (offset 103 lines). >>>>>Hunk #13 succeeded at 695 (offset 103 lines). >>>>>Hunk #14 succeeded at 716 with fuzz 1 (offset 104 lines). >>>>>10 out of 14 hunks FAILED -- saving rejects to file check_nt.c.rej >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Jessica, >>>>>> >>>>>>Sorry I missed that. The answer is however the same. Try editing >>>>>>and/or recompiling your plugin as I suggest. >>>>>> >>>>>>Regards, >>>>>> >>>>>>Ben Clewett. >>>>>> >>>>>> >>>>>>Jessica Holle wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Sorry, >>>>>>> >>>>>>>but my problem is nocht the check_load! For this I've found an >>>>>>> >>>>>>> >>>>>>solution:-) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>My problem is the check_icmp plugin. >>>>>>> >>>>>>>or is this problem solved if I configure it again? >>>>>>> >>>>>>>regards jessica >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Jessica, >>>>>>>> >>>>>>>>These are known bugs in the plugins which are causing lots of users >>>>>>>>problems. >>>>>>>> >>>>>>>>I can suggest two solutions. >>>>>>>> >>>>>>>>1. Recompile the plugins using: >>>>>>>> >>>>>>>>./configure --disable-nls >>>>>>>> >>>>>>>>I have not tested this, but I believe this should work. >>>>>>>> >>>>>>>>2. After the 'textdomain' call at the start of the plugin source >>>>>>>> >>>>>>>> >>code, >> >> >>>>>>>>add the line: >>>>>>>> >>>>>>>>setlocale(LC_NUMERIC, "POSIX"); >>>>>>>> >>>>>>>>Eg, with your problem plugin check_load. Edit plugins/check_load.c: >>>>>>>> >>>>>>>>-------------------check_load.c------------------- >>>>>>>> >>>>>>>>int >>>>>>>>main (int argc, char **argv) >>>>>>>>{ >>>>>>>> int result = STATE_UNKNOWN; >>>>>>>> >>>>>>>>#if HAVE_GETLOADAVG==1 >>>>>>>> double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains >>>>>>>>about unitialized arrays */ >>>>>>>>#else >>>>>>>># if HAVE_PROC_LOADAVG==1 >>>>>>>> FILE *fp; >>>>>>>> char input_buffer[MAX_INPUT_BUFFER]; >>>>>>>> char *tmp_ptr; >>>>>>>># else >>>>>>>> char input_buffer[MAX_INPUT_BUFFER]; >>>>>>>># endif >>>>>>>>#endif >>>>>>>> >>>>>>>> float la1, la5, la15; >>>>>>>> >>>>>>>> setlocale (LC_ALL, ""); >>>>>>>> bindtextdomain (PACKAGE, LOCALEDIR); >>>>>>>> textdomain (PACKAGE); >>>>>>>> >>>>>>>> setlocale(LC_NUMERIC, "POSIX"); <--- HERE!! >>>>>>>> >>>>>>>>-------------------check_load.c------------------- >>>>>>>> >>>>>>>>This should sort out your problems. Please let us know. >>>>>>>> >>>>>>>>Regards, >>>>>>>> >>>>>>>>Ben. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>Jessica Holle wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Sorry, but I've forgotten another thing. >>>>>>>>> >>>>>>>>>First I tell you something, so it's better to understand I hope. >>>>>>>>> >>>>>>>>>I had problems with the check_load plugin: >>>>>>>>> >>>>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w >>>>>>>>> >>>>>>>>> >>>>1.5,1.5,1.5 >>>> >>>> >>>> >>>>>>>>-c >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>4.0,2.0,2.0 >>>>>>>>>Warning threshold must be float or float triplet! >>>>>>>>> >>>>>>>>>Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 >>>>>>>>> >>>>>>>>> >>>>>>>>>So I get this bad output, but I've found a solution: >>>>>>>>> >>>>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w >>>>>>>>> >>>>>>>>> >>>>1,5:1,5:1,5 >>>> >>>> >>>> >>>>>>>>-c >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>4,0:2,0:2,0 >>>>>>>>>OK - load average: 0,27, 0,30, >>>>>>>>>0,29|load1=0,270000;1,500000;4,000000;0,000000 >>>>>>>>>load5=0,300000;1,500000;2,000000;0,000000 >>>>>>>>>load15=0,290000;1,500000;2,000000;0,000000 >>>>>>>>> >>>>>>>>> >>>>>>>>>So I think there is a problem with , and . !!! >>>>>>>>> >>>>>>>>>Some days before the first "version" of my check_load numbers >>>>>>>>> >>>>>>>>> >>worked >> >> >>>>>>but >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>>now >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>I do it with the second. >>>>>>>>> >>>>>>>>> >>>>>>>>>And now to my right problem... >>>>>>>>> >>>>>>>>>It's about the values in my database: >>>>>>>>> >>>>>>>>>47020 | jholle | Ping | rta | 2005-02-28 >>>>>>>>> >>>>>>>>> >>>>15:51:39 >>>> >>>> >>>> >>>>>>| >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>0 | 85 | 95 | 0 | >>>>>>>>>| 47021 | jholle | Ping | pl | 2005-02-28 >>>>>>>>> >>>>>>>>> >>>>>>15:51:39 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>>| >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>0 | 40 | 80 | 0 | >>>>>>>>> >>>>>>>>> >>>>>>>>>There are no values only a zero. >>>>>>>>> >>>>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_icmp -H jholle >>>>>>>>>OK - jholle: rta 0.224ms, lost 0%|rta=0.224ms;200.000;500.000;0; >>>>>>>>>pl=0%;40;80;; >>>>>>>>> >>>>>>>>> >>>>>>>>>But here are values. When this value goes over 1 it is shown in >>>>>>>>> >>>>>>>>> >>>>>>>>database, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>but only as a 1 not the float integers. >>>>>>>>>I think this is because of the . ! I think it is like my first >>>>>>>>> >>>>>>>>> >>>>problem. >>>> >>>> >>>> >>>>>>>>>there was a point which could not be interpreted and here is a >>>>>>>>> >>>>>>>>> >>point >> >> >>>>>>>>again. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>I don't know but I think when there is a , and not a . the problem >>>>>>>>> >>>>>>>>> >>is >> >> >>>>>>>>>solved... >>>>>>>>> >>>>>>>>>Can I think right ??? >>>>>>>>> >>>>>>>>> >>>>>>>>> > > > |
From: Ben C. <bcl...@pe...> - 2005-03-02 15:54:45
|
Can you please try deleting your mark file? Something like /usr/local/nagios/etc/perfdata_log.serviceperf.log.mark This is designed to: - Mark where in the source file you have parsed up to. - Check the file for corruption. But there is a bug. When the source file is deleted, this mark file must also be deleted. Otherwise PerfParse will exit without giving any message or line in the log file to explain why. Ben. Eduardo Martinez wrote: > > Update for : > > No Data in Database after checking config files... > > I ran the following command: > <SHELL> /opt/nagios/bin/perfparse-log2mysql -r -e /var/log/nagios.error > -l /opt/nagios/var/perfdata-service.log --drop-file > /var/log/perf-drop.log -U nagios -P password -D perfparse -H localhost > +-----------------------------+ +-----------------------------+ > | Generic statistics | | Nb Log Lines : 1 | > | Nb lines parsed : 0 | | Nb lines dropped : 0 | > | Start date : 2005-03-02 | | Elapsed time : 00:00:00 | > | Start time : 09:34:27 | | Rate : (line/sec) 0.00 | > +-----------------------------+ +-----------------------------+ > > +-----------------------------+ +-----------------------------+ > | MySQL storage statistics | | > | > | New Hosts : 0 | | Metric/line : 0.00 > | > | New Metrics : 0 | | Metrics Recorded : > 0 | > | New Services : 0 | | Summary Rec Added : 0 | > | New Summary Group : 0 | | SQL Queries : 19 | > +-----------------------------+ +-----------------------------+ > > I received queries but not data in the database. No storage anything. > When I go to > > http://localhost/nagios/cgi-bin/perfparse.cgi > I don't see any data. > > -Eduardo > > per...@li... wrote: > >> Send Perfparse-users mailing list submissions to >> per...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/perfparse-users >> or, via email, send a message with subject or body 'help' to >> per...@li... >> >> You can reach the person managing the list at >> per...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Perfparse-users digest..." >> >> >> Today's Topics: >> >> 1. Re: zero values in database (Jessica Holle) >> 2. Re: zero values in database (Ben Clewett) >> 3. Re: zero values in database (Jessica Holle) >> 4. Re: zero values in database (Ben Clewett) >> 5. No Data in Database after checking config files... (Eduardo >> Martinez) >> >> --__--__-- >> >> Message: 1 >> Date: Tue, 1 Mar 2005 14:34:53 +0100 (MET) >> From: "Jessica Holle" <Je...@gm...> >> To: Ben Clewett <bcl...@pe...> >> Cc: per...@li... >> Subject: Re: [Perfparse-users] zero values in database >> >> >> Hi, >> >> I've tested the two things, but the problem is already the same. >> >> I can nithing find a place in the plugins where I should copy the one lin >> you told. This is only in the check_load plugin. >> I think this problem is because of the point between the numbers there >> should be a . !!! >> >> Another problem is the check_nt plugin... There are perfdata but no >> data is >> written in the mysql database. >> nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_nt -H jholle -v >> USEDDISKSPACE -l C -w 85 -c 95 >> C:\ - total: 38,28 Gb - used: 3,72 Gb (10%) - free 34,56 Gb (90%) | 'C:\ >> Used Space'=3,72Gb;32,54;36,36;0.00;38,28 >> >> here are perfdata, this data is written in the log but not in the >> database... >> >> >> I've found patches for some plugins on the perparse homepage... but they >> doesn't work... >> nagios@rzvlabwks:~/nagios-plugins-1.4/plugins> patch check_nt.c >> check_nt.c.patch >> patching file check_nt.c >> Hunk #1 FAILED at 2. >> Hunk #2 FAILED at 81. >> Hunk #3 FAILED at 140. >> Hunk #4 FAILED at 164. >> Hunk #5 FAILED at 202. >> Hunk #6 FAILED at 223. >> Hunk #7 FAILED at 255. >> Hunk #8 FAILED at 291. >> Hunk #9 FAILED at 352. >> Hunk #10 FAILED at 545. >> Hunk #11 succeeded at 675 (offset 103 lines). >> Hunk #12 succeeded at 685 (offset 103 lines). >> Hunk #13 succeeded at 695 (offset 103 lines). >> Hunk #14 succeeded at 716 with fuzz 1 (offset 104 lines). >> 10 out of 14 hunks FAILED -- saving rejects to file check_nt.c.rej >> >> >> >> >> >> >>> Jessica, >>> >>> Sorry I missed that. The answer is however the same. Try editing >>> and/or recompiling your plugin as I suggest. >>> >>> Regards, >>> >>> Ben Clewett. >>> >>> >>> Jessica Holle wrote: >>> >>> >>>> Sorry, >>>> >>>> but my problem is nocht the check_load! For this I've found an >>>> >>> >>> solution:-) >>> >>> >>>> My problem is the check_icmp plugin. >>>> >>>> or is this problem solved if I configure it again? >>>> >>>> regards jessica >>>> >>>> >>>> >>>> >>>> >>>>> Jessica, >>>>> >>>>> These are known bugs in the plugins which are causing lots of users >>>>> problems. >>>>> >>>>> I can suggest two solutions. >>>>> >>>>> 1. Recompile the plugins using: >>>>> >>>>> ./configure --disable-nls >>>>> >>>>> I have not tested this, but I believe this should work. >>>>> >>>>> 2. After the 'textdomain' call at the start of the plugin source >>>>> code, add the line: >>>>> >>>>> setlocale(LC_NUMERIC, "POSIX"); >>>>> >>>>> Eg, with your problem plugin check_load. Edit plugins/check_load.c: >>>>> >>>>> -------------------check_load.c------------------- >>>>> >>>>> int >>>>> main (int argc, char **argv) >>>>> { >>>>> int result = STATE_UNKNOWN; >>>>> >>>>> #if HAVE_GETLOADAVG==1 >>>>> double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains >>>>> about unitialized arrays */ >>>>> #else >>>>> # if HAVE_PROC_LOADAVG==1 >>>>> FILE *fp; >>>>> char input_buffer[MAX_INPUT_BUFFER]; >>>>> char *tmp_ptr; >>>>> # else >>>>> char input_buffer[MAX_INPUT_BUFFER]; >>>>> # endif >>>>> #endif >>>>> >>>>> float la1, la5, la15; >>>>> >>>>> setlocale (LC_ALL, ""); >>>>> bindtextdomain (PACKAGE, LOCALEDIR); >>>>> textdomain (PACKAGE); >>>>> >>>>> setlocale(LC_NUMERIC, "POSIX"); <--- HERE!! >>>>> >>>>> -------------------check_load.c------------------- >>>>> >>>>> This should sort out your problems. Please let us know. >>>>> >>>>> Regards, >>>>> >>>>> Ben. >>>>> >>>>> >>>>> >>>>> Jessica Holle wrote: >>>>> >>>>> >>>>> >>>>>> Sorry, but I've forgotten another thing. >>>>>> >>>>>> First I tell you something, so it's better to understand I hope. >>>>>> >>>>>> I had problems with the check_load plugin: >>>>>> >>>>>> nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w >>>>>> 1.5,1.5,1.5 >>>>>> >>>>> >>>>> -c >>>>> >>>>> >>>>> >>>>>> 4.0,2.0,2.0 >>>>>> Warning threshold must be float or float triplet! >>>>>> >>>>>> Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 >>>>>> >>>>>> >>>>>> So I get this bad output, but I've found a solution: >>>>>> >>>>>> nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w >>>>>> 1,5:1,5:1,5 >>>>>> >>>>> >>>>> -c >>>>> >>>>> >>>>> >>>>>> 4,0:2,0:2,0 >>>>>> OK - load average: 0,27, 0,30, >>>>>> 0,29|load1=0,270000;1,500000;4,000000;0,000000 >>>>>> load5=0,300000;1,500000;2,000000;0,000000 >>>>>> load15=0,290000;1,500000;2,000000;0,000000 >>>>>> >>>>>> >>>>>> So I think there is a problem with , and . !!! >>>>>> >>>>>> Some days before the first "version" of my check_load numbers worked >>>>>> >>> >>> but >>> >>> >>>>> now >>>>> >>>>> >>>>> >>>>>> I do it with the second. >>>>>> >>>>>> >>>>>> And now to my right problem... >>>>>> >>>>>> It's about the values in my database: >>>>>> >>>>>> 47020 | jholle | Ping | rta | 2005-02-28 >>>>>> 15:51:39 >>>>>> >>> >>> | >>> >>> >>>>> >>>>> >>>>> >>>>> >>>>>> 0 | 85 | 95 | 0 | >>>>>> | 47021 | jholle | Ping | pl | 2005-02-28 >>>>>> >>> >>> 15:51:39 >>> >>> >>>>> | >>>>> >>>>> >>>>>> 0 | 40 | 80 | 0 | >>>>>> >>>>>> >>>>>> There are no values only a zero. >>>>>> >>>>>> nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_icmp -H jholle >>>>>> OK - jholle: rta 0.224ms, lost 0%|rta=0.224ms;200.000;500.000;0; >>>>>> pl=0%;40;80;; >>>>>> >>>>>> >>>>>> But here are values. When this value goes over 1 it is shown in >>>>>> >>>>> >>>>> database, >>>>> >>>>> >>>>> >>>>>> but only as a 1 not the float integers. >>>>>> I think this is because of the . ! I think it is like my first >>>>>> problem. >>>>>> there was a point which could not be interpreted and here is a point >>>>>> >>>>> >>>>> again. >>>>> >>>>> >>>>> >>>>>> I don't know but I think when there is a , and not a . the problem is >>>>>> solved... >>>>>> Can I think right ??? >>>>>> >>>>>> >> >> >> >> > > > > ------------------------------------------------------- > 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-03-02 15:42:47
|
Update for : No Data in Database after checking config files... I ran the following command: <SHELL> /opt/nagios/bin/perfparse-log2mysql -r -e /var/log/nagios.error -l /opt/nagios/var/perfdata-service.log --drop-file /var/log/perf-drop.log -U nagios -P password -D perfparse -H localhost +-----------------------------+ +-----------------------------+ | Generic statistics | | Nb Log Lines : 1 | | Nb lines parsed : 0 | | Nb lines dropped : 0 | | Start date : 2005-03-02 | | Elapsed time : 00:00:00 | | Start time : 09:34:27 | | Rate : (line/sec) 0.00 | +-----------------------------+ +-----------------------------+ +-----------------------------+ +-----------------------------+ | MySQL storage statistics | | | | New Hosts : 0 | | Metric/line : 0.00 | | New Metrics : 0 | | Metrics Recorded : 0 | | New Services : 0 | | Summary Rec Added : 0 | | New Summary Group : 0 | | SQL Queries : 19 | +-----------------------------+ +-----------------------------+ I received queries but not data in the database. No storage anything. When I go to http://localhost/nagios/cgi-bin/perfparse.cgi I don't see any data. -Eduardo per...@li... wrote: >Send Perfparse-users mailing list submissions to > per...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/perfparse-users >or, via email, send a message with subject or body 'help' to > per...@li... > >You can reach the person managing the list at > per...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Perfparse-users digest..." > > >Today's Topics: > > 1. Re: zero values in database (Jessica Holle) > 2. Re: zero values in database (Ben Clewett) > 3. Re: zero values in database (Jessica Holle) > 4. Re: zero values in database (Ben Clewett) > 5. No Data in Database after checking config files... (Eduardo Martinez) > >--__--__-- > >Message: 1 >Date: Tue, 1 Mar 2005 14:34:53 +0100 (MET) >From: "Jessica Holle" <Je...@gm...> >To: Ben Clewett <bcl...@pe...> >Cc: per...@li... >Subject: Re: [Perfparse-users] zero values in database > > >Hi, > >I've tested the two things, but the problem is already the same. > >I can nithing find a place in the plugins where I should copy the one lin >you told. This is only in the check_load plugin. > >I think this problem is because of the point between the numbers there >should be a . !!! > >Another problem is the check_nt plugin... There are perfdata but no data is >written in the mysql database. > >nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_nt -H jholle -v >USEDDISKSPACE -l C -w 85 -c 95 >C:\ - total: 38,28 Gb - used: 3,72 Gb (10%) - free 34,56 Gb (90%) | 'C:\ >Used Space'=3,72Gb;32,54;36,36;0.00;38,28 > >here are perfdata, this data is written in the log but not in the >database... > > >I've found patches for some plugins on the perparse homepage... but they >doesn't work... > >nagios@rzvlabwks:~/nagios-plugins-1.4/plugins> patch check_nt.c >check_nt.c.patch >patching file check_nt.c >Hunk #1 FAILED at 2. >Hunk #2 FAILED at 81. >Hunk #3 FAILED at 140. >Hunk #4 FAILED at 164. >Hunk #5 FAILED at 202. >Hunk #6 FAILED at 223. >Hunk #7 FAILED at 255. >Hunk #8 FAILED at 291. >Hunk #9 FAILED at 352. >Hunk #10 FAILED at 545. >Hunk #11 succeeded at 675 (offset 103 lines). >Hunk #12 succeeded at 685 (offset 103 lines). >Hunk #13 succeeded at 695 (offset 103 lines). >Hunk #14 succeeded at 716 with fuzz 1 (offset 104 lines). >10 out of 14 hunks FAILED -- saving rejects to file check_nt.c.rej > > > > > > >>Jessica, >> >>Sorry I missed that. The answer is however the same. Try editing >>and/or recompiling your plugin as I suggest. >> >>Regards, >> >>Ben Clewett. >> >> >>Jessica Holle wrote: >> >> >>>Sorry, >>> >>>but my problem is nocht the check_load! For this I've found an >>> >>> >>solution:-) >> >> >>>My problem is the check_icmp plugin. >>> >>>or is this problem solved if I configure it again? >>> >>>regards jessica >>> >>> >>> >>> >>> >>>>Jessica, >>>> >>>>These are known bugs in the plugins which are causing lots of users >>>>problems. >>>> >>>>I can suggest two solutions. >>>> >>>>1. Recompile the plugins using: >>>> >>>>./configure --disable-nls >>>> >>>>I have not tested this, but I believe this should work. >>>> >>>>2. After the 'textdomain' call at the start of the plugin source code, >>>>add the line: >>>> >>>>setlocale(LC_NUMERIC, "POSIX"); >>>> >>>>Eg, with your problem plugin check_load. Edit plugins/check_load.c: >>>> >>>>-------------------check_load.c------------------- >>>> >>>>int >>>>main (int argc, char **argv) >>>>{ >>>> int result = STATE_UNKNOWN; >>>> >>>>#if HAVE_GETLOADAVG==1 >>>> double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains >>>>about unitialized arrays */ >>>>#else >>>># if HAVE_PROC_LOADAVG==1 >>>> FILE *fp; >>>> char input_buffer[MAX_INPUT_BUFFER]; >>>> char *tmp_ptr; >>>># else >>>> char input_buffer[MAX_INPUT_BUFFER]; >>>># endif >>>>#endif >>>> >>>> float la1, la5, la15; >>>> >>>> setlocale (LC_ALL, ""); >>>> bindtextdomain (PACKAGE, LOCALEDIR); >>>> textdomain (PACKAGE); >>>> >>>> setlocale(LC_NUMERIC, "POSIX"); <--- HERE!! >>>> >>>>-------------------check_load.c------------------- >>>> >>>>This should sort out your problems. Please let us know. >>>> >>>>Regards, >>>> >>>>Ben. >>>> >>>> >>>> >>>>Jessica Holle wrote: >>>> >>>> >>>> >>>>>Sorry, but I've forgotten another thing. >>>>> >>>>>First I tell you something, so it's better to understand I hope. >>>>> >>>>>I had problems with the check_load plugin: >>>>> >>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w 1.5,1.5,1.5 >>>>> >>>>> >>>>-c >>>> >>>> >>>> >>>>>4.0,2.0,2.0 >>>>>Warning threshold must be float or float triplet! >>>>> >>>>>Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 >>>>> >>>>> >>>>>So I get this bad output, but I've found a solution: >>>>> >>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w 1,5:1,5:1,5 >>>>> >>>>> >>>>-c >>>> >>>> >>>> >>>>>4,0:2,0:2,0 >>>>>OK - load average: 0,27, 0,30, >>>>>0,29|load1=0,270000;1,500000;4,000000;0,000000 >>>>>load5=0,300000;1,500000;2,000000;0,000000 >>>>>load15=0,290000;1,500000;2,000000;0,000000 >>>>> >>>>> >>>>>So I think there is a problem with , and . !!! >>>>> >>>>>Some days before the first "version" of my check_load numbers worked >>>>> >>>>> >>but >> >> >>>>now >>>> >>>> >>>> >>>>>I do it with the second. >>>>> >>>>> >>>>>And now to my right problem... >>>>> >>>>>It's about the values in my database: >>>>> >>>>>47020 | jholle | Ping | rta | 2005-02-28 15:51:39 >>>>> >>>>> >>| >> >> >>>> >>>> >>>> >>>> >>>>>0 | 85 | 95 | 0 | >>>>>| 47021 | jholle | Ping | pl | 2005-02-28 >>>>> >>>>> >>15:51:39 >> >> >>>>| >>>> >>>> >>>> >>>>> 0 | 40 | 80 | 0 | >>>>> >>>>> >>>>>There are no values only a zero. >>>>> >>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_icmp -H jholle >>>>>OK - jholle: rta 0.224ms, lost 0%|rta=0.224ms;200.000;500.000;0; >>>>>pl=0%;40;80;; >>>>> >>>>> >>>>>But here are values. When this value goes over 1 it is shown in >>>>> >>>>> >>>>database, >>>> >>>> >>>> >>>>>but only as a 1 not the float integers. >>>>>I think this is because of the . ! I think it is like my first problem. >>>>>there was a point which could not be interpreted and here is a point >>>>> >>>>> >>>>again. >>>> >>>> >>>> >>>>>I don't know but I think when there is a , and not a . the problem is >>>>>solved... >>>>> >>>>>Can I think right ??? >>>>> >>>>> >>>>> > > > |
From: Steve G. <st...@ls...> - 2005-03-02 15:08:34
|
On Tue, Mar 01, 2005 at 03:11:58PM -0700, James Derieg wrote: > I may be missing something very obvious, but I do not seem to be getting > any performance data back from the plugins when they check a service. > The perfdata-service.log file contains the following after the DNS > plugin runs > > : > > 1109711576 bb DNS Service Check $ OK > $ > Do you have 'process_performance_data' enabled at the global level *and* 'process_perf_data' at the individual service level? -- "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net) |
From: <Mat...@ka...> - 2005-03-02 08:58:42
|
per...@li... schrieb am 01.03.2005 19:05:59: > Using Method4 with Nagios 1.2 > Using FAQ > http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example > I have installed perfparse per the FAQ and it seems to be going ok > except that I don't have any data in the mysql tables. > > Am I missing a step? Did I do something wrong? > > I abandoned my last install because nagios 2.x is in beta, you guys > supported nagios 1.2 more and I receive only comments but no help on the > configuration... so... > Here is my next shot at this with nagios 1.2 > > > > I am using RHAS3. > I've installed the following packages. Hi Eduardo, did you start perfparsed as a deamon? If not, you have to start perfparsed and then start nagios. matthias |
From: Veiko K. <ve...@pa...> - 2005-03-02 08:08:11
|
Steve Greenland wrote: > On Tue, Feb 22, 2005 at 11:34:02AM +0100, Oliver Musco wrote: > >>>>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... > > > Guess: you ran perfparsed as root (or some other user) and it created > /tmp/perfparse.drop, and you're now starting perfparsed as a different > user, and it's not able to open the existing directory. I'm having same problem and there is no /tmp/perfparse.drop directory, when I create it manually, it still gives the same error message. -- Veiko Kukk |
From: Jessica H. <Je...@gm...> - 2005-03-02 06:38:38
|
Hi, this is the link of the check_icmp patch which doesn't work. I tested it with all the plugins which i can download and the icmp plugin is there, it doesn't work... http://perfparse.sourceforge.net/files/check_icmp.c.patch > Jessica Holle wrote: > > Hi, > > > > here is the output with this link you gice: > > > > > > nagios@rzvlabwks:~/nagios-plugins-HEAD-200503010547/plugins> patch > > check_icmp.c check_icmp.c.patch > > patching file check_icmp.c > > Hunk #1 FAILED at 657. > > 1 out of 1 hunk FAILED -- saving rejects to file check_icmp.c.rej > > > > it doesn't work... > > You will have to report this to the author of this patch. Can you tell > me where you got it from? > > The correct place for the line I gave you is after the textdomain line. > But I see this was for the file check_load. I can see you confusion > since this does not exist in check_icmp. :) > > This may still work. Try adding this after line 347, which will now read: > > icmp_sockerrno = udp_sockerrno = tcp_sockerrno = sockets = 0; > > setlocale(LC_NUMERIC, "POSIX"); > > This should result in all ',' becoming '.'. Both in input and output. > > I do very much hope this is your problem fixed. > > Ben. > > > > > > > > > > > > > > > Where is the right place for this? > > > > setlocale(LC_NUMERIC, "POSIX"); > > > > can I write it where I want? Sorry for my noob qustions... > > > > > > > >>Jessica, > >> > >>The fix I gave must work. Specifically the addition of this line in the > >>correct place: > >> > >>setlocale(LC_NUMERIC, "POSIX"); > >> > >>This will convert the ',' to '.' and allow the plugin to work. > >> > >>I think you may need to start by downloading the very latest plugins > >>>>from here: > >> > >>http://nagiosplug.sourceforge.net/snapshot/ > >> > >>Take the one containing the work 'HEAD'. > >> > >>Let me know, > >> > >>Ben > >> > >> > >> > >> > >>Jessica Holle wrote: > >> > >>>Hi, > >>> > >>>I've tested the two things, but the problem is already the same. > >>> > >>>I can nithing find a place in the plugins where I should copy the one > >> > >>lin > >> > >>>you told. This is only in the check_load plugin. > >>> > >>>I think this problem is because of the point between the numbers there > >>>should be a . !!! > >>> > >>>Another problem is the check_nt plugin... There are perfdata but no > data > >> > >>is > >> > >>>written in the mysql database. > >>> > >>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_nt -H jholle -v > >>>USEDDISKSPACE -l C -w 85 -c 95 > >>>C:\ - total: 38,28 Gb - used: 3,72 Gb (10%) - free 34,56 Gb (90%) | > 'C:\ > >>>Used Space'=3,72Gb;32,54;36,36;0.00;38,28 > >>> > >>>here are perfdata, this data is written in the log but not in the > >>>database... > >>> > >>> > >>>I've found patches for some plugins on the perparse homepage... but > they > >>>doesn't work... > >>> > >>>nagios@rzvlabwks:~/nagios-plugins-1.4/plugins> patch check_nt.c > >>>check_nt.c.patch > >>>patching file check_nt.c > >>>Hunk #1 FAILED at 2. > >>>Hunk #2 FAILED at 81. > >>>Hunk #3 FAILED at 140. > >>>Hunk #4 FAILED at 164. > >>>Hunk #5 FAILED at 202. > >>>Hunk #6 FAILED at 223. > >>>Hunk #7 FAILED at 255. > >>>Hunk #8 FAILED at 291. > >>>Hunk #9 FAILED at 352. > >>>Hunk #10 FAILED at 545. > >>>Hunk #11 succeeded at 675 (offset 103 lines). > >>>Hunk #12 succeeded at 685 (offset 103 lines). > >>>Hunk #13 succeeded at 695 (offset 103 lines). > >>>Hunk #14 succeeded at 716 with fuzz 1 (offset 104 lines). > >>>10 out of 14 hunks FAILED -- saving rejects to file check_nt.c.rej > >>> > >>> > >>> > >>> > >>> > >>> > >>>>Jessica, > >>>> > >>>>Sorry I missed that. The answer is however the same. Try editing > >>>>and/or recompiling your plugin as I suggest. > >>>> > >>>>Regards, > >>>> > >>>>Ben Clewett. > >>>> > >>>> > >>>>Jessica Holle wrote: > >>>> > >>>> > >>>>>Sorry, > >>>>> > >>>>>but my problem is nocht the check_load! For this I've found an > >>>> > >>>>solution:-) > >>>> > >>>> > >>>>>My problem is the check_icmp plugin. > >>>>> > >>>>>or is this problem solved if I configure it again? > >>>>> > >>>>>regards jessica > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Jessica, > >>>>>> > >>>>>>These are known bugs in the plugins which are causing lots of users > >>>>>>problems. > >>>>>> > >>>>>>I can suggest two solutions. > >>>>>> > >>>>>>1. Recompile the plugins using: > >>>>>> > >>>>>>./configure --disable-nls > >>>>>> > >>>>>>I have not tested this, but I believe this should work. > >>>>>> > >>>>>>2. After the 'textdomain' call at the start of the plugin source > code, > >>>>>>add the line: > >>>>>> > >>>>>>setlocale(LC_NUMERIC, "POSIX"); > >>>>>> > >>>>>>Eg, with your problem plugin check_load. Edit plugins/check_load.c: > >>>>>> > >>>>>>-------------------check_load.c------------------- > >>>>>> > >>>>>>int > >>>>>>main (int argc, char **argv) > >>>>>>{ > >>>>>> int result = STATE_UNKNOWN; > >>>>>> > >>>>>>#if HAVE_GETLOADAVG==1 > >>>>>> double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains > >>>>>>about unitialized arrays */ > >>>>>>#else > >>>>>># if HAVE_PROC_LOADAVG==1 > >>>>>> FILE *fp; > >>>>>> char input_buffer[MAX_INPUT_BUFFER]; > >>>>>> char *tmp_ptr; > >>>>>># else > >>>>>> char input_buffer[MAX_INPUT_BUFFER]; > >>>>>># endif > >>>>>>#endif > >>>>>> > >>>>>> float la1, la5, la15; > >>>>>> > >>>>>> setlocale (LC_ALL, ""); > >>>>>> bindtextdomain (PACKAGE, LOCALEDIR); > >>>>>> textdomain (PACKAGE); > >>>>>> > >>>>>> setlocale(LC_NUMERIC, "POSIX"); <--- HERE!! > >>>>>> > >>>>>>-------------------check_load.c------------------- > >>>>>> > >>>>>>This should sort out your problems. Please let us know. > >>>>>> > >>>>>>Regards, > >>>>>> > >>>>>>Ben. > >>>>>> > >>>>>> > >>>>>> > >>>>>>Jessica Holle wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>>>Sorry, but I've forgotten another thing. > >>>>>>> > >>>>>>>First I tell you something, so it's better to understand I hope. > >>>>>>> > >>>>>>>I had problems with the check_load plugin: > >>>>>>> > >>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w > >> > >>1.5,1.5,1.5 > >> > >>>>>>-c > >>>>>> > >>>>>> > >>>>>> > >>>>>>>4.0,2.0,2.0 > >>>>>>>Warning threshold must be float or float triplet! > >>>>>>> > >>>>>>>Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 > >>>>>>> > >>>>>>> > >>>>>>>So I get this bad output, but I've found a solution: > >>>>>>> > >>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_load -w > >> > >>1,5:1,5:1,5 > >> > >>>>>>-c > >>>>>> > >>>>>> > >>>>>> > >>>>>>>4,0:2,0:2,0 > >>>>>>>OK - load average: 0,27, 0,30, > >>>>>>>0,29|load1=0,270000;1,500000;4,000000;0,000000 > >>>>>>>load5=0,300000;1,500000;2,000000;0,000000 > >>>>>>>load15=0,290000;1,500000;2,000000;0,000000 > >>>>>>> > >>>>>>> > >>>>>>>So I think there is a problem with , and . !!! > >>>>>>> > >>>>>>>Some days before the first "version" of my check_load numbers > worked > >>>> > >>>>but > >>>> > >>>> > >>>>>>now > >>>>>> > >>>>>> > >>>>>> > >>>>>>>I do it with the second. > >>>>>>> > >>>>>>> > >>>>>>>And now to my right problem... > >>>>>>> > >>>>>>>It's about the values in my database: > >>>>>>> > >>>>>>>47020 | jholle | Ping | rta | 2005-02-28 > >> > >>15:51:39 > >> > >>>>| > >>>> > >>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>0 | 85 | 95 | 0 | > >>>>>>>| 47021 | jholle | Ping | pl | 2005-02-28 > >>>> > >>>>15:51:39 > >>>> > >>>> > >>>>>>| > >>>>>> > >>>>>> > >>>>>> > >>>>>>>0 | 40 | 80 | 0 | > >>>>>>> > >>>>>>> > >>>>>>>There are no values only a zero. > >>>>>>> > >>>>>>>nagios@rzvlabwks:/usr/local/nagios/libexec> ./check_icmp -H jholle > >>>>>>>OK - jholle: rta 0.224ms, lost 0%|rta=0.224ms;200.000;500.000;0; > >>>>>>>pl=0%;40;80;; > >>>>>>> > >>>>>>> > >>>>>>>But here are values. When this value goes over 1 it is shown in > >>>>>> > >>>>>>database, > >>>>>> > >>>>>> > >>>>>> > >>>>>>>but only as a 1 not the float integers. > >>>>>>>I think this is because of the . ! I think it is like my first > >> > >>problem. > >> > >>>>>>>there was a point which could not be interpreted and here is a > point > >>>>>> > >>>>>>again. > >>>>>> > >>>>>> > >>>>>> > >>>>>>>I don't know but I think when there is a , and not a . the problem > is > >>>>>>>solved... > >>>>>>> > >>>>>>>Can I think right ??? > >>>>>>> > >>>>>> > > > -- 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: James D. <jd...@at...> - 2005-03-01 22:12:08
|
I may be missing something very obvious, but I do not seem to be getting any performance data back from the plugins when they check a service. The perfdata-service.log file contains the following after the DNS plugin runs : 1109711576 bb DNS Service Check $ OK $ (bb is the hostname) =20 If I run the plugin from the command-line, I get: DNS OK: 0.196 seconds response time www.news.com returns 216.239.115.158|time=3D0.195562s;;;0.000000 =20 Any idea why PerfParse isn't reading the performance data from the plugin? Is there something I need to add to the command line in the checkcommands.cfg definition? Here's the way I have it configured right now =20 define command{ command_name check_dns command_line $USER1$/check_dns -H www.news.com -s $HOSTADDRESS$ =20 Thanks for your help on this. -James =20 |
From: Eduardo M. <ema...@bs...> - 2005-03-01 18:06:26
|
Using Method4 with Nagios 1.2 Using FAQ http://wiki.perfparse.org/tiki-index.php?page=BuildingMethod4Example I have installed perfparse per the FAQ and it seems to be going ok except that I don't have any data in the mysql tables. Am I missing a step? Did I do something wrong? I abandoned my last install because nagios 2.x is in beta, you guys supported nagios 1.2 more and I receive only comments but no help on the configuration... so... Here is my next shot at this with nagios 1.2 I am using RHAS3. I've installed the following packages. +++++++++++++++++++++++++++++++++ <SHELL>rpm -ivh perl-CGI-2.81-89.10.i386.rpm <SHELL>rpm -ivh perl-DBD-MySQL-2.9003-5.i386.rpm <SHELL>rpm -ivh perl-DBI-1.32-9.i386.rpm <SHELL>rpm -ivh MySQL-client-4.1.9-0.i386.rpm <SHELL>rpm -ivh MySQL-devel-4.1.9-0.i386.rpm <SHELL>rpm -ivh MySQL-server-4.1.9-0.i386.rpm +++++++++++++++++++++++++++++++++++ Using the nagios Plugins version 1.4 ++++++++++++++++++++++++++++++++++++ <SHELL>tar -zxvf nagios-plugins-1.4.tar.gz <SHELL>./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios <SHELL>make all <SHELL>make install ++++++++++++++++++++++++++++++++++++ Using nrpe-2.0.tar.gz ++++++++++++++++++++++++++++++++++++ <SHELL>tar -zxvf nrpe-2.0.tar.gz <SHELL>./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios <SHELL>make all ...configured nrpe <SHELL>service xinetd stop <SHELL>service xinetd start <SHELL>netstat -a tcp 0 0 *:nrpe *:* LISTEN ++++++++++++++++++++++++++++++++++++ So I've decided to use Nagios Version 1.2. I've installed the following packages. +++++++++++++++++++++++++++++++++ <SHELL>rpm -ivh glib-1.2.10-11.1.i386.rpm <SHELL>rpm -ivh glib-devel-1.2.10-11.1.i386.rpm <SHELL>rpm -ivh MYlibgd-devel-2.0.23-rhas3.0_1.i386.rpm <SHELL>rpm -ivh MYlibgd-2.0.23-rhas3.0_1.i386.rpm <SHELL>rpm -ivh libjpeg-6b-30.i386.rpm <SHELL>rpm -ivh libjpeg-devel-6b-30.i386.rpm <SHELL>rpm -ivh libpng-devel-1.2.2-25.i386.rpm <SHELL>rpm -ivh libpng-1.2.2-25.i386.rpm <SHELL>rpm -ivh gd-1.8.4-12.3.1.rpm <SHELL>rpm -ivh gd-devel-1.8.4-12.3.1.rpm <SHELL>rpm -ivh glib2-2.2.3.rpm <SHELL>rpm -ivh glib2-devel-2.2.3.rpm <SHELL>rpm -ivh freetype-2.1.4-4.0.i386.rpm <SHELL>rpm -ivh freetype-devel-2.1.4-4.0.i386.rpm <SHELL>tar -zxvf nagios-1.2.tar.gz <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 make all (makes package) make fullinstall (installs all features) make install-config (installs example config files) ...configured Nagios to accept checks for NRPE for the following services nrpe.cfg file on the client. command[check_root]=/opt/nagios/libexec/check_disk 85 90 / command[check_boot]=/opt/nagios/libexec/check_disk 85 90 /boot command[check_home=/opt/nagios/libexec/check_disk 85 90 /home command[check_opt]=/opt/nagios/libexec/check_disk 85 90 /opt command[check_space]=/opt/nagios/libexec/check_disk 85 90 /space command[check_usr]=/opt/nagios/libexec/check_disk 85 90 /usr command[check_var]=/opt/nagios/libexec/check_disk 85 90 /var command[check_swap]=/opt/nagios/libexec/check_swap 50 20 command[check_users]=/opt/nagios/libexec/check_users 850 1000 command[check_load]=/opt/nagios/libexec/check_load 5 10 15 20 25 30 command[check_mem.pl]=/opt/nagios/libexec/check_mem.pl -u -w 85 -c 90 command[check_total_procs]=/opt/nagios/libexec/check_procs -w 150 -c 200 command[check_zombie_procs]=/opt/nagios/libexec/check_procs 5 10 -s Z ...OUTPUT for plugins is as follows DISK OK - free space: / 339 MB (45%);| /=416MB;641;679;0;755 DISK OK - free space: /boot 219 MB (87%);| /boot=31MB;212;225;0;250 DISK OK - free space: /home 779 MB (77%);| /home=233MB;859;909;0;1011 DISK OK - free space: /opt 803 MB (79%);| /opt=208MB;859;909;0;1011 DISK OK - free space: /space 1302 MB (75%);| /space=428MB;1469;1556;0;1729 DISK CRITICAL - free space: /usr 36 MB (2%);| /usr=2026MB;1751;1854;0;2061 DISK OK - free space: /var 527 MB (34%);| /var=1025MB;1318;1395;0;1551 SWAP OK: 100% free (1024 MB out of 1028 MB) |swap=1024MB;513;205;0;1027 USERS OK - 1 users currently logged in |users=1;850;1000;0 OK - load average: 0.00, 0.01, 0.01|load1=0.000000;5.000000;10.000000;0.000000 load5=0.010000;15.000000;20.000000;0.000000 load15=0.010000;25.000000;30.000000;0.000000 Memory OK - 43.1% (5012 kB) used PROCS OK: 41 processes PROCS OK: 0 processes with STATE = Z ...DEBUG Nagios with the following command.... /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check <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 # Sets $USER2$ to be the path to perfparse $USER2$=/opt/nagios <SHELL> vi /opt/nagios/etc/misccommands.cfg #Comment out the following definitions for host and service performance data: #define command{ #command_name process-host-perfdata #... #} #define command{ #command_name process-service-perfdata #... #} +++++++++++++++++++++++++++++++++ Though I won't be getting performance data from some of those plugins this should be fine. ----MYSQL ---- installed packages shown above +++++++++++++++++++++++++++++++++++++++++++++++++ #MySQL root password change #LOG IN as the root user for the mysql database #Create perfparse database # Create Nagios User and Give Nagios User permission to write to perfparse database # Show the grants #Exit mysql <SHELL>mysqladmin password <ENTER PASSWORD HERE> <SHELL>mysql -u root -p Enter password: <ENTER PASSWORD HERE> mysql>create database perfparse; mysql> GRANT ALL ON perfparse.* TO'nagios' IDENTIFIED BY 'A Nagios Password'; mysql>show grants for 'nagios'; +-------------------------------------------------------------------------------------------------------+ | Grants for nagios@% | +-------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'nagios'@'%' IDENTIFIED BY PASSWORD '*8C00F55AEF0226B9998AC39C6C9A099B' | | GRANT ALL PRIVILEGES ON `perfparse`.* TO 'nagios'@'%' WITH GRANT OPTION | +-------------------------------------------------------------------------------------------------------+ 2 rows in set (0.02 sec) mysql>exit +++++++++++++++++++++++++++++++++++++++++++++++++ PerfParse Install (perfparse-0.105.5) +++++++++++++++++++++++++++++++++++++++++++++++++ #Unpackage PerfParse #Configure PerfParse #Create Database Tables #Edit perfparse.cfg <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 <SHELL>make <SHELL>make install-strip <SHELL> cat scripts/mysql_create.sql | /usr/bin/mysql -u root -p -D perfparse <SHELL>vi /opt/nagios/etc/perfparse.cfg Service_Log = "|/opt/nagios/var/perfdata-service.log" Service_Log_Position_Mark_Path = "/opt/nagios/var" Output_Log_File = "yes" Output_Log_Filename = "/var/log/perfparse_output_log" Storage_Modules_Dir = "/opt/nagios/lib" Storage_Modules_Load = "mysql" Use_Storage_Mysql = "yes" No_Raw_Data = "yes" No_Bin_Data = "yes" # Database Authentication DB_User = "nagios" DB_Name = "perfparse" DB_Pass = "A Nagios Password" DB_Host = "localhost" <SHELL> vi /opt/nagios/etc/nagios_perfparse.cfg replace perfparse_nagios_command.pl with perfparse_nagios_pipe_command.pl <SHELL> vi perfparse_nagios_pipe_command.pl #add at the end... system ('/opt/nagios/bin/perfparse-log2mysql --serviceperf-log /opt/nagios/var/perfdata-service.log'); #Permissions for "perfdata-service.log" need to be set as nagios daemon can write to the FIFO. <SHELL> touch /opt/nagios/var/perfdata-service.log <SHELL> chown nagios.nagios /opt/nagios/var/perfdata-service.log <SHELL> chmod 660 perfdata-service.log <SHELL> touch /opt/nagios/var/perfdata_log.perfdata-service.log.mark <SHELL> chown nagios.nagios /opt/nagios/var/perfdata_log.perfdata-service.log.mark <SHELL> chmod 660 perfdata_log.perfdata-service.log.mark <SHELL> touch /opt/nagios/var/perfdata-host.log <SHELL> chown nagios.nagios /opt/nagios/var/perfdata-host.log <SHELL> chmod 660 perfdata-service.log <SHELL># vi /var/spool/cron/crontabs/root # Purge PerfParse DB daily at 3 AM. 0 1 * * * /opt/nagios/bin/perfparse-db-purge ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <SHELL>/opt/nagios/bin/perfparsed --show_config 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 = "|/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 = "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 = "/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 = "dummy" # 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 = "/opt/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 = "/opt/nagios/var/storage_modules.status" # Storage Module : mysql # ============================== # Database user # DB_User = "string" DB_User = "nagios" # Database password # DB_Pass = "string" DB_Pass = "123412341234" # Database name # DB_Name = "string" DB_Name = "perfparse" # Database hostname # DB_Host = "string" DB_Host = "localhost" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <SHELL>less perfparse.log.20050301.log 2005/03/01 10:21:10 [ storage.c:95 22822 ] storage_mysql module successfully loaded ----------------LOG IN - Cheking DATABASE in MYSQL---------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <SHELL>mysql -u root -p Enter password: <ENTER PASSWORD HERE> mysql> use perfparse; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> 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> select * from perfdata_bin_summary ; Empty set (0.00 sec) mysql> select * from perfdata_bin_summary_data ; Empty set (0.00 sec) mysql> select * from perfdata_bin_summary_del_policy ; Empty set (0.00 sec) mysql> select * from perfdata_bin_summary_header ; Empty set (0.00 sec) mysql> select * from perfdata_delete_policy ; Empty set (0.00 sec) mysql> select * from perfdata_graphs ; Empty set (0.00 sec) mysql> select * from perfdata_host ; Empty set (0.00 sec) mysql> select * from perfdata_host_group ; Empty set (0.00 sec) mysql> select * from perfdata_prefs ; Empty set (0.00 sec) mysql> select * from perfdata_raw_summary ; Empty set (0.00 sec) mysql> select * from perfdata_raw_summary_data ; Empty set (0.00 sec) mysql> select * from perfdata_registry ; +-------+---------------------+--------+---------------------+ | host | rkey | rvalue | ctime | +-------+---------------------+--------+---------------------+ | dummy | pp/database/version | 0.19 | 2005-02-28 12:44:35 | +-------+---------------------+--------+---------------------+ 1 row in set (0.00 sec) mysql> select * from perfdata_service ; Empty set (0.00 sec) mysql> select * from perfdata_service_bin ; Empty set (0.00 sec) mysql> select * from perfdata_service_metric ; Empty set (0.00 sec) mysql> select * from perfdata_service_raw ; Empty set (0.00 sec) mysql> select * from perfdata_state ; Empty set (0.00 sec) mysql> select * from perfdata_users ; Empty set (0.00 sec) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Though I have nothing in the database, however, I do see the following files change frequently: <SHELL>less /opt/nagios/var/perfdata-service.log 1109695640 machine1 /var DISK OK - free space: /var 527 MB (34%): OK /var=1025MB;1318;1395;0;1551 <SHELL>less /opt/nagios/var/perfdata-service.log 1109695685 machine1 /home DISK OK - free space: /home 779 MB (77%): OK /home=233MB;859;909;0;1011 <SHELL>less /opt/nagios/var/perfdata-service.log 1109695730 machine1 / DISK OK - free space: / 339 MB (45%): OK /=416MB;641;679;0;755 <SHELL>less /opt/nagios/var/perfdata-service.log 1109695735 machine1 swap SWAP OK: 100% free (1024 MB out of 1028 MB) OK swap=1024MB;513;205;0;1027 <SHELL>less /opt/nagios/var/perfdata-host.log 1109698839 machine1 PING OK - Packet loss = 0%, RTA = 0.38 ms <SHELL>less /opt/nagios/var/perfdata-host.log 1109698899 machine1 PING OK - Packet loss = 0%, RTA = 0.33 ms <SHELL>less /opt/nagios/var/perfdata-host.log 1109698959 machine1 PING OK - Packet loss = 0%, RTA = 0.31 ms ++++++++++++++ I also see the following information in this file ++++++++++++ <SHELL> less /opt/nagios/var/status.sav # Nagios 1.2 Retention File CREATED: 1109698633 PROGRAM: 1;1;1;1;0;1;1;1 # Nagios 1.2 Retention File CREATED: 1109698633 PROGRAM: 1;1;1;1;0;1;1;1 HOST: machine1;0;1109698630;1;407755;0;0;0;0;1;1;0;1;1;1;1109290887;(Host assumed to be up) SERVICE: machine1;/;0;1109698630;0;96225;0;0;311528;0;0;1;1;1;1;0;1;1;1;1;1109602653;DISK OK - free space: / 339 MB (45%): SERVICE: machine1;/boot;0;1109698590;0;96210;0;0;311527;0;0;1;1;1;1;0;1;1;1;1;1109602662;DISK OK - free space: /boot 219 MB (87%): SERVICE: machine1;/home;0;1109698596;0;96203;0;0;311528;0;0;1;1;1;1;0;1;1;1;1;1109602668;DISK OK - free space: /home 779 MB (77%): SERVICE: machine1;/usr;2;1109698603;0;241;0;0;407486;1109291150;1;1;1;1;1;0;1;1;1;1;1109291150;DISK CRITICAL - free space: /usr 36 MB (2%): SERVICE: machine1;/var;0;1109698610;0;96159;0;0;311526;0;0;1;1;1;1;0;1;1;1;1;1109602682;DISK OK - free space: /var 527 MB (34%): SERVICE: machine1;SSH;0;1109698617;0;407682;0;0;0;0;0;1;1;1;1;0;1;1;1;1;1109290922;SSH OK - OpenSSH_3.6.1p2 (protocol 1.99) SERVICE: machine1;load;0;1109698565;0;96143;0;0;311477;0;0;1;1;1;1;0;1;1;1;1;1109602697;OK - load average: 0.00, 0.04, 0.03 SERVICE: machine1;memory.pl;0;1109698571;0;96138;0;0;2463;0;0;1;1;1;1;0;1;1;1;1;1109602702;Memory OK - 37.7% (5044 kB) used SERVICE: machine1;ping;0;1109698580;0;407547;0;0;0;0;0;1;1;1;1;0;1;1;1;1;1109290944;PING OK - Packet loss = 0%, RTA = 0.53 ms SERVICE: machine1;swap;0;1109698586;0;96215;0;0;311527;0;0;1;1;1;1;0;1;1;1;1;1109602657;SWAP OK: 100% free (1024 MB out of 1028 MB) SERVICE: machine1;total_procs;0;1109698594;0;96210;0;0;311527;0;0;1;1;1;1;0;1;1;1;1;1109602662;PROCS OK: 38 processes SERVICE: machine1;users;0;1109698600;0;96201;0;0;311526;0;0;1;1;1;1;0;1;1;1;1;1109602672;USERS OK - 0 users currently logged in SERVICE: machine1;zombie_procs;0;1109698607;0;96195;0;0;311527;0;0;1;1;1;1;0;1;1;1;1;1109602677;PROCS OK: 0 processes with STATE = Z I would really like to get this working. I will write up a thorough FAQ on this if I can get it working. Please help. -Eduardo |