<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Pavan,<br> upon first glance, it seems that the match is giving up at the forward slash at date=25/<br>Try broadening the regexp match to include forward slashes.<br><br><hr id="stopSpelling">From: rrvkumar@hotmail.com<br>To: nagiosplug-help@lists.sourceforge.net<br>Date: Tue, 25 Nov 2008 11:17:46 +0000<br>Subject: [Nagiosplug-help] Help with writing RegEx in map file related to NagiosGraph<br><br>
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<br><style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.EC_EmailStyle17
{font-family:Arial;color:windowtext;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.EC_Section1
{page:Section1;}
</style><div class="EC_Section1">
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi All
,</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Below is the Output that I have for
which iam trying to write a map file.</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><b><font face="Arial" size="2"><span style="font-weight: bold; font-size: 10pt; font-family: Arial;">Actual
Output:</span></font></b></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">JbossConnPoolData OK
date=25/11/2008,time=16:31:02,BlockTimeout=30000,AvlbeConnCount=475,ConnectCount=100,MinSize=100,MaxConnInUse=57,</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">MaxSize=500,InUseConnCount=25,ConnCreatdCount=100,ConnDestroyesCount=0,IdleTimeOutInMin=0</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><b><font face="Arial" size="2"><span style="font-weight: bold; font-size: 10pt; font-family: Arial;">My RegEx in map
</span></font></b></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">/output:Jboss.*?date=(\d+),time=(\d+),BlockTimeout=(\d+),AvlbeConnCount=(\d+),ConnectCount=(\d+),MinSize=(\d+),MaxConnInUse</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">=(\d+),MaxSize=(\d+),InUseConnCount=(\d+),ConnCreatdCount=(\d+),ConnDestroyesCount=(\d+),IdleTimeOutInMin=(\d+)
/</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">and push @s, [
'jbcp',</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> ['date' , GAUGE , $1
],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'time', GAUGE,
$2 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'BlockTimeout',
GAUGE, $3 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'AvlbeConnCount',
GAUGE, $4 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'ConnectCount',
GAUGE, $5 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'MinSize', GAUGE,
$6 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'MaxConnInUse',
GAUGE, $7 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'MaxSize', GAUGE,
$8 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [ 'InUseConnCount',
GAUGE, $9 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [
'ConnCreatdCount', GAUGE, $10 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [
'ConnDestroyesCount', GAUGE, $11 ],</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> [
'IdleTimeOutInMin', GAUGE, $12 ] ];</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Can someone please tell me where am
going wrong, when I validate the map file with perl –c map it says OK. But the
rrd files are not getting generated for this regex
matching.</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Regards,</span></font></p>
<p class="EC_MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Pavan</span></font></p></div><br><br><br><hr>What’s on the ramp today could be on the streets tomorrow. Keep up with trends on MSN Lifestyle <a href="http://lifestyle.in.msn.com/">Try it!</a></body>
</html>