[Nagiosplug-help] Plugin MySQL errors

mye mye at bali.to
Tue Jan 30 01:50:31 CET 2007


Open check_mysql.c file, and check where the mysql.h and errmsg.h files is
saved

Muhammad

On Tue, 30 Jan 2007 08:24:54 -0800 (PST)
cynthia lingley <cslingley at yahoo.com> wrote:

> I am new to Linux.  But I read all the documentation and installed gd-2.0.33.tar.gz, and nagios-2.7.tar.gz without problem.  However the plugins from nagios-plugins-1-4.5.tar.gz fail to install into the /usr/local/nagios/libexec directory.  Like similar Postings... I too have MySQL errors afer running ./configure.  I also discounted believing MySQL was not a prerequiste. Someone wrote, the "make install" will not ignore errors encountered.  How best should I resolve the MySQL errors included below...
>  Do I need to install MySQL too?
>      check_mysql.c:51:19: error: mysql.h: No such file or directory
>  check_mysql.c:52:20: error: errmsg.h: No such file or directory
>  check_mysql.c:58: error: $BA.(BYSQL_PORT$BC(Bundeclared here (not in a function)
>  check_mysql.c: In function $BAN(Bain$BC(B
>  check_mysql.c:73: error: $BA.(BYSQL$BC(Bundeclared (first use in this function)
>  check_mysql.c:73: error: (Each undeclared identifier is reported only once
>  check_mysql.c:73: error: for each function it appears in.)
>  check_mysql.c:73: error: syntax error before $BAN(Bysql$B".(B>  check_mysql.c:74: error: $BA.(BYSQL_RES$BC(Bundeclared (first use in this function)
>  check_mysql.c:74: error: $BAS(Bes$BC(Bundeclared (first use in this function)
>  check_mysql.c:75: error: $BA.(BYSQL_ROW$BC(Bundeclared (first use in this function)
>  check_mysql.c:75: error: syntax error before $BAS(Bow$B".(B>  check_mysql.c:91: error: $BAN(Bysql$BC(Bundeclared (first use in this function
>  check_mysql.c:93: error: $BA.(BYSQL_READ_DEFAULT_GROUP$BC(Bundeclared (first use in this function)
>  check_mysql.c:97: error: $BA$(BR_UNKNOWN_HOST$BC(Bundeclared (first use in this function)
>  check_mysql.c:99: error: $BA$(BR_VERSION_ERROR$BC(Bundeclared (first use in this function)
>  check_mysql.c:101: error: $BA$(BR_OUT_OF_MEMORY$BC(Bundeclared (first use in this function)
>  check_mysql.c:103: error: $BA$(BR_IPSOCK_ERROR$BC(Bundeclared (first use in this function)
>  check_mysql.c:105: error: $BA$(BR_SOCKET_CREATE_ERROR$BC(Bundeclared (first use in this function)
>  check_mysql.c:112: warning: passing argument 1 of $BAT(Btrlen$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:112: warning: passing argument 2 of $BA@(B_builtin___memcpy_chk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:112: warning: passing argument 2 of $BA@(B_memcpy_ichk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:112: warning: passing argument 1 of $BA@(B_strdup$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:116: error: $BA$(BR_SERVER_GONE_ERROR$BC(Bundeclared (first use in this function)
>  check_mysql.c:118: error: $BA$(BR_SERVER_LOST$BC(Bundeclared (first use in this function)
>  check_mysql.c:120: error: $BA$(BR_UNKNOWN_ERROR$BC(Bundeclared (first use in this function)
>  check_mysql.c:127: warning: passing argument 1 of $BAT(Btrlen$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:127: warning: passing argument 2 of $BA@(B_builtin___memcpy_chk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:127: warning: passing argument 2 of $BA@(B_memcpy_ichk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:127: warning: passing argument 1 of $BA@(B_strdup$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:134: warning: passing argument 1 of $BAT(Btrlen$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:134: warning: passing argument 2 of $BA@(B_builtin___memcpy_chk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:134: warning: passing argument 2 of $BA@(B_memcpy_ichk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:134: warning: passing argument 1 of $BA@(B_strdup$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:146: error: $BAS(Bow$BC(Bundeclared (first use in this function)
>  check_mysql.c:147: warning: passing argument 1 of $BAT(Btrlen$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:147: warning: passing argument 2 of $BA@(B_builtin___memcpy_chk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:147: warning: passing argument 2 of $BA@(B_memcpy_ichk$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:147: warning: passing argument 1 of $BA@(B_strdup$BC(Bmakes pointer from integer without a cast
>  check_mysql.c:165: error: $BA.(BYSQL_FIELD$BC(Bundeclared (first use in this function)
>  check_mysql.c:165: error: $BAG(Bields$BC(Bundeclared (first use in this function)
>  make[2]: *** [check_mysql-check_mysql.o] Error 1
>  make[2]: Leaving directory `/root/Desktop/nagios-plugins-1.4.5/plugins'
>  make[1]: *** [all-recursive] Error 1
>  make[1]: Leaving directory `/root/Desktop/nagios-plugins-1.4.5'
>  make: *** [all] Error 2
>  [root at cynthia nagios-plugins-1.4.5]#
>  Note, make test appears to work.... I thought installing the Plugins would be the easy the part. Any help/advice much appreciated.
>  Thanks, Cynthia
>  
>  
>  
>  
> ---------------------------------
> Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.

==================================
mye <mye at bali.to>
http://www.infolinux.jp
http://faq.infolinux.jp






More information about the Help mailing list