0
Answered

How do I monitor Linux MySQL host, where agent is already installed?

mchowdhary 11 years ago updated by Konstantin (Here to help) 11 years ago 2

I have installed the agent, but I am trying to add an additional monitor for Mysql.  The mysql server is installed on the same server as the agent.  It will not work, and it says something about the agent software version not supporting this.   Is this supported on Windows but not Linux?

Hi,


This problem is caused by the following error 


error while loading shared libraries: /opt/anturis/lib/libQtSql.so.4: cannot restore segment prot after reloc: Permission denied


Which is caused by enabled selinux. You will need to disable selinux to have it working.

For more information see here:
http://www.cubrid.org/wiki_tutorials/entry/cannot-restore-segment-prot-after-reloc-permission-denied
http://thompsonng.blogspot.ru/2012/03/linux-cannot-restore-segment-prot-after.html


Let me know if this helps.

Thanks.

Or if you do not want to disable selinux you may try this:


> chcon -t textrel_shlib_t /opt/anturis/lib/*
> chcon -t textrel_shlib_t /opt/anturis/bin/*


(As advised here for example: http://portal.archiware.com/support/index.php?/Knowledgebase/Article/View/55/0/error-cannot-restore-segment-prot-after-reloc-permission-denied)


In any case you will also need to restart Anturis Agent like this:


> service anturis-agent-service restart


Thanks.