http://raymii.org - Quis custodiet ipsos custodes? -- [@joepie91 said](/discussion/comment/183487#Comment_183487): I have always been a pain in the ass about the security for pretty much anything, and will continue to do so here. - [Need a VPS Control Panel?](http://z1s.org/dashboard/solus_urls)
http://raymii.org - Quis custodiet ipsos custodes? -- [@joepie91 said](/discussion/comment/183487#Comment_183487): I have always been a pain in the ass about the security for pretty much anything, and will continue to do so here. - [Need a VPS Control Panel?](http://z1s.org/dashboard/solus_urls)
@DanielM@MikHo it works like this: on the clients you setup a bash script which generates a json file with statistics. (/var/www/client.sh > /var/www/stat.json) You then transport that file to the monitor server (basicly just where the php file is). The php script parses the JSON files and shows the result in a nice way.
My script uses http as the transport method, but you could also just ftp, rsync or nfs for example. The php script needs to be able to read the json files. I've also setup a configuration for a friend of mine which uses an nfs share to place the stat.json files. But you can also let the monitor server get the files at a set interval via rsync with ssh passwordless login (key based). Then you would not need a httpd on the client.
http://raymii.org - Quis custodiet ipsos custodes? -- [@joepie91 said](/discussion/comment/183487#Comment_183487): I have always been a pain in the ass about the security for pretty much anything, and will continue to do so here. - [Need a VPS Control Panel?](http://z1s.org/dashboard/solus_urls)
@raymii
I understood that from your instructions :)
For me personally its no problem, I just got hungup that you took for granted that there would be a httpd installed on the monitored server.
I hope you take it as constructive critisism regarding your documentation on a good status monitoring system ( I presume this since I haven't used it myself )
@MikHo I don't mind crictism, I always see it as a way to make things better. And yes, the script also standard monitors lighttpd/ngix/apache, so it indeed takes a httpd for granted. On a vpn server that is mostly not the case..
http://raymii.org - Quis custodiet ipsos custodes? -- [@joepie91 said](/discussion/comment/183487#Comment_183487): I have always been a pain in the ass about the security for pretty much anything, and will continue to do so here. - [Need a VPS Control Panel?](http://z1s.org/dashboard/solus_urls)
@raymii
I probably will, when theres a few minutes over :)
Been using openstatus but that feels like using to much resources on busy really lowend boxes.
@MikHo
I also used openstatus, but the openstatus-server took so much IO that my host complained because I was taking the node performance down. So thats why I've switched and wrote my own. I'm working on history per node, and maybe mail alerts.
http://raymii.org - Quis custodiet ipsos custodes? -- [@joepie91 said](/discussion/comment/183487#Comment_183487): I have always been a pain in the ass about the security for pretty much anything, and will continue to do so here. - [Need a VPS Control Panel?](http://z1s.org/dashboard/solus_urls)
Allow email alerts in case of non-availability (not sure if this should be part of the lib)
Account for scheduled maintenance (and provide two QoS calculations: with and without scheduled maintenance)
Allow for JavaScript execution in the monitored resources by using a headless browser (probably zombie.js)
Unit tests
Comments
Made my own with my non-existant knowledge of php
https://simpleno.de/monitor/
I know it looks shit.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI quite like that, actually :)
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankshttp://pastebin.com/YnAyK8jq Needs HTML Kickstarter, and PHPSysInfo on the nodes you want to monitor.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThe one I use, requires only bash on the nodes you want to monitor, and php on the server where you want to display it: https://raymii.org/cms/p_Bash_PHP_Server_Status_Monitor
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksWell,
Status2k.
It looks awesum.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksLooks partially broken here :(
http://pastie.org/4724117
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI'm having some serious deja vu here, it's almost like there was a topic like this already today...
OpenStatus?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksHaha ;) Yeah, there was actually. Oops, oh well.
ty
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks>
You have to set it up to match your servers.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksNice, i think i will be checking out https://simpleno.de/monitor/
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@dominicl You can check Zabbix for Live Monitoring and Pingdom for public.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankswhat about the files it downloads though? then json files
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@raymii
In your example you say that the monitored servers only need bash but then you grab them via a httpd :)
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@DanielM @MikHo it works like this: on the clients you setup a bash script which generates a json file with statistics. (/var/www/client.sh > /var/www/stat.json) You then transport that file to the monitor server (basicly just where the php file is). The php script parses the JSON files and shows the result in a nice way.
My script uses http as the transport method, but you could also just ftp, rsync or nfs for example. The php script needs to be able to read the json files. I've also setup a configuration for a friend of mine which uses an nfs share to place the stat.json files. But you can also let the monitor server get the files at a set interval via rsync with ssh passwordless login (key based). Then you would not need a httpd on the client.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@raymii I understood that from your instructions :) For me personally its no problem, I just got hungup that you took for granted that there would be a httpd installed on the monitored server.
I hope you take it as constructive critisism regarding your documentation on a good status monitoring system ( I presume this since I haven't used it myself )
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@MikHo I don't mind crictism, I always see it as a way to make things better. And yes, the script also standard monitors lighttpd/ngix/apache, so it indeed takes a httpd for granted. On a vpn server that is mostly not the case..
And, you can try using it, it takes almost no resources, little setup time? Demo: http://vps11.sparklingclouds.nl/status or http://raymii.nl/stat.php (vps11 has some problems with the style)
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@raymii I probably will, when theres a few minutes over :) Been using openstatus but that feels like using to much resources on busy really lowend boxes.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@MikHo I also used openstatus, but the openstatus-server took so much IO that my host complained because I was taking the node performance down. So thats why I've switched and wrote my own. I'm working on history per node, and maybe mail alerts.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI'm more interested in history when monitoring. I use it to decide of i should keep the vps or not.
Where I work we use prtg by paessler. Good but expensive as hell. Even if theres a free version.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksFor those looking to roll their own uptime monitor we found this project particularly useful: http://fzaninotto.github.com/uptime/
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@serverbear, how to use it?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksA simple HTTP remote monitoring utility using Node.js and MongoDB.
So, you need to know Node.js and have experience with MongoDB.
Though, depending on how simple it is.. for someone who already knows JS/PHP it shouldn't be hard to pick up.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThis seems important improve
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@ErawanArifNugroho It works out of the box with the instructions but to modify any code you'll need to know node.js
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@Zen, so we only need to include the .js to the page?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksWe're using a custom one bradley built with codeingiter - http://status.nodedeploy.com/
Which reminds me i should make him add the node stats under "More info"
Anyways, statusmon is a cool one to use if you don't want to code.
Phil
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI have a php script that uses fsockopen - is that a good/safe method to use?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks