SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
Express-Guide
                                      ~to~
                               Basic Setup of


                             Cacti
                 an IT Infrastructure Monitoring Solution
                                              by, ABK ~ http://www.twitter.com/aBionic


                                ::Task Detail::

   Setting up Cacti for IT Infrastructure Service Graphing solution.



                                ::Background::

Links: http://www.cacti.net/
Cacti is a complete network graphing solution designed to harness the power of
RRDTool's data storage and graphing functionality. Here RRDTool was supposed to
poll data on secured SNMPv3 channels from host and these data will be analyzed
on Graphs using Cacti.



                            ::Execution Method::

   Pre-Requisite:
    Installing/Updating all these, at shell (say for Fedora/CentOS)
    ◦ #yum -y install php php-get php-mysql php-pear
    ◦ #yum -y install php-common php-devel php-mbstring
    ◦ #yum -y install php-cli php-snmp php-pear-net-smtp
    ◦ #yum -y install rrdtool httpd mysql mysql-server mysql-devel
    ◦ #yum -y install net-snmp net-snmp-utils net-snmp-devel net-snmp-libs

   Steps
    ◦ Configure all the pre-requisites for the settings you wanna be
       implemented for Cacti (esp. the SNMP Community String)

     ◦ Adding required users and groups, at shell
       ▪ #groupadd cacti
       ▪ #useradd -g cacti cactiuser
◦ Configuring MySQL server
  ▪ #mysqladmin -u root password newPassword
  ▪ #mysql -u root -p$Whatever_Password_You_Want
  ▪ mysql>CREATE DATABASE cactidb;
  ▪ mysql>GRANT ALL ON cactidb.* TO root;
  ▪ mysql>GRANT ALL ON cactidb.* TO root@localhost;
  ▪ mysql>GRANT ALL ON cactidb.* TO cacti;
  ▪ mysql>GRANT ALL ON cactidb.* TO cacti@localhost;
  ▪ mysql>SET PASSWORD FOR
    cactiuser@localhost=PASSWORD('cactiUserPassword');
  ▪ mysql>exit

◦ Install Cacti
  ▪ #yum -y install cacti

◦ Prepare database find path for cacti.sql from following command
  ▪ #rpm -ql cacti | grep -i cacti.sql
     Note: suppose it gives "/usr/share/.../cacti.sql" path, then
     #mysql -u cactiuser -p cactidb< /usr/share/.../cacti.sql

◦ Configure Cacti
  ▪ Open '/etc/cacti/db-php' in any editor, and set values as given
    $database_type="mysql"
    $database_default="cactidb"
    $database_hostname="localhost"
    $database_username="cactiuser"
    $database_password="cactiUserPassword"
    $database_port=3300

◦ Configure httpd for Cacti
  ▪ Open '/etc/httpd/conf.d/cacti.conf' in any editor, add lines
    ##########start of text to add#######
    Alias /cacti /usr/share/cacti
    <Directory /usr/share/cacti>
    Order,Deny,Allow
    Deny from all
    Allow from 192.168.0.0/16
    </Directory>
    ###########end of text to add#######

◦ Setup Cacti cronjob
  Open '/etc/cron.d/cacti' in any editor, and un-comment the line
  '*/5 * * * * cacti /usr/bin/php /user/share/cacti/poller.php > /dev/null 2
  > &1'
◦ Restart the 'httpd' service, then open 'http://CactiServerIP/cacti' in any
    browser and follow easy installation method, rectifying any error found.

  ◦ Default username and password to login is admin:admin



                       ::Tools/Technology Used::

 Cacti    : http://www.cacti.net/
 Net-SNMP : http://www.net-snmp.org
 MySQL    : http://dev.mysql.com/downloads/



                               ::Inference::

 Cacti is a brilliant network graphing system, but certain of its dependencies
  only supported their old version.
 They also have a Cacti ready linux-distro CactiEZ which is loaded with many
  useful plug-ins but when installed, ask nothing for Partition and use the
  entire HDD with best way easy installation.



                      ::Troubleshooting/Updates::

 Problem: if during Web Installation part any error comes regarding
  RRDTool or PHP
  Solution: In that portal itself mention the checked paths for them, which
  should be
  RRDTool=/usr/local/rrdtool/bin/rrdtool
  PHP=/www/php/bin/php

Contenu connexe

Tendances

Mikrotik
MikrotikMikrotik
Mikrotik
hzcom
 
OpenStack networking
OpenStack networkingOpenStack networking
OpenStack networking
Sim Janghoon
 
Wireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devicesWireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devices
Aidan Venn MSc
 

Tendances (20)

Mikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW ManagementMikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW Management
 
PPPoE With Mikrotik and Radius
PPPoE With Mikrotik and RadiusPPPoE With Mikrotik and Radius
PPPoE With Mikrotik and Radius
 
Mikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerMikrotik Hotspot User Manager
Mikrotik Hotspot User Manager
 
Mikrotik Tutorial
Mikrotik TutorialMikrotik Tutorial
Mikrotik Tutorial
 
Mikrotik
MikrotikMikrotik
Mikrotik
 
IPsec on Mikrotik
IPsec on MikrotikIPsec on Mikrotik
IPsec on Mikrotik
 
Mikrotik load balansing
Mikrotik load balansingMikrotik load balansing
Mikrotik load balansing
 
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
 
MikroTik Basic Training Class - Online Moduls - English
 MikroTik Basic Training Class - Online Moduls - English MikroTik Basic Training Class - Online Moduls - English
MikroTik Basic Training Class - Online Moduls - English
 
MikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port KnockingMikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port Knocking
 
Openstack Networking Internals - first part
Openstack Networking Internals - first partOpenstack Networking Internals - first part
Openstack Networking Internals - first part
 
OpenStack networking
OpenStack networkingOpenStack networking
OpenStack networking
 
NAT with ASA & ASA Security Context
NAT with ASA & ASA Security ContextNAT with ASA & ASA Security Context
NAT with ASA & ASA Security Context
 
Neutron: br-ex is now deprecated! what is modern way?
Neutron: br-ex is now deprecated! what is modern way?Neutron: br-ex is now deprecated! what is modern way?
Neutron: br-ex is now deprecated! what is modern way?
 
Fools your enemy with MikroTik
Fools your enemy with MikroTikFools your enemy with MikroTik
Fools your enemy with MikroTik
 
CCNA : Intro to Cisco IOS - Part 2
CCNA : Intro to Cisco IOS - Part 2CCNA : Intro to Cisco IOS - Part 2
CCNA : Intro to Cisco IOS - Part 2
 
Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat
 
Multivendor MPLS L3VPN
Multivendor MPLS L3VPNMultivendor MPLS L3VPN
Multivendor MPLS L3VPN
 
Wireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devicesWireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devices
 

En vedette (10)

Cacti desde-paquetes
Cacti desde-paquetesCacti desde-paquetes
Cacti desde-paquetes
 
Cacti
CactiCacti
Cacti
 
CACTI herramienta de monitoreo
CACTI herramienta de monitoreoCACTI herramienta de monitoreo
CACTI herramienta de monitoreo
 
Nagios Conference 2011 - Tony Roman - Cacti Workshop
Nagios Conference 2011 - Tony Roman - Cacti WorkshopNagios Conference 2011 - Tony Roman - Cacti Workshop
Nagios Conference 2011 - Tony Roman - Cacti Workshop
 
Cacti
CactiCacti
Cacti
 
Conference on Nagios: Reinhard Scheck on Cacti
Conference on Nagios: Reinhard Scheck on CactiConference on Nagios: Reinhard Scheck on Cacti
Conference on Nagios: Reinhard Scheck on Cacti
 
Cacti
CactiCacti
Cacti
 
Infrastructure - Monitoring - Cacti
Infrastructure - Monitoring - CactiInfrastructure - Monitoring - Cacti
Infrastructure - Monitoring - Cacti
 
Cacti overview
Cacti overviewCacti overview
Cacti overview
 
Cacti presentation
Cacti presentationCacti presentation
Cacti presentation
 

Similaire à An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing

Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guide
jasembo
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
webhostingguy
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
webhostingguy
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册
Yiwei Ma
 

Similaire à An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing (20)

Installing Cacti openSUSE Leap 42.1
Installing Cacti openSUSE Leap 42.1Installing Cacti openSUSE Leap 42.1
Installing Cacti openSUSE Leap 42.1
 
Install cacti on open suse 13
Install cacti on open suse 13Install cacti on open suse 13
Install cacti on open suse 13
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration training
 
DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to Docker
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
kubernetes practice
kubernetes practicekubernetes practice
kubernetes practice
 
Basic Linux kernel
Basic Linux kernelBasic Linux kernel
Basic Linux kernel
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
OFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-DayOFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-Day
 
Spider Setup with AWS/sandbox
Spider Setup with AWS/sandboxSpider Setup with AWS/sandbox
Spider Setup with AWS/sandbox
 
MySQL Spider Architecture
MySQL Spider ArchitectureMySQL Spider Architecture
MySQL Spider Architecture
 
Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guide
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
 
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google CloudDrupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
 
Hdf installing-hdf
Hdf installing-hdfHdf installing-hdf
Hdf installing-hdf
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi node
 

Plus de Abhishek Kumar

An Express Guide ~ Zabbix for IT Monitoring
An Express Guide ~ Zabbix for IT Monitoring An Express Guide ~ Zabbix for IT Monitoring
An Express Guide ~ Zabbix for IT Monitoring
Abhishek Kumar
 
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
Abhishek Kumar
 

Plus de Abhishek Kumar (17)

Insecurity-In-Security version.2 (2011)
Insecurity-In-Security version.2 (2011)Insecurity-In-Security version.2 (2011)
Insecurity-In-Security version.2 (2011)
 
Insecurity-In-Security version.1 (2010)
Insecurity-In-Security version.1 (2010)Insecurity-In-Security version.1 (2010)
Insecurity-In-Security version.1 (2010)
 
DevOps?!@
DevOps?!@DevOps?!@
DevOps?!@
 
xml-motor ~ What,Why,How
xml-motor ~ What,Why,Howxml-motor ~ What,Why,How
xml-motor ~ What,Why,How
 
XML-Motor
XML-MotorXML-Motor
XML-Motor
 
DevOps with Sec-ops
DevOps with Sec-opsDevOps with Sec-ops
DevOps with Sec-ops
 
Syslog Centralization Logging with Windows ~ A techXpress Guide
Syslog Centralization Logging with Windows ~ A techXpress GuideSyslog Centralization Logging with Windows ~ A techXpress Guide
Syslog Centralization Logging with Windows ~ A techXpress Guide
 
Squid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress GuideSquid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
 
Ethernet Bonding for Multiple NICs on Linux ~ A techXpress Guide
Ethernet Bonding for Multiple NICs on Linux ~ A techXpress GuideEthernet Bonding for Multiple NICs on Linux ~ A techXpress Guide
Ethernet Bonding for Multiple NICs on Linux ~ A techXpress Guide
 
Solaris Zones (native & lxbranded) ~ A techXpress Guide
Solaris Zones (native & lxbranded) ~ A techXpress GuideSolaris Zones (native & lxbranded) ~ A techXpress Guide
Solaris Zones (native & lxbranded) ~ A techXpress Guide
 
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidthAn Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
 
An Express Guide ~ Zabbix for IT Monitoring
An Express Guide ~ Zabbix for IT Monitoring An Express Guide ~ Zabbix for IT Monitoring
An Express Guide ~ Zabbix for IT Monitoring
 
An Express Guide ~ SNMP for Secure Rremote Resource Monitoring
An Express Guide ~ SNMP for Secure Rremote Resource MonitoringAn Express Guide ~ SNMP for Secure Rremote Resource Monitoring
An Express Guide ~ SNMP for Secure Rremote Resource Monitoring
 
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
Presentation on "XSS Defeating Concept in (secure)SiteHoster" : 'nullcon-2011'
 
XSS Defeating Concept - Part 2
XSS Defeating Concept - Part 2XSS Defeating Concept - Part 2
XSS Defeating Concept - Part 2
 
XSS Defeating Trick ~=ABK=~ WhitePaper
XSS Defeating Trick ~=ABK=~ WhitePaperXSS Defeating Trick ~=ABK=~ WhitePaper
XSS Defeating Trick ~=ABK=~ WhitePaper
 
FreeSWITCH on RedHat, Fedora, CentOS
FreeSWITCH on RedHat, Fedora, CentOSFreeSWITCH on RedHat, Fedora, CentOS
FreeSWITCH on RedHat, Fedora, CentOS
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing

  • 1. Express-Guide ~to~ Basic Setup of Cacti an IT Infrastructure Monitoring Solution by, ABK ~ http://www.twitter.com/aBionic ::Task Detail::  Setting up Cacti for IT Infrastructure Service Graphing solution. ::Background:: Links: http://www.cacti.net/ Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Here RRDTool was supposed to poll data on secured SNMPv3 channels from host and these data will be analyzed on Graphs using Cacti. ::Execution Method::  Pre-Requisite: Installing/Updating all these, at shell (say for Fedora/CentOS) ◦ #yum -y install php php-get php-mysql php-pear ◦ #yum -y install php-common php-devel php-mbstring ◦ #yum -y install php-cli php-snmp php-pear-net-smtp ◦ #yum -y install rrdtool httpd mysql mysql-server mysql-devel ◦ #yum -y install net-snmp net-snmp-utils net-snmp-devel net-snmp-libs  Steps ◦ Configure all the pre-requisites for the settings you wanna be implemented for Cacti (esp. the SNMP Community String) ◦ Adding required users and groups, at shell ▪ #groupadd cacti ▪ #useradd -g cacti cactiuser
  • 2. ◦ Configuring MySQL server ▪ #mysqladmin -u root password newPassword ▪ #mysql -u root -p$Whatever_Password_You_Want ▪ mysql>CREATE DATABASE cactidb; ▪ mysql>GRANT ALL ON cactidb.* TO root; ▪ mysql>GRANT ALL ON cactidb.* TO root@localhost; ▪ mysql>GRANT ALL ON cactidb.* TO cacti; ▪ mysql>GRANT ALL ON cactidb.* TO cacti@localhost; ▪ mysql>SET PASSWORD FOR cactiuser@localhost=PASSWORD('cactiUserPassword'); ▪ mysql>exit ◦ Install Cacti ▪ #yum -y install cacti ◦ Prepare database find path for cacti.sql from following command ▪ #rpm -ql cacti | grep -i cacti.sql Note: suppose it gives "/usr/share/.../cacti.sql" path, then #mysql -u cactiuser -p cactidb< /usr/share/.../cacti.sql ◦ Configure Cacti ▪ Open '/etc/cacti/db-php' in any editor, and set values as given $database_type="mysql" $database_default="cactidb" $database_hostname="localhost" $database_username="cactiuser" $database_password="cactiUserPassword" $database_port=3300 ◦ Configure httpd for Cacti ▪ Open '/etc/httpd/conf.d/cacti.conf' in any editor, add lines ##########start of text to add####### Alias /cacti /usr/share/cacti <Directory /usr/share/cacti> Order,Deny,Allow Deny from all Allow from 192.168.0.0/16 </Directory> ###########end of text to add####### ◦ Setup Cacti cronjob Open '/etc/cron.d/cacti' in any editor, and un-comment the line '*/5 * * * * cacti /usr/bin/php /user/share/cacti/poller.php > /dev/null 2 > &1'
  • 3. ◦ Restart the 'httpd' service, then open 'http://CactiServerIP/cacti' in any browser and follow easy installation method, rectifying any error found. ◦ Default username and password to login is admin:admin ::Tools/Technology Used::  Cacti : http://www.cacti.net/  Net-SNMP : http://www.net-snmp.org  MySQL : http://dev.mysql.com/downloads/ ::Inference::  Cacti is a brilliant network graphing system, but certain of its dependencies only supported their old version.  They also have a Cacti ready linux-distro CactiEZ which is loaded with many useful plug-ins but when installed, ask nothing for Partition and use the entire HDD with best way easy installation. ::Troubleshooting/Updates::  Problem: if during Web Installation part any error comes regarding RRDTool or PHP Solution: In that portal itself mention the checked paths for them, which should be RRDTool=/usr/local/rrdtool/bin/rrdtool PHP=/www/php/bin/php