Hi Wilco,

/perfdata: 
HeapMemoryUsage.used=\d+\(committed=(\d+);init=(\d+);max=(\d+);used=(\d+).*/
and push @s, [ "heap",
        [ "committed", GAUGE, $1 ],
        [ "init", GAUGE, $2 ],
        [ "max", GAUGE , $3 ],
        [ "used", GAUGE, $4 ] ];

};

works if I add this to testentry.pl, in the same directory.

Please note that if you modify the output according to the default nagios 
plugin performance output, you don't need to modify map.local.

hth
Paul

-----Original message-----
To:     Opsview Users <[email protected]>; 
From:   Wilco Noordermeer <[email protected]>
Sent:   Thu 03-03-2011 10:10
Subject:        Re: [opsview-users] Map.local file question
> Hi all,
> 
> As an addition, I noticed the typos in the lines: [ "commited", GAUGE, 1 ] 
> which should of course be $1, $2, etc.
> 
> I fixed that but still no graphs...
> 
> Thanks,
> Wilco
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Wilco 
> Noordermeer
> Sent: Thursday, 03 March, 2011 09:59
> To: [email protected]
> Subject: [opsview-users] Map.local file question
> 
> HI all,
> 
> I'm using check_jmx to get some info out of some JVM's. This works fine, but 
> I'm having trouble parsing the output into performance data. The check does 
> not 
> adhere to the standard output with a | (pipe) for perfdata.
> 
> My map.local file now contains this section below. The regex matches the 
> right 
> fields when I validate it, but I'm no expert. I still get no perfdata files 
> and 
> hence, no graphs. I hope someone can get me underway.
> 
> # Service type: JMX Memory
> # output: JMX OK 
> HeapMemoryUsage.used=594773720{committed=783876096;init=0;max=1034027008;used=59
> 4773720}
> /output:JMX.*?committed=(\d+);init=(\d+);max=(\d+);used=(\d+)/
> and push @s, [ "HeapMemoryUsage",
>         [ "commited", GAUGE, 1 ],
>         [ "init", GAUGE, 2 ],
>         [ "max", GAUGE, 3 ],
>         [ "used", GAUGE, 4 ] ];
> 
> Thanks,
> Wilco
> Wilco Noordermeer
> IT Operations Manager
> Tel.: +31 71 5451 161 / +31 6 4798 8000
> Leidse Onderwijsinstellingen bv
> Leidsedreef 2
> 2352 BA Leiderdorp
> www.loi.nl
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
>
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to