The Following User Says Thank You to orac For This Useful Post: | ||
![]() |
2010-03-29
, 02:42
|
Posts: 9 |
Thanked: 1 time |
Joined on Jan 2010
|
#212
|
![]() |
2010-03-29
, 08:17
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#213
|
![]() |
2010-03-29
, 17:30
|
Posts: 9 |
Thanked: 1 time |
Joined on Jan 2010
|
#214
|
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.
![]() |
2010-03-29
, 20:27
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#215
|
![]() |
2010-03-29
, 20:57
|
Posts: 9 |
Thanked: 1 time |
Joined on Jan 2010
|
#216
|
wget --timeout=10 -O /dev/null http://theserveruwanttocheck.xxx/somefile.html if [ $? -eq 1 ] ; then exit 2 ; fi echo "System OK"
![]() |
2010-03-30
, 06:05
|
Posts: 9 |
Thanked: 1 time |
Joined on Mar 2010
|
#217
|
![]() |
2010-03-30
, 07:57
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#218
|
![]() |
2010-03-30
, 08:14
|
Posts: 9 |
Thanked: 1 time |
Joined on Mar 2010
|
#219
|
![]() |
2010-03-30
, 08:22
|
Posts: 243 |
Thanked: 146 times |
Joined on Dec 2009
@ Knowhere
|
#220
|
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?
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.
Great widget,
orac.