Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Usage information on Internode Internet connections
0.3
2016-08-05
- Nagios 3.x
GPL
35715
File | Description |
---|---|
check_usage_internode.go | Internode check script |
check_usage_internode.cfg | Nagios command configuration file |
Check_Internode.cfg | Example router config |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Internode Internet in Australia has a public API which returns an XML page of the current Internet Connection. Information like used download bytes, quota and percent used.
Based on my previous check_usage_adam.go, this Google Go script will query your account info and can be used to monitor various indicators, our favorite and reason to create this, is percentage download usage. See the script for detailed info and usage. The script, check_usage_internode.go should be copied to the Nagios plugins lib folder (in Ubuntu: /usr/lib/nagios/plugins) and compiled with go build check_usage_internode.go.
The second file I posted is the Nagios config file needed to be able to run the script, see check_usage_internode.cfg. This file lives in the Nagios-plugins config folder, in our system that is /etc/nagios-plugins/config.
The third file, Check_Internode.cfg, is an example of the router configuration file in Nagios. This is where the command in the previous config file is called. Please note that the arguments to the check script are all case-sensitive!
You can also run this script on your Windows PC, provided you have installed the Google Go language, see http://golang.org/. Also your linux machine need this language installed (apt-get install golang).
Update 0.2: Found that the return codes are not transferred the way we ran this script and that we better compile the script (see comment in script). Config file is also changed. Also added "days to go" after the usage_percent.
Update 0.3: Internode now has unlimited plans whereby the quote = 0.
Have fun with this and unfortunately this script is registered with Internode and should not be modified without letting me know. You can always register yourself with Internode if you so wish.
Based on my previous check_usage_adam.go, this Google Go script will query your account info and can be used to monitor various indicators, our favorite and reason to create this, is percentage download usage. See the script for detailed info and usage. The script, check_usage_internode.go should be copied to the Nagios plugins lib folder (in Ubuntu: /usr/lib/nagios/plugins) and compiled with go build check_usage_internode.go.
The second file I posted is the Nagios config file needed to be able to run the script, see check_usage_internode.cfg. This file lives in the Nagios-plugins config folder, in our system that is /etc/nagios-plugins/config.
The third file, Check_Internode.cfg, is an example of the router configuration file in Nagios. This is where the command in the previous config file is called. Please note that the arguments to the check script are all case-sensitive!
You can also run this script on your Windows PC, provided you have installed the Google Go language, see http://golang.org/. Also your linux machine need this language installed (apt-get install golang).
Update 0.2: Found that the return codes are not transferred the way we ran this script and that we better compile the script (see comment in script). Config file is also changed. Also added "days to go" after the usage_percent.
Update 0.3: Internode now has unlimited plans whereby the quote = 0.
Have fun with this and unfortunately this script is registered with Internode and should not be modified without letting me know. You can always register yourself with Internode if you so wish.
Reviews (0)
Be the first to review this listing!