Created attachment 152369 [details] [PATCH] net-mgmt/nagios-plugins: add a -j (--jid) flag to check_procs which specifies jail id net-mgmt/nagios-plugins: add a -j (--jid) flag to check_procs which specifies jail id. It is useful for running on jail hosts.
Auto-assigned to maintainer mat@FreeBSD.org
Have you sent this patch upstream ?
No, I have not. If you need to the patch included in the upstream, you have to modify configure.ac, not configure, which I tried but failed.
Sure, you need to patch configure.ac, to submit upstream, but the changes should be about the same. Of course, you can't test them because configure.in is modified after being generated from configure.ac. It is one of the sillyness of {nagios,monitoring}-plugins.
Submitted upstream at https://github.com/nagios-plugins/nagios-plugins/pull/316.
A commit references this bug: Author: mat Date: Tue Aug 29 11:46:03 UTC 2017 New revision: 448907 URL: https://svnweb.freebsd.org/changeset/ports/448907 Log: Add jail support to check_procs. PR: 197193 Submitted by: mitsururike gmail com Sponsored by: Absolight Changes: head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/patch-configure head/net-mgmt/nagios-plugins/files/patch-plugins_check__procs.c
A commit references this bug: Author: mat Date: Tue Aug 29 13:30:40 UTC 2017 New revision: 448913 URL: https://svnweb.freebsd.org/changeset/ports/448913 Log: Add forgotten patch. PR: 197193 Submitted by: mitsururike gmail com Sponsored by: Absolight Changes: head/net-mgmt/nagios-plugins/files/patch-plugins_check__nagios.c
And another upstream: https://github.com/monitoring-plugins/monitoring-plugins/pull/1504