Hi Paul,

Thanks for the patience :-)

Q1: yes, my typo: map is in /usr/local/nagios/etc/map (map.local is in the same 
dir)
Q2: nothing happens when running /usr/local/nagios/bin/insert.pl
Q3: the exact output when running check_jmx from the commandline is:

[nagios@monitorbox libexec]$ ./check_jmx -a '-U 
service:jmx:rmi:///jndi/rmi://mybox.local:9005/jmxrmi -O java.lang:type=Memory 
-A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 827221606  -c 
930624307'
JMX OK 
HeapMemoryUsage.used=342774496{committed=472842240;init=0;max=2067988480;used=342774496}

Much appreciated!
Thanks,
Wilco

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Paul
Sent: Friday, 04 March, 2011 08:42
To: [email protected]
Subject: [opsview-users] FW: Map.local file question

> Hi Wilco,
> 
> Q1 IMHO the map file sits in /usr/local/nagios/etc
> Q2 what happens if you run /usr/local/nagios/bin/insert.pl from the 
> commandline?
> Q3 what is the exact output from the service? I expected perfdata to 
> generate the output (all behind the '|')
> 
> If you do not have access to the source of jmxquery.jar, you can't 
> modify the output. I was referring to 
> http://nagios.sourceforge.net/docs/3_0/pluginapi.html
> 
> hth
> Paul
> 
> -----Original message-----
> To:   Opsview Users <[email protected]>; 
> From: Wilco Noordermeer <[email protected]>
> Sent: Thu 03-03-2011 15:52
> Subject:      Re: [opsview-users] Map.local file question
> > HI Paul,
> > 
> > Thanks for the reply. I made the change and put it in map.local, but 
> > still no rrd files. Even appending it to /usr/local/nagios/map directly 
> > didn't do it.
> > 
> > Is there a way to look at (debug) logging for how the perf data is parsed?
> > Also Paul, your suggestion of modifying the output, do you have a 
> > specific
> way
> > of doing that? In this case the output is generated from a JAVA 
> > program
> > (jmxquery.jar) that's called from check_jmx. I don't see how I can 
> > change output from there?
> > 
> > Thanks,
> > Wilco
> > 
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Paul
> > Sent: Thursday, 03 March, 2011 13:27
> > To: [email protected]
> > Subject: Re: [opsview-users] Map.local file question
> > 
> > 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=1034
> > > 0270
> > > 08;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
> > _______________________________________________
> > 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