Welcome to the Initech Technical Wiki. Here you'll find bits and pieces of useful stuff related to anything that I find interesting or IP that i've developed. Everything you find here is free to use for whatever nefarious purposes you may have in mind but needless to say that i'm not responsible for anything that goes wrong. If you need help with anything or just want to contact me then its best to email me at email@example.com
- 1 Juniper Networks Stuff
- 2 Linux Stuff
- 2.1 General
- 2.2 Rancid
- 2.3 nagios
- 3 Logstash
- 4 Zenoss
- 5 Archery
- 6 Brewing
- 7 Weather
Juniper Networks Stuff
The purpose of this script is to take a juniper config and convert it to set commands. This makes it easier to parse with scripts and paste snippets into other routers.
This is a library of custom config fetchers and patches to existing files
Want a script which syncs your cacti hosts into rancid and your /etc/hosts file? This sync-cacti script may be for you (use it with caution).
For those of us who manage hundreds of devices via rancid its tricky to remember what they're called and which particular login binary to use to access them. I made my "con" script to automate this.
Juniper related scripts
This script assumes that you want to set your RSVP interface IGP metrics to the same as your bearer latency. It automagically assesses the latency of each link and then recommends configuration changes if necessary.
This custom nagios plugin checks to make sure that all Juniper virtual chassis members are present and running the same version. You need to provide the hostname, SNMP community and number of expected virtual chassis members.
This custom nagios plugin checks to make sure that the the expected number of power supply units are installed and operating in the chassis. There have been times when installed power supplies (in MX chassis) lose AC power but it doesn't alarm. In unattended locations this could be disastrous.
This script takes three arguments: Hostname, SNMP Community and expected PSU count. It will warn if more PSUs than expected are installed and critical alarm if less than expected are found. This script will also work for Juniper EX-series virtual chassis and the sum-total of installed PSUs in the whole virtual chassis is what you should use as the argument.
The script checks for PSUs installed and in state '2' according to the list below of valid states:
- Up and running
- Ready to run, not running yet
- Held in reset, not ready yet
- Running at Full Speed (valid for fans only)
- Down or off (for power supply)
- Running as a standby (Backup)
This script i wrote to check the processing queue lengths of FortiSandbox appliances. Sometimes a FortiSandbox will stop processing jobs for no adequately explainable reason so i created this script to keep an eye on the job queues.
The script takes 6 arguments: Hostname, SNMP Community, queue warning level, queue critical level, total jobs warning level and total jobs critical level.
For each queue below it will check to make sure that each one has less items than the 'queue warning level'. At the end it totals all files in all queues and checks the total against the 'total jobs warning level'
Job Queues Checked
- .22.214.171.124.4.1.123126.96.36.199.1.0 = Executables/DLL/VBS/BAT/PS1/JAR/MSI queue size
- .188.8.131.52.4.1.123184.108.40.206.2.0 = PDF files queue size
- .220.127.116.11.4.1.12318.104.22.168.3.0 = Office files queue size
- .22.214.171.124.4.1.123126.96.36.199.4.0 = Flash files queue size
- .188.8.131.52.4.1.123184.108.40.206.5.0 = Web files queue size
- .220.127.116.11.4.1.12318.104.22.168.6.0 = Android files queue size
- .22.214.171.124.4.1.123126.96.36.199.7.0 = Android files queue size
- .188.8.131.52.4.1.123184.108.40.206.8.0 = URL job queue size
- .220.127.116.11.4.1.12318.104.22.168.9.0 = User defined files queue size
- .22.214.171.124.4.1.123126.96.36.199.10.0 = Non sandbox queue size
- .188.8.131.52.4.1.123184.108.40.206.11.0 = Job Queue Assignment Pending
This script checks all the mail queues in a FortiMail system and for each one prints the name and the message count and warns or alarms depending on warning and critical levels specified.
The script takes the following arguments: Hostname, SNMP Community, Queue warning level, Queue critical level
This is where i'll be recording all sorts of archery information, some of it specific to me and my setup
All my brewing info
You can find the webpage of my personal weather station here.