Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
hatsof
byhatsof, September 30, 2013
Good, readable script for monitoring
"Current Client & Server connections in the Established state"
Needs slight modification for OID's that are obsolete after NetScaler ver 9.3
NetScaler MIB 10.1 :
my $oid_currentclient_conn = "1.3.6.1.4.1.5951.4.1.1.46.12.0"; # current client established connexion
my $oid_currentserver_conn = "1.3.6.1.4.1.5951.4.1.1.46.10.0"; # current server established connexion
regards,
Erwin
"Current Client & Server connections in the Established state"
Needs slight modification for OID's that are obsolete after NetScaler ver 9.3
NetScaler MIB 10.1 :
my $oid_currentclient_conn = "1.3.6.1.4.1.5951.4.1.1.46.12.0"; # current client established connexion
my $oid_currentserver_conn = "1.3.6.1.4.1.5951.4.1.1.46.10.0"; # current server established connexion
regards,
Erwin
byhatsof, September 30, 2013
Thanks Michael Pagano, for (re)creating a readable script for Citrix NetScaler :
check_netscaler_health.pl ver 0.2.1
With some modifications, it works great for our NetScaler MPX 5500 (ver 10.1).
Previously we used : "check_snmp_env" ver 0.7 from Michiel Timmers.
That script however stopt working, after we upgraded NetScaler from ver 9.3 to 10.1.
My guess is, as you commented in your script, because of the max_msg_size that has increased in ver 10.1
Adjustments to check_netscaler_health.pl ver 0.2.1 , for Citrix NetScaler MPX 5500 (ver 10.1) :
- session buffer maxMsgSize 5000 instead of 1500 "$session->max_msg_size(5000);"
this will prevent script error : "ERROR: Message size exceeded buffer maxMsgSize : UNKNOWN"
- Adjusted power supply +12V and -12V minimum values (millivolt) :
changed +12V power supply minimum value from 10800 to 9500 (Reference Value 9500 - 13200 mv.)
changed -12V power supply maximum value from 10800 to 9500 (Reference Value -13200 - -9500 mv.)
- Adjusted processor core voltage minimum value (millivolt):
changed minimum value from 1080 to 1040 (Reference Value 1040 - 1650 mv.)
- Adjusted cpu temperature minimum value (degrees):
changed minimum value from 35 to 27 degrees (changed range 35 - 88 degrees to 27 - 88 degrees)
- Adjusted non defined voltage descriptions minimum value (millivolt):
i.e. be sure to skip 0 mV values for "AuxiliaryVoltage0" - "AuxiliaryVoltage7"
changed minimum value, from " > 1000 " to " >= 0 "
- Adjusted power supply check, "NOT SUPPORTED" and "NOT PRESENT" isn't always true
model Netscaler MPX 5500 only has ONE Power Supply slot, however:
readout with SNMP on OID's , with this original perl nagios script, suggests total 4 slots available.
of which 2/4 Power Supply units status are 'ok' , and 2 are in 'critical in error' :
PowerSupply3FailureStatus and PowerSupply4FailureStatus - "OK"
PowerSupply1FailureStatus and PowerSupply2FailureStatus - "Not Supported"
see Netscaler MIB NS10.1 : sysHealthPowerSupplyStatus - status of power supply unit
Power Supply check $final_status Values are NORMAL = 0 ; NOT PRESENT = 1 ; FAILED = 2 ; NOT SUPPORTED = 3.
Tuned $final_status , so it doesn't return "WARNING" for status = 3 "Not Supported", but an "OK" status.
check_netscaler_health.pl ver 0.2.1
With some modifications, it works great for our NetScaler MPX 5500 (ver 10.1).
Previously we used : "check_snmp_env" ver 0.7 from Michiel Timmers.
That script however stopt working, after we upgraded NetScaler from ver 9.3 to 10.1.
My guess is, as you commented in your script, because of the max_msg_size that has increased in ver 10.1
Adjustments to check_netscaler_health.pl ver 0.2.1 , for Citrix NetScaler MPX 5500 (ver 10.1) :
- session buffer maxMsgSize 5000 instead of 1500 "$session->max_msg_size(5000);"
this will prevent script error : "ERROR: Message size exceeded buffer maxMsgSize : UNKNOWN"
- Adjusted power supply +12V and -12V minimum values (millivolt) :
changed +12V power supply minimum value from 10800 to 9500 (Reference Value 9500 - 13200 mv.)
changed -12V power supply maximum value from 10800 to 9500 (Reference Value -13200 - -9500 mv.)
- Adjusted processor core voltage minimum value (millivolt):
changed minimum value from 1080 to 1040 (Reference Value 1040 - 1650 mv.)
- Adjusted cpu temperature minimum value (degrees):
changed minimum value from 35 to 27 degrees (changed range 35 - 88 degrees to 27 - 88 degrees)
- Adjusted non defined voltage descriptions minimum value (millivolt):
i.e. be sure to skip 0 mV values for "AuxiliaryVoltage0" - "AuxiliaryVoltage7"
changed minimum value, from " > 1000 " to " >= 0 "
- Adjusted power supply check, "NOT SUPPORTED" and "NOT PRESENT" isn't always true
model Netscaler MPX 5500 only has ONE Power Supply slot, however:
readout with SNMP on OID's , with this original perl nagios script, suggests total 4 slots available.
of which 2/4 Power Supply units status are 'ok' , and 2 are in 'critical in error' :
PowerSupply3FailureStatus and PowerSupply4FailureStatus - "OK"
PowerSupply1FailureStatus and PowerSupply2FailureStatus - "Not Supported"
see Netscaler MIB NS10.1 : sysHealthPowerSupplyStatus - status of power supply unit
Power Supply check $final_status Values are NORMAL = 0 ; NOT PRESENT = 1 ; FAILED = 2 ; NOT SUPPORTED = 3.
Tuned $final_status , so it doesn't return "WARNING" for status = 3 "Not Supported", but an "OK" status.