Hi All ,
I am newbie for sensu , I have created Mailer and handler for sensu . But its throwing error as below .
/var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `+’: can’t convert nil into String (TypeError)
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `filter_silenced'
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:22:in `filter'
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:40
from /etc/sensu/handlers/mailer.rb:27
May i know root cause for getting this issue ? Any help will be appreciated .
Hello,
Are you testing the handler manually? If so, the event data that you’re using could be incomplete, such as missing a check name.
Sean.
···
On Wed, Jan 29, 2014 at 4:46 AM, Manjunath Bavihal manjukdvg@gmail.com wrote:
Hi All ,
I am newbie for sensu , I have created Mailer and handler for sensu . But its throwing error as below .
/var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `+': can’t convert nil into String (TypeError)
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `filter_silenced’
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:22:in `filter’
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:40
from /etc/sensu/handlers/mailer.rb:27
May i know root cause for getting this issue ? Any help will be appreciated .
Hi ,
Kindly check the attached json file which is generated from sensu-server.log .
test.json (835 Bytes)
···
ವಂದನೆಗಳೊಂದಿಗೆ,
ಮಂಜುನಾಥ್ ಬಾವಿಹಾಳ್
೮೧೨೩೪೬೨೫೨೭
On Wed, Jan 29, 2014 at 10:56 PM, Sean Porter portertech@gmail.com wrote:
Hello,
Are you testing the handler manually? If so, the event data that you’re using could be incomplete, such as missing a check name.
Sean.
On Wed, Jan 29, 2014 at 4:46 AM, Manjunath Bavihal manjukdvg@gmail.com wrote:
Hi All ,
I am newbie for sensu , I have created Mailer and handler for sensu . But its throwing error as below .
/var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `+': can’t convert nil into String (TypeError)
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:88:in `filter_silenced’
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:22:in `filter’
from /var/lib/gems/1.8/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:40
from /etc/sensu/handlers/mailer.rb:27
May i know root cause for getting this issue ? Any help will be appreciated .