Closed bsyd closed 9 years ago
I'll be out this weekend, so I'll take a look at it Monday. Thanks.
Take your time. I understand, I do the same. I have a family.
Sydney.
Sydney,
The last commit should fix this. Just let me know, thanks.
No, it still skips unknown1
in the example given above (first argument in the list).
It works for me now. The non-existent application is now appearing with zero values while the rest is working normally.
does not seem good for me
unknown1
line should be zero-filled. And the numbers sould be one line under.
Since I'm using an external Wowza server, the only way for me to simulate an Application shutdown is just changing it to a non-existent name, but I'm not sure if that's the best way.
That's what I do with the config listed in the first post. Please try with that config. It uses your usual external server.
(I'm now using the same config line, let's run it for a while) I hate asking this but, did you restarted Monitorix after applying the last commit?
Looks good here.
yes, I restarted, and deleted /var/lib/monitorix/wowza.rrd for good measure. Let's try again. Clean install, kept only config file. same result... I don't know what's happening.
I spotted the problem. when I specify only one server, the results are good. when I specify two servers, the second one is not good.
if you want to simulate multiple servers with the same server url, simply add a number or other garbage text at the end of /connectioncounts
Ah thanks!, I was struggling with it :)
Last commit should fix it.
I confirm. Closing bug.
reopening. I now got an error when switching configuration back to one server.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 661.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 662.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 778.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 779.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 875.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 876.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 967.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 968.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 1059.
Use of uninitialized value in multiplication (*) at /usr/lib/monitorix/wowza.pm line 1060.
closing again. there was a typo in my config.
OK, thanks anyway.
Sometimes wowza applications can be shut down (unloaded, automatically or manually). When this happens, they disappear from the connectioncounts result. This results in a garbled database, where the numbers are put in the wrong lines.
exemple
monitorix.conf
:Result :
surautv
numbers go inunknown1
, andtvmelayu
numbers go insurautv
.The correct result should be zero/null/NaN values for
unknown1
andunknown2
, and the numbers correctly inserted at their [0-7] offset, mapped to the list defined in the configuration.