Custom scripts not working on solaris

Hi all,

I’m using 1.6.0p20 and I’m facing an issue when trying to implement a custom check.
The OS I’m using is a Solaris.
Meantime the agent is running well and its returning information about the agent. But when I introduce a custom script, then when I do a discover, the custom checks are not showing.
I’ve already tried to diagnose in WATO and I can see at the end of the script output the line that my custom check add, but they are not discovered.

Any tips for this issue?

Thanks in advance

Hi again,

Just an importante note, in linux the custom script is working fine without any issue. Discovery can find it without any problem.

So the issue would be related with solaris. Does this have any particular difference?

Thanks in advance,

another detail that I figured out by luck.
If I add the check_mk_agent linux version on a solaris server, the processes start to show, but all other checks do not show…

This is really strange. My OS is sunOS 5.x
I’m already thinking on installing a different agent on solaris servers in order to workaround this issue…

Are you able to share the code for your custom script? Are you setting it up as a local check or something else?

FWIW Solaris is really quite terrible to script on. There are many very painful differences between it and Linux.

Hi.

The issues here was that I missed the route for local plugins inside check_mk_agent.
export MK_LIBDIR=Mypath/lib
export MK_CONFDIR=Mypath/etc
export MK_VARDIR=Mypath/var

After this change it started to working as it should.

Cheers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.