Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 28, 2017 11:05 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Hobbit plugin to monitor Cacti
PostPosted: Fri Aug 03, 2007 8:04 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

here's a script I'm using with Hobbit Monitor (AKA Big Brother) to monitor Cacti.

It includes monitoring :
  • the logfile size
  • the logfile age (to ensure the poller is running)
  • the # of Cacti processus running
  • the # of RRD databases up to date
  • ...

Here's a screenshot :

Image

Some variables need to be changed inside the script, for example :
Code:
MAX_LOGFILE_AGE=1000
MAX_CACTI_PROCESSES=50

I hope some of you will find it useful :)


Attachments:
File comment: bb-cacti.sh 1.0
bb-cacti.sh [5.98 KiB]
Downloaded 1088 times

_________________

HOWTOs :
Templates :
Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 8:08 pm 
Offline

Joined: Fri Feb 10, 2006 2:59 pm
Posts: 44
Location: Orange County, CA
For an information junkie like myself, this works great!

Fired it up and it's reporting Cacti stats.

Nice script!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 12, 2008 4:35 pm 
Offline

Joined: Fri Feb 10, 2006 2:59 pm
Posts: 44
Location: Orange County, CA
peecee wrote:
Does this work for BB as well? I took a look through it, and it would seem to work fine, but I wanted to ask. I'd imagine you wouldn't know, seeing as how you've written it to run with Hobbit. I'll probably take a look at it anyway, and see if I can adapt it to run under BB. Nice work either way!


Hmm, I would think it *should* work with BB. But the only thing I know for sure is BB externals work fine with Hobbit--don't know about the other way around.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 2:38 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

it should work out of the box, as I'm using BB compatible variables ($BBTMP, $BBDISP, $BB).

You might want to add this at the top of the script if you want to run it by hand for testing :
Code:
BBHOME=/home/bbuser/bb
. $BBHOME/etc/bbdef.sh


The only requirement is the GNU 'date' command.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 26, 2010 5:16 am 
Offline

Joined: Mon Mar 30, 2009 4:19 pm
Posts: 9
Can someone tell me how exactly this work ?


Top
 Profile  
 
 Post subject: how to
PostPosted: Mon May 10, 2010 12:03 am 
Offline

Joined: Fri May 07, 2010 6:18 pm
Posts: 3
he all i'm new here,where im put that script on my cacti install?...im use ubuntu 9.10


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2010 4:08 pm 
Offline

Joined: Tue Feb 16, 2010 3:54 pm
Posts: 46
Nowhere, you have to put it in your Big Brother/ Hobbit install ( and probably edit some lines ) so it can monitor your Cacti server.


Top
 Profile  
 
 Post subject: Re: Hobbit plugin to monitor Cacti
PostPosted: Fri Jul 01, 2016 2:28 pm 
Offline

Joined: Fri Mar 28, 2014 3:16 pm
Posts: 2
great thanks!


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: cigamit and 2 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