Ad Widget

Collapse

Wrong URL monitoring results

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cyberneticrat
    Junior Member
    • Nov 2021
    • 7

    #1

    Wrong URL monitoring results

    Hello
    I'm new on Zabbix and recently I finished to configure my environment. I'm monitoring some URL's with one external script, some of then with Web Scenarios too. What's happening is: some of this URL's are unstable. I'm actually using another monitoring solution that captures lots of "500", "400" results, but in Zabbix shows me that almost everything is OK all the time, lots of "200" codes when it's not right. I'm using the same external script for both monitoring solutions, but the results of then are distinct, even on Web Scenario where I didn't used any script, it's a wrong result, but the script is right, I know because I've made some tests.
    Any idea for what's happening or a path to solve this?

    Thanks!
    Last edited by cyberneticrat; 24-11-2021, 13:50.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    I must say it's sounds a bit vague.

    Zabbix does not take values from nowhere. Especially if you talking bout external scripts. How would Zabbix know that you expect 200 as script result and 4xx or 5xx as bad result? It does not. It just takes whatever script returns as a result of it's execution and puts it into DB.

    Wanna do test? Add logging to a script. Not full process logging, just save value you going to pass to Zabbix into separate file. Run for a few hours and compare results what is saved in Zabbix and what is saved in log file.

    I would also encourage to share item/scenario configuration, script code/logic, and what kind of test you did to come to a conclusion that it's not operating properly.

    Also, if you have access to server, does access logs of web server and what Zabbix stores differ?

    Comment

    Working...