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

Fails when performance data has Infinity value #59

Closed
professoruss opened this issue Sep 22, 2015 · 1 comment
Closed

Fails when performance data has Infinity value #59

professoruss opened this issue Sep 22, 2015 · 1 comment

Comments

@professoruss
Copy link

/dev[2015/09/22 19:11:54] {diesel} ERROR|-- Unhandled Exception in local loop <<function read_status at 0x3288140>> --
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/diesel/core.py", line 195, in run
self.loop_callable(_self.args, *_self.kw)
File "/srv/nagios-api/nagios-api", line 833, in read_status
NAGIOS = Nagios(statusfile)
File "/srv/nagios-api/nagios/core.py", line 21, in init
self._update(statusfile)
File "/srv/nagios-api/nagios/core.py", line 72, in _update
for obj in next_stanza(f):
File "/srv/nagios-api/nagios/core.py", line 58, in next_stanza
if (n_val == int(n_val)):
OverflowError: cannot convert float infinity to integer
[2015/09/22 19:11:54] {diesel} WARNING|(Keep-Alive loop <Loop id=1 callable=<function read_status at 0x3288140>> died; restarting)

@professoruss
Copy link
Author

Thanks!

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

1 participant