getStatusResp()
Description:
Get the status of this server instance as a numeric value.
Returns:
A numeric value indicating the status:
0: There are no problems with this server instance.
1: There is an ‘informational’ status available, but the server instance is functional.
2: There is a problem with this server instance.
Example:
// If there is a problem with this server instance, print the status (accessible
using ‘lastrun’ command).
$sp = srvpool::getByName(“sp00”);
$si = si::getByName($sp, "sv00");
if ($si->getStatusResp() == 2) {
echo $si->getStatusDescription();
}
getCurrentWeight()
Description:
Get the dynamic weight of this server instance as a numeric value.
Returns:
A numeric value indicating the weight.
Example:
// Print the current weight (accessible using ‘lastrun’ command).
$sp = srvpool::getByName(“sp00”);
$si = si::getByName($sp, "sv00");
if ($si->getStatusResp() == 2) {
echo $si->getCurrentWeight();
}
stats(string statName)
Description:
Get the value of the statistic named
‘statName’
. The available statistics are the same as those displayed in
the CLI when using the srvpool <name> si <name> stats command.
Returns:
On success, the last-measured value of this statistic. On failure, an exception describing what went wrong:
invalid statistic name or no statistic specified.
Example
:
$sp = srvpool::getByName(“sp00”);
$si = si::getByName($sp, "sv00");
if ($si->stats(“TOTALPRCSD”) > 100) {
echo “Processed more than 100 requests through sv00”;
}
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
All Rights Reserved.
693
Equalizer Administration Guide
Содержание Equalizer GX Series
Страница 18: ......
Страница 32: ...Overview 32 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Страница 42: ......
Страница 52: ......
Страница 64: ......
Страница 72: ......
Страница 76: ......
Страница 123: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 123 Equalizer Administration Guide ...
Страница 228: ......
Страница 238: ......
Страница 411: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 411 Equalizer Administration Guide ...
Страница 459: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 459 Equalizer Administration Guide ...
Страница 476: ......
Страница 492: ......
Страница 530: ......
Страница 614: ......
Страница 626: ......
Страница 638: ......
Страница 678: ......
Страница 732: ...Using SNMP Traps 732 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Страница 754: ......
Страница 790: ......
Страница 804: ......
Страница 842: ......
Страница 847: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 847 Equalizer Administration Guide ...
Страница 866: ......