[Nagiosplug-help] Help with writing RegEx in map file related to NagiosGraph
Justin Amburn
justinjoseph24 at hotmail.com
Wed Nov 26 01:30:47 CET 2008
Pavan,
upon first glance, it seems that the match is giving up at the forward slash at date=25/
Try broadening the regexp match to include forward slashes.
From: rrvkumar at hotmail.com
To: nagiosplug-help at lists.sourceforge.net
Date: Tue, 25 Nov 2008 11:17:46 +0000
Subject: [Nagiosplug-help] Help with writing RegEx in map file related to NagiosGraph
Hi All
,
Below is the Output that I have for
which iam trying to write a map file.
Actual
Output:
JbossConnPoolData OK
date=25/11/2008,time=16:31:02,BlockTimeout=30000,AvlbeConnCount=475,ConnectCount=100,MinSize=100,MaxConnInUse=57,
MaxSize=500,InUseConnCount=25,ConnCreatdCount=100,ConnDestroyesCount=0,IdleTimeOutInMin=0
My RegEx in map
/output:Jboss.*?date=(\d+),time=(\d+),BlockTimeout=(\d+),AvlbeConnCount=(\d+),ConnectCount=(\d+),MinSize=(\d+),MaxConnInUse
=(\d+),MaxSize=(\d+),InUseConnCount=(\d+),ConnCreatdCount=(\d+),ConnDestroyesCount=(\d+),IdleTimeOutInMin=(\d+)
/
and push @s, [
'jbcp',
['date' , GAUGE , $1
],
[ 'time', GAUGE,
$2 ],
[ 'BlockTimeout',
GAUGE, $3 ],
[ 'AvlbeConnCount',
GAUGE, $4 ],
[ 'ConnectCount',
GAUGE, $5 ],
[ 'MinSize', GAUGE,
$6 ],
[ 'MaxConnInUse',
GAUGE, $7 ],
[ 'MaxSize', GAUGE,
$8 ],
[ 'InUseConnCount',
GAUGE, $9 ],
[
'ConnCreatdCount', GAUGE, $10 ],
[
'ConnDestroyesCount', GAUGE, $11 ],
[
'IdleTimeOutInMin', GAUGE, $12 ] ];
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.
Regards,
Pavan
What’s on the ramp today could be on the streets tomorrow. Keep up with trends on MSN Lifestyle Try it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20081125/e1933048/attachment.html>
More information about the Help
mailing list