Nagios Plugin: Request for Comments
Moderators: Developers, Moderators
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
Nagios Plugin: Request for Comments
I suspect a lot of users like myself are running Nagios for monitoring/alerting and Cacti for trending. Since I spend most of my time in Cacti and its interface is far superior to Nagios, I decided to add a Nagios plugin to Cacti using cigamit's excellent plugin architecture.
Using the slightly modified MySQL 4.1.x NEB module for nagios 2.0 by Matthew Kent, Nagios "events" are written to some custom tables that are added to the Cacti DB.
This plugin is in very early development but I wanted to solicit some input for features or even if its a good idea. I attached a few screen shots to give an idea of what this plugin does so far.
~Billy
Using the slightly modified MySQL 4.1.x NEB module for nagios 2.0 by Matthew Kent, Nagios "events" are written to some custom tables that are added to the Cacti DB.
This plugin is in very early development but I wanted to solicit some input for features or even if its a good idea. I attached a few screen shots to give an idea of what this plugin does so far.
~Billy
- Attachments
-
- This is showing the Nagios summary screen.
- nag_plug2.png (49.38 KiB) Viewed 17850 times
-
- This is the service detail screen showing all the services expanded for 1 host and collapsed for the others.
- nag_plug1.png (86.47 KiB) Viewed 17850 times
-
- This is the Console -> Devices -> (Edit) screen where a field was added to map a Nagios host to a Cacti host.
- nag_plug3.png (66.82 KiB) Viewed 17850 times
This looks excellent. I too am running Nagios and Cacti.
FWIW I understand it that the future of Nagios will be a monitoring engine that is separate from the web interface... i.e. there will be several spin off projects to create interfaces in php,perl,ruby,asp... whatever. This is planned for version 3
http://www.nagios.org/development/upcoming.php
Making such an addon for Cacti is a really good idea. I probably wouldn't switch totally unless I could abandon the Nagios UI - i.e. maps, external commands, comments and scheduling.
FWIW I understand it that the future of Nagios will be a monitoring engine that is separate from the web interface... i.e. there will be several spin off projects to create interfaces in php,perl,ruby,asp... whatever. This is planned for version 3
http://www.nagios.org/development/upcoming.php
Making such an addon for Cacti is a really good idea. I probably wouldn't switch totally unless I could abandon the Nagios UI - i.e. maps, external commands, comments and scheduling.
[url=http://www.welham.net/]Steve W[/url]
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
Nagios Plugin for Cacti
I am glad to see some positive response to this plugin. It is my plan to eventually make this plugin a complete and alternative interface to Nagios.
I will definitely be sharing it and making it available for download in the very near future. This week I will be finishing up a few features that should be available in the first release as well as getting some initial documentation complete.
Look for the first release some time next week and keep the comments coming if you have any ideas about what you would like to see as a feature.
Cheers,
Billy
I will definitely be sharing it and making it available for download in the very near future. This week I will be finishing up a few features that should be available in the first release as well as getting some initial documentation complete.
Look for the first release some time next week and keep the comments coming if you have any ideas about what you would like to see as a feature.
Cheers,
Billy
Brilliant!!!!
This is exactly where both projects should be heading. Is it also tied into threasholds as suggested by your screenshots?
Any help in testing evaluating Id be MORE than happy to help.
Your plugin adds signifigantly to both projects as cacti lacks in good alerting and service checks and Nagios definately lacks in the performance trending department.
Given a modicum of stability Ill put this into a reasonable production environment of about 200 hosts.
thanks again for a great start on a very promising plugin.
Brett Stevens
Any help in testing evaluating Id be MORE than happy to help.
Your plugin adds signifigantly to both projects as cacti lacks in good alerting and service checks and Nagios definately lacks in the performance trending department.
Given a modicum of stability Ill put this into a reasonable production environment of about 200 hosts.
thanks again for a great start on a very promising plugin.
Brett Stevens
Re: Nagios Plugin: Request for Comments
Glad my contribution could be of some help. Let me know if you happen to find any other place you think a hook might be helpful, and I will add it to the plugin architecture.divagater wrote:[snip] I decided to add a Nagios plugin to Cacti using cigamit's excellent plugin architecture.
Maybe eventually the developers will take a gander at it and decide that it could be of some use (and put it in the core) so then your plugin could work out-of-the-box.
Looking good so far, keep it up!
A question. Is the thold plugin integrated? That would probably be the most useful feature in my mind. So far Ive been playing around with thold and Id love to integrate it strait into nagios . There would be a number of ways to do this, passive checks accepting a message dropped from the thold module. This is what I was trying using the log message functionality but I couldnt get consistant results. I will try again later.
Apart from that, what you show on your screenscrapes is just about perfect. The"Corporate User" probably, mostly just uses those functions.
Perhaps some of the grouping functions such as servicegroups and host groups could be added. However as IMHO I think the menubar is cluttered on the orriginal nagios wui can I suggest that you stick to what you have but add some sort of grouping checkbox / sorting options to provide filtering of hosts and services. In a large implimentation this could be a god send.
Keep up the excellent work and please let us know when you plan to release this
Apart from that, what you show on your screenscrapes is just about perfect. The"Corporate User" probably, mostly just uses those functions.
Perhaps some of the grouping functions such as servicegroups and host groups could be added. However as IMHO I think the menubar is cluttered on the orriginal nagios wui can I suggest that you stick to what you have but add some sort of grouping checkbox / sorting options to provide filtering of hosts and services. In a large implimentation this could be a god send.
Keep up the excellent work and please let us know when you plan to release this
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
Hey Brett. Your thinking was right on track with the way I feel this plugin should go. I also feel that the Nagios menu bar is clutered and as a long time user of Nagios I have an idea about which features of the UI are useful and which are not.
Development of the plugin is moving along nicely. I am currently working on command execution. When that is done I think I will have a usable Nagios UI alternative.
The very next step will be to integrate the thold plugin. I was actualy just discussing how best to do it right before I read your post.
Thanks for the comments and stay tuned.
~Billy
Development of the plugin is moving along nicely. I am currently working on command execution. When that is done I think I will have a usable Nagios UI alternative.
The very next step will be to integrate the thold plugin. I was actualy just discussing how best to do it right before I read your post.
Thanks for the comments and stay tuned.
~Billy
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Re: Nagios Plugin: Request for Comments
That's not a maybe..cigamit wrote:Maybe eventually the developers will take a gander at it and decide that it could be of some use (and put it in the core) so then your plugin could work out-of-the-box.
0.9.0 will include a plugin archecture. I have yet to start it and am going to be conversing with you, cigamit, about it.
I don't know at this time if old plugins will work with the new plugin arch. I will not promise that, nor do I have any detail, as I have only started my work on this path.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Re: Nagios Plugin: Request for Comments
Great!!! I will glady help out in any way I can, just let me know what you need done.rony wrote:That's not a maybe..cigamit wrote:Maybe eventually the developers will take a gander at it and decide that it could be of some use (and put it in the core) so then your plugin could work out-of-the-box.
0.9.0 will include a plugin archecture. I have yet to start it and am going to be conversing with you, cigamit, about it.
I don't know at this time if old plugins will work with the new plugin arch. I will not promise that, nor do I have any detail, as I have only started my work on this path.
The current architecture I have ported is GPLed and proven over the last couple of years in the Squirrelmail project (I'm a Developer and a Plugin Team Leader over there) Its simple yet extremely effective in what it can do, and ofcourse can be modified to take it even further if you wish. I would definitely like to see what you have in mind, so just drop me an email when you get the chance (maybe IRC?) and maybe we can start hashing something out.
Who is online
Users browsing this forum: No registered users and 0 guests