by hebeisen
A feature I miss and prevents us from migrating some stuff over from alertra.com is the ability to deploy a custom (bash/python/perl) script to the monitoring probes of Site24x7.
This would allow us to monitor seldom services like EPP or to implement more complex transactions to get an exhaustive monitoring of a REST-service, node.js-Thingie etc.
I don't want to use a LinuxAgent, since this would require me to deploy my own probes in the cloud to get an outside view on things.
Like (1)
Reply
Replies (3)
Hi Hebeisen,
Thanks for bringing in your request on custom scripts.
Currently, we do not have an out of the box support for agent-less custom script monitoring. However, it would be great if you could give us a little more detail on your requirement.
Based on our understanding,
- You would want to write a script that can pull all the important metrics required on execution.
- The execution and data collection is expected to happen in Site24x7 location servers.
- Any kind of data that is collected on execution should be pushed to Site24x7 servers. (via simple Rest API calls may be).
Please confirm if we have got your requirement right.
Thanks
Narmadha
Like (0)
Reply
by hebeisen
Basically, I just need some test which executes an uploaded (bash/perl/python) script.
The script will then perform the tests and will return the state via exit code (0 being OK, 1 means trouble, 2 means down etc.) to Site24x7 which will log these states and trigger alerts if the exit code is > 0.
If the script prints something to STDOUT, this text should be passed on to error message shown on the Website and the alert message (via additional variable/makro?).
This is similar to a Nagios script/plugin but executed on the existing Site24x7 probes.
At this point, I don't see any need for metrics / data collection.
But of course, it would be a nice thing for more advanced probing and performance monitoring.
I think pushing the collected data via REST API call to the Site24x7 servers at the end of such a script would be a good solution. Maybe you can even provide Python/Perl-Libraries which will simplify this task for a script developer.
I hope, this sheds a little bit more light on the issue.
Cheers
A. Hebeisen
Like (0)
Reply
by hebeisen
Hi Narmadha
Meanwhile, my brain went on a little bit mulling over this topic:
If one could deploy a custom monitoring script as Docker [1] container to your probes, the whole thing would be even more attractive in my eyes and probably also for you on the deploying side of this.
Some of the things that come to mind on the plus side:
- Easy deployment by uploading a Docker-Image or by providing an Registry-URL to pull the image from.
- The developer has full control over the used programming language and libraries. So no need from your side to install Perl, Python or whatever libraries to the probes
- Docker would allow you to limit the resources a custom monitor container is allowed to consume on your probes
That's it ... at least for the moment. ;)
Cheers
A. Hebeisen
Like (0)
Reply