LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2011, 04:44 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 207

Rep: Reputation: 2
nagios grapher REGEX help


hi,

this is the value I need to capture.

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.
 
Old 01-31-2011, 08:44 PM   #2
JAY6390
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Try this
Code:
\((\d+)%\) - free
The number 9 will be in the group 1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex matching with check_snmp and nagios angel115 Linux - Software 2 02-07-2011 03:10 AM
Perl to find regex and print following 5 lines after regex casperdaghost Linux - Newbie 3 08-29-2010 09:08 PM
network protocol grapher? CmdoColin Linux - Networking 1 10-08-2009 06:49 AM
regex with sed to process file, need help on regex dwynter Linux - Newbie 5 08-31-2007 06:10 AM
Network traffic Grapher usinf RRDTool shipon_97 Linux - Networking 4 11-19-2006 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration