Email Notifications


Recommended Posts

+1 (record's stuck), but not in 5.0!  5.1 or 5.2 maybe.

 

Very stuck, as it has been requested back since the 4.x days, over and over again. Tom has acknowledged it to me at one point,

 

Quote from 7/12/2011,

 

Me: "I would like to throughout a request, most of the NAS appliances/software out there that I know of (ReadyNAS, FreeNAS as examples) come with an email client and one only has to enter details in a configuration page to send out alerts and would be great if you could add one as well. This way is would be certified by you, so everyone out there would not have to muck with different plugins to get emails from unRAID. Because out there right now there are “add C compiler, makepackage, etc. ssmtp, openssl, mailx”. I am not saying they may or may not be needed but it’s a black hole for many of us, we don’t know if it’s the proper version, etc… Having mail (knowing remotely there is an issue or condition and an automatic action can be taken on ones behalf, like overheat condition) and UPS support (gracefully shutdown in case of a power lose) are primary and lower everyone chances of failures and support . All others are secondary. I am sure the community can build the scripts but the core installed modules should come from you."

 

Tom: "As for email – yes, this has been brought up many times and should have been included early on – just something I haven’t quite been able to get to yet."

 

and so here we are today with the very same request. We very rarely get replies back. It's his product, he does as he wishes. A simple no I will not, or not for 5.0, something. For me due to his statement, I am still waiting for a long time for it to be included.

 

I am not posting the quote in spite, its to show I and many others have requested this as well as personally to Tom, and patiently wait year(s).

Link to comment

If emhttp did CGI, I would port nagios to unRAID. Along with ssmtp we would have monitoring and notification.

 

Since it doesn't do CGI, I would have to port an http server capable of CGI which makes the task that much larger.

 

There was talk of porting emhttp to lighttpd. That would be the groundwork needed to do the next phase.

 

i.e. unless someone wanted to create a nagios php front end.

 

Tom shouldn't have to re-invent the wheel, however we do need the framework in place for this.

 

Perhaps a list of what people want tested and notification for would help move this subject along.

 

Link to comment

If emhttp did CGI, I would port nagios to unRAID. Along with ssmtp we would have monitoring and notification.

 

Since it doesn't do CGI, I would have to port an http server capable of CGI which makes the task that much larger.

 

There was talk of porting emhttp to lighttpd. That would be the groundwork needed to do the next phase.

 

i.e. unless someone wanted to create a nagios php front end.

 

Tom shouldn't have to re-invent the wheel, however we do need the framework in place for this.

 

Perhaps a list of what people want tested and notification for would help move this subject along.

 

+1, although Nagios can be quite verbose.

Link to comment

i.e. unless someone wanted to create a nagios php front end.

 

http://www.ducea.com/2008/01/16/10-nagios-web-frontends/

 

I've used this one and while it has no configuration abilities, it's very nice. I used it in a pitch to try getting Nagios for monitoring our production servers at work and it was liked by my team. Management didn't go with it because father up decided to go with a different app that another shop had purchased. http://exchange.nagios.org/directory/Addons/Frontends-%28GUIs-and-CLIs%29/Web-Interfaces/Check_MK-Multisite/details

Link to comment

If emhttp did CGI, I would port nagios to unRAID. Along with ssmtp we would have monitoring and notification.

 

Since it doesn't do CGI, I would have to port an http server capable of CGI which makes the task that much larger.

 

There was talk of porting emhttp to lighttpd. That would be the groundwork needed to do the next phase.

 

i.e. unless someone wanted to create a nagios php front end.

 

Tom shouldn't have to re-invent the wheel, however we do need the framework in place for this.

 

Perhaps a list of what people want tested and notification for would help move this subject along.

 

It seems nagios is supporting a PHP front-end now. There are also a few active frontends too. The "official" frontend is Nagios V-Shell.

V-Shell

 

Another frontend:

Nagiosql

 

 

Link to comment

If emhttp did CGI, I would port nagios to unRAID. Along with ssmtp we would have monitoring and notification.

 

Since it doesn't do CGI, I would have to port an http server capable of CGI which makes the task that much larger.

 

There was talk of porting emhttp to lighttpd. That would be the groundwork needed to do the next phase.

 

i.e. unless someone wanted to create a nagios php front end.

 

Tom shouldn't have to re-invent the wheel, however we do need the framework in place for this.

 

Perhaps a list of what people want tested and notification for would help move this subject along.

 

It seems nagios is supporting a PHP front-end now. There are also a few active frontends too. The "official" frontend is Nagios V-Shell.

V-Shell

 

Another frontend:

Nagiosql

 

 

it's gotta be lightweight.

System Requirements[/size]Webserver like Apache 2.x[/q]

  • MySQL 5.x or greater
  • Nagios 2.x/3.x (local or remote) or a Nagios compatible monitoring system
  • PHP 5.2.0 or greater including:
      • PHP Module: Session
      • PHP Module: MySQL
      • PHP Module: gettext
      • PHP Module: filter
      • PHP Module: FTP (optional)
      • PECL Extension: SSH (optional)

      [*]Javascript activated in Webbrowser[/size][/l][/l][/l]

Link to comment

Nagios requires a database of some kind. No way around that. Their VMWare demo downloads come installed with PostgreSQL, the website itself talks about using MySQL.

 

It'll also need some means of storing or saving/restoring it's configuration files on the flash drive. If the database isn't stored on the flash drive, it'll need to be recreated on each boot and won't have any history data prior to boot.

Link to comment

Nagios requires a database of some kind. No way around that. Their VMWare demo downloads come installed with PostgreSQL, the website itself talks about using MySQL.

 

It'll also need some means of storing or saving/restoring it's configuration files on the flash drive. If the database isn't stored on the flash drive, it'll need to be recreated on each boot and won't have any history data prior to boot.

 

 

NAGIOS core does not require a database. From what I remember the base configuration uses text files and templates.

 

 

I've adminstired netsaint, nagios 1.x and nagios 2.x. All used text files. maybe nagios 3.x uses mysql/postgress. but I think it's an addon.

 

 

According to the website, the system requirements are gd library and a webserver. I'll know more as I dive into it. Maybe I'll just use nagios 2.x to make it simple.  As far as backup/restore of config files. that's the easy part.  We'll probably need some kind of automated tool to create a base config from the current running config for disk monitors. Other then that there;s only a few other resources that can be added.

 

 

For ups monitoring, I think that's another piece or just a plugin.

 

 

There's other tools available too. I've used big brother before but that looks commercial now. There was big sister which was big brother ported to perl.  We used that for years with great success.

 

 

Link to comment

Hrm. It's my understanding that Nagios stores historical data in a database but it does write the current status of the probes to a text file. It's possible that it keeps track of the current and recent status of the probes in memory which would be needed to detect a server flapping (going on and offline repeatedly in a short period). If it could be set up to not use a database, then nagios can provide basic monitoring which should suffice.

 

The only catch with using Nagios on the Unraid server itself is if the server hangs - nothing can be done there.

 

I would be totally stoked if Unraid could run Nagios, even more so if it could monitor other servers as well. I'd help make it happen but my knowledge of unix flavors is enough to get by and to seriously screw up a server.

 

The Check_MK front-end is simply beautiful and it communicates directly with Nagios core via API for realtime updates, no parsing of the current status text file as almost all other front ends do that don't read the database.

Link to comment

This is all great. So WeeboTech, will you be changing/updating the next RC with this? As I don't see anything from Tom here stating that's what he is going to do.

 

I have seen plenty of post just like this one now with a bunch of great ideas, thoughts, people excited, etc. all ended in the same way.

 

Here is one of my favorites from http://lime-technology.com/forum/index.php?topic=17495.0

 

To a certain degree, that's what we need as a starter.

 

I, for one, think that Tom needs to be far more collaborative & open with his development and future plans before I even think about continuing development of SimpleFeatures. My time is valuable, and I want the time I spend developing for Toms product and the community to be relatively easy. I don't want to have to jump through hoops to pass data around, I don't want to have the limitations that we currently have.

 

The community is building plugins for his product, generating interest and potentially creating sales for Tom. I've yet to see any movement on the plugin installer (or documentation), and no word on how he's going to help us by providing a decent development environment.

 

It's quite frustrating, he's not doing himself any favours. Let's hope for a more productive 2012.

 

2012 is ending how did we do? The community as a whole whipped up some amazing amount of work. That's for sure.

 

Link to comment
  • 1 month later...

When unRAID goes final and the plugin architecture is worked out I'll work on it.

Until then,  it's a discussion. My time is limited, so I have to work with a known before I venture further.

last time I started writing addons/plugins the architecture changed.

 

I'd managed to get nagios (2) mostly working in the 4.x days and in general, I find that I don't really care about the web server - I'm far happier with a really good, super tiny, super reliable monitoring platform that can let me know when something goes wrong.  Frankly, other than usual old disk problems, my production UnRAID server is one of the most reliable systems I have - hence it's a great home for nagios.

 

I did let my nagios efforts fall to the side when I started delving into the 5.x betas.  Probably time to pick it back up again.  IMO, first step is a simple plg with just nagios core and no web server.  Real men use the command line.

 

Weebotech - had you started any sort of plg effort or just install based on the slackware scripts?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.