Should I use Perl or Python to monitor the network?

I want some work to be done on the front of the network, pinging numerous computers on the local network and receiving response time data. What would be most useful and productive for working with: Perl or Python?

+3
source share
9 answers

I agree that it’s quite subjective which programming language you use - essentially, I would rather do this work as quickly and efficiently as possible, making it available - so it depends on your infrastructure ...

May I suggest you take a look at Nagios instead of reinventing the wheel yourself?

While Nagios may require a large degree of training in terms of configuration, it will cost in the end, and if you can’t find the plugin according to your requirements, then it’s easy to write it yourself. Joel Spolsky wrote an interesting article about this.

+22
source

Well, I work in both Perl and Python, and my day job supports network monitoring software. Most import items have already been considered, but I will consolidate / repeat here:

  • - , ping . .

  • , Perl, Python - , . , " " Perl, Python. , Python , , Perl inline.

  • - , , , Net:: Ping Perl icmplib Python ping.py.

  • - pinging , , . , . Python, , . Python IMO, Perl.

+14

Perl.

Ping, Net::Ping, .

+12

. , . ; . - .

, , , , . Perl Perl. , .

Python, , ; , .

+7

Perl , Python, Perl. , , (, ..) . Python - , ( ) Perl . ( ), CPAN, , , , , .

+3

Python, , , , Nagios .

, Perl, POE. POE - .

POE . . POE . , , CPAN.

+2

. , .

+1

unit test TAP- ( bash + netcat + curl perl). , script, , . TAP:: Harness:: HTML.

+1

, - , , perl, , .

, , , python.

, , , .

-1

Source: https://habr.com/ru/post/1702410/


All Articles