[Nagiosplug-help] check_procs greedy matching

Brian Dold brian.dold at chicagotrading.com
Thu Aug 13 21:29:25 CEST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090813/41bce680/attachment.html>


More information about the Help mailing list