Good idea. Another common problem is that other executables used by the plugin might not directly point to the files. Like top instead of /usr/bin/top which can cause problems is the path environment was not loaded.xpac wrote:I think I'll have to take a look at the plugin/s themselves next as you suggested. The problem definitely lies with NRPE and/or the plugin itself - as I mentioned earlier when I run the command via NRPE it IMMEDIATELY returns the incorrect value, the Cassandra command at the very minimum requires 4-5 seconds to run locally and produce the output (more if there is a problem or the Cassandra cluster is under a heavy workload), so there is no way the command is being properly executed.
nrpe.cfg reconfig?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: nrpe.cfg reconfig?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: nrpe.cfg reconfig?
WOOHOO got it working!!!
So I thought I'd see if that was causing the problems with the nagios plugin. Basically I just added the following line to the plugin script:
. $HOME/bash_profile
and VOILA it works

Thanks everyone!
BINGO! I had kinda abandoned/forgotten about this for a while, but this morning I was troubleshooting a cron job that wouldn't run on Cassandra when I realized the issue was that it didn't have the necessary environment set to successfully run the job, even though the cron job was created with a user account that did have the permissions.Box293 wrote:path environment was not loaded
So I thought I'd see if that was causing the problems with the nagios plugin. Basically I just added the following line to the plugin script:
. $HOME/bash_profile
and VOILA it works
Thanks everyone!
Re: nrpe.cfg reconfig?
That's great to hear! I will be marking this as resolved and locking the topic.