Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I am trying to do some pings on several servers of mine and want them to be done as fast as possible, since my script should later run as ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    3

    ping flood? turn off auto-lock?

    Hello,

    I am trying to do some pings on several servers of mine and want them to be done as fast as possible, since my script should later run as kinda daemon. Now I am facing that problem, when I use ping -f [ips] then I get that result:

    ping: cannot flood; minimal interval, allowed for user, is 200ms
    Now I wonder where I can turn of that lock that would not allow me to send more than one ping in 200ms (I got root access)?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Why do you need to run icmp echo attack on your own servers?

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    3
    In fact it´s not meant as an attack... I do own quite a lot hosting packages and probably a dozen servers and I am currently in the process of setting up my own monitoring system at one of my dedicated servers.. that´s about why I need it (while it´s only one thing out of several queries I do)... so basically none of the hosting packages would be pinged attack-alike... so is there a way to turn of that limitation on my server that does the monitoring?

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    For server monitoring there is a robust tool (which can be configured to only ping if that's all you need) you should check out: Nagios: Home

    Before you try to compile it from source, see if your distro has a package available for you to install.

  5. #5
    Just Joined! Smither's Avatar
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    58
    If you have sudo installed add this to your sudoer's file:
    Code:
    %users          ALL=(ALL)       NOPASSWD:/bin/ping
    and in /etc/bash/bashrc:
    Code:
    alias pf='sudo ping -f'
    Then source /etc/bash/bashrc. Now pf <host> should flood it.

    That's just how I'd do it.

  6. #6
    Just Joined!
    Join Date
    May 2007
    Posts
    3
    that sudo stuff doesn&#180;t work for me it seems (no bash folder and stuff)... as for good monitoring software: I know there are some good solutions on the market, but call it a spleen, but I really like running my own - so to say - personalised software

    So there is no file where I simply could turn that off like something like that

    min_time_per_ping = 200

    making to

    min_tim_per_ping = 10

    ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...