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

Could not resolve commandline. Object not found #649

Open
tombradford opened this issue Feb 1, 2019 · 2 comments
Open

Could not resolve commandline. Object not found #649

tombradford opened this issue Feb 1, 2019 · 2 comments

Comments

@tombradford
Copy link

In the service information tab, I see the following:

Check command	Could not resolve commandline. Object not found

clicking edit service also produces the error message:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/adagios/views.py", line 43, in wrapper
    result = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py", line 546, in bulk_edit
    for i in _querydict_to_objects(request):
  File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py", line 806, in _querydict_to_objects
    result.append(_find_service(host_name, service_description))
  File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py", line 822, in _find_service
    return result[0]
IndexError: list index out of range

here is a sample of my config setup:

define command {
    command_name    test_command
    command_line    $USER1$/test_command.py -H $HOSTADDRESS$
}

define hostgroup {
    hostgroup_name      hgrpA
    alias               Example hostgroup A
}

define host {
    use             hosttemplate
    address         X.X.X.X
    host_name       hostA
    alias           hostA
    hostgroups      hgrpA
    contact_groups  contactGroupsA
}

define host {
    check_period            24x7
    notification_interval   120
    notification_period     workhours
    check_command           check-host-alive
    name                    hosttemplate
    check_interval          5
    max_check_attempts      10
    notification_options    d,u,r
}

define service {
    service_description     test_service
    host_name               *, !hostB
    active_checks_enabled   1
    notification_interval   60
    notification_period     24x7
    passive_checks_enabled  1
    max_check_attempts      3
    notification_options    w,c,r,u
    check_period            24x7
    check_interval          5
    check_command           test_command
}

i have 100s of hosts in in the hgrpA hostgroup, all which produce the above error.

I can see the command if i use the nagios configuration tool (at /nagios/cgi-bin/config.cgi?type=services)

I'm using adagios v1.6.3 and nagios v4.4.3

Related issue: #177

Any help would be much appreciated, thanks.

Tom

@gardart
Copy link
Contributor

gardart commented Feb 27, 2019

has this been fixed ?

@tombradford
Copy link
Author

unfortunately not, the issue is still outstanding

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