Nagios& Cacti - integration

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Ralph Gerstmann
Posts: 3
Joined: Thu May 29, 2003 4:44 pm
Location: Munich
Contact:

Nagios& Cacti - integration

Post by Ralph Gerstmann »

Hi Ethan,
Hi Ian,
(Hi Community,)

Thx a lot for providing the best GPL
System Monitoring Tools i ever saw.

Just to notice:
I have lots of experience with this subject.

I would love to bring the 2 best Solutions together:
Cacti for handling Web-Based, Template Based
RRD-Configuration
and Nagios for best Alarming and History Features.

Are you interrested?

What I actually need:
Web-Based configuration of RRDs (like in cacti)
with an add-on to set alarming-thresholds,
which are then sent to nagios for alaming.
Or an even better integration of your Tools.

The Problem is:
Both of your Projects come with their own polling-machine.

I can understand pretty well, that its no fun giving up
an own code one has written and established.

On the other hand,
if we marry your great Tools,
this would give them a drive,
IBM Tivoli will be afaid of,
like M$ is (qualified) afaid of Linux...

Any Ideas?

Cheers,
Ralph

http://Gerstmann.Com?language=e
http://GPLshop.Com (not really translated, yet)
We should be so tolerant,
not to tolerate intolerance.
- Albert Einstein

http://Gerstmann.Com
http://GPLshop.Com
http://g2sl.de
Guest

Me too!

Post by Guest »

I can't say nothing but a great "me too!"

Nagios already has a more than decent polling engine, while its UI, good as it is, is miles away from Cacti... not to mention the great RDD helper Cacti is, and built-in user management.

Nowadays Cacti's poller engine is even in its ways to be rewritten as a C multithreaded one. Shouldn't it be MUCH better peruse/adapt/integrate with Nagios one?
steveh@brendata.co.uk
Posts: 15
Joined: Mon Sep 08, 2003 7:40 am

Post by steveh@brendata.co.uk »

You can already interrogate the RRD files that cacti produces (i.e. let Cactio collect the data and you alarm off that), this eases the polling load.

I'd be interested in how people have addressed the shared usernames between the two and whether there's an easy way of getting common permissioning.

(I already use the exthostinfo to link to the cacti graphs as well).
ciccio 3

Nagios& Cacti - integration

Post by ciccio 3 »

Hallo all,

We are actually writing a perl script that reading some rrd files and a configuration file produce an email or a snmptrap
if the values in rrd are above the threshold specified on the cof file.

Anybody knows aboutr some script similar ?
In any case I could provide the ones that we did.


ciccio

:roll:
NC
Posts: 7
Joined: Tue Feb 24, 2004 2:15 pm
Location: FRANCE

Nagios& Cacti - integration : Access to CACTI easier

Post by NC »

I've wrote a little patch which makes access to CACTI's graphs easier:
A symbolic name (leaf's name or host's name) can be used now.


Modified file : cacti/graph_view.php

1] In tree view mode :
Find First Tree and leaf from leaf's name (make "tree_id" and "leaf_id")
Example :
http://server/cacti/graph_view.php?action=tree&name=
should find : http://server/cacti/graph_view.php?acti ... &leaf_id=6
http://server/cacti/graph_view.php?acti ... al_network (a leaf in my config...)
should find : http://server/cacti/graph_view.php?acti ... &leaf_id=7

2] In preview mode :
Find graphs from host's description (make "host_id")
Example :
http://server/cacti/graph_view.php?action=preview&name=
should find : http://server/cacti/graph_view.php?acti ... =0&filter=
http://server/cacti/graph_view.php?acti ... =Localhost
should find : http://server/cacti/graph_view.php?acti ... =1&filter=
http://server/cacti/graph_view.php?acti ... irstrouter
should find : http://server/cacti/graph_view.php?acti ... =2&filter=

It remains to configure nagios (hostinfo, etc...)
Attachments
graph_view-name_patch.txt
diff -NaurbB
(2.45 KiB) Downloaded 547 times
graph_view.php.gz
file patched
(4.76 KiB) Downloaded 605 times
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

A nice idea without a doubt. However, what about those of us based in Microsoft environments, Isn't Nagios a Linux only based package? And don't say swap, as in a business environment that isn't always an option (as in mine).

I actually came to the feature request section to ask if some kind of alarm/notification could be provided by Cacti. It's clear that it has really got it's stuff together regarding collection and the graphical display of data, but what about when everything goes pear shaped? I think it would be really good to include some alarm/event notification within Cacti that is OS independent as Cacti is now.
funkboy3
Posts: 1
Joined: Fri Dec 17, 2004 7:51 pm

Updated patch

Post by funkboy3 »

I love the functionality of this patch. Unfortunately, I didn't know which version of Cacti it was intended for. I tried it anyway and it didn't work. So, a few tiny tweaks later, and here it is:
A patch for graph_view.php from v0.8.6b to allow use of names in the URL (exactly as per NC's original post in Feb).

Enjoy,
Andrew
Attachments
graph_view-name_patch_0.8.6b.txt
Patches v0.8.6b's graph_view to allow use of names in the URL (rather than host_id's)
(2.44 KiB) Downloaded 606 times
kohly
Posts: 1
Joined: Wed Apr 23, 2008 3:06 am

Post by kohly »

this is GREAT work!
thanx!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests