[icinga-users] check_procs not reporting a process running that it is checking for

G.W. Haywood icinga at jubileegroup.co.uk
Tue Oct 2 11:58:52 CEST 2018

Hi there,

On Mon, 1 Oct 2018, Botnick, Steven wrote:

> I have an icinga instance running on each of two systems and checks
> on each system for certain processes running. System 2 is
> performing the same check on itself as system 1, yet system 2 check
> fails to report the process is running.
> [...]
> ps .. 00:15:53 /usr/local/smokeping/bin/smokeping [FPing]
> # /usr/local/icinga/libexec/check_procs -C smokeping
> PROCS OK: 0 processes with command name 'smokeping' | procs=0;;;0;
> There are other process checks running on the host and they are operating normally.
> Any ideas? TIA for anything helpful.

Whenever I run into something like this I like to replace the script
or binary which is apparently giving trouble with something simple of
my own, usually a shell or Perl script, which may not do everything
that the original does but can relatively easily provide information
about what's going on.  Most of these plugins are fairly simple things
which in the end just output some small amount of text to stdout - see
some of the shell scripts in /libexec/ (or wherever) for examples.  If
it is a script, as opposed to a complied binary, I'll often add some
debugging statements to it rather than completely replace it.

The line in the OP beginning "PROCS OK:" is an example of the entire
output of a plugin to its stdout, but there's nothing to prevent you
from e.g. sending debug data to stderr to figure out what it's doing.



More information about the icinga-users mailing list