
hendro
New User
Sep 19, 2006, 11:30 PM
Post #3 of 8
(7791 views)
|
|
Re: [davorg] need help for nagiosgraph map file (perl script)
[In reply to]
|
Can't Post
|
|
#Cisco Mem util #Status is OK - MEMORY: total: 67.58 MB, used: 20.84 MB (31%), free: 46.74 MB /perfdata:Status.*?MEMORY:.*?total:.(\d+) MB.*? used: (\d+) MB \((\d+)\%\) free: (/d+\) MB.*? / and push @s, [ Memutil, [ total, GAUGE, $1 ], [ used, GAUGE, $2 ], [ free, GAUGE, $3 ] ]; #Cisco Loadavg #Status is OK - CPU load average (5 min): 1 % /perfdata:Status.*?CPU load average (5 min):.(\d+) %/ and push @s, [ Loadavg, [ used, GAUGE, $1 ]; #Cisco Ifstatus #Status is OK - Serial5/4 (PPP) - Current: 49 Kbps, Limit: 64 Kbps /perfdata:Status.*?Serial.*?Current:.(\d+) Kbps, Limit: (\d+) Kbps and push @s, [ Ifstatus, [ current, GAUGE, $1 ], [ limit, GAUGE, $2]; And the error message below: Unmatched ( in regex; marked by <-- HERE in m/perfdata:Status.*?MEMORY:.*?total:.(\d+) MB.*? used: (\d+) MB \((\d+)%\) free: ( <-- HERE / at map.org line 65. Could you help me. Best regards Hendro B
|