Skip to content

Commit

Permalink
Merge pull request #19 from bb-Ricardo/master
Browse files Browse the repository at this point in the history
enhancing plugin, adding Icinga2 examples
  • Loading branch information
slauger committed Aug 12, 2017
2 parents c33a50f + c6801d5 commit 0fbf038
Show file tree
Hide file tree
Showing 6 changed files with 813 additions and 145 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.2.0 (2017-XX-XX)
- added command server to check status of Load Balancing Servers
- added command hwinfo to just print information about the Netscaler itself
- added command interfaces to check state of all interfaces and add performance data for each interface
- added command to request performance data
- added command to check the state of a servicegroup and its members (set warning and critical values for member quorum)
- added Icinga2 config templates

## 1.1.1 (2017-06-10)
- bugfix for servicegroups in 12.0 (#12)
- new option to connect to an alternate port (for CPX instances)
Expand Down
58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Currently the plugin has the following subcommands:
- **sslcert:** check the lifetime for installed ssl certificates
- **nsconfig:** check for configuration changes which are not saved to disk
- **staserver:** check if configured STA servers are available
- **server:** check status of Load Balancing Servers
- **servicegroup:** check the state of a servicegroup and its members
- **hwinfo:** just print information about the Netscaler itself
- **interfaces:** check state of all interfaces and add performance data for each interface
- **performancedata:** gather performancedata from all sorts of API endpoints
- **debug:** debug command, print all data for a endpoint

This plugin works with VPX, MPX, SDX and CPX NetScaler Appliances. The api responses may differ by build, appliance type and your installed license.
Expand Down Expand Up @@ -108,6 +113,51 @@ If you want to connect to your NetScaler with SSL/HTTPS you should also install
# NetScaler::STA::vs_vpn_gateway
./check_netscaler.pl -H ${IPADDR} -s -C staserver -n vs_vpn_gateway

## Check if Load Balancer server are working

# NetScaler::Server
./check_netscaler.pl -H ${IPADDR} -s -C server

## Check status of a service group
##### define member quorum (in percent) with warning and critical values
# NetScaler::Servicegroup::vs_vpn_gateway
./check_netscaler.pl -H ${IPADDR} -s -C servicegroup -n vs_vpn_gateway -w 75 -c 50

## Get information about the netscaler

# NetScaler::HWInfo
./check_netscaler.pl -H ${IPADDR} -s -C hwinfo

## Check status of all network interfaces

# NetScaler::Interfaces
./check_netscaler.pl -H ${IPADDR} -s -C interfaces

## Request performance data
##### all fields must be defined via "-n" option and be seperated with a comma

# NetScaler::Performancedata on Cache hit/misses
./check_netscaler.pl -H ${IPADDR} -s -C performancedata -o ns -n cachetothits,cachetotmisses

# NetScaler::Performancedata on tcp connections
./check_netscaler.pl -H ${IPADDR} -s -C performancedata -o ns -n tcpcurclientconn,tcpcurclientconnestablished,tcpcurserverconn,tcpcurserverconnestablished

# NetScaler::Performancedata on network interfaces
./check_netscaler.pl -H ${IPADDR} -s -C performancedata -o Interface -n id.totrxbytes

# NetScaler::Current user sessions
./check_netscaler.pl -H ${IPADDR} -s -C performancedata -o aaa -n aaacuricasessions,aaacuricaonlyconn

# find more object names to check out for object type "ns"
/check_netscaler.pl -H ${IPADDR} -s -C debug -o ns

# more interesting performance data object types
* ns
* cache
* protocolhttp
* protocolip
* protocoltcp

## Debug command
# Print all LB vServers (stat endpoint)
./check_netscaler.pl -H ${IPADDR} -s -C debug -o lbvserver
Expand All @@ -133,6 +183,14 @@ username=nagios
password=password
```

# Authors
- @slauger

# Contributors
- @macampo
- @Velociraptor85
- @bb-ricardo

# NITRO API Documentation

You will find a full documentation about the NITRO API on your NetScaler Appliance in the "Download" area.
Expand Down
Loading

0 comments on commit 0fbf038

Please sign in to comment.