[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: Moderators, Developers

Post Reply
Author
Message
User avatar
phalek
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

[INFO] Cacti Beginners Guide Book for Cacti Version 1.0

#1 Post by phalek » Sun Dec 31, 2017 12:13 pm

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

netniV
Cacti Guru User
Posts: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti Beginners Guide Book for Cacti Version 1.0

#2 Post by netniV » Sun Dec 31, 2017 3:25 pm

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 ;-)

JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Cacti Beginners Guide Book for Cacti Version 1.0

#3 Post by JJX » Tue Jan 02, 2018 3:48 am

I just got my copy

Congrats
cacti rulez!

User avatar
phalek
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#4 Post by phalek » Wed Jan 31, 2018 2:09 am

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 [email protected] 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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

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

#5 Post by TheWitness » Wed Feb 07, 2018 8:38 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

jhonnyx
Cacti User
Posts: 85
Joined: Sun Feb 26, 2017 10:33 am

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

#6 Post by jhonnyx » Sat Sep 22, 2018 8:27 am

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

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

#7 Post by netniV » Sat Sep 22, 2018 11:26 am

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!

User avatar
phalek
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#8 Post by phalek » Sat Sep 22, 2018 11:40 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

jhonnyx
Cacti User
Posts: 85
Joined: Sun Feb 26, 2017 10:33 am

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

#9 Post by jhonnyx » Sat Sep 22, 2018 11:51 am

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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#10 Post by phalek » Sat Sep 22, 2018 12:34 pm

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 62 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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

jhonnyx
Cacti User
Posts: 85
Joined: Sun Feb 26, 2017 10:33 am

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

#11 Post by jhonnyx » Sat Sep 22, 2018 1:51 pm

Thank you,

let me give it a try

jhonnyx
Cacti User
Posts: 85
Joined: Sun Feb 26, 2017 10:33 am

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

#12 Post by jhonnyx » Sat Sep 22, 2018 2:32 pm

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

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

#13 Post by netniV » Sat Sep 22, 2018 2:43 pm

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.

jhonnyx
Cacti User
Posts: 85
Joined: Sun Feb 26, 2017 10:33 am

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

#14 Post by jhonnyx » Sat Sep 22, 2018 2:53 pm

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