Monitoring PTP sync with Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Monitoring PTP sync with Nagios

Post by and1100 »

Hello,

I believe it is possible to monitor our ptp grandmaster sync (offset/drift) with Nagios. Is there any specific documentation to explain how to set this up? I've been unable to locate something for this setup.

Thank you.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring PTP sync with Nagios

Post by abrist »

Some ptp clocks support an ntp option. As nagios has a number of ntp plugins, if your clock supports ntp, it could be checked with an existing ntp plugin. Otherwise, you may have to script a custom plugin.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Monitoring PTP sync with Nagios

Post by and1100 »

Hi,

Thank you for the response. We don't sync our grandmaster with ntp, rather, we are syncing it via GPS. I have a list of the MIBs for this SecureSync PTP device but that will require me to set up a SNMP manager, correct? I'd rather do some form of snmpget or (as you said) defined script to perform the offset check.

Thank you.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring PTP sync with Nagios

Post by abrist »

and1100 wrote:I have a list of the MIBs for this SecureSync PTP device but that will require me to set up a SNMP manager, correct?
Not necessarily.
and1100 wrote:I'd rather do some form of snmpget or (as you said) defined script to perform the offset check.
The all you need is the proper OID to run the get. You will have to create a small plugin script to run the snmpget, parse it, and then output state info and perfdata. Should be simple enough.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Monitoring PTP sync with Nagios

Post by and1100 »

Hi Abrist,

Awesome-- thank you. I will play around with it and see if I have any issues.

Thanks again for the help.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring PTP sync with Nagios

Post by abrist »

No problem. If you run into issues, come back to forums armed with your device's OID. Have a good week!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked