|
|
| Author |
Message |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Aug 31, 2005 4:57 pm Post subject: |
|
|
Send me an email, that way I have yours, and it reminds me..
But in all seriousness, I hope to review your code this weekend. But currently I have a few items I'm working on in 0.9.0 that need to get completed before I more forward.
Plugins are serious to me, and to the rest of the developers. We want to make sure that we present a unified interface to plugin developers that make it easy to intergrate with cacti. So, Ian and I have already had some conversation about plugins and the way we want to see it go.
|
|
| Back to top |
|
 |
BrettS
Joined: 15 Feb 2005 Posts: 24
|
Posted: Wed Aug 31, 2005 11:55 pm Post subject: |
|
|
divagater,
Thnaks for the reply. Ive been mucking around with Nagios and Cacti for a while. At the moment my "integration" is a bit flakey, using rrdread to query the rrds and alert from cacti, this means that, depending on the overall polling cycle it can be some time before an alert. Overall your plugin should help with this and make it a bit easier and responsive, and Im keen to assist you in any way. Im mot much of a coder but I can assist in functinal spec and testing. Ive duplicated our production nagios and cact setup so we can do some fairly rigorous testing if youd like.
thanks
Brett Stevens
|
|
| Back to top |
|
 |
aleto
Joined: 25 May 2005 Posts: 37
|
Posted: Thu Sep 08, 2005 1:27 pm Post subject: |
|
|
| Any progress yet on this module? Or any testing. Id be happy to help out!
|
|
| Back to top |
|
 |
divagater Cacti User
Joined: 17 Nov 2004 Posts: 101 Location: Chapel Hill, NC.
|
Posted: Tue Sep 13, 2005 8:07 am Post subject: |
|
|
Sorry for the lack of information last week. Our datacenter lost power (no, thats not supposed to be able to happen) and as a result we lost an important file server. So the whole week was lost to forensics and damage control
With the plugin I keep thinking of features that would be cool and start work on them and of course that grows out of control quickly. I need to just pick a spot to stop and solicit some help with testing.
I may need some help from any C programmers out there. I know just enough C to be dangerous. The module that I use to get Nagios data into a database is very good but missing a couple features that I think would be nice to have. Right now I am making up for some of the things it doesn't do, primarliy service groups and comments in the UI. As far as I can tell comments and service groups don't affect backend Nagios logic in any way (acknowledgments do but they are being handled correctly) so implementing them only in the UI may be satisfactory.
Cheers,
Billy
|
|
| Back to top |
|
 |
BrettS
Joined: 15 Feb 2005 Posts: 24
|
Posted: Thu Oct 06, 2005 9:53 pm Post subject: Nagios plug |
|
|
Just a quick catchup, how are you going with this plugin and is there any thing along the lines of testing I can do to assist.
Also have you thought of adding a config item to link the tholds plugin to nagios via passive alerts?
thanks
Brett Stevens
|
|
| Back to top |
|
 |
divagater Cacti User
Joined: 17 Nov 2004 Posts: 101 Location: Chapel Hill, NC.
|
Posted: Fri Oct 07, 2005 6:25 am Post subject: |
|
|
Hi Brett. Development is still moving along. I always seem to over estimate what I can get done between work and personla projects.
Right now the plugin is what I would call alpha. I am running it in my production environment along side Nagios to look for any inconsistencies. 1 other user from this forumn is alos testing it in his environment.
So far its looking really good. I have not had any data inconsistencies. I don't think I have much more to do before releasing it as beta. I have a couple more screens I want to add etc.
I did find one annoying bug that causes NPC not to update if Nagios is configured with state retention and then reloaded or restarted. For now I have just disabled state retention in my Nagios because its not that important to me but others may be unsatisfied with that behavior.
I am still looking for some ideas to add thold data as well. I think I should be able to come up with something creative when I put my mind to it but am also open to suggestions
Cheers,
Billy
|
|
| Back to top |
|
 |
BrettS
Joined: 15 Feb 2005 Posts: 24
|
Posted: Sun Oct 09, 2005 11:43 pm Post subject: |
|
|
Thanks for the update. I would be very keen to assist in the testing if you like.
Brett Stevens
|
|
| Back to top |
|
 |
BrettS
Joined: 15 Feb 2005 Posts: 24
|
Posted: Thu Oct 13, 2005 9:13 pm Post subject: |
|
|
divagater, Thold and nagios is key to integrating cacti and nagios, I think.
Ive been working on integrating at that point and should now have some further info by the end of the day. What Im doing is using a log scraper (swatch, logsuerfer SEC) to watch for thold log messages and then pass them over to nagios via passive checks. What would be great is if thold or your nagios plugin to have some form of macro/template so as to correctly format the log messages as well as to provide a destination item to the thold setup pages so we could drop the thold formatted message strait into the nagios pipe, circumventing the need for a log scraper, thus reducing the load on the box. Additionaly as part of your plugin the ability to tag certain graph entries along the lines of "Add this to the nagios alerts for this host" type of thing.
Another one, you are probably looking into this, but its worth checking anyway, do you or will you be linking the "nagios extra info for this check" back to the cacti graphs?
thanks
Brett Stevens
|
|
| Back to top |
|
 |
RampeStamp
Joined: 30 Jun 2005 Posts: 2
|
Posted: Mon Oct 31, 2005 10:00 am Post subject: |
|
|
I was also wondering how the status of your plugin is.
I thought about to make it myself, but then I found your thread in this forum. Can you share the plugin with me, maybe we can develop it with more people.
Otherwise I think of develop it myself anyway, because I tried several options, but this option (Nagios together with cacti) seems the best combination in existence.
I hope I hear from you ..
|
|
| Back to top |
|
 |
mball_th
Joined: 20 Jul 2005 Posts: 1
|
Posted: Wed Nov 09, 2005 4:50 am Post subject: Status of your plugin |
|
|
้ำHej guys......
What is status of your plugin (Nagios in Cacti)?..
Could you zip all the necessary that would be help our friend here?
Waiting your reply....
|
|
| Back to top |
|
 |
wwwdrich Cacti User
Joined: 03 Feb 2005 Posts: 59 Location: San Jose, CA
|
Posted: Mon Nov 28, 2005 6:55 pm Post subject: |
|
|
| I've just started looking at thold, but it seems to me that this should be fairly simple. Can anyone think of any reason why this shouldn't be a simple as adding a "Nagios" notification method to thold that will send a passive alert to the Nagios named pipe?
|
|
| Back to top |
|
 |
wwwdrich Cacti User
Joined: 03 Feb 2005 Posts: 59 Location: San Jose, CA
|
Posted: Tue Nov 04, 2008 11:05 am Post subject: |
|
|
Ok, I finally have this up and running, attached is my patch to add Nagios NSCA support to the thold plugin. Applying this patch will add additional information to the "Nagios Notification Options" in the thold settings, you will need to set the following:
- Nagios Service Name Prefix - the services submitted to NSCA will have this prefix, so if you were to put cacti_threshold here, and had a threshold called watchmaillog, the service in Nagios that receives the alert would be cacti_threshold_watchmaillog
- Nagios Send NSCA Path - the full path to the NSCA application on the cacti server
- Nagios Host to Send NSCA - the Nagios server that will receive the NCSA message
- NSCA Configuration file - the send_nsca.cfg file
I would appreciate hearing from anyone who gives this a try and if you have any suggestions for how to make it better. It works for me, your mileage may vary....
Jimmy, if folks find this useful, is there any chance of adding it to the next thold release?
| Description: |
|
 Download |
| Filename: |
thold-nagios.patch |
| Filesize: |
14.21 KB |
| Downloaded: |
22 Time(s) |
|
|
| Back to top |
|
 |
divagater Cacti User
Joined: 17 Nov 2004 Posts: 101 Location: Chapel Hill, NC.
|
Posted: Fri Nov 07, 2008 7:21 am Post subject: |
|
|
You replied to yourself almost 3 years later lol. As an FYI the version of NPC in this thread from 2005 is no more. The latest 2.x version is referenced here: http://forums.cacti.net/viewtopic.php?t=26540
Cheers,
Billy
|
|
| Back to top |
|
 |
wwwdrich Cacti User
Joined: 03 Feb 2005 Posts: 59 Location: San Jose, CA
|
Posted: Fri Nov 07, 2008 10:36 am Post subject: |
|
|
Well, I did write the patch almost a year ago, I only just had time to get it working all the way recently (i.e. something broke that we could have caught earlier had we linked the cacti thresholds into Nagios .
Just to be clear this is a patch against the threshold plugin, it is independent of NPC. Unfortunately I can't run NPC in my environment as my Cacti and Nagios servers have to run on separate machines. The two systems can barely keep up as it is, if there were on the same system there is no chance either would ever be up to date (60,000 rrd files in Cacti and 550/3500 hosts/services in Nagios). It's an I/O issue so there isn't an easy way to make it all run on the same box.
|
|
| Back to top |
|
 |
|