New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device...
Transcript of New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device...
![Page 1: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/1.jpg)
Gonz Guzman ([email protected], 919-248-1842)Lead Client Network Engineer
Summer 2017 Webinar Series New Features in Cacti 1.1.x
Webinar Links: www.mcnc.org/cne-webinars
![Page 2: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/2.jpg)
Agenda
n New feature: auto discovery
n New feature: 1 minute polling
n Issues with upgrading an older installation
n Demo
2 10/3/12
![Page 3: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/3.jpg)
Auto Discovery
n Or Automation • Networks• Device Rules• Graph Rules• Tree Rules• SNMP Options
3 10/3/12
![Page 4: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/4.jpg)
Auto Discovery
n SNMP Options• Define an SNMP Community String
− Click the plus symbol and provide a name for the option, such as “Community”
• Add SNMP Community Strings−Select SNMP Version, 2 or 3−Add your community string, such as public or
private or a string that is defined on your network devices.
4 10/3/12
![Page 5: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/5.jpg)
Auto Discovery
n Graph Options• Define a Graph Rule
− Click the plus symbol and provide a name for the option, such as “Add Interface Graphs”
• Select Data Query−SNMP – Interface Statistics
• Select Graph Type− In/Out Bits with 95th Percentile 64-bit
• Enable Rule
5 10/3/12
![Page 6: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/6.jpg)
Auto Discovery
n Graph Options• Add Device Selection Criteria
−Field Name: snmp_community – varchar(100)−Operator: contains−Matching Pattern: your community string
• Add Graph Creation Criteria−Field Name: ifOperStatus−Operator: contains−Matching Pattern: Up
6 10/3/12
![Page 7: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/7.jpg)
Auto Discovery
n Networks• Add a Network Discovery Range
−Name−Subnet Range −Schedule Type – Manual, Daily, Weekly, Monthly −Run Limit – Make sure to set this appropriately−Enabled−SNMP Options – select SNMP option created earlier.
7 10/3/12
![Page 8: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/8.jpg)
1 Minute Polling
n Create new data profile for 1 min polling• Name• Polling Interval (Every Minute)• Heartbeat (2 Minutes)• Consolidation Function – select all four
n Create a new data source profile RRAs• Name• Aggregation Level (Each Insert is New Row)• Rows
8 8/9/17
![Page 9: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/9.jpg)
1 Minute Polling
n Create RRAs according to this example
9 8/9/17
![Page 10: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/10.jpg)
1 Minute Polling
n Change data source profile on the templates you wish to use 1 minute polling.• Console -> Templates -> Data Source
10 8/9/17
![Page 11: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/11.jpg)
1 Minute Polling
n Change the poller frequency in cron• vi /etc/cron.d/cacti
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php >/dev/null 2>&1
Change it to
** * * * cacti /usr/bin/php /usr/share/cacti/poller.php >/dev/null 2>&1
11 8/9/17
![Page 12: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/12.jpg)
1 Minute Polling
n Change the poller frequency in Cacti • Console -> Configuration -> Settings, select
“Poller” tab−Poller Interval (Every Minute)−Cron Interval (Every Minute)
n Rebuild the poller cache• Console -> Utilities-> System Utilities
−Rebuild Poller Cache
12 8/9/17
![Page 13: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/13.jpg)
Resolving issue with upgrades
n When upgrading from an older version you will see the following error while running upgrade wizard
13 8/9/17
![Page 14: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/14.jpg)
Resolving issue with upgrades
n Add timezone table to MySQL• mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root
-p mysql• enter mysql password for root
14 8/9/17
![Page 15: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/15.jpg)
Resolving issue with upgrades
n Login to MySQL and add permissions to table• mysql –u root –p• GRANT SELECT ON mysql.time_zone_name TO
cacti@localhost IDENTIFIED BY ‘cactipass‘;−Change cactipass to your cacti password
• FLUSH privileges;• quit;
n vi /etc/php.ini and add after [Date] directive• date.timezone = America/New_York• Save changes15 8/9/17
![Page 16: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/16.jpg)
Resolving issue with upgrades
n Restart web server• service restart httpd
16 8/9/17
![Page 17: New Features in Cacti - Webinar2017 - MCNC · Auto Discovery! Or Automation • Networks • Device Rules • Graph Rules • Tree Rules • SNMP Options 3 10/3/12](https://reader031.fdocuments.in/reader031/viewer/2022022705/5bd8c20509d3f2740c8c6588/html5/thumbnails/17.jpg)
Gonz Guzman ([email protected], 919-248-1842)Lead Client Network Engineer
Summer 2017 Webinar Series New Features in Cacti 1.1.x
Webinar Links: www.mcnc.org/cne-webinars