Cassandra Monitoring plugin not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bolson

Re: Cassandra Monitoring plugin not working

Post by bolson »

If you're running version 3.20 of nrpe this is a known issue related to SSL. The issue will be fixed in NRPE v. 3.21
sandeep09412
Posts: 9
Joined: Mon Aug 28, 2017 6:55 am

Re: Cassandra Monitoring plugin not working

Post by sandeep09412 »

I am running NRPE v2.15

Code: Select all

./check_nrpe -H localhost
NRPE v2.15
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cassandra Monitoring plugin not working

Post by scottwilkerson »

sandeep09412 wrote:Please find below the command output received at cassandra server

Code: Select all

[user@localhost libexec]$ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c cassandra
    CASSANDRA CRITICAL -  cannot run /home/user/Downloads/apache-cassandra-3.11.0/bin/nodetool;
This looks like a permissions issue, or your plugin cannot file a file it is looking for, can you run

Code: Select all

ls -al /home/user/Downloads/apache-cassandra-3.11.0/bin/nodetool
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sandeep09412
Posts: 9
Joined: Mon Aug 28, 2017 6:55 am

Re: Cassandra Monitoring plugin not working

Post by sandeep09412 »

Hi,

Please see the command output and ignore casaandra path change.

Code: Select all

[user@localhost libexec]$ ls -al /home/user/apache-cassandra-3.10/bin/nodetool
-rwxrwxrwx. 1 user user 3359 Jan 31  2017 /home/user/apache-cassandra-3.10/bin/nodetool
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cassandra Monitoring plugin not working

Post by scottwilkerson »

sandeep09412 wrote:Hi,

Please see the command output and ignore casaandra path change.

Code: Select all

[user@localhost libexec]$ ls -al /home/user/apache-cassandra-3.10/bin/nodetool
-rwxrwxrwx. 1 user user 3359 Jan 31  2017 /home/user/apache-cassandra-3.10/bin/nodetool
Can you run the command as the nagios user on the remote server? (This is the command you added to the nrpe.cfg)

Code: Select all

su nagios -c "/path/to/plugin -args"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sandeep09412
Posts: 9
Joined: Mon Aug 28, 2017 6:55 am

Re: Cassandra Monitoring plugin not working

Post by sandeep09412 »

Thanks, it was permission problem i have made changed permission from /home/user and it is working now.
bolson

Re: Cassandra Monitoring plugin not working

Post by bolson »

May we close this topic?
bolson

Re: Cassandra Monitoring plugin not working

Post by bolson »

.
sandeep09412
Posts: 9
Joined: Mon Aug 28, 2017 6:55 am

Re: Cassandra Monitoring plugin not working

Post by sandeep09412 »

Please close this post. Thanks for your help.
bolson

Re: Cassandra Monitoring plugin not working

Post by bolson »

Closing this topic as resolved.

Thank you for visiting the Nagios Support Forum!
Locked