nerdbaggy / StatusPage

Public Status Page for UptimeRobot
http://projects.spencerl.com/statuspage/
MIT License
240 stars 61 forks source link

Format of 'includedMonitors' and 'excludedMonitors'? #27

Closed FlowFX closed 9 years ago

FlowFX commented 9 years ago

What is the format and what are the identifiers for the two configuration lines 'includedMonitors' and 'excludedMonitors'? Is there an example config file somewhere? I couldn't get it to work.

nerdbaggy commented 9 years ago

They are just going to be the check IDs. You can find that ID by clicking on the check in the uptime robot webpage and in the URL you will see the ID. Then just separate them by commas. 123,123,123

FlowFX commented 9 years ago

Thank you very much. Now it's working. FYI: this is from my config file:

define('excludedMonitors', serialize(array('775xxxxxx','776xxxxxx','777xxxxxx')))
alainwolf commented 9 years ago

Note that the includedMonitors differs. Its not an array, its a single string, which will be simply appended to the API URL. Monitor-IDs are separated by dashes. Took me a while to find that out, so I put it here, in case someone needs it:

//Only show these monitors
define('includedMonitors', '775xxxxxx-776xxxxxx-777xxxxxx');
SteamTimeIdler commented 8 years ago

@alainwolf Each of my uptime robot sessions have their own unique API key. Can I add multiple keys? Does this support multiple monitors?

Cheers

TomasHurtz commented 7 years ago

@SteamTimeIdler - Yes that would be useful. Have you tried anything ?

I believe this was only introduced with version 2 of API (not certain) ?

FYI you can get your monitor keys here:
http://api.uptimerobot.com/getMonitors?format=xml&apiKey=YOUR-API-KEY

TomasHurtz commented 7 years ago

@alainwolf

For the included monitors, you also need to specify the keys - these can be found at the following location, simply replace YOURAPI with your main UR api key.

Thanks for your helpful comment which solved the issue for me!

http://api.uptimerobot.com/getMonitors?format=xml&apiKey=YOUR-API-KEY