Page 1 of 1
ntpd service monitoring for linux server
Posted: Wed Feb 17, 2021 4:51 am
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 ???
Re: ntpd service monitoring for linux server
Posted: Wed Feb 17, 2021 3:42 pm
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
Re: ntpd service monitoring for linux server
Posted: Thu Feb 18, 2021 3:18 am
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.
Re: ntpd service monitoring for linux server
Posted: Thu Feb 18, 2021 3:04 pm
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
Re: ntpd service monitoring for linux server
Posted: Fri Feb 19, 2021 1:35 am
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 ???
Re: ntpd service monitoring for linux server
Posted: Fri Feb 19, 2021 3:13 pm
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
Re: ntpd service monitoring for linux server
Posted: Wed Feb 24, 2021 3:53 am
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??
Re: ntpd service monitoring for linux server
Posted: Wed Feb 24, 2021 10:42 am
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