GRAYBYTE WORDPRESS FILE MANAGER9571

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/local/lsws/add-ons/snmp_monitoring/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/local/lsws/add-ons/snmp_monitoring//sample.php
<?php

/*--------------------------------
assuming  following entry in /etc/snmp/snmpd.conf

pass .1.3.6.1.4.1.22253 /usr/bin/php smaple.php

if you change the default parent oid node: .1.3.6.1.4.1.22253, you must also modify the OID entries .xml files.
--------------------------------*/

error_reporting(E_ALL);
require_once("class.litespeed_snmp_bridge.php");

$processes = 1; //<-- value of > 1 only valid LiteSpeed Enterprise (num of cpus licensed)
$report_path = "/tmp/lshttpd/"; //<-- path to .rtreport folder. Default is /tmp/lshttpd/

$cache_time = 0; //<-- seconds to cache parsed data
$cache_file = "/tmp/_lsws_sampe_cache.txt"; //<-- cache file..full path.


//get params from snmpd pass mechanism
if(array_key_exists(1,$_SERVER["argv"]) && array_key_exists(2,$_SERVER["argv"])) {
	$type = trim($_SERVER["argv"][1]);
	$oid = trim($_SERVER["argv"][2]);

	$bridge = new litespeed_snmp_bridge($processes, $report_path, $cache_time, $cache_file);
	$bridge->process($type, $oid);

}

?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 13 2025 13:48:10
root / root
0755
README
0.315 KB
June 13 2025 13:48:06
root / root
0644
class.litespeed_snmp_bridge.php
6.274 KB
June 13 2025 13:48:06
root / root
0644
class.litespeed_stats.php
7.6 KB
June 13 2025 13:48:06
root / root
0644
litespeed_cacti_template.xml
83.35 KB
June 13 2025 13:48:06
root / root
0644
litespeed_extapp.xml
3.981 KB
June 13 2025 13:48:06
root / root
0644
litespeed_general.xml
5.222 KB
June 13 2025 13:48:06
root / root
0644
litespeed_vhost.xml
1.9 KB
June 13 2025 13:48:06
root / root
0644
sample.php
0.971 KB
June 13 2025 13:48:06
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF