GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Xymon::Client(3) User Contributed Perl Documentation Xymon::Client(3)

Xymon::Client - Interface to xymon/hobbit client.

  use Xymon::Client;
  my $xymon = Xymon::Client->new("/home/hobbit/client/");
  
  $xymon->send_status({
        server => 'servername',
        testname => 'test',
        color => 'red',
        msg => 'test failed',
        
  })

Provides an object interface to the xymon/hobbit client.

Create a new Xymon Client object, passing it the xymon/hobbit home dir. This is usually /home/hobbit/client.

Sends a status message to the hobbit server. The following parameters should be passed:

server: the server name that was tested testname: the name of the test (ie the column on the xymon page) color: the status color msg: the message to send which may be multiline and include any name-colon-value parameters.

ie

$xymon->send({ server => 'servername', testname => 'test', color => 'red', msg => 'test failed',

  })

    David Peters
    CPAN ID: DAVIDP
    davidp@electronf.com
    http://www.electronf.com

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

perl(1), bb(1)
2010-09-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.