ntpd service monitoring for linux server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

ntpd service monitoring for linux server

Post by informatica »

HI Team,

We would like to monitor Ntpd service for linux servers. Could you please tell us steps how to configure. what actions we have to take from client side and server side.

we have installed nrpe nagios agent in client side.

Tell me if possible without doing any configuration from client end(such as script and command define ....etc) can we configure from nagios server end ???
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ntpd service monitoring for linux server

Post by benjaminsmith »

Hi,

You can use the NRPE Configuration Wizard to help set this up. However, it's necessary to make a few adjustments to the default NRPE configuration file on the remote host.

How did you install NRPE on the remote host? Did you follow the guide below?

Installing The Linux NRPE Agent

If so, the check_ntp_time plugin is already installed. If not, follow the instructions below to install the Nagios Monitoring Plugins (at the end of the article).

NRPE - How To Install NRPE v4 From Source

Then open up the nrpe.cfg file on the remote host and add the following line.

Code: Select all

vi /usr/local/nagios/etc/nrpe.cfg
command[check_ntp_time]=/usr/local/nagios/libexec/check_ntp_time -H $ARG1$
Restart NRPE

Code: Select all

systemctl restart nrpe
# OR if you used the Linux Agent instructions above
systemctl restart xinetd
Then go ahead and run the NRPE Config Wizard and the extra check for NTP.
check-ntp-NRPE.png
Once the wizard completes, it should be working for you. If not please post any relevant error messages or screenshots.

Regards,
Benjamin
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: ntpd service monitoring for linux server

Post by informatica »

Hi Team,

we are not going to monitoring offset of server.

we need to monitoring only whether ntpd deamon is running or not. For this could you please help us what are steps we have to take from client end and nagios servers end.

we are using nrpe client in linux servers.

We need without doing any changes in client how we can monitor the service(like command define,service restart,copy the plugin). Please let me know if you need more details.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ntpd service monitoring for linux server

Post by benjaminsmith »

Hi,

Got it. The process is pretty much the same except you'll be using a different plugin ( see: Service Checks ).

Do you know how you installed NPRE on the client-side and if the nagios plugins collection is installed? It's probably necessary to make changes to the nrpe.cfg to set this up. However, I'd have to see the file itself to determine this.

Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: ntpd service monitoring for linux server

Post by informatica »

Do we have any option without changing any configuration file like nrpe.cfg and with out adding command ??
we would like do everything from nagios. Do we have such process ???
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ntpd service monitoring for linux server

Post by benjaminsmith »

Hi,

NRPE is a versatile but older Linux/Unix agent, so it's necessary to edit the nrpe.cfg file to set up the check commands it will be calling.

I would recommend using NCPA instead (if that's an option) as it can do this type of check without any additional plugins to install.

See: https://www.nagios.org/ncpa/help.php#ap ... s-services

Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: ntpd service monitoring for linux server

Post by informatica »

Hi Team,

Thanks for the reply,
Do we have any option to pushing the check_service plugin from nagios XI end and define the command from nagiosXI to all linux clients in nrpe.cfg and restart the client xinetd service??
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ntpd service monitoring for linux server

Post by scottwilkerson »

informatica wrote:Hi Team,

Thanks for the reply,
Do we have any option to pushing the check_service plugin from nagios XI end and define the command from nagiosXI to all linux clients in nrpe.cfg and restart the client xinetd service??
No there isn't a way to make this change from the XI server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked