nagira
nagira copied to clipboard
XML & ActiveSuport
In app.rb, Parse nagios files
##
# TODO: This stuff breaks XML valid. Will have to wait.
#
# idx = 0
# @status.keys.uniq.each do |hostname|
# @status[idx] = @status[hostname]
# idx += 1
# end
To add full ActiveSupport need to have routes like: /_status/0
additionally to /_status/hostname
. But because of tags like <0>
XML validation breaks completely.