In order to use the gem, you have to install it into your rubygem environment.

gem install nagios_maklivestatus

To integrate it in your applications, it can be done just by adding the two following lines :

require ‘rubygems’ require ‘nagios_mklivestatus’

And to query the mklivestatus :

mklivesocket = Nagios::MkLiveStatus.new(path) mklivesocket.query(mkliveQuery)

Please refer to the rdoc in order to have a complete description of each class.

TODO: - managing exceptions throws by the socket - controlling livestatus query validity - adding OR and AND query filter support - adding support to http