A simple Ruby Gem that provides a Ruby client for Kaseya's VSA web service.
This is currently a work in progress, as all Kaseya web service operations are not yet implemented.
The offical documentation for the Kaseya VSA web service
KaseyaWS is available at Rubygems and can be installed as follows.
$ gem install kaseyaws
or add it to your Gemfile:
gem 'kaseyaws', '~> 0.0.6'
require 'kaseyaws'
# Create a new web service client instance
kclient = KaseyaWS::Client.new("username","password","mykserver.domain.com")
#Get alarm list, returns hash
alarms = kclient.get_alarm_list
#Get a specific alarm by alarm id, returns hash
alarm = kclient.get_alarm(alarms[:alarms][:alarm][0][:monitor_alarm_id])
alarm[:alarm_subject]
# => "Monitoring generated Counter ALARM at 5:47:54 am 01-Feb-13 on computer.systems.company"
KaseyaWS has two Gem dependencies, Savon and json.
The Heavy metal SOAP client Savon does most of the work.
A Ruby implementation for JSON.