Curl pluggin , REGEX difficulties

89 views
Skip to first unread message

Fabien gerbier

unread,
Jan 18, 2017, 5:00:33 AM1/18/17
to Collectd-web Users
Hello , 
I'm currently trying to get some temperature in a text file over http  using the pluggin CURL

my file containing the data is very simple 
i have a text file contening this 
-0.8,58.4,2,1484731781

the first value is the value i want to get , 
the value can be négative or postive , 1 or 2 digits , with sometime a decimal 
i tried several regex , 
like this one : 
^-*[0-9]+\.*[0-9]*

collectd is giving me this error : 

localhost collectd[1210]: curl plugin: match_apply failed.
localhost collectd[1210]: utils_match: match_apply: callback failed.

can you give me any information on what is wrong with my regex ?

Thanks 

Fabien
Reply all
Reply to author
Forward
0 new messages