mpellegrin / nagios-eventhandler-cachet

A Nagios event handler to push Nagios notifications to Cachet API
MIT License
50 stars 17 forks source link

cachethq 2.1.2 Can't find components over 20 #7

Closed djtecha closed 8 years ago

djtecha commented 8 years ago

Looks like I can't update a component if the ID is after the second page, which in this case starts at 21. So, the cachet_query function only returns the first 20 components.

djtecha commented 8 years ago

Looks like this is purely an cachethq issue as hitting api/v1/components only returns the first page.

djtecha commented 8 years ago

to those looking for a quick fix, I just modified app/Http/Controllers/Api/ComponentController.php and increased the 20 to 200.

They also look to have added a fix so you can append per_page=50 to the components variable.