Running wasagent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Running wasagent

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Running wasagent

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Running wasagent

Post by eddiez »

Thanks that did it. I needed to change ownership on wasagent.sh to nagios.
Locked