Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to validate event entity is invalid entity name must not be empty #19

Open
stlu opened this issue Mar 31, 2019 · 1 comment
Open

Comments

@stlu
Copy link

stlu commented Mar 31, 2019

I'm new in Sensu, I'm trying to use sensu-email-handler with check-disk-usage (check) in a docker container but when the event schedule the sensu-email-handler I obtain this error:

Error: failed to validate event: entity is invalid: entity name must not be empty

This is my configuration:

~ # sensuctl check info check-disk-usage
=== check-disk-usage
Name: check-disk-usage
Interval: 300
Command: check-disk-usage.rb -w 65 -c 90
Cron:
Timeout: 0
TTL: 0
Subscriptions: linux
Handlers: email
Runtime Assets: sensu-plugins-disk-checks
Hooks:
Publish?: true
Stdin?: false
Proxy Entity ID:
Organization:
Environment: default
Metric Format: nagios_perfdata
Metric Handlers:

~ # sensuctl handler info email
=== email
Name: email
Type: pipe
Timeout: 10
Filters: is_incident, not_silenced
Mutator:
Execute: RUN:  sensu-email-handler -f [email protected] -t [email protected] -s smtp.gmail.com -u [email protected] -p password -P 587
Environment Variables:

What is wrong? Thank you

@jspaleta
Copy link
Contributor

Hey,

Can you provide an example of the json version of the event that is failing to process?
sensuctl event info --format json <entity_name> <check_name>

It's a strange error for sure. Sensu events must have a entity section and the entity must be defined...
It could be the entity name is not being parsed out of the json by the handler for some reason. If you can provide me the json version of the event I can hopefully reproduce and find a solution,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants