<p>Any uptimerobot alternative written in go? Even without the notifications is fine. Just need a website that pings IP's and reports the status</p>
<hr/>**评论:**<br/><br/>StallmanTheWhite: <pre><blockquote>
<p>Just need a website that pings IP's and reports the status</p>
</blockquote>
<p>Why not just use <code>/bin/ping</code>?</p></pre>dlsniper: <pre><p>Here's a challenge, write one yourself in less than 150 lines of Go using only the standard library. In less than an hour if you want the extra challenge.</p></pre>titpetric: <pre><p>Not every problem needs a DIY solve.</p>
<p>Edit: down voted, really? I mean I know you're developers and all, but at some point you shouldn't write that todo list app because there are a billion of them. Not everything needs to be developed in house. There are literally tens of possible options for OP to set up some type of monitoring:</p>
<ul>
<li>Ganglia</li>
<li>Cacti</li>
<li>smokeping</li>
<li>Munin</li>
<li>Netdata</li>
<li>prometheus</li>
<li>ELK (elasticsearch logstash kibana)</li>
<li>nagios</li>
</ul>
<p>All of them and more are open source and might fit the specific use case. If your aim is to develop <del>shit</del> things as a learning experience, go ahead, but if you're searching for software alternatives, you really shouldn't write your own at your first whim, neither should it be your first advice.</p></pre>dlsniper: <pre><p>Agreed. In this case I said it's a challenge. The OP, or anyone else, could see how they'd do it or not.</p>
<p>And what would you like to do better? Spend an hour writing a custom solution or spend an hour googling a solution, figuring out how to use it, configuring it, testing it and then deploying it?</p>
<p>Edit: I now see that this solution would break the: use my library solution you've proposed.</p></pre>titpetric: <pre><p>"use my library" was not my point (neither do I very much care), but I feel like I amended my answer fully to explain further. I could also point you to the <a href="https://en.wikipedia.org/wiki/Not_invented_here" rel="nofollow">Not invented here</a> wiki page, that would further explain with what's wrong with trying to develop every trivial thing in house.</p>
<p>Not that I would feel to say the same to your exact comment if the OP was asking to develop said alternative. You're absolutely correct about it being an easy challenge, but he wasn't asking for that.</p>
<p>Edit: also removed the "use my lib" link, to underline my above point. It really doesn't matter that I just happen to have a project with some overlap. There are many others, and yes, one could google, etc. the solution, or one can always ask for recommendations, as OP has.</p></pre>WikiTextBot: <pre><p><strong>Not invented here</strong></p>
<p>Not invented here (NIH) is a stance adopted by social, corporate, or institutional cultures that avoid using or buying already existing products, research, standards, or knowledge because of their external origins and costs, such as royalties.</p>
<p>The reasons for not wanting to use the work of others are varied, but some can include a desire to support a local economy instead of paying royalties to a foreign license-holder, fear of patent infringement, lack of understanding of the foreign work, an unwillingness to acknowledge or value the work of others, jealousy, or forming part of a wider turf war. As a social phenomenon, this philosophy can manifest as an unwillingness to adopt an idea or product because it originates from another culture, a form of tribalism.</p>
<p>The term is normally used in a pejorative sense.</p>
<hr/>
<p><sup>[</sup> <a href="https://www.reddit.com/message/compose?to=kittens_from_space" rel="nofollow"><sup>PM</sup></a> <sup>|</sup> <a href="https://reddit.com/message/compose?to=WikiTextBot&message=Excludeme&subject=Excludeme" rel="nofollow"><sup>Exclude</sup> <sup>me</sup></a> <sup>|</sup> <a href="https://np.reddit.com/r/golang/about/banned" rel="nofollow"><sup>Exclude</sup> <sup>from</sup> <sup>subreddit</sup></a> <sup>|</sup> <a href="https://np.reddit.com/r/WikiTextBot/wiki/index" rel="nofollow"><sup>FAQ</sup> <sup>/</sup> <sup>Information</sup></a> <sup>|</sup> <a href="https://github.com/kittenswolf/WikiTextBot" rel="nofollow"><sup>Source</sup></a> <sup>]</sup>
<sup>Downvote</sup> <sup>to</sup> <sup>remove</sup> <sup>|</sup> <sup>v0.27</sup></p></pre>HotelDon: <pre><p>Good bot. </p></pre>GoodBot_BadBot: <pre><p>Thank you HotelDon for voting on WikiTextBot. </p>
<p>This bot wants to find the best and worst bots on Reddit. <a href="https://goodbot-badbot.herokuapp.com/" rel="nofollow">You can view results here</a>. </p>
<hr/>
<p><sup><sup>Even</sup></sup> <sup><sup>if</sup></sup> <sup><sup>I</sup></sup> <sup><sup>don't</sup></sup> <sup><sup>reply</sup></sup> <sup><sup>to</sup></sup> <sup><sup>your</sup></sup> <sup><sup>comment,</sup></sup> <sup><sup>I'm</sup></sup> <sup><sup>still</sup></sup> <sup><sup>listening</sup></sup> <sup><sup>for</sup></sup> <sup><sup>votes.</sup></sup> <sup><sup>Check</sup></sup> <sup><sup>the</sup></sup> <sup><sup>webpage</sup></sup> <sup><sup>to</sup></sup> <sup><sup>see</sup></sup> <sup><sup>if</sup></sup> <sup><sup>your</sup></sup> <sup><sup>vote</sup></sup> <sup><sup>registered!</sup></sup></p></pre>dlsniper: <pre><blockquote>
<p>Edit: also removed the "use my lib" link</p>
</blockquote>
<p>If you would replied with only that response everything would have been on. Instead you chose to add a reply to my post and now you've deleted your link which was actually solving OP's problem. Except for Prometheus, to the best of my knowledge, none of the things you've mentioned actually answer the question. Such a shame.</p></pre>titpetric: <pre><p>I don't know if you should get familiar with more software or if I should explain what individual software here does. I'm linking individual screenshots with the functionality OP asked for:</p>
<p>"Just need a website that pings IP's and reports the status"</p>
<ul>
<li><a href="https://github.com/ganglia/gmetric/tree/master/ping" rel="nofollow">Ganglia</a></li>
<li><a href="https://docs.cacti.net/_media/usertemplate:graph:advanced_ping_alt.png" rel="nofollow">Cacti</a></li>
<li><a href="https://oss.oetiker.ch/smokeping/doc/reading_detail.png" rel="nofollow">smokeping</a></li>
<li><a href="http://munin.harvie.cz/harvie.cz/server.harvie.cz/ping_loss-month.png" rel="nofollow">Munin</a></li>
<li><a href="https://github.com/firehol/netdata/wiki/fping-Plugin" rel="nofollow">Netdata</a></li>
<li><a href="https://labs.ripe.net/Members/daniel_czerwonk/screen-shot-2017-06-07-at-18-49-23.png/@@images/image/large" rel="nofollow">prometheus</a></li>
<li><a href="https://bearstech.com/societe/blog/high-available-mqtt-service/kibana.png" rel="nofollow">ELK (elasticsearch logstash kibana)</a></li>
<li><a href="https://www.ibm.com/developerworks/library/l-ganglia-nagios-2/figure1.jpg" rel="nofollow">nagios</a></li>
</ul>
<p>I guess just by inspecting those, you might see that pretty much every suggestion answers the question. With Prometheus I'd also advise <a href="https://grafana.com/" rel="nofollow">grafana</a>. As for my lib, I'm pretty sure that it's doing less and worse than the above suggestions. In light of "hey you're doing this a bit self servingly, aren't you?" criticism, I'll gladly keep it deleted to keep that notion at rest.</p></pre>dlsniper: <pre><p>I think you may have missed the part about which says that it should be written in Go. But please, continue to insult me and yourself.</p></pre>titpetric: <pre><p>Try checkup, <a href="https://sourcegraph.github.io/checkup/" rel="nofollow">https://sourcegraph.github.io/checkup/</a></p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传