Git Product home page Git Product logo

maelstrom-cms / odin Goto Github PK

View Code? Open in Web Editor NEW
457.0 15.0 93.0 7.22 MB

An open-source domain monitoring tool built using Maelstrom πŸ€– Uptime Robot + 🧐 Oh Dear + πŸ§ͺ SSL Labs + ⏰ Cronitor + πŸ•΅πŸ»β€β™‚οΈ DNS Spy

License: Mozilla Public License 2.0

PHP 87.58% Shell 0.27% Blade 10.71% Dockerfile 1.45%
uptime-monitor ssl-monitor dns-monitor robots-monitor

odin's Introduction

Odin Domain Monitor

Disclaimer

Odin is an example project built using Maelstrom CMS Toolkit.

It is not a final release - it's an in-house tool which we use to provide basic monitoring with email alerts that receives regular bug fixes and new features as/when we need them internally.

We're simply open-sourcing it to allow others that might find it useful to use to use, we don't provide any support SLAs, however if bugs are found we'll investigate when we can, and if there's feature requests we'll consider. Pull Requests for new features/bug fixes are welcome, however we recommend opening an issue and discussing them before spending time doing it.

Theres no automated testing, and most likely won't work for anything less than PHP 7.3 - We run on nginx but would work on apache 2.4+

What is it?

Odin is a domain monitoring tool which has the following monitors:

  • OpenGraph extraction.
  • Uptime Monitoring with response-time graph and e-mail notifications.
  • Downtime event tracking with duration.
  • SSL Certificate grading via SSL Labs.
  • SSL Health Monitoring with expiry and e-mail notifications.
  • Robots.txt Monitoring to email changes for review - No more accidentally blocking your website.
  • Basic DNS Monitoring to detect name-server and primary A Records changes
  • Cron job Schedule Monitoring - Ping the API before and after your jobs run to check they're running on schedule.
  • Website Crawling with Error Reporting - Crawls SSR websites and reports on 404s, errors, mixed-content warnings etc etc, if it appears in the browser console it will appear in here.

Notifications Fired

  • CertificateHasExpired
  • CertificateIsExpiring
  • CertificateIsInvalid
  • CertificateIsWeak
  • CertificateWillExpire
  • VisualDifferenceFound
  • DnsHasChanged
  • RobotsHasChanged
  • WebsiteIsBackUp
  • WebsiteIsDown
  • BrowserMessageDetected

Installing

You should be able to follow any (good) up to date Laravel install guide, the jist is as follows:

  • git clone the repository
  • composer install
  • npm install
  • copy .env.example to .env and modify the settings
  • npm run dev/watch/prod

You can then visit the webpage and / register to create an account.

By default the Jobs are able to be queued and executed by a queue worker/horizon - We use horizon, but you can configure/protect this however you need.

Using the Crawler

We use a modified version of the spatie/browsershot package which provides the crawling functionality, if you're unable to install puppeteer on your server, then you cannot use this feature.

Quick install for puppeteer:

macOS:

npm install puppeteer --global

Ubuntu 18 / 20:

curl -sL https://deb.nodesource.com/setup_current.x | sudo -E bash -

sudo apt-get install -y nodejs gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

sudo npm install --global --unsafe-perm puppeteer

sudo chmod -R o+rx /usr/lib/node_modules/puppeteer/.local-chromium

You can read more about this: https://github.com/spatie/browsershot#requirements

Using the Visual Diff

The visual diff tool requires both spatie/browsershot (which uses puppeteer) and Pixelmatch

We use the following package to interact with the Pixelmatch node binaries: https://github.com/QortexDevs/laravel-visual-diff

Quick install: npm i pixelmatch

Deploying

Deploying the project is very similar to installing it, the steps will differ depending on your hosting environment, there's plenty of tutorials online about how to deploy onto various platforms: https://www.google.com/search?q=how+to+deploy+laravel%20project

Screenshots

Creating an account

register

Logging in

login

Editing your profile

profile

Creating a monitor

create

Editing a monitor

edit

Viewing all monitors

listing

Viewing a report/monitor

report

odin's People

Contributors

arthurzenika avatar byhbt avatar dependabot[bot] avatar dsturm avatar dweissengruber avatar fab120 avatar knight1 avatar nalakawula avatar owenmelbz avatar srichter 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odin's Issues

Can not save open graph

Here the log:

[2019-10-08 13:12:50] production.ERROR: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'description' at row 1 (SQL: insert into `open_graph_scans` (`title`, `description`, `image`, `url`, `icon`, `website_id`, `updated_at`, `created_at`) values
...

Thank you

php7-dev has moved

The docker build fails when it looks for php7-dev. The error is:

ERROR: unable to select packages:
php7-dev (no such package):
required by: world[php7-dev]

Website Back Online report seem need improvement

I test to monitor single site http://localdev.local, then simulate down time by shutdown those site. Odin give me a report that those site is down. Ten minutes later I start those site again, and odin send me report that those site is Online but give wrong time. Here the content:

Website Back Online: http://localdev.local.
The website had been offline for 1 second.

Report said offline for 1 second, the actual time is offline about 10 minutes.

Thank you

The command "horizon:terminate" does not exist.

When I delete one website, I got

 Symfony \ Component \ Console \ Exception \ CommandNotFoundException
The command "horizon:terminate" does not exist.

Details:


_token | "UIy73TeZYmXB0mVzrcQqfWdnlwlsqMi3EMCs9Ra7"
-- | --
_method | "DELETE"
url | "http://google.com"
uptime_enabled | "1"
ssl_enabled | "0"
robots_enabled | "0"
dns_enabled | "0"
cron_enabled | "0"
crawler_enabled | "0"
uptime_keyword | "google"
cron_key | "rkZBZkiqP1fGD7hkrGjNc3x1oFi3ds2q"

HTTP_REFERER | "http://localhost/websites/8/edit"
HTTP_CONNECTION | "keep-alive"
HTTP_ORIGIN | "http://localhost"
HTTP_CONTENT_LENGTH | "1439"
HTTP_CONTENT_TYPE | "multipart/form-data; boundary=---------------------------71955895020800807491541181851"
HTTP_ACCEPT_ENCODING | "gzip, deflate"
HTTP_ACCEPT_LANGUAGE | "en-US,en;q=0.5"
HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT | "Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
HTTP_HOST | "localhost"
REDIRECT_STATUS | "200"
SERVER_NAME | "localhost"
SERVER_PORT | "80"
SERVER_ADDR | "127.0.0.1"
REMOTE_PORT | "39840"
REMOTE_ADDR | "127.0.0.1"
SERVER_SOFTWARE | "nginx/1.16.1"
GATEWAY_INTERFACE | "CGI/1.1"
REQUEST_SCHEME | "http"
SERVER_PROTOCOL | "HTTP/1.1"
DOCUMENT_ROOT | "/srv/http/odin/public"
DOCUMENT_URI | "/index.php"
REQUEST_URI | "/websites/8"
SCRIPT_NAME | "/index.php"
CONTENT_LENGTH | "1439"
CONTENT_TYPE | "multipart/form-data; boundary=---------------------------71955895020800807491541181851"
REQUEST_METHOD | "POST"
QUERY_STRING | ""
SCRIPT_FILENAME | "/srv/http/odin/public/index.php"
FCGI_ROLE | "RESPONDER"
PHP_SELF | "/index.php"
REQUEST_TIME_FLOAT | 1574305054.6817
REQUEST_TIME | 1574305054
APP_NAME | "πŸ’‚ Odin"
APP_ENV | "local"
APP_KEY | "base64:PwQCMIKXdNdMS85kEyBtIlE7l1nSEIv0bmgvpqq48AQ="
APP_DEBUG | "true"
APP_URL | "http://localhost"
DB_CONNECTION | "mysql"
DB_HOST | "127.0.0.1"
DB_PORT | "3306"
DB_DATABASE | "odin"
DB_USERNAME | "odin"
DB_PASSWORD | "odin"
QUEUE_CONNECTION | "sync"
REDIS_HOST | "127.0.0.1"
REDIS_PASSWORD | "null"
REDIS_PORT | "6379"
MAIL_DRIVER | "mailgun"
MAILGUN_DOMAIN | "redacted"
MAILGUN_SECRET | "redacted"
MAIL_FROM_ADDRESS | "[email protected]"
MAIL_FROM_NAME | "πŸ’‚ Odin"
ENFORCE_DOMAIN | "true"
HORIZON_ENABLED | "false"
DEBUGBAR_ENABLED | "false"
REGISTRATIONS_ENABLED | "true"

SSL Monitor

Hi, can odin remind me by email 30 days/7 days/3 days before the SSL certificate expires?

License

based on #4

Can i just self host it and use for my Personal Website Monitoring

(NOT FOR COMMERCIAL USE)

Sample .sql?

Cool project, looks very intresting.
Do you maybe have a sample .sql? Cant get it to work...

Docker Compose?

Any chance you can provide a docker compose file for installation?

Alerting issue

When Web Site is down it will not sending alert . it will send alert after when i click on refresh on uptime moniter . it will didnt send alert automatically.

Maybe send a notification if robots.txt file doesn’t exist?

We’re using this internally to monitor some client sites and noticed that those without a robots.txt result in failed horizon jobs:

GuzzleHttp\Exception\ClientException: Client error: `GET https://clientname.com/robots.txt` resulted in a `404 Not Found` response:

I would think the ideal handling is to catch that exception and send a notification that the file doesn’t exist. For now I can just disable robots monitoring on those sites.

License?

Awesome project! Is there a license associated with it?

Adding an "already expired" ssl site fails.

2020-09-24 17:48:40] local.ERROR: Could not download certificate for host `XXX.XXX.com` because Could not connect to `XXX.XXX.com`. {"userId":1,"exception":"[object] (Spatie\\SslCe
rtificate\\Exceptions\\CouldNotDownloadCertificate\\UnknownError(code: 0): Could not download certificate for host `XXX.XXX.com` because Could not connect to `XXX.XXX.com`. at /home
/odin/odin/vendor/spatie/ssl-certificate/src/Exceptions/CouldNotDownloadCertificate.php:24)
[stacktrace]
#0 /home/odin/odin/vendor/spatie/ssl-certificate/src/Downloader.php(171): Spatie\\SslCertificate\\Exceptions\\CouldNotDownloadCertificate::unknownError()
#1 /home/odin/odin/vendor/spatie/ssl-certificate/src/Downloader.php(90): Spatie\\SslCertificate\\Downloader->fetchCertificates()
#2 /home/odin/odin/vendor/spatie/ssl-certificate/src/Downloader.php(120): Spatie\\SslCertificate\\Downloader->getCertificates()
#3 /home/odin/odin/vendor/spatie/ssl-certificate/src/Downloader.php(129): Spatie\\SslCertificate\\Downloader->forHost()
#4 /home/odin/odin/vendor/spatie/ssl-certificate/src/SslCertificate.php(31): Spatie\\SslCertificate\\Downloader::downloadCertificateFromUrl()
#5 /home/odin/odin/app/Checkers/Certificate.php(34): Spatie\\SslCertificate\\SslCertificate::createForHostName()
#6 /home/odin/odin/app/Checkers/Certificate.php(28): App\\Checkers\\Certificate->fetch()
#7 /home/odin/odin/app/Jobs/CertificateCheck.php(41): App\\Checkers\\Certificate->run()
#8 [internal function]: App\\Jobs\\CertificateCheck->handle()
#9 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): call_user_func_array()
#10 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#11 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()
#12 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod()
#13 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call()
#14 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\\Container\\Container->call()
#15 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
#16 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#17 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then()
#18 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php(53): Illuminate\\Bus\\Dispatcher->dispatchNow()
#19 /home/odin/odin/app/Http/Controllers/CertificateReportController.php(21): App\\Jobs\\CertificateCheck::dispatchNow()
#20 [internal function]: App\\Http\\Controllers\\CertificateReportController->__invoke()
#21 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array()
#22 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#23 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(239): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#24 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(196): Illuminate\\Routing\\Route->runController()
#25 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(685): Illuminate\\Routing\\Route->run()
#26 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#27 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#28 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#29 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle()
#31 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(77): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#33 /home/odin/odin/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#34 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#35 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#37 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle()
#38 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#40 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#42 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(687): Illuminate\\Pipeline\\Pipeline->then()
#44 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\\Routing\\Router->runRouteWithinStack()
#45 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\\Routing\\Router->runRoute()
#46 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(617): Illuminate\\Routing\\Router->dispatchToRoute()
#47 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\\Routing\\Router->dispatch()
#48 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#49 /home/odin/odin/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(60): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#50 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#51 /home/odin/odin/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#52 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle()
#53 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#54 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#55 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#57 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#58 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#59 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#60 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle()
#61 /home/odin/odin/vendor/owenmelbz/domain-enforcement/src/DomainEnforcementAgency.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#62 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): OwenMelbz\\DomainEnforcement\\DomainEnforcementAgency->handle()
#63 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#64 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\\Pipeline\\Pipeline->then()
#65 /home/odin/odin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#66 /home/odin/odin/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle()
#67 {main}
"} 

Small typo which leads to the compiler to fail.

Hey, first of all thanks for making such a tool open source.
Have been trying it out and looks so useful, so thanks for sharing!

When trying to compile for the first time it failed for me. But it seems to be a small typo.
If you have a look at this file you'll see that on line 3 you accidently put '' which assumingly was meant to be ';. So after changing this it worked like a charm.

Consider to add a license

According to Github,
https://choosealicense.com/no-permission/

When you make a creative work (which includes code), the work is under exclusive copyright by default. Unless you include a license that specifies otherwise, nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), β€œnobody” starts including you.

It would be problematic for someone to use your code unless there is an explicit license that allows it.

Failed to download whoisdoma/dnsparser

When I try composer install :

Failed to download whoisdoma/dnsparser from dist: The "https://api.github.com/repos/OwenMelbz/DNSParser/zipball/7fc73e76bfd4f1918b488dacae79b136120d4f12" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
  - Installing whoisdoma/dnsparser (dev-master 7fc73e7): Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos

However, this is a private repo but it's require in the composer.json :

 "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/OwenMelbz/DNSParser"
        }
    ],

Thanks to open it please

php artisan migrate Issue

Hey Mate !!!
Hope you are doing Well.

i am installing this oding Project on my VM through DOC but there is some error while running php artisan migrate
Illuminate\Database\QueryException

SQLSTATE[HY000] [1045] Access denied for user 'odin'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = mysql and table_name = migrations and table_type = 'BASE TABLE')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {

671| throw new QueryException(
672| $query, $this->prepareBindings($bindings), $e
673| );
674| }

please help me out ..
I tired to solve it and give full permision to user and database.

Route [websites.show] not defined

Had this error in the logs..

{
    "message": "Route [websites.show] not defined. (View: /var/task/resources/views/mail/dns-changed.blade.php)",
    "context": {
        "exception": {
            "class": "ErrorException",
            "message": "Route [websites.show] not defined. (View: /var/task/resources/views/mail/dns-changed.blade.php)",
            "code": 0,
            "file": "/var/task/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:420",
            "previous": {
                "class": "Symfony\\Component\\Routing\\Exception\\RouteNotFoundException",
                "message": "Route [websites.show] not defined.",
                "code": 0,
                "file": "/var/task/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:420"
            }
        },
        "aws_request_id": "xxx"
    },
    "level": 400,
    "level_name": "ERROR",
    "channel": "staging",
    "datetime": "2020-09-03T04:00:41.893408+01:00",
    "extra": {}
}

app/Website.php

/**
     * @return string
     */
    public function getShowLinkAttribute()
    {
        return route('websites.show', $this->id);
    }

can not check ssl on another port

Hi,

I have a question, I am not able to detect SSL cert on some subdomain running on another port for example port 8888.
Since this subdomain onlycan accessed by custom port.
Any solution for this ?

Thank you.

Feature request

This is a really cool project! Is there any way this project can be dockerised? I am happy to help with development of this

Thanks in advance :)

Odin Not Working

Hi,
I am trying to install ODIN on my windows PC and Ubuntu server but it's not getting installed. On my server it kept me redirecting to again and again on the home page and adding public/index.php in URL. On my local machine, it keeps showing phpinfo. can you please let me know where I'm wrong

Check Schedule

how many hours does he update the uptime info?

Thanks

Not working

I tried to install it with php7.3 and apache not working

Is there any how to?

Thanks

Timezone and x-axis of uptime monitor

Hi,

I think the timezone shouldn't be hard-coded in app/Console/Kernel.php but using the config from config/app.pp.

protected function scheduleTimezone()
    {
        return 'Europe/London';
    }

--->

protected function scheduleTimezone()
    {
        return config('app.timezone');
    }

so we can set the timezone in .env.

Would you accept a PR?

Another thing I noticed is that the timescale for the uptime monitor goes from right-to-left. Is this intentional? Normally timescales go ltr.

[PR Question] Installation guide

Whilst installing Odin I've also written an installation guide (Ubuntu). Is there a place for this on this repo, if so, where would be the most appropriate place for this?

It's a markdown file, if that matters any.

dns_get_record(): A temporary server error occurred.

Hi there,

I've installed Odin on an Ubuntu 20.04 system, and configured Apache2 with a self-signed SSL certificate. Laravel is configured with composer and npm, and PHP 7.4 is connected to the latest releases of MySQL and Redis databases, both of which deployed via docker on the same host separately, and connected as per the odin .env. Everything is working so far except for DNS monitoring, which is a total shame. Currently, I'm running into the following error in my laravel logs:

[2024-03-02 16:45:39] local.ERROR: dns_get_record(): A temporary server error occurred.

And consequently, monitoring "DNS Records" is not working at all.

image

What is working?

  • , Edit. Registration and Login of accounts.
  • Monitoring: Open Graph, Uptime Monitoring,SSL Reports, Robots.txt, and perhaps scheduled task events as well, though I haven't tested this last one.
  • Adding and deleting websites.

Question: Is there a guide about how big should be the memory/processor/aws instance?

Hi,

Is there an available information about how big or what are the specs of the memory/processor or even an AWS instance type for running a monitoring for hundreds of endpoint?

I want to try this with at least website 100 endpoints to check, I am wondering what specific resource this application needs to achieve an efficient monitoring.

For anyone who have tried this, what's your server specs and how many endpoints are you monitoring?

Thanks in advance.

odin service not started

Loaded: loaded (/etc/systemd/system/odin.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-02-09 15:08:37 IST; 30s ago
Process: 85697 ExecStart=/usr/bin/npm run prod (code=exited, status=1/FAILURE)
Main PID: 85697 (code=exited, status=1/FAILURE)

Feb 09 15:08:30 Node-1.shikha.local npm[85728]: at /var/www/odin/node_modules/babel-loader/lib/index.js:44:71
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: at processTicksAndRejections (node:internal/process/task_queues:96:5) {
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: library: 'digital envelope routines',
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: reason: 'unsupported',
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: code: 'ERR_OSSL_EVP_UNSUPPORTED'
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: }
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: Node.js v17.9.0
Feb 09 15:08:37 Node-1.shikha.local systemd[1]: odin.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 15:08:37 Node-1.shikha.local systemd[1]: odin.service: Failed with result 'exit-code'.

Enable "Global" user visibility?

Is there a way to enable "global" visibility of checks between users?
A website check created by User A is not visible to User B.

odin service not started

Loaded: loaded (/etc/systemd/system/odin.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-02-09 15:08:37 IST; 30s ago
Process: 85697 ExecStart=/usr/bin/npm run prod (code=exited, status=1/FAILURE)
Main PID: 85697 (code=exited, status=1/FAILURE)

Feb 09 15:08:30 Node-1.shikha.local npm[85728]: at /var/www/odin/node_modules/babel-loader/lib/index.js:44:71
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: at processTicksAndRejections (node:internal/process/task_queues:96:5) {
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: library: 'digital envelope routines',
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: reason: 'unsupported',
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: code: 'ERR_OSSL_EVP_UNSUPPORTED'
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: }
Feb 09 15:08:30 Node-1.shikha.local npm[85728]: Node.js v17.9.0
Feb 09 15:08:37 Node-1.shikha.local systemd[1]: odin.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 15:08:37 Node-1.shikha.local systemd[1]: odin.service: Failed with result 'exit-code'.

kindly help me out.

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.