![]() ![]() Template: Normally we choose generic-active-service-custom.Linked with Hosts: This service normally will link the Router or Firewall, it will not matter.Description: It is the name you will see this item monitored, Something like “Bandwidth Test” or the like more than enough. ![]() Since “Configuration” > “Services” add a service: I said, the Warning values must be greater than those of Critical, the lower the bandwidth available worse, no? □Īnd we created the service will check every minutes we indicate the maximum speed of download and upload to the server we indicate, and also if you download within 40 Warning will alert us if the discharge is less than 30 alert you with a critical event. The third argument is the Warning of the upload speed and the fourth argument is the critical value rise. Something like: “$CENTREONPLUGINS$/check_speedtest-cli.sh -w $ARG1$ -c $ARG2$ -W $ARG3$ -C $ARG4$ -l e -s $ARG5$”Ĭlick on “Describe arguments” and define the command arguments, to be, the first argument Warning download speed (in MB) and the second argument value when we alert with Critical if the download speed is still lower than the Warning. Command Line: The command to run, Substituting variables is the path where the plugin, and the arguments you pass.Comman Name: The command name, we usually use the name of the script directly, in this case check_speedtest-cli.sh. ![]() With “speedtest –list | less” we get the closest servers, ID or URL aim that most interested us check.ġ0512) Sarenet (Zamudio, Spain) ĥ161) you have (Donostia / San Sebastian, Spain) Ĥ158) (Bayonne, France) ġ5961) Sisnet (Pamplona, Spain) ĩ646) KNET (The Rioja, Spain) ġ1431) TeleCable (Gijón, Spain) ģ276) Telecable (Oviedo, Spain) Ĭome and therefore to enlist the Command in Centreon, since “Configuration” > “Commands” > “Add…” we see: Plus, if we want the graphic work we… you have to edit the line 401 and add just after “# append perfout if argument was passed to script” add in the following line: PerfData="TRUE"Īnd finally on the line 406 modify and leave it at that to get into the graphic also the value of latency, if you look only spends download and upload speed: perfout="|'latency'=$ping 'download'=$download $DLw $DLc 0 $(echo $MaxDL*1.05|bc) 'upload'=$upload $ULw $ULc 0 $(echo $MaxUL*1.05|bc)" We lower the script we'll use from: and let the machine Centreon, we move to the path of plugins Centreon and we do executable: mv check_speedtest-cli.sh /usr/lib/centreon/pluginsĮdit the script and the line 175 We modify bST = by bST =”/usr/bin” We set up a requirement that the script we will use will be supported by Centreon: pip install speedtest-cli Very simply, using a script we can do a speed test with a nearby server and monitor it with Centreon, we can receive alerts as long as the bandwidth is lower than the values that interest us! Another curiosity we can do with monitoring is to measure the bandwidth of the Internet connection of our organization. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |