huawei olt MA 5600 Series host templates docs.

How to configuring Huawei olt host template in cacti

Step by Step Instruction:

Step1:

Download Huawei olt MA5600 host template from here:

Step2:

      Copy ont-opl.xml file into /var/www/html/cacti/resource/script_queries

 

 

Step2.1:

    Copy  huawei_ont.xml & huawei_olt_cpu.xml both files into /var/www/html/cacti/resource/snmp_queries

 

Step2.2:

   Copy      ont_opl.php file into /var/www/html/cacti/scripts

 

Step2.3:

    Copy  ontopl_poller.php file into /var/www/html/cacti/

 

Note: if you getting a error or script is not working properly you must change in ontopl_poller.php file on line 98
your php did not have ereg function.

replace this line:

ereg("^.*([0-9]{10,20}.[0-9]{1,3})",$snmpONT_OID_ar[0],$oid_regex);


with this:

preg_match("/^.*([0-9]{10,20}.[0-9]{1,3})/",trim($snmpONT_OID_ar[0]),$oid_regex);

Step3:

Import  ONT.sql file into cacti DB

     mysql -u root -p cacti < /file_path/ont.sql

 

Step4:

        Import    cacti_host_template_olt_huawei_ma5600 file into cacti NMS using import/export tab

Step5:

Create a cron.d tab

sudo nano /etc/cron.d/ontpoller
and paste the script

*/5 * * * * www-data php /var/www/html/
cacti/ontopl_poller.php > /dev/null 2>&1

 

please make sure your cacti folder path i.e /var/www/html/cacti
_________________________________________________________________________________________________________

 

 

 

 

 

 

 

 

 

 

this is my output graphs that I have uploaded on cacti forum:

 

 

Comments

Popular posts from this blog

Installing NFSEN & NFDUMP on Ubuntu and Next integrate with LibreNMS

IP Core Networks | Your Education, Your Choice

How to Install & Integrate Oxidized Into LibreNMS