This is my first post to this mailing list, I tried to find something related to this issue googling and looking for other topics here, but couldn't find anything.
I just installed pynag from the lastest tag (pynag-0.4.6-1), and I'm getting this error:
$ pynag list
Traceback (most recent call last):
File "/usr/local/bin/pynag", line 523, in <module>
parse_arguments()
File "/usr/local/bin/pynag", line 59, in parse_arguments
list_objects()
File "/usr/local/bin/pynag", line 251, in list_objects
objects = search_objects(search_statements=where_statement)
File "/usr/local/bin/pynag", line 132, in search_objects
objects += pynag.Model.ObjectDefinition.objects.filter(**conditions)
File "/usr/local/lib/python2.6/dist-packages/pynag/Model/__init__.py", line 442, in filter
for i in self.all:
File "/usr/local/lib/python2.6/dist-packages/pynag/Model/__init__.py", line 305, in get_all
self.reload_cache()
File "/usr/local/lib/python2.6/dist-packages/pynag/Model/__init__.py", line 345, in reload_cache
ObjectRelations.resolve_hostgroups()
File "/usr/local/lib/python2.6/dist-packages/pynag/Model/__init__.py", line 269, in resolve_hostgroups
ObjectRelations.hostgroup_subgroups[group] = subgroups
AttributeError: type object 'ObjectRelations' has no attribute 'hostgroup_subgroups'
My nagios installation is on /usr/local/nagios. Any ideas?