Advertisement
Guest User

Nems 1.5.2 - output Speedtest

a guest
Sep 12th, 2022
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. Current Status: UNKNOWN
  2. (for 0d 2h 7m 38s) (Has been acknowledged)
  3. Status Information: Download Warning Level = 10
  4. Download Critical Level = 7
  5. Upload Warning Level = 10
  6. Upload Critical Level = 7
  7. Server Location = e
  8. Server URL or Integer = 0
  9. External Server defined
  10. count = 3
  11. You do not have the expected number of indices in your output from SpeedTest. Is it correctly installed? Try running the check with the -V argument to see what is going wrong.
  12. ******************************************************************************************
  13.  
  14. NEMS speedtest-cli plugin - Version: 1.6
  15.  
  16. OPTIONS:
  17. -h Show this message
  18. -w Download Warning Level - *Required* - integer or floating point
  19. -c Download Critical Level - *Required* - integer or floating point
  20. -W Upload Warning Level - *Required* - integer or floating point
  21. -C Upload Critical Level - *Required* - integer or floating point
  22. -l Location of speedtest server - *Required * - takes either "i" or "e". If you pass "i" for
  23. Internal then you will need to pass the URL of the Mini Server to the "s" option. If you pass
  24. "e" for External then you must pass the server integer to the "s" option.
  25. -s Server integer or URL for the speedtest server to test against - *Required* - Run
  26. "speedtest --list
  27. Performance Data: less" to find your nearest server and note the number of the server or use the URL of an internal Speedtest Mini Server -p Output Performance Data -m Download Maximum Level - *Required if you request perfdata* - integer or floating point Provide the maximum possible download level in Mbit/s for your connection -M Upload Maximum Level - *Required if you request perfdata* - integer or floating point Provide the maximum possible upload level in Mbit/s for your connection -v Output plugin version -V Output debug info for testing This script will output the Internet Connection Speed using speedtest-cli to Nagios. You need to have installed speedtest-cli on your system first and ensured that it is working by calling "speedtest --simple". See here: https://github.com/sivel/speedtest-cli for info about speedtest-cli First you MUST define the location of your speedtest install in the script or this will not work. The speedtest-cli can take some time to return its result. I recommend that you set the service_check_timeout value in your main nagios.cfg to 120 to allow time for this script to run; but test yourself and adjust accordingly. You also need to have access to bc on your system for this script to work and that it exists in your path. Your warning levels must be higher than your critical levels for both upload and download. Performance Data will output upload and download speed against matching warning and critical levels. Jon Witts ******************************************************************************************
  28. Current Attempt: 5/5 (HARD state)
  29. Last Check Time: 2022-09-12 20:40:41
  30. Check Type: ACTIVE
  31. Check Latency / Duration: 0,000 / 0,000 seconds
  32. Next Scheduled Check: 2022-09-12 20:41:41
  33. Last State Change: 2022-09-12 18:33:31
  34. Last Notification: 2022-09-12 18:51:59 (notification 1)
  35. Is This Service Flapping?
  36. NO
  37. (0,00% state change)
  38. In Scheduled Downtime?
  39. NO
  40. Last Update: 2022-09-12 20:41:08 ( 0d 0h 0m 1s ago)
  41. Active Checks:
  42. ENABLED
  43. Passive Checks:
  44. ENABLED
  45. Obsessing:
  46. ENABLED
  47. Notifications:
  48. ENABLED
  49. Event Handler:
  50. ENABLED
  51. Flap Detection:
  52. ENABLED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement