Created
October 7, 2013 23:01
-
-
Save strangeman/6876466 to your computer and use it in GitHub Desktop.
Monitor LSWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Get latest LiteSpeed Web Server stats | |
# | |
# somewhere from zabbix forums | |
# | |
# add to cron: | |
#* * * * * /etc/zabbix/scripts/send_lsws_stats.pl --host=client.com --server=server.com > /dev/null 2>&1 | |
# | |
use English '-no_match_vars'; | |
use Getopt::Long qw(:config auto_version auto_help); | |
# Set defaults | |
my $reportFile = "/tmp/lshttpd/.rtreport"; | |
my $sender = "/usr/bin/zabbix_sender"; | |
my $server = "server.com"; | |
my $port = "10051"; | |
my $host = "client.com"; | |
my $tmpFile = "/tmp/zabbix_lshttpd_stats.txt"; | |
my $verbose = 0; | |
# Get command line options | |
$result = GetOptions( | |
"reportfile=s" => \$reportFile, | |
"tmpfile=s" => \$tmpFile, | |
"sender=s" => \$sender, | |
"server=s" => \$server, | |
"host=s" => \$host, | |
"verbose!" => \$verbose | |
); | |
if (! -e "$reportFile") { | |
print "$reportFile not found"; | |
exit 1; | |
} | |
open(REPORT, $reportFile); | |
@report = <REPORT>; | |
close(REPORT); | |
my $version = $1 if ($report[get_line("VERSION:")] =~ /VERSION:\ (.*)\n?/g); | |
my $uptime = $1 if ($report[get_line("UPTIME:")] =~ /UPTIME:\ (\d\d:\d\d:\d\d)/g); | |
my $bps = $report[get_line("BPS_IN:")]; | |
my $conn = $report[get_line("MAXCONN:")]; | |
my $req_rate = $report[get_line("REQ_RATE \\[\\]:")]; | |
my $php = $report[get_line("EXTAPP \\[LSAPI\\] \\[\\] \\[lsphp5\\]:")]; | |
my $bps_in = $1 if ($bps =~ /BPS_IN:\ (\d+)/g); | |
my $bps_out = $1 if ($bps =~ /BPS_OUT:\ (\d+)/g); | |
my $ssl_bps_in = $1 if ($bps =~ /SSL_BPS_IN:\ (\d+)/g); | |
my $ssl_bps_out = $1 if ($bps =~ /SSL_BPS_OUT:\ (\d+)/g); | |
my $maxconn = $1 if ($conn =~ /MAXCONN:\ (\d+)/g); | |
my $maxssl_conn = $1 if ($conn =~ /MAXSSL_CONN:\ (\d+)/g); | |
my $plainconn = $1 if ($conn =~ /PLAINCONN:\ (\d+)/g); | |
my $availconn = $1 if ($conn =~ /AVAILCONN:\ (\d+)/g); | |
my $idleconn = $1 if ($conn =~ /IDLECONN:\ (\d+)/g); | |
my $sslconn = $1 if ($conn =~ /SSLCONN:\ (\d+)/g); | |
my $availssl = $1 if ($conn =~ /AVAILSSL:\ (\d+)/g); | |
my $req_processing = $1 if ($req_rate =~ /REQ_PROCESSING:\ (\d+)/g); | |
my $req_per_sec = $1 if ($req_rate =~ /REQ_PER_SEC:\ (\d+)/g); | |
my $tot_reqs = $1 if ($req_rate =~ /TOT_REQS:\ (\d+)/g); | |
my $php_cmaxconn = $1 if ($php =~ /CMAXCONN:\ (\d+)/g); | |
my $php_emaxconn = $1 if ($php =~ /EMAXCONN:\ (\d+)/g); | |
my $php_pool_size = $1 if ($php =~ /POOL_SIZE:\ (\d+)/g); | |
my $php_inuse_conn = $1 if ($php =~ /INUSE_CONN:\ (\d+)/g); | |
my $php_idle_conn = $1 if ($php =~ /IDLE_CONN:\ (\d+)/g); | |
my $php_waitque_depth = $1 if ($php =~ /WAITQUE_DEPTH:\ (\d+)/g); | |
my $php_req_per_sec = $1 if ($php =~ /REQ_PER_SEC:\ (\d+)/g); | |
my $php_tot_reqs = $1 if ($php =~ /TOT_REQS:\ (\d+)/g); | |
unlink($tmpFile); | |
open(TMPFILE, ">>" . $tmpFile); | |
print TMPFILE "$host lsws.version $version\n"; | |
print TMPFILE "$host lsws.uptime $uptime\n"; | |
print TMPFILE "$host lsws.bps_in $bps_in\n"; | |
print TMPFILE "$host lsws.bps_out $bps_out\n"; | |
print TMPFILE "$host lsws.ssl_bps_in $ssl_bps_in\n"; | |
print TMPFILE "$host lsws.ssl_bps_out $ssl_bps_out\n"; | |
print TMPFILE "$host lsws.maxconn $maxconn\n"; | |
print TMPFILE "$host lsws.maxssl_conn $maxssl_conn\n"; | |
print TMPFILE "$host lsws.plainconn $plainconn\n"; | |
print TMPFILE "$host lsws.availconn $availconn\n"; | |
print TMPFILE "$host lsws.idleconn $idleconn\n"; | |
print TMPFILE "$host lsws.sslconn $sslconn\n"; | |
print TMPFILE "$host lsws.availssl $availssl\n"; | |
print TMPFILE "$host lsws.req_processing $req_processing\n"; | |
print TMPFILE "$host lsws.req_per_sec $req_per_sec\n"; | |
print TMPFILE "$host lsws.tot_reqs $tot_reqs\n"; | |
print TMPFILE "$host lsws.php_cmaxconn $php_cmaxconn\n"; | |
print TMPFILE "$host lsws.php_emaxconn $php_emaxconn\n"; | |
print TMPFILE "$host lsws.php_pool_size $php_pool_size\n"; | |
print TMPFILE "$host lsws.php_inuse_conn $php_inuse_conn\n"; | |
print TMPFILE "$host lsws.php_idle_conn $php_idle_conn\n"; | |
print TMPFILE "$host lsws.php_waitque_depth $php_waitque_depth\n"; | |
print TMPFILE "$host lsws.php_req_per_sec $php_req_per_sec\n"; | |
print TMPFILE "$host lsws.php_tot_reqs $php_tot_reqs\n"; | |
close(TMPFILE); | |
my $vv = ($verbose) ? " -vv" : ""; | |
system("$sender --zabbix-server '$server' --port '$port' -i '$tmpFile'$vv"); | |
#unlink($tmpFile); | |
exit 0; | |
sub get_line | |
{ | |
my $needle = $_[0]; | |
my $i = 0; | |
foreach (@report) { | |
if ($_ =~ m/$needle/) { | |
return $i; | |
} | |
$i++; | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export version="1.0" date="03.04.10" time="00.09"> | |
<hosts> | |
<host name="Template_App_LSWS"> | |
<proxy_hostid>0</proxy_hostid> | |
<useip>1</useip> | |
<dns></dns> | |
<ip>127.0.0.1</ip> | |
<port>10050</port> | |
<status>3</status> | |
<useipmi>0</useipmi> | |
<ipmi_ip>127.0.0.1</ipmi_ip> | |
<ipmi_port>623</ipmi_port> | |
<ipmi_authtype>0</ipmi_authtype> | |
<ipmi_privilege>2</ipmi_privilege> | |
<ipmi_username></ipmi_username> | |
<ipmi_password></ipmi_password> | |
<groups> | |
<group>Templates</group> | |
</groups> | |
<triggers> | |
<trigger> | |
<description>LSWS (lshttpd) is not running on {HOSTNAME}</description> | |
<type>0</type> | |
<expression>{Template_App_LSWS:proc.num[lshttpd].last(0)}<1</expression> | |
<url></url> | |
<status>0</status> | |
<priority>3</priority> | |
<comments></comments> | |
</trigger> | |
<trigger> | |
<description>LSWS (lsphp5) is not running on {HOSTNAME}</description> | |
<type>0</type> | |
<expression>{Template_App_LSWS:proc.num[lsphp5].last(0)}<1</expression> | |
<url></url> | |
<status>0</status> | |
<priority>3</priority> | |
<comments></comments> | |
</trigger> | |
</triggers> | |
<items> | |
<item type="7" key="lsws.availconn" value_type="0"> | |
<description>LSWS - Available connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.availssl" value_type="0"> | |
<description>LSWS - Available connections (SSL)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.bps_in" value_type="0"> | |
<description>LSWS - Bytes per second (In)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units>b/s</units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.bps_out" value_type="0"> | |
<description>LSWS - Bytes per second (Out)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units>b/s</units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.idleconn" value_type="0"> | |
<description>LSWS - Idle connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.maxconn" value_type="0"> | |
<description>LSWS - Max connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.maxssl_conn" value_type="0"> | |
<description>LSWS - Max connections (SSL)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_cmaxconn" value_type="0"> | |
<description>LSWS PHP - Max connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_emaxconn" value_type="0"> | |
<description>LSWS PHP - Effective max connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_idle_conn" value_type="0"> | |
<description>LSWS PHP - Idle connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_inuse_conn" value_type="0"> | |
<description>LSWS PHP - In-use connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_pool_size" value_type="0"> | |
<description>LSWS PHP - Pool size</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_req_per_sec" value_type="0"> | |
<description>LSWS PHP - Requests per second</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_tot_reqs" value_type="0"> | |
<description>LSWS PHP - Total requests</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.php_waitque_depth" value_type="0"> | |
<description>LSWS PHP - Wait queue depth</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS PHP Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.plainconn" value_type="0"> | |
<description>LSWS - Active connections</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.req_per_sec" value_type="0"> | |
<description>LSWS - Requests per second</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.req_processing" value_type="0"> | |
<description>LSWS - Requests processing</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.sslconn" value_type="0"> | |
<description>LSWS - Active connections (SSL)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.ssl_bps_in" value_type="0"> | |
<description>LSWS - Bytes per second (SSL In)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units>b/s</units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.ssl_bps_out" value_type="0"> | |
<description>LSWS - Bytes per second (SSL Out)</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units>b/s</units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.tot_reqs" value_type="0"> | |
<description>LSWS - Total requests</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>7</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.uptime" value_type="4"> | |
<description>LSWS - Uptime</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>0</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="7" key="lsws.version" value_type="4"> | |
<description>LSWS - Version</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>365</history> | |
<trends>0</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>1</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community>public</snmp_community> | |
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS Stats</application> | |
</applications> | |
</item> | |
<item type="0" key="proc.num[lshttpd]" value_type="3"> | |
<description>Number of running processes lshttpd</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>7</history> | |
<trends>365</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>0</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community></snmp_community> | |
<snmp_oid></snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS</application> | |
</applications> | |
</item> | |
<item type="0" key="proc.num[lsphp5]" value_type="3"> | |
<description>Number of running processes lsphp5</description> | |
<ipmi_sensor></ipmi_sensor> | |
<delay>60</delay> | |
<history>7</history> | |
<trends>365</trends> | |
<status>0</status> | |
<data_type>0</data_type> | |
<units></units> | |
<multiplier>0</multiplier> | |
<delta>0</delta> | |
<formula>0</formula> | |
<lastlogsize>0</lastlogsize> | |
<logtimefmt></logtimefmt> | |
<delay_flex></delay_flex> | |
<authtype>0</authtype> | |
<username></username> | |
<password></password> | |
<publickey></publickey> | |
<privatekey></privatekey> | |
<params></params> | |
<trapper_hosts></trapper_hosts> | |
<snmp_community></snmp_community> | |
<snmp_oid></snmp_oid> | |
<snmp_port>161</snmp_port> | |
<snmpv3_securityname></snmpv3_securityname> | |
<snmpv3_securitylevel>0</snmpv3_securitylevel> | |
<snmpv3_authpassphrase></snmpv3_authpassphrase> | |
<snmpv3_privpassphrase></snmpv3_privpassphrase> | |
<applications> | |
<application>LSWS</application> | |
</applications> | |
</item> | |
</items> | |
<templates/> | |
<graphs/> | |
<macros/> | |
</host> | |
</hosts> | |
<dependencies/> | |
</zabbix_export> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment