Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error":"partial write:\nunable to parse #24

Open
Akira74 opened this issue Jan 13, 2017 · 4 comments
Open

"error":"partial write:\nunable to parse #24

Akira74 opened this issue Jan 13, 2017 · 4 comments

Comments

@Akira74
Copy link

Akira74 commented Jan 13, 2017

Hi,
in my nagflux log I see high amount of "partial write:\nunable to parse" errors.
The NRPE Command output format of the check itself looks fine for me:

OK: All drives within bounds.|'C:\ %'=74%;92;95 'C:'=8.90799G;11.04;11.4;0;12

The line looks like this:
[35m2017-01-13 02:02:42 Warn: Influx status: 400 Bad Request - {"error":"partial write:\nunable to parse 'metrics,host=109_TOC,service=HardDrives,command=check_nrpe,performanceLabel=C:\\,warn-fill=none,crit-fill=none,unit=G value=8.90499,warn=11.04,crit=11.4,min=0.0,max=12.0 1484262144000': invalid tag format\nunable to parse 'metrics,host=103_1_VR,service=HardDrives,command=check_nrpe,performanceLabel=C:\\,warn-fill=none,crit-fill=none,unit=G value=9.179,warn=27.6,crit=28.5,min=0.0,max=30.0 1484262144000':.....

in Thruk the value is shown but the performance graph not for the second value.
I see, that after the "unit=G" value there is no "," inserted... is this the issue ?

Using version v0.2.7 together with OMD
Any Idea?
best regards Martin

@Griesbacher
Copy link
Owner

Hi Martin,
the problem is the trailing backslash in your Performancelabel "performanceLabel=C:\". You are probably using nsclient, which could produce this kind of data. In this case you could change the behaviour as far as I know.

For more info have a look at the issue at InfluxDB: influxdata/influxdb#6008

Greetings,
Philip

@u238
Copy link

u238 commented Sep 1, 2017

Hi,
we have the same problem here.
It's a InfluxDB problem. I think a workaround can be inserting a space if the Performancelabel has a trailing backslash.

@Griesbacher
Copy link
Owner

Hi,
yes that's true and that's why there are these config parameters:

    NastyString = ""
    NastyStringToReplace = ""

So you could search and replace in all the labels/fields. But there is currently no hardcoded workaround for this problem, because I thought they will fix it...

@u238
Copy link

u238 commented Sep 4, 2017

thank you very much for your response, this solved my problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants