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    


Nagios& Cacti - integration

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
Ralph Gerstmann



Joined: 29 May 2003
Posts: 3
Location: Munich

PostPosted: Wed Jun 04, 2003 5:41 pm    Post subject: Nagios& Cacti - integration Reply with quote

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)
Back to top
Guest






PostPosted: Wed Feb 04, 2004 6:27 pm    Post subject: Me too! Reply with quote

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?
Back to top
steveh@brendata.co.uk



Joined: 08 Sep 2003
Posts: 15

PostPosted: Tue Feb 10, 2004 9:12 am    Post subject: Reply with quote

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).
Back to top
ciccio 3
Guest





PostPosted: Wed Feb 25, 2004 1:36 pm    Post subject: Nagios& Cacti - integration Reply with quote

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

Back to top
NC



Joined: 24 Feb 2004
Posts: 7
Location: FRANCE

PostPosted: Wed Feb 25, 2004 4:52 pm    Post subject: Nagios& Cacti - integration : Access to CACTI easier Reply with quote

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?action=tree&tree_id=1&leaf_id=6
http://server/cacti/graph_view.php?action=tree&name=local_network (a leaf in my config...)
should find : http://server/cacti/graph_view.php?action=tree&tree_id=1&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?action=preview&host_id=0&filter=
http://server/cacti/graph_view.php?action=preview&name=Localhost
should find : http://server/cacti/graph_view.php?action=preview&host_id=1&filter=
http://server/cacti/graph_view.php?action=preview&name=myfirstrouter
should find : http://server/cacti/graph_view.php?action=preview&host_id=2&filter=

It remains to configure nagios (hostinfo, etc...)



graph_view.php.gz
 Description:
file patched

Download
 Filename:  graph_view.php.gz
 Filesize:  4.76 KB
 Downloaded:  222 Time(s)


graph_view-name_patch.txt
 Description:
diff -NaurbB

Download
 Filename:  graph_view-name_patch.txt
 Filesize:  2.45 KB
 Downloaded:  229 Time(s)

Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Sun Feb 29, 2004 10:39 pm    Post subject: Reply with quote

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.
Back to top
funkboy3



Joined: 17 Dec 2004
Posts: 1

PostPosted: Fri Dec 17, 2004 7:56 pm    Post subject: Updated patch Reply with quote

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



graph_view-name_patch_0.8.6b.txt
 Description:
Patches v0.8.6b's graph_view to allow use of names in the URL (rather than host_id's)

Download
 Filename:  graph_view-name_patch_0.8.6b.txt
 Filesize:  2.44 KB
 Downloaded:  232 Time(s)

Back to top
kohly



Joined: 23 Apr 2008
Posts: 1

PostPosted: Wed Apr 23, 2008 3:07 am    Post subject: Reply with quote

this is GREAT work!
thanx!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group