LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nagios grapher REGEX help (https://www.linuxquestions.org/questions/linux-software-2/nagios-grapher-regex-help-859848/)

PoleStar 01-31-2011 04:46 PM

nagios grapher REGEX help
 
hi,

this is the value I need to capture.
(bold red)
Code:

Memory usage: total:2000.11 Mb - used: 2000.12 Mb (9%) - free: 22000.12 Mb (91%)
I tried

Code:

\(\d+\%) - free:
 \(\d+\%)\ -\ free:
 (\d+\%)\ -\ free:

Nothing worked.

PoleStar 01-31-2011 04:50 PM

Can this be moved in newbie forum.
Thank you.

PoleStar 01-31-2011 05:09 PM

this worked

Code:


(\d+)%\)\ -\ free:


Thanks every one.


All times are GMT -5. The time now is 04:26 AM.