Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancing plugin, adding Icinga2 examples #19

Merged
merged 31 commits into from
Aug 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
470a953
Create icinga2_command.conf
bb-Ricardo Aug 10, 2017
ae234f8
added icinga2 service templates
bb-Ricardo Aug 10, 2017
a1eddd7
fixed templates description
bb-Ricardo Aug 10, 2017
f4c3bf3
removing trailing white spaces
bb-Ricardo Aug 10, 2017
c6c85a4
added three new commands to check_netscaler.pl
bb-Ricardo Aug 10, 2017
33a4c1d
Add version information to main script
bb-Ricardo Aug 10, 2017
45f36c2
Changelog Update
bb-Ricardo Aug 10, 2017
0fc6093
Added new commands to README
bb-Ricardo Aug 10, 2017
f56b807
Update README.md
bb-Ricardo Aug 10, 2017
ec365b0
add IP adresses to server out in check_netscaler
bb-Ricardo Aug 10, 2017
2d71db1
added new option to gather performancedata
bb-Ricardo Aug 10, 2017
a842b41
added command performancedata to Changelog
bb-Ricardo Aug 10, 2017
c368613
added "performancedata" command to README
bb-Ricardo Aug 10, 2017
fb32f29
added a contributers section to README
bb-Ricardo Aug 10, 2017
7fce71e
performancedata command van now parse arrays
bb-Ricardo Aug 10, 2017
9c6b9fe
fixed issue with interfaces perf data output
bb-Ricardo Aug 10, 2017
4f58ef6
Added new command servicegroup
bb-Ricardo Aug 10, 2017
8bc0dd2
Update CHANGELOG.md
bb-Ricardo Aug 10, 2017
f556478
added command servicegroup to README
bb-Ricardo Aug 10, 2017
61ef37c
unified threshold functions to check_threshold
bb-Ricardo Aug 10, 2017
2817c47
enhanced performance data output for "perfromancedata"
bb-Ricardo Aug 11, 2017
1c4c25d
added member quorum check to servicegroup command
bb-Ricardo Aug 11, 2017
1f72196
updated CHANGELOG for servicegroup command
bb-Ricardo Aug 11, 2017
dcaaf93
Updated README with latest changes
bb-Ricardo Aug 11, 2017
28949d4
merged check_string and check_string_not into one function
bb-Ricardo Aug 11, 2017
2d286c1
make use of nagios_die
bb-Ricardo Aug 11, 2017
5ddac46
added ICA User session example to README
bb-Ricardo Aug 11, 2017
49b50d5
adding cli option -x (urlopts)
bb-Ricardo Aug 11, 2017
d5c7a3e
added new commands to Icinga2 templates
bb-Ricardo Aug 11, 2017
66025c7
Added Icinga2 service examples
bb-Ricardo Aug 11, 2017
c6801d5
fixed typo in icinga2 templates file
bb-Ricardo Aug 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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