ntp_pzf_splunk
This is an old revision of the document!
Splunk - retrieve NTP PZF stats-
- Create script and use as input for splunk:
#!/bin/bash #this script needs the moreutils package ntpserver="ntp1.polaire.nl" community="public" version="2c" /bin/snmpget -OsQ -v $version -c $community $ntpserver \ mbgLtNgRefclockStatusA.1 \ mbgLtNgRefclockStatusB.1 \ | tr -d " " | ts
- Example output:
$ ./get-pzf-stats.sh Jan 07 23:45:59 mbgLtNgRefclockStatusA.1=96 Jan 07 23:45:59 mbgLtNgRefclockStatusB.1=99
ntp_pzf_splunk.1420670778.txt.gz · Last modified: 2015/01/07 22:46 by admin