May be you should make asynchronous communication with executed commands?
That's a good thought. I was really liking this widget until it locked up sometimes when roaming. I realised like you guys here, its that some commands don't complete.
In particular, any use of wget requires the "-T" option be set.
I like the real IP preloaded command, by adding "-T 5" it now never locks up.
Maybe at the least, improve the default scripts not to lock up.
Later you can try a "throw and catch" execution model.
can anyone help me out, i would like to use this widget to check the status of a webserver, does anyone have a cmd that does that?
What do you mean with status? The Webserver (http-Server) can be checked with a wget command. Whether the machine itself is up and running could be tested with a simple ping. For nearly any service running there is a simple tool to check it's status.
What do you mean with status? The Webserver (http-Server) can be checked with a wget command. Whether the machine itself is up and running could be tested with a simple ping. For nearly any service running there is a simple tool to check it's status.
status like to see if its running the site, so i could use wget to get the file but how do i signal to the widget if it fails?
i consulted some people and the best i have is this
that might work if you know what the return codes mean. easier might be clear text message like following:
wget .... && echo "success" || echo "fail"
the last echo will only fire up if one of the previous commands fails and an echo never fails
I think its safe, it should not lock up, but it does sometimes need you click it a few times to confirm its not just a network error on the way to your server.
If you can, I would recommend using the IP of your server to prevent name lookups everytime you run it.
If you can, I would recommend using the IP of your server to prevent name lookups everytime you run it.
Raw IP will work only if you are running a dedicated server (or virtual server) with own IP. If you only got webspace somewhere this would not ensure that your website can get accessed.
Raw IP will work only if you are running a dedicated server (or virtual server) with own IP. If you only got webspace somewhere this would not ensure that your website can get accessed.
Which is why I am interested in the status response and why I started with if you can.
edit the widget, click on add command type any name u want and the name of the script you created under "command" set any settings u want. select "when connected" and your auto update at the bottom of the widget properties and there you go, remote monitoring on the go.