[INFO] Cacti Beginners Guide Book for Cacti Version 1.0

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

[INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by phalek »

My new book is finally released. It's a complete re-write to Cacti 1.x

Here's an overview of the topics contained:
  • Installing Cacti
  • Using Graphs to Monitor Networks and Devices
  • Creating and Using Templates
  • User Management
  • Data Management
  • Cacti Maintenance
  • Network and Server Monitoring
  • Plugin Architecture
  • Plugins
  • Threshold Monitoring with Thold
  • Enterprise Reporting
  • Cacti Automation for NOC
  • Migrate Cacti to a new Server
  • Multiple Pollers with Cacti
Amazon Germany: Image Amazon US: ImagePublisher Site (PatkPub):Image
Last edited by phalek on Tue Jan 02, 2018 5:46 am, edited 1 time in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti Beginners Guide Book for Cacti Version 1.0

Post by netniV »

That would be an interesting read given I've started supporting cacti in my own time. I'll have to see if I can get my boss to spring for it at work since we use it there... though it may be tricky given the year end ;-)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Cacti Beginners Guide Book for Cacti Version 1.0

Post by JJX »

I just got my copy

Congrats
cacti rulez!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by phalek »

phalek wrote: I'm also looking for some Cacti users to review the book. I've been notified by my publisher that there are 10 books available free for distribution with a request to leave a review at Amazon. Please PM or send me an email at cactibook@urban-software.com with some details ( Email, Cacti experience ) so I can forward it.
Anyone who wants to take part in this ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by TheWitness »

Well, I bought 2 and trying to get one of them to Rony this weekend. Lot's of new stuff in Cacti 1.x.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by jhonnyx »

Does it explain the various data input and queries methods?

I read the preview of the index but I found no trace of PHP server script for example...I'd really use that
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by netniV »

I have this, so I will let you know. Funny thing is, I haven't referred to it for a while as I forgot I had it!
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by phalek »

jhonnyx wrote:Does it explain the various data input and queries methods?

I read the preview of the index but I found no trace of PHP server script for example...I'd really use that

Hi, I didn't go into the script server in specifically, just going through building a Data Query like the interface SNMP one.
It has an example for a script Data Input method.

Scripts Server are a bit more complicated than the two mentioned above, so they didn't quite fit into a "Beginners Guide", although my Book sometimes goes into quite some depth.

The easist method is to copy an existing Data Query and adapt it to your needs.

What kind of Query are you thinking of ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by jhonnyx »

I have two in mind

1) I am currently creating manually Cisco QoS graphs for our SP CEs and that is somehow OK but I would like to automate it (as everything else in my CACTI servers)

2) I would like to convert a perl script for ASA VPN S2S tunnels to PHP script, both have non-linear indexes and while QoS "maybe" could be adapted to a SNMP Query, the VPN tunnel surely needs a script around it (OIDs changes at each tunnel establishment)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by phalek »

I've attached a PHP Script Server template for Cisco QOS. Not sure if it is working properly, but it should be.
It's caching some SNMP data to the "/data/cacti" directory which should be read/writeable by the Cacti poller and Apache server.

Change the following line in the PHP script if you need it to be somewhere else:

Code: Select all

    // Variables
    $tmp_dir = '/data/cacti/';
It's a bit old and I would change it a bit to be compliant with my new programming standards, but at least it should give you a starting point.
Attachments
CiscoQOS.zip
(12.28 KiB) Downloaded 192 times
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by jhonnyx »

Thank you,

let me give it a try
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by jhonnyx »

possibly is not compatible with PHP7

Code: Select all

PHP Notice:  Undefined index:  in /var/www/html/cacti/scripts/ss_query_cisco_qos_counters.php on line 385
PHP Notice:  Undefined variable: ifIndexes in /var/www/html/cacti/scripts/ss_query_cisco_qos_counters.php on line 77
PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/cacti/scripts/ss_query_cisco_qos_counters.php on line 77

Code: Select all

PHP 7.0.31 (cli) (built: Jul 17 2018 15:30:29) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by netniV »

Undefined index means that the array didn't have that index. Undefined variable means somehow you got to code without that variabe being set. Neither of these are 7.2 issues. The foreach, means that it wasn't an array or object passed.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0

Post by jhonnyx »

Thanks,

That was just my easy assumption, anyway it doesn't read the indexes, seems that OIDs are correct as I am graphing already the QoS on this router

Code: Select all

Total: 0.180000, Delta: 0.180000, Executing script for list of indexes '"/bin/php" -q /var/www/html/cacti/scripts/ss_query_cisco_qos_counters.php 'IP_ADDRESS' '"2::COMMUNITY::::::::::::::161::2000"' 'index'', Index Count: 0
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest