mortis
unread,Jun 20, 2013, 5:15:18 AM6/20/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pynag-...@googlegroups.com
Hi there!
I'm checking out this very promising pynag-tool and it works very well with basic configuration.
However, I'm running into some trouble when trying to use it to parse the config we have at work.
I'm not really sure how to start debugging this to find out where it actually crashes, but here's what I get:
python pynag-test.py "Ping" breeze
Traceback (most recent call last):
File "pynag-test.py", line 19, in <module>
nc.parse()
File "/usr/local/lib/python2.7/dist-packages/pynag/Parsers/__init__.py", line 1144, in parse
self._load_file(cfg_file)
File "/usr/local/lib/python2.7/dist-packages/pynag/Parsers/__init__.py", line 248, in _load_file
current['meta']['line_end'] = line_num
TypeError: 'NoneType' object has no attribute '__getitem__'
I'm running nagios 3.4.1-2 on Ubuntu 12.10. (for testing on my desktop)
mortis