opinkerfi / adagios

Adagios - Web Based Nagios Configuration
GNU Affero General Public License v3.0
330 stars 75 forks source link

State History Error in version 1.5.0 #378

Closed rprihoda closed 9 years ago

rprihoda commented 10 years ago

Clicking link http://localhost/adagios/status/state_history

returns: Oh no, something went wrong ☹

TypeError: get_state_history() got an unexpected keyword argument 'strict'

Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/adagios/views.py", line 43, in wrapper result = view_func(request, _args, *_kwargs) File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 791, in state_history c['log'] = log = l.get_state_history(start_time=start_time, end_time=end_time,strict=False) TypeError: get_state_history() got an unexpected keyword argument 'strict'

tomas-edwardsson commented 10 years ago

The strict parameter was added in pynag-0.8.6, you need at least that version.

palli commented 9 years ago

I guess upgrading pynag fixed this problem. If you are using adagios stable from rpm, the yum dependencies will make sure you have the required version of pynag.

Marking this as closed, if you are still having any issues, dont hesitate to reopen.