Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Hobbit plugin to monitor Cacti

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Fri Aug 03, 2007 8:04 am    Post subject: Hobbit plugin to monitor Cacti Reply with quote

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 :



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



bb-cacti.sh
 Description:
bb-cacti.sh 1.0

Download
 Filename:  bb-cacti.sh
 Filesize:  5.98 KB
 Downloaded:  293 Time(s)

Back to top
ceyounger



Joined: 10 Feb 2006
Posts: 28
Location: San Jose, CA USA

PostPosted: Fri Sep 07, 2007 8:08 pm    Post subject: Reply with quote

For an information junkie like myself, this works great!

Fired it up and it's reporting Cacti stats.

Nice script!
Back to top
ceyounger



Joined: 10 Feb 2006
Posts: 28
Location: San Jose, CA USA

PostPosted: Tue Feb 12, 2008 4:35 pm    Post subject: Reply with quote

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.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Wed Feb 13, 2008 2:38 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group