[Nagiosplug-help] check_procs greedy matching
Philip Marcus
pmarcus at factual.com
Fri Aug 14 00:51:41 CEST 2009
Maybe one of these options to check_procs would help:
-a, --argument-array=STRING
Only scan for processes with args that contain STRING.
--ereg-argument-array=STRING
Only scan for processes with args that contain the regex STRING.
-C, --command=COMMAND
Only scan for exact matches of COMMAND (without path).
Looks like the " --ereg-argument-array=" might be what you need to catch the
REGEX you're trying to pass in.
Good Luck!
-Philip
On Thu, Aug 13, 2009 at 12:29 PM, Brian Dold
<brian.dold at chicagotrading.com>wrote:
> Hi all:
>
>
>
> I have a problem with greedy matching in check_procs. I receive alerts for
> two processes running when someone looks at a core file on our system.
>
>
>
> Definition:
>
> command[check_process_by_fullpath]=/usr/lib/nagios/plugins/check_procs -c
> 1:1 --metric PROCS --argument-array "$ARG1$"
>
>
>
> Service Description:
>
> define service {
>
> use uschi12tv02-proc-template
>
> service_description PROCESS: TV Server Process
>
> check_period uschi12tv02-tvserver-hours
>
> notification_period uschi12tv02-tvserver-hours
>
> check_command
> check_nrpe!check_process_by_fullpath!"/ctc/tv/bin/linux32/tvserverd"
>
> }
>
>
>
> When someone runs the following to look at core files, we get a false alert
> that two processes are running because the binary is in the core command:
>
> gdb /ctc/tv/bin/linux32/tvserverd /ctc/cores/core.tvserverd.22217.11
>
>
>
> I need to match similar to below (although this doesn’t work):
>
> check_command
> check_nrpe!check_process_by_fullpath!"^/ctc/tv/bin/linux32/tvserverd$" -
> (note the ^ and $)
>
>
>
> Does anyone know how to do this?
>
>
>
> Thank you,
>
>
>
> Brian Dold
>
> This message is intended only for the personal and confidential use of the
> recipients named above. If the reader of this email is not the intended
> recipient, you have received this email in error and any review,
> dissemination, distribution or copying is strictly prohibited. If you have
> received this email in error, please notify the sender immediately by return
> email and permanently delete the copy you received. This message is provided
> for informational purposes and should not be construed as a solicitation or
> offer to buy or sell any securities or related financial instruments.Neither CTC Holdings nor any affiliates (CTC) are responsible for any
> recommendation, solicitation, offer or agreement or any information about
> any transaction, customer account or account activity that may be attached
> to or contained in this communication. CTC accepts no liability for any
> content contained in the email, or any errors or omissions arising as a
> result of e-mail transmission. Any opinions contained in this email
> constitute the sender's best judgment at this time and are subject to change
> without notice. CTC London Limited is authorized and regulated by the
> Financial Services Authority.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090813/63b89a86/attachment.html>
More information about the Help
mailing list