Error: System call sent warnings to stderr: error: unsupported option (BSD syntax)
The problem is that there's a mis-match between the
check_procs plug-in and your operating system's
check_procs plug-in spawns the
ps command to check processes, applying a
scanf()-style format string to the command's output to find out what it needs to know about running processes. Given the wide variance in
ps commands across operating systems, it has to tailor this to each operating system's
This it does when the
check_procs plug-in is compiled from source to binary. There's a 400-odd-line configuration script that laboriously checks each known combination of
ps arguments+options and scanning format string in turn, until one works. This combination is then hardwired into the compiled plug-in.
If the combination turns out to be wrong for the actual system where
check_procs is run,
ps either generates output in the wrong format (witness MacPorts bug #28801 and monitoring-plugins issue #1328) or generates error messages to standard error (witness Debian Bug #296003) which are picked up by the plug-in and alerted on. The latter is what is happening here.
This has various consequences:
- If you are building the plug-in from source, you need to build it with the same
ps command installed as will be installed on the eventual production machine.
- If you are using a pre-built binary, that binary needs to have been built on a system whose
ps command matches the one on your machine where you are running the plug-in. If you didn't build the binary yourself, you need to talk to the person who did, or at the very least to the package maintainer if you are using a packaged-up pre-built binary.