• 0
Rhollebrand

SNMP - Use RAW value in datapoint

Question

Goodmorning,

I'm trying to create some custom datapoints for an marine antenna control unit (ACU). A lot of the data consists of non numeric output, and with those I'm struggling at the moment. One example is the SNMP output for "Longtitude/Lattitude" this consists of numbers and a letter. 

Below is the output (and error) I receive when polling:

Timestamp: 2018-10-11 10:47:41

Normal Datapoints

1 item
iAcsStatusLat
NaN
Fail to get the result of this oid
OID is .1.3.6.1.4.1.13745.100.1.1.4.0 
Raw value is 53.683331 N
Hide

Raw Request/Response

.1.3.6.1.4.1.13745.100.1.1.4.0
53.683331 N

 

As you can see the "Raw value" is nicely polled, but the datapoint cannot process it (probably due to the "N" in the data).

Simpler data like "heading" is not an issue and is nicely being polled and written to the graphs.

Basically I just want the datapoint just to poll the raw data, and plot it to the datapoint.

Can anybody point me in the right direction?

 

Br,

Ralf

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Same as for frequency for example, I just want to have the value without KHz:

Timestamp: 2018-10-11 12:10:33

Normal Datapoints

1 item
AcsStatusSatFrequency
NaN
Fail to get the result of this oid
OID is .1.3.6.1.4.1.13745.100.1.1.10.0 
Raw value is 1767000 KHz
Hide

Raw Request/Response

.1.3.6.1.4.1.13745.100.1.1.10.0
1767000 KHz

Share this post


Link to post
Share on other sites
  • 0

I expect you can use the "Interpret output with: a regular expression to extract a value" on that datapoint then use a regex like "(\d+)" to just get the numeral data.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.