webサービスが生きているかの確認

| コメント(73) | トラックバック(0)
管理しているサーバーの一つがさっきまで2時間ほどダウンしてたのであわてて再起動依頼。
サーバーがダウンしてpingが通らなくなったら携帯電話にメールが来るように設定してたんだけど あいにくwwwだけ死んで他は生きてるってとっても微妙な状態だったのでpingは通ってしまいエラー通知が来ない。。。

先日はお名前ドットコムDNSのせいでサーバーは生きてるけどDNSの名前解決ができずアクセスできない、って自体も起きたからサーバーのプロセス自体を監視してもダメだし
しかたないのでwebサービスが生きてるか確認するコードを組んでみた。

まず監視対象のサーバーにそれぞれ以下のファイルを設置

ping.txt

当然アクセスすると「pong」とだけ表示される


次に監視サーバーに以下を解凍して出てくる2ファイルを設置
(例:/var/www/html/webping/以下に設置)
webping.zip

pinglist.listには上記で設置したping.txtへのURLを改行区切りで列挙する

とりあえずWEBブラウザかコマンドラインで実行してアクセスして試してみる
またpinglist.txtにわざと誤ったURLを記述しエラーメールが届くか確認する。

テストが終わったらcronに登録して5分おきに実行する

#crontab -e
*/5 * * * * php /var/www/html/webping/webping.php


障害発生すると障害発生するまで延々とメールが送られてくるわけなのでご注意。
3回送ったら1時間起きとかのルーチンも入れようかと思ったけど
使うの自分だしめんどいんでまた今度。

トラックバック(0)

トラックバックURL: http://blog.romaji.net/mt4/mt_cgi/mt-tb.cgi/15

コメント(73)

Nice site you got here, very awesome and good content. Thanks!

An insightful short article at that time mate ! Information post .

Aw, this has been a very nice post. In idea I have to make a note of in this way additionally slacking and actual effort to make a great article but what / things I say! I procrastinate alot by no means find a way to get something done.

There are various posts around near this, I do think taking there reference could experience chose to make this spot or article really informative. I'm not expression this post is bad. Simply I can pronounce which the info provided here was unique, merely to really make it more near to complete, supporting with other former information will get been actually good. The points you will enjoy touched listed below are important, thus I'll spot a number of the information here to produce this actually best for entirely the newbie’s here. Thank you for this information. Actually helpful!

Fantastic goods by you, man. We have understand your stuff previous to and you are also just too wonderful. I just like what youve acquired here, certainly like what youre stating and the way in which you say it. You create it enjoyable and you still look after to maintain it sensible. I cant wait to see considerably more on your part. This is a terrific internet site.

What a lovely day for a 3568491! SCK was here

and found your great site

Nice post. I was checking constantly this blog and I am impressed! Extremely helpful info specifically the last part :) I care for such info much. I was looking for this particular info for a very long time. Thank you and best of luck.

Very useful post! I really enjoyed reading it. So wonderful to read an article that is written in decent English! I'm going to surely be back for much more at some point. Thank you.

I actually don't know how i discovered this blog because I have been researching information about about the current events in Libya, but anyway I'm very pleased I stumbled upon your blog post since I had a great 10 mins reading your thoughts. Thanks! One final thing, is it possible to advise about any kind of practical posts in regards to the very same subject matter?

Can I just say what a reduction to find somebody who truly is aware of what theyre speaking about on the internet. You definitely know how to deliver an issue to gentle and make it important. Extra folks need to learn this and understand this facet of the story. I cant consider youre no more in style because you positively have the gift.

Highly helpful article. Your writing is very to the point and interesting. I will certainly be subscribing to your RSS or Atom. I trust you will post regularly on similar subjects. But I was curious what your resources for the write-up are? Thanks a lot.

My spouse and i have been quite thankful that Edward managed to finish off his survey from your ideas he got when using the web site. It is now and again perplexing just to always be giving for free tricks which often some other people have been making money from. And we do know we need the writer to be grateful to because of that. The most important illustrations you've made, the easy blog navigation, the relationships you will make it easier to promote - it is mostly spectacular, and it's aiding our son in addition to the family recognize that this issue is excellent, which is very vital. Thanks for the whole lot!

You certainly understand what you are talking about. Man, this blog is just good! I cannot wait to read much more of what you have to say. I am really happy that I came upon this when I did simply because I was really beginning to get bored with the whole blogging and site-building field. Youve turned me around man!

hey there and thank you for your info – I have definitely picked up anything new from right here. I did however expertise some technical issues using this site, as I experienced to reload the website lots of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Anyway I am adding this RSS to my email and can look out for much more of your respective intriguing content. Make sure you update this again very soon..

You got a very superb website, Gladiola I detected it through yahoo.

Keep up the excellent work!

I am a big fan of this web site would like to go on updated

Howdy! Do you know if they make any plugins to assist with SEO? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Thank you!

An attention-grabbing discussion is value comment. I feel that it's best to write more on this topic, it may not be a taboo topic however typically individuals are not sufficient to speak on such topics. To the next. Cheers

Some really nice and utilitarian info on this web site, likewise I believe the layout has great features.

A great article is as much about writing flair as it is about technicalities, but you have it all. It takes a great writer to have flair and and skill.

I truly prize your piece of work, Great post.

and found your great site

Hmm it seems like your website ate my first comment (it was super long) so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog blogger but I'm still new to the whole thing. Do you have any helpful hints for inexperienced blog writers? I'd certainly appreciate it.

Very efficiently written information. It will be helpful to anybody who usess it, together with myself. Sustain the nice work – for sure i'll try extra posts.

I really loved reading your blog. It was very well authored and easy to understand

I'm still learning from you, however I'm enhancing myself. I actually love reading all the things that's written in your blog.Keep the tales coming. I cherished it!

I'm nonetheless learning from you, however I'm enhancing myself. I actually love studying every part that is written in your blog.Preserve the stories coming. I cherished it!

I'm nonetheless studying from you, but I'm improving myself. I actually love reading the whole lot that's written on your blog.Keep the tales coming. I loved it!

I was very happy to find this web-site.I wanted to thanks in your time for this wonderful read!! I positively enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

I was curious if you ever considered changing the page layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 images. Maybe you could space it out better?

Thanks so much for providing individuals with an exceptionally wonderful opportunity to read in detail from this web site. It is always very superb and packed with a lot of fun for me personally and my office peers to search the blog more than three times in one week to study the fresh items you will have. And indeed, I'm just always fulfilled considering the unbelievable suggestions you give. Selected 3 ideas in this post are in fact the most impressive I have had.

Very interesting information!Perfect just what I was searching for!

Appreciate it for this post, I am a big big fan of this site would like to go on updated.

It's really a nice and useful piece of info. I'm glad that you shared this useful info with us. Please stay us up to date like this. Thank you for sharing.

Thanks for the sensible critique. Me & my neighbor were just preparing to do some research about this. We got a grab a book from our area library but I think I learned more from this post. I'm very glad to see such fantastic information being shared freely out there.

This is the appropriate blog for anybody who needs to search out out about this topic. You understand so much its virtually arduous to argue with you (not that I truly would want…HaHa). You definitely put a brand new spin on a subject thats been written about for years. Nice stuff, simply nice!

Whats up, Needed to ask you some thing. Is this a wordpress web site? My group is contemplating moving my weblog from Blogger to wordpress, you think that is probable? In addition did you construct this theme by yourself some how? Many thanks for the assistance!

Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?

Blogroll links aint that great but i am not the admin… … Just Telling

Hello there! I am so grateful I discovered your internet site. I actually seen you by mistake, whilst I was looking on Delicious for something else. Regardless, I am here now and would just like to say thank you for a great posting and a all-round appealing blog site (I additionally really like the theme / design). I don't have time to browse all of it at the moment however I had bookmarked it and also put in your RSS feeds, so when I have time I'll be returning to learn more. Please do keep up the awesome career.

Now you might have your new web site and also you're keen to start making some gross sales! However, how will you make sales if you happen to would not have high volumes of tourists to your web site?

I wished to thanks for this nice read!! I definitely having fun with each little bit of it I've you bookmarked to take a look at new stuff you publish

Between me and my husband we've owned more MP3 players over the years than I can count, including Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few years I've settled down to one line of players. Why? Because I was happy to discover how well-designed and fun to use the underappreciated (and widely mocked) Zunes are.

Your place is valueble for me. Thanks!…

Thank you for the good writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how could we communicate?

Sometimes the veil between human and animal intelligence wears very thin -- then one experiences the supreme thrill of keeping a cat, or perhaps allowing oneself to be owned by a cat. -- Catherine Manley, English writer

You have mentioned very interesting details! ps decent site.

An interesting dialogue is price comment. I believe that you should write extra on this matter, it may not be a taboo subject however generally persons are not enough to speak on such topics. To the next. Cheers

Hands down, Apple's app store wins by a mile. It's a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I'm not sure I'd want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.

Pretty! This was a really wonderful post. Thank you for your provided information.

I do love the manner in which you have presented this concern plus it does offer me some fodder for thought. Nevertheless, coming from everything that I have witnessed, I basically trust when the opinions stack on that people remain on point and in no way get started on a tirade involving the news du jour. Yet, thank you for this outstanding point and while I can not agree with the idea in totality, I regard the point of view.

Perfect just what I was searching for! .

I like this web blog very much, Its a rattling nice situation to read and get information.

A very very interesting article! I'll try to track that continues here! Thank you.

Excellent blog! Plenty of helpful information here. I was looking for this.Thanks for sharing! villa grece

Cats are smarter than dogs. You can't get eight cats to pull a sled through snow. -- Jeff Valdez

Hello I am so grateful I found your website, I really found you by mistake, while I was looking on Askjeeve for something else, Anyways I am here now and would just like to say many thanks for a tremendous post and a all round thrilling blog (I also love the theme/design), I don’t have time to go through it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the excellent job.

Hi there intelligent points.. now why did not i consider these? Off subject barely, is that this page pattern merely from an atypical set up or else do you use a customized template. I exploit a webpage i'm seeking to improve and effectively the visuals is probably going one of the key issues to complete on my list.

Cant find the “Tweet This” button on this page??

When I originally commented I clicked on the notify me whenever new remarks are added and now whenever a opinion is added I recieve several e-mail with the same opinion. Is there anyway you'll be able to remove folks by that service? Thank you!

What I find tough is to discover a blog that can seize me for a minute however your weblog is different. Bravo.

Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

After examine just a few of the blog posts on your web site now, and I actually like your approach of blogging. I bookmarked it to my bookmark website listing and might be checking again soon. Pls try my web page as nicely and let me know what you think.

If you're still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you'll know which is right for you.

very nice post, i certainly love this website, keep on it

As a Newbie, I am always searching online for articles that can help me. Thank you

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

For a long time it had seemed to me that life was about to begin — real life. But there was always some obstacle in the way. Something to be got through first, some unfinished business, time still to be served, a debt to be paid. Then life would begin. At last it dawned on me that these obstacles were my life. -- Fr. Alfred D'Souza

That is the right blog for anyone who desires to seek out out about this topic. You understand so much its almost hard to argue with you (not that I truly would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Nice stuff, just great!

Thanks for another excellent article. Exactly where else can anyone get that sort of details in written in such a clear way. I've a demonstration in a few days, and I was searching for exactly the information you've got just provided me. Many thanks.

Politicians dont get voted in by saying no! they get voted in by favours, by corporations and the poeple.

コメントする

2011年9月

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30