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
monitoring Linux Server Time using NCPA
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: monitoring Linux Server Time using NCPA
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
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!
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
HI Team,
everything is working fine, in NCPA how t i monitor the NTP service?
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
HI,
Benjamin
Which plugin are you using to monitor NTP?when i am monitoring NTP with NCPA i am getting output as OK: Time was 1334814623.69
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!
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
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
The,
The system module in NCPA is for getting basic information and does not have the ability to perform many checks.
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:
Let us know if you need assistance installing the plugin or setting this up.
Benjamin
The system module in NCPA is for getting basic information and does not have the ability to perform many checks.
See: https://www.nagios.org/ncpa/help.php#api-modules-system{
"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"
}
}
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'
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!