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