ask net-ping

Your array is a simple array, but you're referencing it like its an
array of hashes.

Also you're using I like an incrementor, but you never increment it.
Its not very ruby-like.

Try this:

@arr_stat = do |node|
{:ipadd => node.ipadd, :status => ? "online" : "offline"}

However, depending on what you want to do with this data later, this
may be a bad implentation.

Learn rails: