Page 1 of 1

Installing the CCMS plugin

Posted: Tue Sep 06, 2016 4:31 am
by dLans
Hello! This is not so much a Nagios question but I'm hoping someone here would still be able to say "Hey I know that! Its ... " :)


I should start by pointing out that I’ve got only basic Linux experience as we’re a 99% Windows based company (we're running it purely for Nagios). I’m trying to learn but sometimes I need some help with being pointed into the right direction ^^.

We want to use Nagios for monitoring our SAP systems. We want to go beyond simply checking whether the server is online or if there is enough space available. We want to be able to monitor important jobs statuses. We can manually see the job status in the transaction SM37 but this requires manual labor and we’re all lazy system administrators =).

I’ve been looking into the Nagios CCMS plugin but I’m having trouble installing it. I’ve downloaded a tar, extracted the files, compiled the libraries but for some reason I cannot seem to get it working (even though the how-to seems fairly easy and straightforward).

Image

I’ve followed the above and copied the two files to /usr/lib. But when trying to execute the command check_sap I get the following error:
./check_sap: error while loading shared libraries: sap_moni.so: cannot open shared object file: No such file or directory

What am I doing wrong? If anyone could guide me into the right direction I’d really appreciate it!

Kind regards,
Dennis Lans

Re: Installing the CCMS plugin

Posted: Tue Sep 06, 2016 9:32 am
by tmcdonald
Can you point us to where you found this? We can generally help out with installing or using plugins, but if there are programming issues they need to be fixed by the developer (or us, if it was ours to begin with).

Re: Installing the CCMS plugin

Posted: Wed Sep 07, 2016 2:14 am
by dLans
Hi! Thank you for your reply. I've found the plugin and documentation here:
https://exchange.nagios.org/directory/P ... ns/details

After extracting the .tar file you also get a 8 pages short documentation which I'll attach here.

Re: Installing the CCMS plugin

Posted: Wed Sep 07, 2016 12:25 pm
by tgriep
I had the same error as you but I copied the shared library sap_moni.so in to the /usr/lib64 directory and ran the following to load it.

Code: Select all

ldconfig -v
Try that and see if it works for you.

Re: Installing the CCMS plugin

Posted: Thu Sep 08, 2016 3:05 am
by dLans
That's it! I can't believe I failed to check if there was a x64 library as well. Thank you so much, this has really helped us save time & set up better monitoring!

Re: Installing the CCMS plugin

Posted: Thu Sep 08, 2016 9:24 am
by tmcdonald
Are we all good to close up this thread?

Re: Installing the CCMS plugin

Posted: Thu Sep 08, 2016 9:46 am
by dLans
Yes, thank you <3