Hobbit plugin to monitor Cacti

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

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

Hobbit plugin to monitor Cacti

Post by fmangeant »

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

Post by ceyounger »

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:

Post by ceyounger »

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: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

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

Post by hri_ »

Can someone tell me how exactly this work ?
t3cm4n
Posts: 3
Joined: Fri May 07, 2010 6:18 pm
Contact:

how to

Post by t3cm4n »

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

Post by dionvdc »

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

Post by PlayerUp »

great thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests