Hobbit plugin to monitor Cacti

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Hobbit plugin to monitor Cacti

#1 Post by fmangeant » Fri Aug 03, 2007 8:04 am

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: Select all

MAX_LOGFILE_AGE=1000
MAX_CACTI_PROCESSES=50
I hope some of you will find it useful :)
Attachments
bb-cacti.sh
bb-cacti.sh 1.0
(5.98 KiB) Downloaded 1174 times
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

#2 Post by ceyounger » Fri Sep 07, 2007 8:08 pm

For an information junkie like myself, this works great!

Fired it up and it's reporting Cacti stats.

Nice script!

ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

#4 Post by ceyounger » Tue Feb 12, 2008 4:35 pm

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.

User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

#5 Post by fmangeant » Wed Feb 13, 2008 2:38 am

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: Select all

BBHOME=/home/bbuser/bb
. $BBHOME/etc/bbdef.sh
The only requirement is the GNU 'date' command.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

hri_
Posts: 9
Joined: Mon Mar 30, 2009 4:19 pm

#6 Post by hri_ » Tue Jan 26, 2010 5:16 am

Can someone tell me how exactly this work ?

t3cm4n
Posts: 3
Joined: Fri May 07, 2010 6:18 pm
Contact:

how to

#7 Post by t3cm4n » Mon May 10, 2010 12:03 am

he all i'm new here,where im put that script on my cacti install?...im use ubuntu 9.10

dionvdc
Posts: 46
Joined: Tue Feb 16, 2010 3:54 pm

#8 Post by dionvdc » Mon May 24, 2010 4:08 pm

Nowhere, you have to put it in your Big Brother/ Hobbit install ( and probably edit some lines ) so it can monitor your Cacti server.

PlayerUp
Posts: 2
Joined: Fri Mar 28, 2014 3:16 pm
Contact:

Re: Hobbit plugin to monitor Cacti

#9 Post by PlayerUp » Fri Jul 01, 2016 2:28 pm

great thanks!

Post Reply