Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Current Status: UNKNOWN
- (for 0d 2h 7m 38s) (Has been acknowledged)
- Status Information: Download Warning Level = 10
- Download Critical Level = 7
- Upload Warning Level = 10
- Upload Critical Level = 7
- Server Location = e
- Server URL or Integer = 0
- External Server defined
- count = 3
- 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.
- ******************************************************************************************
- NEMS speedtest-cli plugin - Version: 1.6
- OPTIONS:
- -h Show this message
- -w Download Warning Level - *Required* - integer or floating point
- -c Download Critical Level - *Required* - integer or floating point
- -W Upload Warning Level - *Required* - integer or floating point
- -C Upload Critical Level - *Required* - integer or floating point
- -l Location of speedtest server - *Required * - takes either "i" or "e". If you pass "i" for
- Internal then you will need to pass the URL of the Mini Server to the "s" option. If you pass
- "e" for External then you must pass the server integer to the "s" option.
- -s Server integer or URL for the speedtest server to test against - *Required* - Run
- "speedtest --list
- 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 ******************************************************************************************
- Current Attempt: 5/5 (HARD state)
- Last Check Time: 2022-09-12 20:40:41
- Check Type: ACTIVE
- Check Latency / Duration: 0,000 / 0,000 seconds
- Next Scheduled Check: 2022-09-12 20:41:41
- Last State Change: 2022-09-12 18:33:31
- Last Notification: 2022-09-12 18:51:59 (notification 1)
- Is This Service Flapping?
- NO
- (0,00% state change)
- In Scheduled Downtime?
- NO
- Last Update: 2022-09-12 20:41:08 ( 0d 0h 0m 1s ago)
- Active Checks:
- ENABLED
- Passive Checks:
- ENABLED
- Obsessing:
- ENABLED
- Notifications:
- ENABLED
- Event Handler:
- ENABLED
- Flap Detection:
- ENABLED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement