Changes between Version 11 and Version 12 of GENIMonitoring/Alerts


Ignore:
Timestamp:
06/11/15 09:49:40 (4 years ago)
Author:
cody@uky.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIMonitoring/Alerts

    v11 v12  
    9191}}}
    9292
     93There exist two types of queries:
     94
     95Alert Queries: are used to send remote alerts to remote Nagios [https://www.nagios.org/documentation] hosts.  These queries require 5 explicitly defined values to be emitted by the query including, "nagiosserver", "hostname", "servicename", alertlevel, and "alertmessage".  The function used to generate the payload sent to your Nagios server is shown below:
     96
     97{{{
     98public void alert(String hostName, String serviceName, String alertLevel, String alertMessage)
     99    {
     100        MessagePayload payload = new MessagePayloadBuilder()
     101            .withHostname(hostName)
     102            .withLevel(Level.valueOf(alertLevel))
     103            //.withServiceName("Service Name")
     104            .withServiceName(serviceName)
     105            .withMessage(alertMessage)
     106            .create();
     107    ...
     108}}}
     109
     110The following queries are examples of Alert Queries:
    93111
    94112 * If metric ''gpo:is_available'' is set to ''1'' emit ''OK''
     
    107125}}}
    108126
     127In addition to Alert Queries there are Report Queries.  Report Queries do not provide external alerting, but don't require a specific output format.  The output of a Report Query will be stored in a database, which is accessible from the Monitoring site.
     128
     129The following queries are examples of Report Queries:
     130 
    109131 * Ping times greater than 10,000ms
    110132{{{