On Wed, 11 Dec 2013, Dan Radu Dragomir wrote: > I've been bashing my head against the wall for 3 days already and I > can't seem to be able to understand what's going on.
What you may have is an environment issue where the environment that the Icinga user has when logged into a shell is different than when running as a daemon process. I'd especially look for the LD_LIBRARY_PATH setting both when logged into a shell and in what the daemon process has. A useful tactic for finding out what the daemon has is to set up a dummy check that simply dumps the environment to a file on disk and then exits with a code of zero (OK). E.g. #!/bin/bash set > /tmp/foo exit 0 chmod() it so it's executable and then add it into Icinga as a command and call it from a service definition. The reason I suspect environment is the exit code. Stuff > 128 gets returned when things are coming from a daemon process and you fingure out what they mean by subtracting 128. 139 is a segfault which means that something is getting mismanaged for some reason when the check runs in daemon mode. +------------------------------------------------+---------------------+ | Carl Richard Friend (UNIX Sysadmin) | West Boylston | | Minicomputer Collector / Enthusiast | Massachusetts, USA | | mailto:crfri...@rcn.com +---------------------+ | http://users.rcn.com/crfriend/museum | ICBM: 42:22N 71:47W | +------------------------------------------------+---------------------+ ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users