Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 970 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 970 Bytes

UptimeRobot integration for ApisCP

This extensions provides an implementation for ApisCP to fetch network status from UptimeRobot.

Make it work

  1. Create a public status page
  2. Get your PSP ID (e.g. https://stats.uptimerobot.com/abc123abc123 is what you need)
  3. Clone and install this extension.
    cd /usr/local/apnscp
    sudo -u apnscp mkdir -p extensions
    sudo -u apnscp git clone https://github.com/thundersquared/apiscp-uptimerobot.git extensions/apiscp-uptimerobot
    cd extensions/apiscp-uptimerobot
    sudo -u apnscp composer install
    
  4. Set your status page URL and ID.
    cpcmd scope:set cp.config misc sys_status 'https://status.domain.com/'
    cpcmd scope:set cp.config extensions uptimerobot_page abc123
    
  5. Wait for Apache to reload and check out your panel.

Updating

Just a copy-pasta:

cd /usr/local/apnscp/extensions/apiscp-uptimerobot
sudo -u apnscp git pull
sudo -u apnscp composer update