CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [hendro] need help for nagiosgraph map file (perl script): Edit Log



KevinR
Veteran


Sep 20, 2006, 12:01 AM


Views: 11288
Re: [hendro] need help for nagiosgraph map file (perl script)

I'm confused but.... in this line:


Code
/perfdata:Status.*?MEMORY:.*?total:.(\d+) MB.*? used: (\d+) MB \((\d+)\%\) free: (/d+\) MB.*? /


the last ')' is escaped with a '\' : (/d+\)
and the /d+ probably should be \d+

change the line to:


Code
/perfdata:Status.*?MEMORY:.*?total:.(\d+) MB.*? used: (\d+) MB \((\d+)\%\) free: (\d+) MB.*? /


or:


Code
/perfdata:Status.*?MEMORY:.*?total:\.(\d+) MB.*? used: (\d+) MB \((\d+)\%\) free: (\d+) MB.*? /

-------------------------------------------------


(This post was edited by KevinR on Sep 20, 2006, 12:01 AM)


Edit Log:
Post edited by KevinR (Veteran) on Sep 20, 2006, 12:01 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives