Giter Site home page Giter Site logo

tronyx / tronitor Goto Github PK

View Code? Open in Web Editor NEW
51.0 1.0 5.0 2.6 MB

Bash script to work with UptimeRobot, StatusCake, HealthChecks.io, & Upptime monitoring providers

License: MIT License

Shell 100.00%
uptimerobot uptime-robot uptimerobot-api uptimerobot-monitors monitor statuscake status-cake statuscake-api uptimerobotapi statuscakeapi

tronitor's Introduction

Hello World!

GitHub followers Visits Badge Years Badge

Just a geek who loves tech...

GIF

๐Ÿ“ฐ Some info about me

  • ๐Ÿ”ญ Iโ€™m currently working on:
    • Staying sane and stress free
  • ๐ŸŒฑ Iโ€™m currently learning:
    • Python, Kubernetes, AWS
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on:
    • Bash, Docker
  • ๐Ÿค” Iโ€™m looking for help with:
    • Sleep, Kubernetes, AWS, Python
  • ๐Ÿ’ฌ Ask me about:
    • Bash, Docker, Organizr, my Repos
  • โšก Fun facts about me:
    • I'm a Freemason and an Eagle Scout

๐Ÿ“ซ Where to find me

Linkedin: christopher-yocum Discord E-Mail Twitter URL

๐Ÿ“ˆ GitHub Stats

tronitor's People

Contributors

1activegeek avatar nemchik avatar tronyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tronitor's Issues

Run tronitor as local user

Just wondering if it's possible? I haven't gone through the code deep enough to figure out why your require it aside from getting access to /tmp

Just about to create my first monitor from the command line! Liking it so far!

Uptimerobot API limit

Is your feature request related to a problem? Please describe.
I am running 5 monitors but as Uptimerobot introduced a API rate limit (10 per minute for the free edition) I run into the message "There seems to be an issue connecting to Uptimerobot. Please try again in a few minutes." every second run. So I did a trace and I saw that even a pause/unpause for 1 specific monitor will iterate (curl) through all monitors.

Describe the solution you'd like
Would it be possible to reduce the number of api (curl-) calls? Especially when only working with single monitor-id's?

Describe alternatives you've considered

Additional context

Calling script with >/dev/null fails with "(23) Failed writing body"

Describe the issue/bug
I trying to run the script from crontab. Calling script with >/dev/null fails with "(23) Failed writing body". My crontab:
0 2 * * * backup /opt/tronitor/tronitor.sh -m UptimeRobot -p 12345678,12345679 >/dev/null 2>&1

To Reproduce
Steps to reproduce the behavior:
./tronitor.sh -m UptimeRobot -p 12345678,12345679 >/dev/null

Expected behavior
Script should be able to run through and set all coma-seperated monitors to pause/unpause. I guess it's because the CURL-call. Another option would be to implement a "silent"-option

Actual behavior
Currently only the 1st monitor passed (12345678) will be paused

Creation of new Monitors for UR

Creation of new Monitors in UR does not work.
The reason for this is a wrongly defined Content Type in the curl POST operation for UR, so the JSON file is not processed correctly by UR:

Content-Type: application/x-www-form-urlencoded

To fix this issue, remove from line 1328 und 1330 in tronitor.sh the reference to this wrong Content-Type mentioned above.

btw: It would be great to create new Monitors without using a template file. Consider this as a feature request ;-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.