Cacti and Nagios integration dashboard

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

wazoqaz
Posts: 15
Joined: Wed May 24, 2006 9:40 am
Location: md, us
Contact:

Post by wazoqaz »

As the month of September winds down, I was wondering if you still thought that you might be releasing something? I'm not pushing, but like many others I am eagerly awaiting what you have going.

Any as others have offered, if you need any beta testers I'd gladly volunteer.
clahti
Posts: 1
Joined: Mon Oct 09, 2006 3:16 pm

Any new news?

Post by clahti »

I am interested in this addon, but there does not seem to be anything new in this thread for the past couple of months...it it dead?
high.pointe
Posts: 3
Joined: Fri Oct 13, 2006 3:20 pm

AWESOME!!!!!

Post by high.pointe »

perldork-

where are the files bro???? I CANNOT WAIT to utilyze this on my network!!!

FREAKIN AWESOME!!!!
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Man, I am not getting emailed when there are replies to this thread even though I have notification on for it!

I am very sorry I have not gotten the code out yet, doing my best to get it released, fall is horribly busy for me at my day job and little side consulting business so I have not gotten it together yet.

Will get it out ASAP, very sorry for not making my promised release date. I have 3 projects I wish to release as OS/GPL right now, all have been in progress / in use for 3-6 months and I have not had time to get even one out .. sucks.

Next time I will make sure I don't post prematurely and get anyones' hopes up, i didn't expect to have much interest in this, I hope you will all accept my apologies for not delivering on time.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
kerry582

Post by kerry582 »

perldork wrote: i didn't expect to have much interest in this
Hmm, count me in, when this comes out i would really like to trial it for ya on my environment here c.12k nodes.

Keep us updated.

Kerry
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Wow, 12k nodes.

Here is where I am at on this:
1) I have an sf.net site set up for this
2) Will be uploading the current files I have to CVS @ sf.net this weekend

I have read about the plugin framework but haven't had a chance to even try to get my code into that framework yet, so what I will do is this:

1) Put up the code I have on sf.net so anyone who wants to can play with it in it's ugly self state as is ... that code will have an CACINDA_INIT tag so that
2) As I then majorly break it in order to get it working as a plugin anyone who wants to can still get the initial release and use it :)

I have decided to name the project Cacinda - Cacti Integration Dashboard, as I am hoping add support for more fault managers than just Nagios and it really is more of a general dashboard for Cacti framework than a Nagios-specific plugin.

The sf.net website is cacinda.sf.net, but there is nothing to download and not much interesting to see yet there, sorry, I am holding my own feet to the fire to at least get code up this weekend so anyone who wants to can start playing with the infant :) version of this project.

Thanks again to everyone interested in this for being patient and my apologies again for the super long delays.

- Max
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Once you have something posted, I can definitely give you any necessary pointers on converting it to the Plugin Architecture. Its really an easy process, most things can be converted it over in a few minutes, and if anything needs a special hook, I can add it in and release a new version of the Plugin Architecture to support it.
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Very cool :), once again I did not receive notification of a new post here .. not the forums' fault, had some shaky times with spam this fall :p.

I appreciate the offer, I want to learn the plugin architecture too, so how about we team up on making this a plugin? Lots of work to do before it is even ready for plugin world I think.

PM me and we can work out the details.
cigamit wrote:Once you have something posted, I can definitely give you any necessary pointers on converting it to the Plugin Architecture. Its really an easy process, most things can be converted it over in a few minutes, and if anything needs a special hook, I can add it in and release a new version of the Plugin Architecture to support it.
Last edited by perldork on Sun Nov 19, 2006 1:07 pm, edited 1 time in total.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Cacinda: 0.1 alpha release available

Post by perldork »

Hi,

Well, 0.1 alpha is available now, don't expect much more than what the screenshots showed, expect bugs, expect it to work but probably not intiuitively as you expect it to :).

Lots of caveats .. sorry, but it does work, I use it with about 50-100 devices, Cisco, MS SNMP, SysEdge, and Net-SNMP. The Net-SNMP templates are the most close to being done well :p, the others could use work, definitely open to code contributions fixes (please use the sf.net pages for that).

sf.net page with download:

http://cacinda.sf.net/

Please, again, be aware this is an alpha release, even though it is hugely past the time I said I would get it out I wanted to get something out for people to try and use :).

It does create the dashboards I showed earlier in this thread, it does NOT do any authentication via Cacti yet, so only use it on a trusted LAN with Apache or IIS authentication in front of it if you are worried about people seeing your host dashboards :).

So, lots of work left for this, feedback is welcome, both positive and negative (I know there will be a lot of negative this round :p).

Thanks for being patient, I hope that some of you find this useful and again I welcome your feedback/feature requests/bug reports/complaints/criticisms.

- Max
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
slander
Posts: 32
Joined: Thu Mar 16, 2006 12:01 pm

Where is Image/Graph.php and Canvas.php?

Post by slander »

These don't seem to be part of Cacinda, or Cacti. Where are they from / located?

Thanks
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Re: Where is Image/Graph.php and Canvas.php?

Post by perldork »

They are part of the PEAR module Image_Graph, as root or a user that can write to your PHP PEAR lib/ directory:

Code: Select all

pear install Image_Graph
Will add that to the instructions/README, thanks for reporting this.
slander wrote:These don't seem to be part of Cacinda, or Cacti. Where are they from / located?

Thanks
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
slander
Posts: 32
Joined: Thu Mar 16, 2006 12:01 pm

Post by slander »

When running, I get "call to undefined funtion, snmpget() in functions.php, line 203. This looks like it should be "snmp_get" (with underline) to me.

After changing that, It brings up a list of my cacti hosts. However, clicking on a HostName brings up "No device class matches found for HostName (HostName)"

Most likely this is operator error, but, not sure where!

Update - this was just because my php did not have snmp support compiled in. Doc note: php must be compiled "configure --with-snmp"!

After fixing php and restarting apache, and restoring snmpget above (should NOT be snmp_get!) I get much further. Now it displays the OS info, and then an error message preg_replace() Empty regualr expression in functions.php line 139, and Error retreiving Nagios Content from URL - where URL looks ok, and works on its own - so probably this is a Curl problem. Then, system Date, and last reboot come up, Next is another error Fatal Error: call to undefined function imagettfbbox() in Canvas/GD.php - and none of the graphs are there - but place holders for cpu trend, ram and swap, traffic and erros - so - it is looking promising.
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Hi Slander,

Cacti requires a PHP with SNMP for SNMP support, so I don't think that I will document that as a separate requirement .. if you don't have --with-snmp in your Cacti, you won't be getting SNMP data with Cacti in the first place :).

Net_Curl dependency for Nagios noted, I need to remove a few require statements for Net_Curl in some of the device classes as they do not use Net_Curl :p.

imagettfbbox

This is part of the FreeType set of functions ... that is a dependency of Image_Graph, not Cacinda .. noted in the README that Image_Graph requires FreeType support (--with-freetype).

Thanks for all the feedback, Slander, please keep it coming :) if you have the time and desire .. your contributions are being noted in the Changes file.
slander wrote:When running, I get "call to undefined funtion, snmpget() in functions.php, line 203. This looks like it should be "snmp_get" (with underline) to me.

After changing that, It brings up a list of my cacti hosts. However, clicking on a HostName brings up "No device class matches found for HostName (HostName)"

Most likely this is operator error, but, not sure where!

Update - this was just because my php did not have snmp support compiled in. Doc note: php must be compiled "configure --with-snmp"!

After fixing php and restarting apache, and restoring snmpget above (should NOT be snmp_get!) I get much further. Now it displays the OS info, and then an error message preg_replace() Empty regualr expression in functions.php line 139, and Error retreiving Nagios Content from URL - where URL looks ok, and works on its own - so probably this is a Curl problem. Then, system Date, and last reboot come up, Next is another error Fatal Error: call to undefined function imagettfbbox() in Canvas/GD.php - and none of the graphs are there - but place holders for cpu trend, ram and swap, traffic and erros - so - it is looking promising.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
slander
Posts: 32
Joined: Thu Mar 16, 2006 12:01 pm

Post by slander »

perldork wrote: Cacti requires a PHP with SNMP for SNMP support, so I don't think that I will document that as a separate requirement .. if you don't have --with-snmp in your Cacti, you won't be getting SNMP data with Cacti in the first place :).
Got to thinking about this, and I think you might be wrong about Cacti requiring php --with-snmp. My cacti install was using the same php install as my dashboard, and it did not have php w/ snmp support, I don't think. I think (not at all positive) that cacti just needs Net_SNMP. Guess I will need to go re-read the cacti install directions! Its been a long time since I installed it!
perldork wrote: Net_Curl dependency for Nagios noted, I need to remove a few require statements for Net_Curl in some of the device classes as they do not use Net_Curl :p.
I still haven't quite figured this one out.
perldork wrote:
imagettfbbox

This is part of the FreeType set of functions ... that is a dependency of Image_Graph, not Cacinda .. noted in the README that Image_Graph requires FreeType support (--with-freetype).
This also needed to be compiled into my php, using --with-freetype2 and --with-freetype-dir=/usr/lib

Ok - except for the nagios status piece noted above, this is working for me now. Pretty cool - I plan to integrate it into my weathermap, where clicking on device will bring up this page. As I play with it more, I will let you know if I find any problems.
slander
Posts: 32
Joined: Thu Mar 16, 2006 12:01 pm

MOre feedback

Post by slander »

Max,

Looking at what you are doing, the reason for my error appears to be that I don't have anything defined (actually, have '' defined) for :

Configuration::nagios_host_match(), and Configuration::nagios_host_replace(),

in the config file. I think this is what is causing the error:
Warning: preg_replace(): Empty regular expression in /usr/local/apache2/htdocs/test/inc/functions.php on line 139

But - another problem is that the hostname being passed into the function get_nagios_info is the Cacti long name, not the host name that nagios (or cacti) would use. For instance, it is passing this name: "XXXX Portland UU GW" while it knows nagios knows it as this: xxxx-uu-gw. The first two lines of the dashboard are these same two names, so, I know it has them at this point, just the wrong one is being passed in from the template.

Hope this makes some sort of sense to you!

Scott
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests