[Nagiosplug-help] Help with writing RegEx in map file related to NagiosGraph
pavan kumar
rrvkumar at hotmail.com
Tue Nov 25 12:17:46 CET 2008
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
_________________________________________________________________
Search for videos of Bollywood, Hollywood, Mollywood and every other wood, only on Live.com
http://www.live.com/?scope=video&form=MICOAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20081125/3f5a2a6a/attachment.html>
More information about the Help
mailing list