Ragios can be configured to regularly send you a Status Report on all the active monitors running in the system. This Status Report includes:
- The number of monitors running on the system
- How long the monitors have been running
- Also includes a summary of each active monitor
- how many times the monitor has been tested
- how many tests it passed
- how many tests failed
- results of the last test
- date/time the last test was performed etc.
To configure Ragios to send Status Reports
Ragios::Monitor.update_status({ every:'1d', contact:'admin@mail.com', via:'gmail'})
The above sample means that Ragios will send a Status Report every day ‘1d’ to the email address ‘admin@mail.com’ via gmail. Ragios can send Status Reports every (n) minutes, hours, days, weeks or combined.
Example
every:'40m' #every 40 minutes every:'2d' #every 2 days every:'6h' #every 6 hours every:'1w' #every week every:'4w' #every 4 weeks every:'1w2d' #every week and 2 days i.e every 9 days
The Status Report can be sent via gmail or sendmail,
via:gmail # sends the report via gmail via:email # sends the report via sendmail installed on the system
Example with 2 monitors:
monitoring = {monitor:'url', every:'5m', test:'video datafeed test', url:'http://www.datafeed.com/resources/videos/1', contact:'admin@mail.com', via:'gmail', notify_interval:'6h' }, { monitor:'http', every:'30s', test:'Http connection to client A website', domain:'www.clientA.com', contact:'admin@mysite.com', via:'twitter', notify_interval:'6h' } Ragios::Monitor.start monitoring Ragios::Monitor.update_status({ every:'5d', contact:‘admin@mail.com’, via:‘gmail’})
This above example will send a Status Report to the email ‘admin@mail.com’ every 5 days via gmail.
Editing the Status Report
The Status report is generated from the ERB Template file Ragios/lib/ragios/messages/status_report.erb. You can edit this template to add or remove attributes of the monitors you want to see in the report. You can also format the layout or text of the report from this template.