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

Plugin dies in a fire when host non-existent #9

Open
stdevel opened this issue Jan 20, 2018 · 0 comments
Open

Plugin dies in a fire when host non-existent #9

stdevel opened this issue Jan 20, 2018 · 0 comments
Assignees
Labels

Comments

@stdevel
Copy link
Owner

stdevel commented Jan 20, 2018

If a host does not exist, the plugin fails. Would be great to have an error message instead:

Traceback (most recent call last):
File "/usr/lib64/nagios/plugins/check_katello_currency.py", line 547, in <module>
    main(options)
  File "/usr/lib64/nagios/plugins/check_katello_currency.py", line 533, in main
    check_systems()
  File "/usr/lib64/nagios/plugins/check_katello_currency.py", line 87, in check_systems
    SYSTEM_ERRATA[system]["content_facet_attributes"]["errata_counts"]
KeyError: 'pinkepank.giertz.loc'
@stdevel stdevel added the bug label Jan 20, 2018
@stdevel stdevel self-assigned this Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant