Page 1 of 1

Facing issue with Chrony check service

Posted: Fri Mar 26, 2021 4:17 am
by nagiosadminAD
Dear Team,

We are facing issue with Chrony check service for our 2 DEV servers. While enabling the service on server we are getting below alert on Nagios.

NRPE: Command 'Chrony_check' not defined

Request you to please provide our suggestion how we can resolve this issue.

You can reach out to us on below email addresses:

1. [email protected]
2. [email protected]

Thanks,
Simranjeet

Re: Facing issue with Chrony check service

Posted: Fri Mar 26, 2021 4:56 am
by nagiosadminAD
Also, We have verified ntp service on both the servers. Service is up and running fine.
Please provide your suggestion on this issue.

Thanks,
Simranjeet

Re: Facing issue with Chrony check service

Posted: Fri Mar 26, 2021 1:15 pm
by benjaminsmith
Hi,

It looks like you are missing the command definition in the nrpe.cfg file on the remote host side. Please verify this in the following file:

Code: Select all

/usr/local/nagios/ect/nrpe.cfg
For more details on configuring this, please review page 7 of the following guide.
NRPE Documenation

NRPE - Agent and Plugin Explained

Also, if you would like to include multiple team members on a question/issue, please open a support ticket at:
https://support.nagios.com/tickets/

--Benjamin

Re: Facing issue with Chrony check service

Posted: Mon Mar 29, 2021 11:46 am
by nagiosadminAD
Dear Team,

We have followed the recommendation provided by you. After updating the nrpe.conf file we are now getting below error.

Error: NRPE: Unable to read output.

I also check below path and found that check_chrony.sh file is present over the server. Do we have have to restart any service over the server? If yes, Please do let us know.

Path: /usr/local/nagios/libexec/check_chrony.sh

Request you to please provide the suggestion to resolve NRPE: Unable to read output error.

Thanks,
Simranjeet

Re: Facing issue with Chrony check service

Posted: Tue Mar 30, 2021 8:40 am
by nagiosadminAD
Dear Team,

Can you please provide your suggestions over this issue. We are waiting for your reply.

Thanks,
Simranjeet

Re: Facing issue with Chrony check service

Posted: Tue Mar 30, 2021 10:00 am
by benjaminsmith
Hi,

What are the permission on that plugin? Does the plugin require sudo privelleges to execute properly?

Code: Select all

ls -l /usr/local/nagios/libexec/check_chrony.sh
Are you able to successfully connect to the remote system using check_nrpe from the XI serfver?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote host ip address>
Pleaes attach or PM the nrpe configuration file.

Code: Select all

/usr/local/nagios/ect/nrpe.cfg
Along with the system profile from the XI server, and I can review the configurations for you. Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button

Troubleshooting Guide:
NRPE - NRPE: Unable To Read Output