Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Jul 21, 2018 2:20 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Plugin for RFC5907 (NTP)
PostPosted: Tue Feb 27, 2018 6:36 am 
Offline

Joined: Tue Feb 27, 2018 6:24 am
Posts: 4
Hi,

It is possible, via a script which connects to the monitored host, to extract numbers from the NTP process and feed them to cacti. This was required because there was no supported implementation of native SNMP in the NTP codebase, as documented in RFC 5907.

The NTPsec project (a rework with a focus on security) now has a working ntpsnmpd. I can vouch that it runs stable, and through a AgentX connection, can feed into the SNMP agent running on the monitored host.

As far as I can tell, there is no plugin to read that data.

Could I offer a bounty, for a plugin that is released under a BSD licence? The developer of ntpsnmpd is available for any quieries, and I can help out as well.

Thanks,


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Tue Feb 27, 2018 8:06 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1242
If it's available via SNMP then you don't need a plugin, just a template. Can you provide any of the MIB / OID information?

_________________
Cacti Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Tue Feb 27, 2018 8:31 am 
Offline

Joined: Tue Feb 27, 2018 6:24 am
Posts: 4
netniV wrote:
If it's available via SNMP then you don't need a plugin, just a template. Can you provide any of the MIB / OID information?


Thank you.

The canonical cite: https://tools.ietf.org/html/rfc5907

For the current implementation, the following stuff does not work:
Code:
The ntpEntStatusEntityUptime OID specifies a bizzare time format. This
does not match what the SNMP tools expect to see from a TimeTicks variable.
Instead the daemon returns a normal TimeTicks value.

The ntpEntNotifConfigChanged trap is left unimplemented. This is because
there currently is no way to implement what it wants, and it demands alerts
regarding changes that are not part of NTP's jurisdiction.

The ntpEntTimeResolution OID currently uses data from the sys_fuzz variable
as the base for it's calculations. It is by no means certain that this is
the correct choice, and the returned data should be taken with scepticism.

The ntpEntStatPktModeTable is unimplemented due to not currently having a
data source.



If you can get a template up for *some* counters, I can help finish the rest.

Thank you


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Wed Feb 28, 2018 4:43 am 
Offline

Joined: Tue Feb 27, 2018 6:24 am
Posts: 4
Please contact me off-list ( [email protected] ) if you can help.

I can provide SNMP access to a server running the NTP SNMPd code

US$200 for a working template (thanks for the pointer, netniV). PayPal preferred, can do other stuff as well.

Template does not have to be 100% complete
Template has to be contributed under a BSD licence to the cacti project

Thanks, again


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Wed Feb 28, 2018 7:25 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1242
Sent you an email for the details. I will take a look at the links in the meantime.

_________________
Cacti Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Wed Feb 28, 2018 7:29 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1242
There's a lot of fields in there. Are there any in particular that you would want to graph?

_________________
Cacti Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Thu Mar 01, 2018 10:40 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1242
I have now finished this and it is ready for testing.

Example of graphs taken in the last few minutes showing both Entity and Association type graphs
Image

_________________
Cacti Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Thu Mar 01, 2018 3:47 pm 
Offline

Joined: Tue Feb 27, 2018 6:24 am
Posts: 4
netniV wrote:
I have now finished this and it is ready for testing.


Hi, is there a repository I could pull from?

--
Sanjeev


Top
 Profile  
 
 Post subject: Re: Plugin for RFC5907 (NTP)
PostPosted: Thu Mar 01, 2018 6:20 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1242
Just sent you an email with the details. The repository is currently at:
https://github.com/netniV/cacti-templates/

_________________
Cacti Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group