Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: sebastiaopburnay on January 12, 2011, 11:39:54 AM
-
Hi!
I have a nagios instance on a virtualized SME Server 7.5.1
I would like to evolve my nagios server into one with an NDOUtils Mysql DB.
So I googled and came across this guide for doing it on CentOS: http://www.nagioswiki.com/wiki/index.php/NDOutils_on_CentOS (http://www.nagioswiki.com/wiki/index.php/NDOutils_on_CentOS)
I successfully installed mysql-devel and mysql-server packages.
Problem came when I ran the ./configure on the NDOUtils, which retrieved:
*** MySQL library could not be located... **************************
You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/dir
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
TIP: Try the following....
./configure --with-mysql=/usr/lib/mysql
********************************************************************
So, I followed the advice and ran ./configure --with-mysql=/usr/lib/mysql
.
The same message came on screen indicating «MySQL library could not be located».
Is it that the SME Server stores it's MySQL libraries somewhere else?
Any sugestions?
Thank you.
-
you don't need to install mysql as it's already there..
if you do a little research for ndoutils with google you'll see that there are rpms available for RH/Centos4 (i.e. SME7.X)
then, setup Dag's repo as for Wiki (http://wiki.contribs.org/dag) page then
yum --enablerepo=dag install ndoutils
Hope you've done your test on a test machine..
-
This post is off-topic for this forum, which concerns only software installed from the SME server install CDROM.
-
[/code]
So, I followed the advice and ran ./configure --with-mysql=/usr/lib/mysql
.
The 'configure' command is a step in compilation of a software package. SME server is not a development platform, and has no compilers or development libraries installed.
The standard advice is to find a version of your program already compiled and packaged into an rpm format. I don't know whether that will be possible in your case.
-
Moving to contribs section
-
The standard advice is to find a version of your program already compiled and packaged into an rpm format. I don't know whether that will be possible in your case.
Charlie.. ndoutils is available form Dag's repo
-
Charlie.. ndoutils is available form Dag's repo
Don't tell me - tell OP. :-)
-
Well, I've tried running the command
yum --enablerepo=dag install ndoutils
But I came accross with an error:
[root@sebas bash]# yum --enablerepo=dag install ndoutils
Loading "installonlyn" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
http://apt.sw.be/redhat/el4/en/i386/dag/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: dag
failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
So, I'm getting a bit lost on how to fix this issue.
-
well, the error message sounds clear to me: there's a (temporary) dns problem on your side..
can you resolve apt.sw.be from your SME?
dig apt.sw.be
you should get something like:
[root@srvsrv ~]# dig apt.sw.be
; <<>> DiG 9.2.4 <<>> apt.sw.be
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18481
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;apt.sw.be. IN A
;; ANSWER SECTION:
apt.sw.be. 60 IN CNAME dag.freshrpms.net.
dag.freshrpms.net. 157 IN CNAME dag.ie.freshrpms.net.
dag.ie.freshrpms.net. 157 IN CNAME ie.freshrpms.net.
ie.freshrpms.net. 157 IN A 193.1.193.67
;; Query time: 104 msec
;; SERVER: 10.0.0.12#53(10.0.0.12)
;; WHEN: Thu Jan 13 15:20:44 2011
;; MSG SIZE rcvd: 109
-
You were absolutely right Stefano!
The plugin installed correctly.
Somehow, I'm losing my /etc/resolv.conf definitions when I turn on&off the VM hosting nagios.
The same thing happens to /etc/squid/squid.conf and /etc/ntp.conf. and probably to a lot more configurations I would like to store.