nagios scripts to check https://status.rackspace.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
cloud_backup.sh
cloud_backup_chicago.sh
cloud_backup_dallas.sh
cloud_backup_london.sh
cloud_block_storage.sh
cloud_block_storage_chicago.sh
cloud_block_storage_dallas.sh
cloud_block_storage_london.sh
cloud_databases.sh
cloud_databases_chicago.sh
cloud_databases_dallas.sh
cloud_databases_london.sh
cloud_dns.sh
cloud_dns_global.sh
cloud_files.sh
cloud_files_cdn.sh
cloud_files_cdn_chicago.sh
cloud_files_cdn_dallas.sh
cloud_files_cdn_london.sh
cloud_files_chicago.sh
cloud_files_dallas.sh
cloud_files_london.sh
cloud_indentity.sh
cloud_indentity_uk.sh
cloud_indentity_us.sh
cloud_load_balancers.sh
cloud_load_balancers_chicago.sh
cloud_load_balancers_dallas.sh
cloud_load_balancers_london.sh
cloud_monitoring.sh
cloud_monitoring_global.sh
cloud_networks.sh
cloud_networks_chicago.sh
cloud_networks_dallas.sh
cloud_networks_london.sh
cloud_servers_1st.sh
cloud_servers_1st_chicago.sh
cloud_servers_1st_dallas.sh
cloud_servers_1st_london.sh
cloud_servers_chicago.sh
cloud_servers_next.sh
cloud_servers_next_chicago.sh
cloud_servers_next_dallas.sh
cloud_servers_next_london.sh
cloud_sites.sh
cloud_sites_chicago.sh
cloud_sites_dallas.sh
control_panels.sh
control_panels_classic_uk.sh
control_panels_classic_usa.sh
control_panels_cloud.sh
control_panels_myrackspace.sh
rackconnect.sh
rackconnect_chicago.sh
rackconnect_dallas.sh
rackconnect_london.sh

README.md

nagios-status-rackspace

I created some nagios scripts to check https://status.rackspace.com. It seems they don't have an RSS feed and I wanted a proactive way of getting notifications.

It's basicly just curl and sed, but it does the trick. PRs and suggestions are more than welcome.

Installation

Pre: Be sure curl in installed on the box you want to run the checks from.

In your commands.cfg put something like:

define command {
   command_name check-rackspace-1st-gen
   command_line /usr/lib/nagios/plugins/cloud_servers_1st
}

define command {
    command_name check-rackspace-next-gen
    command_line /usr/lib/nagios/plugins/cloud_servers_next_chicago
}

define command {
    command_name check-rackspace-rackconnect
    command_line /usr/lib/nagios/plugins/rackconnect_chicago
}

This will check against the Cloud Servers (First Generation) overall, the Chicago Cloud Servers (Next Generation) specific and Rackconnect Chicago specific.

In your services.cfg add something like this:

define service {
    service_description Rackspace 1st Gen status
    use default-service
    host nagios
    check_command  check-rackspace-1st-gen
}

define service {
    service_description Rackspace Next Gen Chicago status
    use default-service
    host nagios
    check_command  check-rackspace-next-gen
}

define service {
    service_description Rackspace Rackconnect Chicago
    use default-service
    host nagios
    check_command  check-rackspace-rackconnect
}

Make sure you change the host to whatever host you want to run this from. I suggest your actual nagios box or localhost.

Put the scripts in the location you want to run them from, this example /usr/lib/nagios/plugins/ and I rename them without the .sh, and don't forget tho chmod +x them.

Restart nagios and you should see them started polling.