Page 1 of 1

Running wasagent

Posted: Tue Jun 11, 2013 12:01 pm
by eddiez
I have recently downloaded a nagios plugin called "wasagent" from https://code.google.com/p/wasagent/. When I run the command via the command line I get returned the following stating all is good.

exttest_srvr: status OK|jvm-heapSize=835MB;;;0;2048 jvm-heapUsed=438MB;;;0;2048 jvm-cpu=2%;;;0;100

But when executed via nrpe, I get NRPE: Unable to read output.

Has anyone used this plugin and got it to work? If so how? If not, can anyone help me on this.

Thanks,

Ed

Re: Running wasagent

Posted: Tue Jun 11, 2013 1:15 pm
by sreinhardt
When executing it from the command line on the remote system, what user are you running as? Does the nagios user have permission to the file? Does nagios have permission to access the jvm process information?

Re: Running wasagent

Posted: Mon Jun 17, 2013 9:25 am
by eddiez
Thanks that did it. I needed to change ownership on wasagent.sh to nagios.