Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Status Script
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Status Script

PacketVMPacketVM Member, Host Rep
edited September 2012 in General

Hello,

I'm looking for a Status script to monitor a few servers. What would you recommend me using?
It will monitor VPS nodes, etc.

Thanks

Comments

  • Made my own with my non-existant knowledge of php

    https://simpleno.de/monitor/

    I know it looks shit.

  • PacketVMPacketVM Member, Host Rep

    @SimpleNode said: I know it looks shit.

    I quite like that, actually :)

  • SimpleNodeSimpleNode Member
    edited September 2012

    http://pastebin.com/YnAyK8jq
    Needs HTML Kickstarter, and PHPSysInfo on the nodes you want to monitor.

  • The 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

  • Well,

    Status2k.

    It looks awesum.

    Thanked by 1PacketVM
  • @Raymii said: The 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

    Looks partially broken here :(

    http://pastie.org/4724117

  • I'm having some serious deja vu here, it's almost like there was a topic like this already today...

    OpenStatus?

  • PacketVMPacketVM Member, Host Rep

    @Legendlink said: I'm having some serious deja vu here, it's almost like there was a topic like this already today...

    Haha ;) Yeah, there was actually. Oops, oh well.

    @Legendlink said: OpenStatus?

    ty

  • @DanielM said: Looks partially broken here :(

    >

    You have to set it up to match your servers.

  • Nice, i think i will be checking out https://simpleno.de/monitor/

  • @dominicl You can check Zabbix for Live Monitoring and Pingdom for public.

  • @Raymii said: You have to set it up to match your servers.

    what about the files it downloads though? then json files

  • mikhomikho Member, Host Rep

    @raymii

    In your example you say that the monitored servers only need bash but then you grab them via a httpd :)

  • RaymiiRaymii Member
    edited September 2012

    @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.

  • mikhomikho Member, Host Rep

    @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..

    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)

  • mikhomikho Member, Host Rep

    @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.

  • mikhomikho Member, Host Rep

    I'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.

  • For those looking to roll their own uptime monitor we found this project particularly useful: http://fzaninotto.github.com/uptime/

  • This seems important improve

    TODO

    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

  • @ErawanArifNugroho It works out of the box with the instructions but to modify any code you'll need to know node.js

  • @Zen, so we only need to include the .js to the page?

  • PhilNDPhilND Member
    edited September 2012

    We'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

  • I have a php script that uses fsockopen - is that a good/safe method to use?

Sign In or Register to comment.