Home Directory Plugins Network Connections, Stats and Bandwidth Check Usage information on Adam Internet connections

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Usage information on Adam Internet connections

Rating
0 votes
Favoured:
0
Current Version
0.3
Last Release Date
2013-08-30
Compatible With
  • Nagios 3.x
License
GPL
Hits
36105
Files:
FileDescription
check_usage_adam.goAdam Internet check script
check_usage_adam.cfgNagios check script config file
Check_Adam.cfgNagios router config
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Google GO script to query Adam Internet Australia's public API. Information like used download bytes, quota and even ADSL line speed and SNR info.
Adam Internet in Australia has a public API which returns an XML page of the current Internet Connection. Information like used download bytes, quota and even ADSL line speed and SNR info.
This Google Go script will query you 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_adam.go should be copied to the Nagios plugins lib folder (in Ubuntu: /usr/lib/nagios/plugins). Compile the script with go build check_usage_adam.go.
The second file I posted is the Nagios config file needed to be able to run the script, see check_usage_adam.cfg. This file lives in the Nagios-plugins config folder, in our system that is /etc/nagios-plugins/config.
The third file, Check_Adam.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).

Just added an example output of Nagios as image.

Update 0.3: 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.

Have fun with this and feel free to modify it.