Closed interduo closed 5 years ago
What version of cacti and monitor are you using?
Cacti: 1.2.3 Monitor plugin is synchronized with git with master branch.
When I click on icon the link is https://cacti/graph_view.php?action=preview&reset=1&host_id=174.
But going to this link from other place gets no error so I don't know how to diagnose this.
Interesting
OK let me see if I can reproduce it What does your access.log for Apache look like? Maybe we can see what action or error is being triggered
On Mon., May 20, 2019, 9:21 a.m. Interduo, notifications@github.com wrote:
But going to this link from other place gets no error so I don't know how to diagnose this.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Cacti/cacti/issues/2694?email_source=notifications&email_token=ADGEXTACT2APPFW4DMI7M2DPWKQV3A5CNFSM4HOAW2I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVYZXKA#issuecomment-493984680, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGEXTGRHZLJWQIVWVIIC7TPWKQV3ANCNFSM4HOAW2IQ .
Oh and this is just on a specific host?
On Mon., May 20, 2019, 9:42 a.m. Sean Mancini, sean@seanmancini.com wrote:
Interesting
OK let me see if I can reproduce it What does your access.log for Apache look like? Maybe we can see what action or error is being triggered
On Mon., May 20, 2019, 9:21 a.m. Interduo, notifications@github.com wrote:
But going to this link from other place gets no error so I don't know how to diagnose this.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Cacti/cacti/issues/2694?email_source=notifications&email_token=ADGEXTACT2APPFW4DMI7M2DPWKQV3A5CNFSM4HOAW2I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVYZXKA#issuecomment-493984680, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGEXTGRHZLJWQIVWVIIC7TPWKQV3ANCNFSM4HOAW2IQ .
172.20.2.42 - - [20/May/2019:15:50:37 +0200] "GET /plugins/monitor/monitor.php?action=ajax_status&size=monitor_medium&id=174 HTTP/1.1" 200 3947 "https://cacti/plugins/monitor/monitor.php?action=refresh&refresh=30&grouping=default&tree=-1&site=-1&template=-1&view=default&crit=0&size=monitor_medium&mute=false&rfilter=MU01OQ%3D%3D&status=-1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.103 Chrome/73.0.3683.103 Safari/537.36"
172.20.2.42 - - [20/May/2019:15:50:38 +0200] "GET /graph_view.php?action=preview&reset=1&host_id=174 HTTP/1.1" 200 9861 "https://cacti/plugins/monitor/monitor.php?action=refresh&refresh=30&grouping=default&tree=-1&site=-1&template=-1&view=default&crit=0&size=monitor_medium&mute=false&rfilter=MU01OQ%3D%3D&status=-1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.103 Chrome/73.0.3683.103 Safari/537.36"
172.20.2.42 - - [20/May/2019:15:50:39 +0200] "GET /graph_json.php?rra_id=0&local_graph_id=2323&graph_start=1558338638&graph_end=1558360238&graph_height=120&graph_width=500 HTTP/1.1" 200 26283 "https://cacti/graph_view.php?action=preview&reset=1&host_id=174" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.103 Chrome/73.0.3683.103 Safari/537.36"
This is a log. The error log is empty.
Oh and this is just on a specific host?
This is the only host whitch get this error.
Found only in firebug: https://cacti/graph_view.php?action=preview&reset=1&host_id=174
Unchecked runtime.lastError: The message port closed before a response was received.
I don't know is it important thing - I use modern skin.
Weird issue especially if it's only one device and the others are working fine I suspect something went wrong maybe try disable monitoring on the device and enable it again??
On Mon., May 20, 2019, 10:05 a.m. Interduo, notifications@github.com wrote:
I don't know is it important thing - I use modern skin.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Cacti/cacti/issues/2694?email_source=notifications&email_token=ADGEXTBTG5FGEKQNXP26LMTPWKV3DA5CNFSM4HOAW2I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVY552I#issuecomment-494001897, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGEXTCJP6YGQLNM77L2DU3PWKV3DANCNFSM4HOAW2IQ .
I did: "Disable Monitor Device" "Enable Monitor Device"
Add added more graphs (in this device I had only ping graph). The issue still exists.
Looks to me that the URL is missing the hostname or ip address.
I found another device whitch gets an error.
https://cacti/graph_view.php?action=preview&reset=1&host_id=183
rfilter=MU1hag%3D%3D
For me this looks strange. Could It cause errors?
Yes that is that.
You need to type in filter something with digit in front and then some letters like:
1MAJ
or 3M22
or this issue wouldn't happen.
%3D%3D is '=' in URL Encoding so probbably this is it.
Good find!
If I remember rightly, the rfilter parameter is both url and base64 encoded.
I've just pushed an update to monitor assuming that this was purely and escaping issue. Please check it out.
It didn't help.
Can you please upload a Screen2Gif of the transaction?
Yes, just give ma an email.
developers at cacti dot net.
When I am filtering 3 chars 1M3
the error didn't exists. When I am filtering 1M35
or 1m35
the error exists.
I did the screencast and sent it to mail.
I found an error in frontend (chrome console) error:
monitor.php?action=change&refresh=60&grouping=tree&tree=-1&site=-1&template=-1&view=default&crit=0&size=monitor_medium&mute=false&rfilter=MW0z&status=-1:292 Uncaught (in promise) DOMException
The error also appears when You mark at device and select EDIT. It's only appears from Monitor.php.
This will be fixed shortly. It should have been in the monitor plugin location. I'm closing here. You should see the update in about 5 minutes.
What commit is this? This one https://github.com/Cacti/plugin_monitor/commit/02a6a4662e9202f965825a32e74eeffbe770e66b ?
I did:
git fetch origin;
git checkout origin develop;
The issue still exists.
Describe the bug An repetable error when working with cacti.
To Reproduce Steps to reproduce the behavior:
Expected behavior No error.
Screenshots