monitoring Linux Server Time using NCPA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

monitoring Linux Server Time using NCPA

Post by [email protected] »

Hi Team,

when i am monitoring NTP with NCPA i am getting output as OK: Time was 1334814623.69


where as system time and date is Thu 19 Apr 2012 11:22:34 AM IST


even if system time is wrong i am getting as OK. how to i get NTP monitored
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: monitoring Linux Server Time using NCPA

Post by benjaminsmith »

Hi [email protected],

Can you run the full check command from the CLI on the Nagios XI server so we can take look at the plugin you are using any arguments being passed? Please post the full output to the thread as well.

Nagios XI - How To Test Check Commands From The Command-line

Thanks,
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!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: monitoring Linux Server Time using NCPA

Post by [email protected] »

HI Team,

everything is working fine, in NCPA how t i monitor the NTP service?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: monitoring Linux Server Time using NCPA

Post by benjaminsmith »

HI,
when i am monitoring NTP with NCPA i am getting output as OK: Time was 1334814623.69
Which plugin are you using to monitor NTP?

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!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: monitoring Linux Server Time using NCPA

Post by [email protected] »

in ncpa, i am not using any plugin, I am using system/ntp
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: monitoring Linux Server Time using NCPA

Post by benjaminsmith »

The,

The system module in NCPA is for getting basic information and does not have the ability to perform many checks.
{
"system": {
"node": "localhost.localdomain",
"machine": "x86_64",
"uptime": [
1456124,
"s"
],
"version": "#1 SMP Fri Apr 20 16:44:24 UTC 2018",
"time": 1613148917.61594,
"release": "3.10.0-862.el7.x86_64",
"timezone": [
"CST",
"CDT"
],
"agent_version": "2.2.2",
"system": "Linux",
"processor": "x86_64"
}
}
See: https://www.nagios.org/ncpa/help.php#api-modules-system

If you want to check the offset of the system time against a NTP server, I would recommend using check_ntp_time (part of the nagios plugins).

See: https://www.monitoring-plugins.org/doc/ ... _time.html

You'll have to install on the NCPA server and put in the the plugins directory. An example, check would be as follows:

Code: Select all

./check_ncpa.py -H <ip-address-remote-host> -t '<your token>' -M 'plugins/check_ntp_time' -q 'args= -H 0.centos.pool.ntp.org  -w 0.5 -c 1'
Let us know if you need assistance installing the plugin or setting this up.

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!
Locked