Quantcast

email notification when node falls offline?

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

email notification when node falls offline?

Chris Withers
Hi All,

The windows node in my cluster keeps on falling offline.

How can I get Jenkins to email me when any node falls offline?
(as it blocks a whole load of builds, but I don't get any notification
of those...)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: email notification when node falls offline?

oliver gondža
On Mon, 13 Aug 2012 10:20:37 +0200, Chris Withers <[hidden email]>  
wrote:

> Hi All,
>
> The windows node in my cluster keeps on falling offline.
>
> How can I get Jenkins to email me when any node falls offline?
> (as it blocks a whole load of builds, but I don't get any notification  
> of those...)
>
> Chris

Hi, This plugin might be doing what you need (watching Node online status).

https://wiki.jenkins-ci.org/display/JENKINS/Mail+Watcher+Plugin

--
oliver
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins" (was: email notification when node falls offline?)

Chris Withers
On 13/08/2012 09:24, oliver gondža wrote:
>> How can I get Jenkins to email me when any node falls offline?
>> (as it blocks a whole load of builds, but I don't get any notification
>> of those...)
>>
> Hi, This plugin might be doing what you need (watching Node online status).
>
> https://wiki.jenkins-ci.org/display/JENKINS/Mail+Watcher+Plugin

Yep, looks ideal, but it doesn't show in my "Available Plugins" section
(on either of the Jenkins installs I have access to).

Why might that be?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins" (was: email notification when node falls offline?)

Sami Tikka
The plugin requires a newer Jenkins than you are running?

-- Sami

Chris Withers <[hidden email]> kirjoitti 13.8.2012 kello 12.34:

> On 13/08/2012 09:24, oliver gondža wrote:
>>> How can I get Jenkins to email me when any node falls offline?
>>> (as it blocks a whole load of builds, but I don't get any notification
>>> of those...)
>>>
>> Hi, This plugin might be doing what you need (watching Node online status).
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Mail+Watcher+Plugin
>
> Yep, looks ideal, but it doesn't show in my "Available Plugins" section (on either of the Jenkins installs I have access to).
>
> Why might that be?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins"

Chris Withers
On 13/08/2012 11:10, Sami Tikka wrote:
> The plugin requires a newer Jenkins than you are running?

Nope, checked that already...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins"

Chris Withers
In reply to this post by Chris Withers
On 13/08/2012 11:04, oliver gondža wrote:
>
>> Yep, looks ideal, but it doesn't show in my "Available Plugins"
>> section (on either of the Jenkins installs I have access to).
>>
>> Why might that be?
>
> As far as I can tell it is listed as "mail-watcher-plugin" in
> "Miscellaneous" section.

Nope, doesn't show in the miscellaneous section for me...

> The problem there is that the maven project is not connected with its
> wiki page. I have released fixed version.

Where can I get the fixed version?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins"

oliver gondža
On Mon, 13 Aug 2012 14:57:13 +0200, Chris Withers <[hidden email]>  
wrote:

> On 13/08/2012 11:04, oliver gondža wrote:
>>
>>> Yep, looks ideal, but it doesn't show in my "Available Plugins"
>>> section (on either of the Jenkins installs I have access to).
>>>
>>> Why might that be?
>>
>> As far as I can tell it is listed as "mail-watcher-plugin" in
>> "Miscellaneous" section.
>
> Nope, doesn't show in the miscellaneous section for me...
>
>> The problem there is that the maven project is not connected with its
>> wiki page. I have released fixed version.
>
> Where can I get the fixed version?
>
> Chris
>

Fixed sources are at github [1]. It can be available through plugin  
manager within couple of hours. After that, plugin would be property  
linked with its wiki site and plugin manager would display its name and  
description properly. However, I am not sure this is the root of the  
problem.

The plugin is rather new but jenkins is already offering it ([2] should  
contain "mail-watcher-plugin").

So, provided you are using correct update site url ([2]) and you have  
obtained new update information (Plugin Manager > Advanced > Check now), I  
have no idea what is wrong.

[1] https://github.com/jenkinsci/mail-watcher-plugin
[2] http://updates.jenkins-ci.org/update-center.json

--
oliver
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins"

Chris Withers


On 13/08/2012 14:38, oliver gondža wrote:
> Fixed sources are at github [1]. It can be available through plugin
> manager within couple of hours.

It still isn't...

> The plugin is rather new but jenkins is already offering it ([2] should
> contain "mail-watcher-plugin").
>
> [2] http://updates.jenkins-ci.org/update-center.json

So, to be paranoid, I actually went to the above url in a browser, which
redirected to:

http://mirrors.karan.org/jenkins/updates/update-center.json

...which still doesn't contain the text "watcher", let alone
"mail-watcher-plugin". Can you verify the same behaviour? How about
anyone else?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin not showing in "available plugins"

oliver gondža
In reply to this post by Chris Withers
> ...which still doesn't contain the text "watcher", let alone
> "mail-watcher-plugin". Can you verify the same behaviour? How about
> anyone else?

You are right. mirrors.karan.org serves jenkins-core from Jul 22 but the  
other mirrors uses version from Aug 08 and the plugin is indeed missing.

Here is a list of mirrors I was redirected to that seems to be up to date:

http://ftp-chi.osuosl.org/pub/jenkins/updates/update-center.json
http://ftp-nyc.osuosl.org/pub/jenkins/updates/update-center.json
http://ftp.icm.edu.pl/packages/jenkins/updates/update-center.json
http://jenkins.mirror.isppower.de/updates/update-center.json
http://mirror.xmission.com/jenkins/updates/update-center.json

According to this status report http://mirrors.jenkins-ci.org/status.html,  
mirrors.karan.org is the only mirror that might cause problems.

--
oliver
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Why does http://updates.jenkins-ci.org/update-center.json redirect to a broken mirror?

Chris Withers
On 14/08/2012 08:47, oliver gondža wrote:
>> ...which still doesn't contain the text "watcher", let
>> alone"mail-watcher-plugin". Can you verify the same behaviour? How
>> aboutanyone else?
>
> You are right. mirrors.karan.org serves jenkins-core from Jul 22 but the
> other mirrors uses version from Aug 08 and the plugin is indeed missing.

Okay, but then why does http://updates.jenkins-ci.org/update-center.json 
redirect to http://mirrors.karan.org/jenkins/updates/update-center.json 
from all machines I've tried?

> According to this status report
> http://mirrors.jenkins-ci.org/status.html, mirrors.karan.org is the only
> mirror that might cause problems.

*sigh*

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin - config doesn't save

Chris Withers
In reply to this post by oliver gondža
On 13/08/2012 09:24, oliver gondža wrote:
>> The windows node in my cluster keeps on falling offline.
>>
>> How can I get Jenkins to email me when any node falls offline?
>> (as it blocks a whole load of builds, but I don't get any notification
>> of those...)
 >
> Hi, This plugin might be doing what you need (watching Node online status).
>
> https://wiki.jenkins-ci.org/display/JENKINS/Mail+Watcher+Plugin

Okay, so having pointed my jenkins instance manually at another mirror,
I have the plugin installed.

However, when I try and set the notification config on a node and hit
save, the config isn't saved; if I got back to the config page, the
"notify on" boxes are blank again...

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin - config doesn't save

oliver gondža
On Tue, 14 Aug 2012 11:02:00 +0200, Chris Withers <[hidden email]>  
wrote:

> However, when I try and set the notification config on a node and hit  
> save, the config isn't saved; if I got back to the config page, the  
> "notify on" boxes are blank again...
>
> cheers,
>
> Chris

I was unable to reproduce it using 1.447 nor 1.474.

Are the changes stored in configuration files in $JENKINS_HOME? Are there  
any errors logged?

--
oliver
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Why does http://updates.jenkins-ci.org/update-center.json redirect to a broken mirror?

Christopher Orr
In reply to this post by Chris Withers
On 08/14/2012 10:23 AM, Chris Withers wrote:
> On 14/08/2012 08:47, oliver gondža wrote:
>> According to this status report
>> http://mirrors.jenkins-ci.org/status.html, mirrors.karan.org is the only
>> mirror that might cause problems.
>
> *sigh*

FYI, that mirror is fixed now.

Regards,
Chris

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mail Watcher Plugin - config doesn't save

Chris Withers
In reply to this post by oliver gondža
Hi Oliver,

On 14/08/2012 11:35, oliver gondža wrote:
> I was unable to reproduce it using 1.447 nor 1.474.

I'm using 1.472, reluctant to upgrade given recent problems that have
been caused by upgrading...

> Are the changes stored in configuration files in $JENKINS_HOME?

No.

> Are
> there any errors logged?

Nope, but I figured out what the problem is: you *have* to specify an
address for both going online and offline for a node, or it won't save.
Also appears that you have to tab out of the field for the address to be
recognized.

Both of these feel like bugs, can you reproduce?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Loading...