PDA

View Full Version : New Install... Error loading


davec
27-09-2004, 22:41
I have just finished a new install, using the defaults... I get the following when I try to execute the following from usr/local/bin:
./zabbix_suckerd

error while loading shared libraries: libnetsnmp.so.5: cannot open shared object file: No such file or directory

I have checked and libnetsnmp.so.5, is in usr/local/lib

I have tried executing as root and as the user that will be running zabbix.

zabbix_trapperd
zabbix_agentd
both loaded sucessfully.

I am probably doing something totally stupid... but please help..

Dave
:confused:

Alexei
27-09-2004, 23:03
Hi Dave,

Welcome aboard!

For some reason your OS (Linux?) is unable to find the shared library required for zabbix_suckerd.

So, you may try to:



compile zabbix_suckerd as static, so the binary will have everything compiled in. Use --enable-static option while doing ./configure
tell you system to look for libraries in /usr/local/lib. You may edit /etc/ld.so.conf and run ldconfig afterwards.
do not enable SNMP support if you don't need it.
I hope this helps.

davec
28-09-2004, 00:02
Alexei,
Thanks for the help, I am using Xandros 2.5, Debian (sarge)

I modified the /etc/ld.so.conf and ran ldconfig afterwards.

This cured that problem... now I get..

Failed to connect to database: Error: Can't connect to local MySQL server through socket 'var/run/mysqld/mysqld.sock' (2)

i have checked and mysql is running, and the zabbix database is available..


Ideas..

Dave

Alexei
28-09-2004, 00:09
This cured that problem... now I get..

Failed to connect to database: Error: Can't connect to local MySQL server through socket 'var/run/mysqld/mysqld.sock' (2)
Missing '/' in /var/run/mysqld/mysqld.sock?

davec
28-09-2004, 00:15
You are right Alexei, I missed the '/' in front of the var when i copied the line..

Dave

davec
28-09-2004, 16:28
Alexei,
The Mysql database is available, I can access it using the web front end... but mysqld.sock seems to be missing... is there something I missed installing.... I still get this error..

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Thanks

Dave

rumor
28-09-2004, 17:14
Try this, may be it will help:

http://dev.mysql.com/doc/mysql/en/Can_not_connect_to_server.html

davec
28-09-2004, 18:39
Rumor,
Thanks for the help, I found out how to display the variables mysql was using, then I modified the zabbix_suckerd.conf to use the correct socket.

I am all up and working .....

Now comes the hard part.... I wanted Zabbix to see if i could create triggers on a unique application, and send them to a SNMP Manager. (or use zabbix itself)

Thanks Again, both yourself and Alexei :D