Plugin: Nolert
Version: 0.1
Works With: HQ 3.2.2 or greater
File: hqu_nolert-0.1.tgz
Description
Globally enable and disable your alerts via Web Services or the command-line.
Installation
Installation of an HQU plugin involves moving the plugin directory into HQ's deployment.
tar -xzvf hqu_nolert-0.1.tgz mv nolert /my/hq-engine/server/default/deploy/hq.ear/hq.war/hqu
Examples
To test Nolert from the command line you must have curl (usually available on a UNIX workstation).
To disable alerts globally:
cd nolert/bin ./disable.sh
To see the current global status:
cd nolert/bin ./status.sh
Web Service API
All access to these URLs must be authenticated via HTTP host authentication.
The Script
The enable, disable, and status.sh scripts simply use curl to make a web-request:
#!/bin/sh USER=hqadmin HOST=localhost PORT=7080 curl -u$USER http://$HOST:$PORT/hqu/nolert/alert/enable.hqu
- hqu/nolert/alert/status.hqu - Gets the current status of enabled alerts
- hqu/nolert/alert/enable.hqu - Globally enables alerts
- hqu/nolert/alert/disable.hqu - Globally disables alerts
Scheduling Execution of Nolert Scripts
- Browse to and click on the appropriate Platform Resource for the Agent installed on the Hyperic Server.
- Click the 'Tools Menu' button, then 'New Platform Service'.
- Enter 'Name: Disable Hyperic Alerts' and select 'Service Type: FileServer File', then click 'Ok'.
- Under 'Configuration Properties', click 'Edit...' (or click the 'Tools Menu' button, then 'Configure Service').
- Enter 'path: /path/to/disable.sh' and click 'Ok'.
- Click on the 'Control' tab, then add Control Action Schedules as needed to schedule the disabling of Alerts.
- When finished, return to the Platform Resource for this Agent.
- Click the 'Tools Menu' button, then 'New Platform Service'.
- Enter 'Name: Enable Hyperic Alerts' and select 'Service Type: FileServer File', then click 'Ok'.
- Under 'Configuration Properties', click 'Edit...' (or click the 'Tools Menu' button, then 'Configure Service').
- Enter 'path: /path/to/enable.sh' and click 'Ok'.
- Click on the 'Control' tab, then add Control Action Schedules as needed to schedule the enabling of Alerts.