Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Sep 24, 2018 12:22 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sun Dec 31, 2017 12:13 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2689
Location: Kressbronn, Germany
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

_________________
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:
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


Last edited by phalek on Tue Jan 02, 2018 5:46 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sun Dec 31, 2017 3:25 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Tue Jan 02, 2018 3:48 am 
Offline
Cacti User

Joined: Thu Oct 06, 2005 5:03 am
Posts: 401
I just got my copy

Congrats

_________________
cacti rulez!


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Wed Jan 31, 2018 2:09 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2689
Location: Kressbronn, Germany
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:
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


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Wed Feb 07, 2018 8:38 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14869
Location: MI, USA
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


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 8:27 am 
Offline
Cacti User

Joined: Sun Feb 26, 2017 10:33 am
Posts: 78
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


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 11:26 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 11:40 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2689
Location: Kressbronn, Germany
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:
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


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 11:51 am 
Offline
Cacti User

Joined: Sun Feb 26, 2017 10:33 am
Posts: 78
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)


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 12:34 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2689
Location: Kressbronn, Germany
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:
    // 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 8 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:
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
Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 1:51 pm 
Offline
Cacti User

Joined: Sun Feb 26, 2017 10:33 am
Posts: 78
Thank you,

let me give it a try


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 2:32 pm 
Offline
Cacti User

Joined: Sun Feb 26, 2017 10:33 am
Posts: 78
possibly is not compatible with PHP7

Code:
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:
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


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 2:43 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: [INFO] Cacti Beginners Guide Book for Cacti Version 1.0
PostPosted: Sat Sep 22, 2018 2:53 pm 
Offline
Cacti User

Joined: Sun Feb 26, 2017 10:33 am
Posts: 78
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:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group