nagios_parser
nagios_parser copied to clipboard
Object parse only getting first character for each field
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"}
Hmm, that looks weird. Can you provide me with an anonymized object config example?
define host{ use switch host_name Foo-ibb alias Foo iBootBar address 10.3.1.20 hostgroups iboots,Foo parents Foo-modem }
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?
1.9.2p290 on OS X Lion.