check_mk_extensions icon indicating copy to clipboard operation
check_mk_extensions copied to clipboard

rspamd mkp generic approach

Open TonyBostonTB opened this issue 1 year ago • 2 comments

With the actual script, the check wouldn't work on e.g. OpenBSD. In this case 'pidof' is not known to openbsd and I had to comment out the tst for a rspamd PID so that it works.

Would it be possible to make that check more generic?

TonyBostonTB avatar Aug 03 '22 13:08 TonyBostonTB

How would such a generic code look like? I have no *BSD system at hand. How do you test for a running process by name on *BSD?

gurubert avatar Aug 10 '22 09:08 gurubert

On 22.08.10 02:45, Robert Sander wrote:

How would such a generic code look like? I have no *BSD system at hand. How do you test for a running process by name on *BSD?

-- Reply to this email directly or view it on GitHub: https://github.com/HeinleinSupport/check_mk_extensions/issues/111#issuecomment-1210428935 You are receiving this because you authored the thread.

Message ID: @.***>

The only thing I see is 'pgrep' but that would give you the 'pgrep' PID as well when searching for rspamd

I assume checking with pgrep for more than one PID would be an option

TonyBostonTB avatar Aug 10 '22 14:08 TonyBostonTB