nagios_parser icon indicating copy to clipboard operation
nagios_parser copied to clipboard

Object parse only getting first character for each field

Open cpuguy83 opened this issue 13 years ago • 4 comments

The object parser is only pulling the first character for each field:

Example: {"use"=>"e", "host_name"=>"5", "alias"=>"B", "address"=>"1", "hostgroups"=>"e", "parents"=>"5"}

cpuguy83 avatar Oct 19 '11 16:10 cpuguy83

Hmm, that looks weird. Can you provide me with an anonymized object config example?

bernd avatar Oct 21 '11 07:10 bernd

define host{ use switch host_name Foo-ibb alias Foo iBootBar address 10.3.1.20 hostgroups iboots,Foo parents Foo-modem }

cpuguy83 avatar Oct 21 '11 13:10 cpuguy83

I added a spec file with your code example. (6d8054559d1065ab44e17d8e4957a474901086e7) I cannot reproduce the value truncation here on my Linux/i386 machine with ruby 1.8.7/1.9.x.

What ruby version and operating system are you using?

bernd avatar Oct 22 '11 10:10 bernd

1.9.2p290 on OS X Lion.

cpuguy83 avatar Oct 24 '11 13:10 cpuguy83