<br><br>
<div><span class="gmail_quote">On 10/23/05, <b class="gmail_sendername"><a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a></b> <<a href="mailto:nagios-users-request@lists.sourceforge.net">
nagios-users-request@lists.sourceforge.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send Nagios-users mailing list submissions to<br>       <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>or, via email, send a message with subject or body 'help' to<br>       <a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a><br><br>You can reach the person managing the list at
<br>       <a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Nagios-users digest..."
<br><br><br>Today's Topics:<br><br>  1. Re: Question about NEB (Hendrik Baecker)<br>  2. measuring throughput with Nagios (=?ISO-8859-15?Q?G=FCnther_Orth?=)<br>  3. Re: NagiosQL (Andreas Ericsson)<br>  4. nagios problem with include (Interdedicados)
<br>  5. nagios andi include problem (Interdedicados)<br>  6. Re: nagios andi include problem (Arno Lehmann)<br>  7. Re: parent/child pains (Holger Weiss)<br>  8. Working VRML Plugin? (Carl Davis)<br>  9. Re: Nagios-users digest, Vol 1 #2863 - 26 msgs (Arif Snort)
<br>10. Error linking against MySQL (was: Nagios-users digest, Vol 1 #2863 - 26 msgs) (Holger Weiss)<br><br>--__--__--<br><br>Message: 1<br>Date: Sat, 22 Oct 2005 07:46:24 +0200<br>From: Hendrik Baecker <<a href="mailto:b00mer@gmx.net">
b00mer@gmx.net</a>><br>To: Andreas Ericsson <<a href="mailto:ae@op5.se">ae@op5.se</a>><br>CC: nagios-users <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>Subject: Re: [Nagios-users] Question about NEB
<br><br>Hi all,<br><br>Guess what... I've got it!!<br><br>I've never thougt about the nebstruct_service_check_data---->> type that<br>tolds me if a Service Check was just initiated or processed.<br><br>I belive your eyes are roling because of my stupid error.
<br><br>@Andreas: Thanks a lot for just showing me the right way and not the<br>right code.<br><br>Best wishes for the further working<br><br>Your crazy dancing<br>Hendrik ;))<br><br><br>Andreas Ericsson schrieb:<br><br>> Hendrik Baecker wrote:
<br>><br>>> Hi,<br>>><br>>> OCSP negative.<br>>><br>>> obsess_over_services=0<br>>> #ocsp_command=somecommand<br>>><br>>> Since, at first step, I want only to log the things that nrpe must
<br>>> have, in my nagios.log (which you can see in my last post) there is<br>>> no single executed nsca (at the moment) just logging...<br>>><br>>> I am sorry, but I don't understood your second part...
<br>>> I am not quiet family with neb and c-coding... just figguring out<br>>> what can be done and learning...<br>>><br>>> I thought, that my "neb_register_callback" tells the Nagios Core,
<br>>> that my module want to have service_check_data and that the core<br>>> should call my module function "nsca_neb_handle_data".<br>>><br>>> AFAIR, there is no way for my module to tell the core, that I just
<br>>> want to have service_data after the check... or am I missing something?<br>>><br>><br>> There isn't, but you're missing something. Check the type of the<br>> callback struct. It's supposed to equal the proper *_PROCESSED macro
<br>> in broker.h.<br>><br>>> " and AFAIR it should segfault if you try to use the plugin output<br>>> before the check is run. "<br>>><br>>> I think, please correct me:<br>>>
<br>>> 1. Nagios-Core executes a service check.<br>>> 2. Nagios-Core reaper gets the result.<br>>> 3. Nagios-Core gives callback to my module and fills out the struct<br>>> nebstruct_service_check_data which my mods just reading out and plays
<br>>> with.<br>>><br>><br>> 0: core tells modules it's time to run a check<br>> 1: core runs the check<br>> 2: reaper reaps (it always does...)<br>> 3: core calls module with the completed check result
<br>><br>>> When I am missing something in the logic, please tell me and I will<br>>> go back to my attic for study the source and come back with more<br>>> (hopefully better) ideas.<br>>><br>>
<br>> Since you're mentioning it, you might want to just add a callback for<br>> a service check and then rely on the fact that Nagios passes the<br>> proper value rather than adding the switch() case thingie.<br>
><br>>> Regards<br>>> Hendrik<br>>><br>>> Andreas Ericsson schrieb:<br>>><br>>>> Hendrik Baecker wrote:<br>>>><br>>>>> Hi List,<br>>>>><br>>>>> now I've changed some code from Ethan's 
helloworld.c NEB to give me<br>>>>> NEB Callbacks from Nagios Core.<br>>>>><br>>>>> I've registered a callback for Service Check data like this:<br>>>>><br>>>>><br>
>>>> neb_register_callback(NEBCALLBACK_SERVICE_CHECK_DATA,nsca_neb_module_handle,0,nsca_neb_handle_data);<br>>>>><br>>>>><br>>>>> and I am processing this Service Checkdata just in that way, that I
<br>>>>> want to see them in the log:<br>>>>><br>>>>> ###<br>>>>><br>>>>> case NEBCALLBACK_SERVICE_CHECK_DATA:<br>>>>>                if((scdata=(nebstruct_service_check_data *)data)){
<br>>>>><br>>>>> snprintf(temp_buffer,sizeof(temp_buffer)-1,"nsca_neb:%s\t%s\t%d\t%s",(scdata->host_name),<br>>>>><br>>>>>                                    (scdata->service_description),
<br>>>>> (scdata->return_code), (scdata->output));<br>>>>>                        temp_buffer[sizeof(temp_buffer)-1]='\x0';<br>>>>><br>>>>> write_to_all_logs(temp_buffer,NSLOG_INFO_MESSAGE);
<br>>>>>             }<br>>>>> break;<br>>>>><br>>>>> .....<br>>>>><br>>>>> ###<br>>>>><br>>>>> I am a little confused, cause I am getting two (different) Log
<br>>>>> entries for each service check!<br>>>>><br>>>>> Log-Output:<br>>>>><br>>>>> [1129892835] nsca_neb:Nagios_Slave      Disk /usr       0<br>>>>> DISK OK - free space: /usr 3425 MB (57%):
<br>>>>> [1129892836] nsca_neb:Nagios_Slave      Disk /usr       0<br>>>>> DISK OK - free space: /usr 3425 MB (57%):<br>>>>> [1129892854] nsca_neb:Nagios_Master     Disk /var       0<br>
>>>> DISK OK - free space: /var 2865 MB (57%):<br>>>>> [1129892855] nsca_neb:Nagios_Master     Disk /var       0<br>>>>> DISK OK - free space: /var 2865 MB (57%):<br>>>>><br>
>>>> On the other side I have perfdata enabled and just see one entry<br>>>>> for each check.<br>>>>><br>>>>> Can anyone explain?<br>>>>><br>>>>> Is it a feature? Is it a bug?
<br>>>>><br>>>><br>>>> I think you've still got the ocsp-command (or oscp or something)<br>>>> enabled, so that the Nagios core and the module are both running<br>>>> send_nsca.
<br>>>><br>>>> You also need to watch out for Nagios calling the module twice for<br>>>> each check it does. Once before and once after. This isn't likely to<br>>>> be what you're seeing though, because the two entries that are
<br>>>> temporally close to each other have identical plugin output and<br>>>> AFAIR it should segfault if you try to use the plugin output before<br>>>> the check is run.<br>>>><br>>>
<br>>><br>><br><br><br><br><br>--__--__--<br><br>Message: 2<br>Date: Sat, 22 Oct 2005 10:25:17 +0200<br>From: =?ISO-8859-15?Q?G=FCnther_Orth?= <<a href="mailto:orth@enbiz.de">orth@enbiz.de</a>><br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>Subject: [Nagios-users] measuring throughput with Nagios<br><br>Hi!<br><br>Is it possible to measuring the monthly throughput through a router=20<br>(Enterasys XSR 1805)?<br><br>And how can I monitor this throughput with nagios?
<br><br>Thanks a lot!<br><br>        G=FCnther<br><br><br>--__--__--<br><br>Message: 3<br>Date: Sat, 22 Oct 2005 11:05:44 +0200<br>From: Andreas Ericsson <<a href="mailto:ae@op5.se">ae@op5.se</a>><br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>Subject: Re: [Nagios-users] NagiosQL<br><br>Tao Yaoning wrote:<br>> How do you configure your apache server and Mysql?<br>><br><br><br>By carefully reading the manual, faq and readme's of the various
<br>projects and then doing what those docs say. It often involves some<br>trial and error in the end.<br><br>--<br>Andreas Ericsson                   <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>
OP5 AB                             <a href="http://www.op5.se">www.op5.se</a><br>Tel: +46 8-230225                  Fax: +46 8-230231<br><br><br>--__--__--<br><br>Message: 4<br>From: Interdedicados <<a href="mailto:tony@interdedicados.com">
tony@interdedicados.com</a>><br>To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Date: Sat, 22 Oct 2005 12:03:40 +0100<br>Subject: [Nagios-users] nagios problem with include
<br><br>Hi ALL:<br><br><br>Im installing nagios and when I put this line in httpd.conf :<br><br>Include /usr/local/nagios/etc/apache.conf<br><br><br>to apache.conf:<br><br><br>ScriptAlias /cgi-bin/nagios /usr/local/nagios/sbin
<br>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<br><br>Options ExecCGI<br><br>AllowOverride AuthConfig<br>Order Allow,Deny<br>Allow From All<br><br>AuthName "Acceso a Nagios"<br>AuthType Basic<br>AuthUserFile /usr/local/nagios/etc/htpasswd.users
<br>require valid-user<br><br><br>Alias /nagios/stylesheets /usr/local/nagios/share/stylesheets<br><br>Alias /netsaint /usr/local/nagios/share<br>Alias /nagios /usr/local/nagios/share<br><br>Options FollowSymLinks<br><br>
AllowOverride AuthConfig<br>Order Allow,Deny<br>Allow From All<br><br>AuthName "Acceso a Nagios"<br>AuthType Basic<br>AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>require valid-user<br><br><br><br>Then httpd doesn't start and I do a /etc/init.d/httpd configtest and it
<br><br>says:<br><br>               AllowOverride not allowed here<br><br><br>                       or<br><br><br>               ScriptAlias not allowed here<br><br><br>and if I comment those lines error goes to next line.
<br><br><br>Can you help me?<br><br>Thank you<br><br><br><br><br><br><br>--__--__--<br><br>Message: 5<br>From: Interdedicados <<a href="mailto:tony@interdedicados.com">tony@interdedicados.com</a>><br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>Date: Sat, 22 Oct 2005 12:21:17 +0100<br>Subject: [Nagios-users] nagios andi include problem<br><br>Hi ALL:<br><br><br>Im installing nagios and when I put this line in httpd.conf :
<br><br>Include /usr/local/nagios/etc/apache.conf<br><br><br>to apache.conf:<br><br><br>ScriptAlias /cgi-bin/nagios /usr/local/nagios/sbin<br>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<br><br>Options ExecCGI<br><br>
AllowOverride AuthConfig<br>Order Allow,Deny<br>Allow From All<br><br>AuthName "Acceso a Nagios"<br>AuthType Basic<br>AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>require valid-user<br><br><br>Alias /nagios/stylesheets /usr/local/nagios/share/stylesheets
<br><br>Alias /netsaint /usr/local/nagios/share<br>Alias /nagios /usr/local/nagios/share<br><br>Options FollowSymLinks<br><br>AllowOverride AuthConfig<br>Order Allow,Deny<br>Allow From All<br><br>AuthName "Acceso a Nagios"
<br>AuthType Basic<br>AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>require valid-user<br><br><br><br>Then httpd doesn't start and I do a /etc/init.d/httpd configtest and it<br><br>says:<br><br>               AllowOverride not allowed here
<br><br><br>                       or<br><br><br>               ScriptAlias not allowed here<br><br><br>and if I comment those lines error goes to next line.<br><br>I use fedora 4, nagios-1.2 and nagios-plugins-1.3.1<br><br>
<br>Can you help me?<br><br>Thank you<br><br><br><br><br>--__--__--<br><br>Message: 6<br>Date: Sat, 22 Oct 2005 14:00:23 +0200<br>From: Arno Lehmann <<a href="mailto:al@its-lehmann.de">al@its-lehmann.de</a>><br>To: Interdedicados <
<a href="mailto:tony@interdedicados.com">tony@interdedicados.com</a>><br>Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Subject: Re: [Nagios-users] nagios andi include problem
<br><br>You sent this mail twice.<br><br>On 22.10.2005 13:21, Interdedicados wrote:<br><br>> Hi ALL:<br>><br>><br>> Im installing nagios and when I put this line in httpd.conf :<br>><br>> Include /usr/local/nagios/etc/apache.conf
<br>><br>><br>> to apache.conf:<br>><br>><br>> ScriptAlias /cgi-bin/nagios /usr/local/nagios/sbin<br>> ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<br><br>That needs to be put in the proper location or directory directives. The
<br>apache Manual has lots of explanations, and, assuming you've got apache<br>installed from some sort of package, the existing configuration can also<br>be used as a template.<br><br>Arno<br><br>> Options ExecCGI<br>
><br>> AllowOverride AuthConfig<br>> Order Allow,Deny<br>> Allow From All<br>><br>> AuthName "Acceso a Nagios"<br>> AuthType Basic<br>> AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
> require valid-user<br>><br>><br>> Alias /nagios/stylesheets /usr/local/nagios/share/stylesheets<br>><br>> Alias /netsaint /usr/local/nagios/share<br>> Alias /nagios /usr/local/nagios/share<br>><br>
> Options FollowSymLinks<br>><br>> AllowOverride AuthConfig<br>> Order Allow,Deny<br>> Allow From All<br>><br>> AuthName "Acceso a Nagios"<br>> AuthType Basic<br>> AuthUserFile /usr/local/nagios/etc/htpasswd.users
<br>> require valid-user<br>><br>><br>><br>> Then httpd doesn't start and I do a /etc/init.d/httpd configtest and it<br>><br>> says:<br>><br>>                 AllowOverride not allowed here<br>>
<br>><br>>                         or<br>><br>><br>>                 ScriptAlias not allowed here<br>><br>><br>> and if I comment those lines error goes to next line.<br>><br>> I use fedora 4, 
nagios-1.2 and nagios-plugins-1.3.1<br>><br>><br>> Can you help me?<br>><br>> Thank you<br>><br>><br>><br>><br>> -------------------------------------------------------<br>> This SF.Net email is sponsored by:
<br>> Power Architecture Resource Center: Free content, downloads, discussions,<br>> and more. <a href="http://solutions.newsforge.com/ibmarch.tmpl">http://solutions.newsforge.com/ibmarch.tmpl</a><br>> _______________________________________________
<br>> Nagios-users mailing list<br>> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>> ::: Messages without supporting info will risk being sent to /dev/null<br>><br><br>--<br>IT-Service Lehmann                    
<a href="mailto:al@its-lehmann.de">al@its-lehmann.de</a><br>Arno Lehmann                  <a href="http://www.its-lehmann.de">http://www.its-lehmann.de</a><br><br><br>--__--__--<br><br>Message: 7<br>Date: Sun, 23 Oct 2005 02:50:49 +0200
<br>From: Holger Weiss <<a href="mailto:holger@CIS.FU-Berlin.DE">holger@CIS.FU-Berlin.DE</a>><br>To: Nagios Users <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Subject: Re: [Nagios-users] parent/child pains<br><br>* Rossz Vamos-Wentworth <<a href="mailto:rossz@vamos-wentworth.org">rossz@vamos-wentworth.org</a>> [2005-10-21 11:56]:<br>> I definately need to get this mess done right because in a week I start
<br>> a new job and one of the things I will be taking care of is setting up a<br>> Nagios system for a large number of hosts and services.  Doing it wrong<br>> will multiple this morning's alert problems by a thousand fold! :(
<br><br>FWIW, I set "parents" simply by tracerouting to the hosts specified in<br>the Nagios configuration via "address" and then using (the first part<br>of) the name of the last hop prior to the host:
<br><br>#!/usr/bin/perl -w<br>#<br># $ cp hosts.cfg hosts.cfg.bak<br># $ setparents.pl < hosts.cfg.bak > hosts.cfg<br>#<br>sub traceroute ($) {<br>       my $host = shift;<br>       my @hops = `/usr/bin/traceroute -I $host 2>/dev/null`;
<br>       die "traceroute -I $host failed" if $? >> 8 != 0;<br>       return undef unless @hops > 1; # ignore local hosts<br>       die "parse error" unless $hops[-2] =~ /\s+\d+\s+([\w-]+)/;<br>
       $1;<br>}<br>for (<>) {<br>       print unless /^\s*parents/;<br>       if (/^\s*address\s+([\w\.-]+)/) {<br>               if (defined (my $parent = traceroute($1))) {<br>                       print "\tparents $parent\n";
<br>               }<br>       }<br>}<br><br>Whether this works and whether it makes sense depends on the network<br>layout, of course.<br><br>Holger<br><br>--<br>PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE
<br><br><br>--__--__--<br><br>Message: 8<br>From: Carl Davis <<a href="mailto:lists@tswireless.net">lists@tswireless.net</a>><br>To: Nagios Users <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net
</a>><br>Date: Sat, 22 Oct 2005 20:25:03 -0500<br>Subject: [Nagios-users] Working VRML Plugin?<br><br>What plugin is everyone using with Linux and Firefox?  I am using FC4.<br><br>I have traced my problems with the 3d status map to the plugin because
<br>it seems to work fine on a windows machine.  I tried some VRML sites to<br>see if I could see anything with the openvrml plugin and it does work<br>sometimes, so I don't think it is a situation of my not having it<br>
installed or installed correctly.<br><br><br><br>--__--__--<br><br>Message: 9<br>Date: Sun, 23 Oct 2005 09:03:26 +0700<br>From: Arif Snort <<a href="mailto:arif.snort@gmail.com">arif.snort@gmail.com</a>><br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>Subject: [Nagios-users] Re: Nagios-users digest, Vol 1 #2863 - 26 msgs<br><br>------=_Part_7499_9141084.1130033006914<br>Content-Type: text/plain; charset=ISO-8859-1<br>Content-Transfer-Encoding: quoted-printable
<br>Content-Disposition: inline<br><br>hello,..everybody..please can you help me..!!!!<br>i have a problem when installed nagios with mysql..<br>that process are : configure,make all , so i found error like this :<br>(I hope solution from you are)
<br><br>///////////////////////////////////////////////////////////////////////////=<br>///////////////////////////////////////////////////////////////<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o 
config.o config.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o 
notifications.o notifications.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sretention.o
 sretention.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata.o perfdata.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o<br>flapping.o logging.o notifications.o sehandlers.o utils.o<br>
sretention.o../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c<br>../common/objects.c<br>../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c<br>perfdata.o../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c
<br>-lm -o nagios<br>/tmp/ccyNKzvy.o(.text+0xf3): In function `xrddb_query':<br>../xdata/xrddb.c:329: undefined reference to `mysql_query'<br>/tmp/ccyNKzvy.o(.text+0x158): In function `xrddb_read_service_information':<br>
../xdata/xrddb.c:1129: undefined reference to `mysql_store_result'<br>/tmp/ccyNKzvy.o(.text+0x3b2):../xdata/xrddb.c:1191: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccyNKzvy.o(.text+0x3f8):../xdata/xrddb.c:1195: undefined reference to
<br>`mysql_free_result'<br>/tmp/ccyNKzvy.o(.text+0x488): In function `xrddb_read_host_information':<br>../xdata/xrddb.c:951: undefined reference to `mysql_store_result'<br>/tmp/ccyNKzvy.o(.text+0x67a):../xdata/xrddb.c:999: undefined reference to
<br>`mysql_fetch_row'<br>/tmp/ccyNKzvy.o(.text+0x696):../xdata/xrddb.c:1004: undefined reference to<br>`mysql_free_result'<br>/tmp/ccyNKzvy.o(.text+0x728): In function `xrddb_read_program_information':<br>../xdata/xrddb.c:850: undefined reference to `mysql_store_result'
<br>/tmp/ccyNKzvy.o(.text+0x753):../xdata/xrddb.c:854: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccyNKzvy.o(.text+0x822):../xdata/xrddb.c:867: undefined reference to<br>`mysql_free_result'<br>/tmp/ccyNKzvy.o(.text+0x10ac): In function `xrddb_disconnect':
<br>../xdata/xrddb.c:299: undefined reference to `mysql_close'<br>/tmp/ccyNKzvy.o(.text+0x10ef): In function `xrddb_connect':<br>../xdata/xrddb.c:252: undefined reference to `mysql_real_connect'<br>/tmp/ccyNKzvy.o(.text+0x1112):../xdata/xrddb.c:254: undefined reference to
<br>`mysql_close'<br>/tmp/ccyNKzvy.o(.text+0x11a0): In function `xrddb_initialize':<br>../xdata/xrddb.c:215: undefined reference to `mysql_init'<br>/tmp/ccwK5qVS.o(.text+0x103): In function `xcddb_query':<br>../xdata/xcddb.c:329: undefined reference to `mysql_query'
<br>/tmp/ccwK5qVS.o(.text+0x12c): In function `xcddb_disconnect':<br>../xdata/xcddb.c:303: undefined reference to `mysql_close'<br>/tmp/ccwK5qVS.o(.text+0x16f): In function `xcddb_connect':<br>../xdata/xcddb.c:259: undefined reference to `mysql_real_connect'
<br>/tmp/ccwK5qVS.o(.text+0x192):../xdata/xcddb.c:261: undefined reference to<br>`mysql_close'<br>/tmp/ccwK5qVS.o(.text+0x418): In function `xcddb_validate_service_comments'=<br>:<br>../xdata/xcddb.c:566: undefined reference to `mysql_store_result'
<br>/tmp/ccwK5qVS.o(.text+0x44c):../xdata/xcddb.c:576: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccwK5qVS.o(.text+0x588): In function `xcddb_validate_host_comments':<br>../xdata/xcddb.c:477: undefined reference to `mysql_store_result'
<br>/tmp/ccwK5qVS.o(.text+0x5b9):../xdata/xcddb.c:487: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccwK5qVS.o(.text+0x797): In function `xcddb_save_service_comment':<br>../xdata/xcddb.c:847: undefined reference to `mysql_insert_id'
<br>/tmp/ccwK5qVS.o(.text+0x90d): In function `xcddb_save_host_comment':<br>../xdata/xcddb.c:748: undefined reference to `mysql_insert_id'<br>/tmp/ccwK5qVS.o(.text+0x990): In function `xcddb_initialize':<br>../xdata/xcddb.c:234: undefined reference to `mysql_init'
<br>/tmp/ccRpqzDd.o(.text+0x123): In function `xsddb_query':<br>../xdata/xsddb.c:463: undefined reference to `mysql_query'<br>/tmp/ccRpqzDd.o(.text+0x1e0): In function `xsddb_check_connection':<br>../xdata/xsddb.c:363: undefined reference to `mysql_errno'
<br>/tmp/ccRpqzDd.o(.text+0x215):../xdata/xsddb.c:369: undefined reference to<br>`mysql_close'<br>/tmp/ccRpqzDd.o(.text+0x27c): In function `xsddb_disconnect':<br>../xdata/xsddb.c:335: undefined reference to `mysql_close'
<br>/tmp/ccRpqzDd.o(.text+0x36e): In function `xsddb_connect':<br>../xdata/xsddb.c:286: undefined reference to `mysql_real_connect'<br>/tmp/ccRpqzDd.o(.text+0x38b):../xdata/xsddb.c:288: undefined reference to<br>`mysql_close'
<br>/tmp/ccRpqzDd.o(.text+0x1150): In function `xsddb_initialize':<br>../xdata/xsddb.c:253: undefined reference to `mysql_init'<br>/tmp/ccViuojp.o(.text+0x103): In function `xdddb_query':<br>../xdata/xdddb.c:329: undefined reference to `mysql_query'
<br>/tmp/ccViuojp.o(.text+0x16d): In function `xdddb_read_service_downtime':<br>../xdata/xdddb.c:1238: undefined reference to `mysql_store_result'<br>/tmp/ccViuojp.o(.text+0x192):../xdata/xdddb.c:1238: undefined reference to
<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x282):../xdata/xdddb.c:1275: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x2a0):../xdata/xdddb.c:1280: undefined reference to<br>`mysql_free_result'
<br>/tmp/ccViuojp.o(.text+0x2bb):../xdata/xdddb.c:1247: undefined reference to<br>`mysql_free_result'<br>/tmp/ccViuojp.o(.text+0x31d): In function `xdddb_read_host_downtime':<br>../xdata/xdddb.c:1107: undefined reference to `mysql_store_result'
<br>/tmp/ccViuojp.o(.text+0x342):../xdata/xdddb.c:1107: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x42d):../xdata/xdddb.c:1144: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x44b):../xdata/xdddb.c:1149: undefined reference to
<br>`mysql_free_result'<br>/tmp/ccViuojp.o(.text+0x466):../xdata/xdddb.c:1116: undefined reference to<br>`mysql_free_result'<br>/tmp/ccViuojp.o(.text+0x4ac): In function `xdddb_disconnect':<br>../xdata/xdddb.c:303: undefined reference to `mysql_close'
<br>/tmp/ccViuojp.o(.text+0x4ee): In function `xdddb_connect':<br>../xdata/xdddb.c:259: undefined reference to `mysql_real_connect'<br>/tmp/ccViuojp.o(.text+0x511):../xdata/xdddb.c:261: undefined reference to<br>`mysql_close'
<br>/tmp/ccViuojp.o(.text+0x65d): In function `xdddb_validate_service_downtime'=<br>:<br>../xdata/xdddb.c:587: undefined reference to `mysql_store_result'<br>/tmp/ccViuojp.o(.text+0x678):../xdata/xdddb.c:587: undefined reference to
<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x6e0): In function `xdddb_validate_service_downtime'=<br>:<br>/usr/include/stdlib.h:398: undefined reference to `mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x7fd): In function `xdddb_validate_host_downtime':
<br>../xdata/xdddb.c:473: undefined reference to `mysql_store_result'<br>/tmp/ccViuojp.o(.text+0x815):../xdata/xdddb.c:473: undefined reference to<br>`mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x87a): In function `xdddb_validate_host_downtime':
<br>/usr/include/stdlib.h:398: undefined reference to `mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0xa02): In function `xdddb_save_service_downtime':<br>../xdata/xdddb.c:887: undefined reference to `mysql_insert_id'<br>/tmp/ccViuojp.o(.text+0xb87): In function `xdddb_save_host_downtime':
<br>../xdata/xdddb.c:788: undefined reference to `mysql_insert_id'<br>/tmp/ccViuojp.o(.text+0xc10): In function `xdddb_initialize':<br>../xdata/xdddb.c:234: undefined reference to `mysql_init'<br>collect2: ld returned 1 exit status
<br>make[1]: *** [nagios] Error 1<br>make[1]: Leaving directory `/home/ans/Feri/nagios-1.2/base'<br>make: *** [all] Error 2<br><br>///////////////////////////////////////////////////////////////////////////=<br>///////////////////////////////////////////////////////
<br><br>------=_Part_7499_9141084.1130033006914<br>Content-Type: text/html; charset=ISO-8859-1<br>Content-Transfer-Encoding: quoted-printable<br>Content-Disposition: inline<br><br><div>hello,..everybody..please can you help me..!!!!</div>
<br><div>i have a problem when installed nagios with mysql..</div><br><div>that process are : configure,make all , so&nbsp; i found error like th=<br>is :</div><br><div>(I hope solution from you are)</div>
<br><div>&nbsp;</div><br><div>//////////////////////////////////////////////////////////////////////=<br>////////////////////////////////////////////////////////////////////</div><br><div>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o 
checks.o checks.=<br>c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o config.o config.=<br>c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o commands.o comma=<br>nds.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o=20
<br>flapping.o flapping.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c=<br>-o logging.o logging.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; =<br>-c -o notifications.o notifications.c
<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCOR=<br>E&nbsp;&nbsp; -c -o sehandlers.o<br>sehandlers.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o util=<br>s.o utils.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -o sreten=
<br>tion.o sretention.c<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp;&nbsp; -c -=<br>o perfdata.o perfdata.c<br><br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE&nbsp; nagios.c checks.o config.o comman=<br>ds.o
 flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o=<br>../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c ../common/objects.c=<br>../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c=20<br>
perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c&nbsp=<br>;&nbsp;&nbsp; -lm -o nagios<br>/tmp/ccyNKzvy.o(.text+0xf3): In function `xr=<br>ddb_query':<br>../xdata/xrddb.c:329: undefined reference to `mysql_query'<b=
<br>r>/tmp/ccyNKzvy.o(.text+0x158): In function `xrddb_read_service_information=<br>':<br><br>../xdata/xrddb.c:1129: undefined reference to `mysql_store_result'<br>/=<br>tmp/ccyNKzvy.o(.text+0x3b2):../xdata/xrddb.c:1191: undefined reference to `=
<br>mysql_fetch_row'<br>/tmp/ccyNKzvy.o(.text+0x3f8):../xdata/xrddb.c:1195: und=<br>efined reference to `mysql_free_result'<br><br>/tmp/ccyNKzvy.o(.text+0x488): In function `xrddb_read_host_information'=<br>:<br>../xdata/xrddb.c:951: undefined reference to `mysql_store_result'<br>/=
<br>tmp/ccyNKzvy.o(.text+0x67a):../xdata/xrddb.c:999: undefined reference to `m=<br>ysql_fetch_row'<br><br>/tmp/ccyNKzvy.o(.text+0x696):../xdata/xrddb.c:1004: undefined reference=<br>to `mysql_free_result'<br>/tmp/ccyNKzvy.o(.text+0x728): In function `xrddb=
<br>_read_program_information':<br>../xdata/xrddb.c:850: undefined reference to=<br>`mysql_store_result'<br><br>/tmp/ccyNKzvy.o(.text+0x753):../xdata/xrddb.c:854: undefined reference =<br>to `mysql_fetch_row'<br>/tmp/ccyNKzvy.o(.text+0x822):../xdata/xrddb.c:867: =
<br>undefined reference to `mysql_free_result'<br>/tmp/ccyNKzvy.o(.text+0x10ac)=<br>: In function `xrddb_disconnect':<br><br>../xdata/xrddb.c:299: undefined reference to `mysql_close'<br>/tmp/ccyN=<br>Kzvy.o
(.text+0x10ef): In function `xrddb_connect':<br>../xdata/xrddb.c:252:=<br>undefined reference to `mysql_real_connect'<br>/tmp/ccyNKzvy.o(.text+0x111=<br>2):../xdata/xrddb.c:254: undefined reference to `mysql_close'
<br><br>/tmp/ccyNKzvy.o(.text+0x11a0): In function `xrddb_initialize':<br>../xd=<br>ata/xrddb.c:215: undefined reference to `mysql_init'<br>/tmp/ccwK5qVS.o(.te=<br>xt+0x103): In function `xcddb_query':<br>../xdata/xcddb.c:329: undefined re=
<br>ference to `mysql_query'<br><br>/tmp/ccwK5qVS.o(.text+0x12c): In function `xcddb_disconnect':<br>../xda=<br>ta/xcddb.c:303: undefined reference to `mysql_close'<br>/tmp/ccwK5qVS.o(.te=<br>xt+0x16f): In function `xcddb_connect':<br>../xdata/xcddb.c:259: undefined =
<br>reference to `mysql_real_connect'<br><br>/tmp/ccwK5qVS.o(.text+0x192):../xdata/xcddb.c:261: undefined reference =<br>to `mysql_close'<br>/tmp/ccwK5qVS.o(.text+0x418): In function `xcddb_valida=<br>te_service_comments':<br>../xdata/xcddb.c:566: undefined reference to `mysq=
<br>l_store_result'<br><br>/tmp/ccwK5qVS.o(.text+0x44c):../xdata/xcddb.c:576: undefined reference =<br>to `mysql_fetch_row'<br>/tmp/ccwK5qVS.o(.text+0x588): In function `xcddb_va=<br>lidate_host_comments':<br>../xdata/xcddb.c:477: undefined reference to `mys=
<br>ql_store_result'<br><br>/tmp/ccwK5qVS.o(.text+0x5b9):../xdata/xcddb.c:487: undefined reference =<br>to `mysql_fetch_row'<br>/tmp/ccwK5qVS.o(.text+0x797): In function `xcddb_sa=<br>ve_service_comment':<br>../xdata/xcddb.c:847: undefined reference to `mysql=
<br>_insert_id'<br><br>/tmp/ccwK5qVS.o(.text+0x90d): In function `xcddb_save_host_comment':<br=<br>>../xdata/xcddb.c:748: undefined reference to `mysql_insert_id'<br>/tmp/ccw=<br>K5qVS.o(.text+0x990): In function `xcddb_initialize':<br>../xdata/xcddb.c:2=
<br>34: undefined reference to `mysql_init'<br><br>/tmp/ccRpqzDd.o(.text+0x123): In function `xsddb_query':<br>../xdata/xs=<br>ddb.c:463: undefined reference to `mysql_query'<br>/tmp/ccRpqzDd.o(.text+0x=
<br>1e0): In function `xsddb_check_connection':<br>../xdata/xsddb.c:363: undefi=<br>ned reference to `mysql_errno'<br><br>/tmp/ccRpqzDd.o(.text+0x215):../xdata/xsddb.c:369: undefined reference =<br>to `mysql_close'<br>/tmp/ccRpqzDd.o(.text+0x27c): In function `xsddb_discon=
<br>nect':<br>../xdata/xsddb.c:335: undefined reference to `mysql_close'<br><br>/tmp/ccRpqzDd.o(.text+0x36e): In function `xsddb_connect':<br>../xdata/xsdd=<br>b.c:286: undefined reference to `mysql_real_connect'<br>/tmp/ccRpqzDd.o(.te=
<br>xt+0x38b):../xdata/xsddb.c:288: undefined reference to `mysql_close'<br><br>/tmp/ccRpqzDd.o(.text+0x1150): In function `xsddb_initialize':<br>../xdata/=<br>xsddb.c:253: undefined reference to `mysql_init'<br>/tmp/ccViuojp.o(.text+0=
<br>x103): In function `xdddb_query':<br>../xdata/xdddb.c:329: undefined refere=<br>nce to `mysql_query'<br><br>/tmp/ccViuojp.o(.text+0x16d): In function `xdddb_read_service_downtime'=<br>:<br>../xdata/xdddb.c:1238: undefined reference to `mysql_store_result'<br>=
<br>/tmp/ccViuojp.o(.text+0x192):../xdata/xdddb.c:1238: undefined reference to =<br>`mysql_fetch_row'<br><br>/tmp/ccViuojp.o(.text+0x282):../xdata/xdddb.c:1275: undefined reference=<br>to `mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x2a0):../xdata/xdddb.c:1280=
<br>: undefined reference to `mysql_free_result'<br>/tmp/ccViuojp.o(.text+0x2bb=<br>):../xdata/xdddb.c:1247: undefined reference to `mysql_free_result'<br><br>/tmp/ccViuojp.o(.text+0x31d): In function `xdddb_read_host_downtime':<b=
<br>r>../xdata/xdddb.c:1107: undefined reference to `mysql_store_result'<br>/tm=<br>p/ccViuojp.o(.text+0x342):../xdata/xdddb.c:1107: undefined reference to `my=<br>sql_fetch_row'<br><br>/tmp/ccViuojp.o(.text+0x42d):../xdata/xdddb.c:1144: undefined reference=
<br>to `mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x44b):../xdata/xdddb.c:1149=<br>: undefined reference to `mysql_free_result'<br>/tmp/ccViuojp.o(.text+0x466=<br>):../xdata/xdddb.c:1116: undefined reference to `mysql_free_result'
<br><br>/tmp/ccViuojp.o(.text+0x4ac): In function `xdddb_disconnect':<br>../xda=<br>ta/xdddb.c:303: undefined reference to `mysql_close'<br>/tmp/ccViuojp.o(.te=<br>xt+0x4ee): In function `xdddb_connect':<br>../xdata/xdddb.c:259: undefined =
<br>reference to `mysql_real_connect'<br><br>/tmp/ccViuojp.o(.text+0x511):../xdata/xdddb.c:261: undefined reference =<br>to `mysql_close'<br>/tmp/ccViuojp.o(.text+0x65d): In function `xdddb_valida=<br>te_service_downtime':<br>../xdata/xdddb.c:587: undefined reference to `mysq=
<br>l_store_result'<br><br>/tmp/ccViuojp.o(.text+0x678):../xdata/xdddb.c:587: undefined reference =<br>to `mysql_fetch_row'<br>/tmp/ccViuojp.o(.text+0x6e0): In function `xdddb_va=<br>lidate_service_downtime':<br>/usr/include/stdlib.h:398: undefined reference=
<br>to `mysql_fetch_row'<br><br>/tmp/ccViuojp.o(.text+0x7fd): In function `xdddb_validate_host_downtime=<br>':<br>../xdata/xdddb.c:473: undefined reference to `mysql_store_result'<br>=<br>/tmp/ccViuojp.o(.text+0x815):../xdata/xdddb.c:473: undefined reference to `=
<br>mysql_fetch_row'<br><br>/tmp/ccViuojp.o(.text+0x87a): In function `xdddb_validate_host_downtime=<br>':<br>/usr/include/stdlib.h:398: undefined reference to `mysql_fetch_row'<b=<br>r>/tmp/ccViuojp.o(.text+0xa02): In function `xdddb_save_service_downtime':
<br><br>../xdata/xdddb.c:887: undefined reference to `mysql_insert_id'<br>/tmp/=<br>ccViuojp.o(.text+0xb87): In function `xdddb_save_host_downtime':<br>../xdat=<br>a/xdddb.c:788: undefined reference to `mysql_insert_id'<br>/tmp/ccViuojp.o(=
<br>.text+0xc10): In function `xdddb_initialize':<br><br>../xdata/xdddb.c:234: undefined reference to `mysql_init'<br>collect2: =<br>ld returned 1 exit status<br>make[1]: *** [nagios] Error 1<br>make[1]: Leav=
<br>ing directory `/home/ans/Feri/nagios-1.2/base'<br>make: *** [all] Error 2<br></div><br><div>&nbsp;</div><br><div>//////////////////////////////////////////////////////////////////////=
<br>////////////////////////////////////////////////////////////</div><br><br>------=_Part_7499_9141084.1130033006914--<br><br><br>--__--__--<br><br>Message: 10<br>Date: Sun, 23 Oct 2005 04:49:19 +0200<br>From: Holger Weiss <
<a href="mailto:holger@CIS.FU-Berlin.DE">holger@CIS.FU-Berlin.DE</a>><br>To: Nagios Users <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>Subject: [Nagios-users] Error linking against MySQL (was: Nagios-users digest, Vol 1 #2863 - 26 msgs)
<br><br>* Arif Snort <<a href="mailto:arif.snort@gmail.com">arif.snort@gmail.com</a>> [2005-10-23 09:03]:<br>> gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o<br>> flapping.o logging.o
 notifications.o sehandlers.o utils.o<br>> sretention.o../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c<br>> ../common/objects.c<br>> ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c<br>> perfdata.o../xdata/xpddefault.c
 ../common/downtime.c ../xdata/xdddb.c<br>> -lm -o nagios<br>> /tmp/ccyNKzvy.o(.text+0xf3): In function `xrddb_query':<br>> ../xdata/xrddb.c:329: undefined reference to `mysql_query'<br><br>What's the path to your MySQL installation?  How did you call Nagios'
<br>configure?  Did you specify "--with-mysql-lib=/path/to/mysql/lib"?<br><br>Holger<br><br>PS: Please choose a better subject next time.<br><br>--<br>PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE
<br><br><br><br>--__--__--<br><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br><br><br>End of Nagios-users Digest</blockquote>
<div> </div>
<div>i call nagios configure; --with-mysql-lib=/usr/lib/mysql --with-mysql-inc=/usr/include/php/ext/mysql/libmysql --with-gd-lib=/usr/lib --with-gd-inc=/usr/include/php/ext/mysql/gd/libgd</div>
<div>are the specify true? and the point librarys is:</div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div>/usr/lib/mysql = libmysql.so.14 ... /libmysqlclient.so.14.0.0</div>
<div> </div>
<div>root# la/usr/lib</div>
<div>         =libgd.so.2 .. libgd.so.2.0.0</div>
<div>root# la/usr/include .. .../libmysql</div>
<div>        =errmsg.h</div>
<div>           mysql.h</div>
<div>root# la/usr/include   ...../gd/libgd</div>
<div>         =gd.h</div>
<div> </div>
<div>are the directory is true?</div></blockquote>
<div> </div><br> </div><br>