in reply to Parsing nagios status.dat file

The new log sample can be parsed with this code:
# assuming that DATA contains the config my @hosts; do{ &new_host() if /{/ } while <DATA>; sub new_host { my $data = {}; until (defined ($_=<DATA>) && $_=~/}/) { chomp; my (undef,$field,$value)=split /^[\t ]*([^=]*)=/,$_; $data->{$field}=$value; } push @hosts,$data; }
Unfortunately, all fields are named differently.
Sorry if my advice was wrong.