Ad Widget

Collapse

Zabbix web monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mairold
    Junior Member
    • Nov 2019
    • 5

    #1

    Zabbix web monitoring

    Hello,

    So ive been looking into zabbix website up/down monitoring, which im in a desperate need and either my googleing skills are useless or there just isnt anything that would work for me. So far the most promising tutorial has been https://sysadminwork.com/monitoring-...e-with-zabbix/ but seeing as my google chrome provides me with very different information, it can not be done.

    Heres what i need: We have 8 different websites and sadly sometimes they simply die and will be in need of a tomcat restart or serious investigation. While we are working for a fix, we need them to be monitored on our grafana screen, when they are UP or DOWN so we can quickly respond to bringing them back to life. Most of the tutorials out there are without authentication and the ones with authentications i have not been able to make work since our authentication is a bit different. All 8 pages redirect to another server in which they authenticate so normal methods of authentication stop working. To clearify when i enter a website say "something.company.com" i will instantly be redirected to "authserver.company.com" where i will have to authenticate myself and then right after i will be redirected back to the original page "something.company.com". Password log in is not the primary authentication either, first would be Smart-id, then Mobile-ID, then ID-CARD and finally the fourth tab would be password auth, meaning inserting raw data is instantly to the username and password to be logged in is impossible.

    Now is there anyone here that has recently made a working zabbix website up/down monitoring willing to help me out ? i am using zabbix 4.2 with grafana installed on top of that. Which is running on its own centos 7 VM. For further questions feel free to comment below and i will answer to the best of my abilities.

    Thanks in avance!
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    Zabbix have an http agent item type, that can make authentication (and return the values), 1) have you tried it?
    2) Can you make a login using curl? If you can, post here the curl command (hidding sensible information) and the http item that have you created for us to compare.
    3) If for some reasong you can't (or don't want) to use curl you can also create an external check, that run a external script (that you will need to create) and get the value to zabbix.



    Comment

    • Mairold
      Junior Member
      • Nov 2019
      • 5

      #3
      Thank you! I will work through the HTTP agent and see how it works and get back to you. So far ive had the problem that this type of monitoring is monitoring my authentication page not the actual page i want to monitor. Meaning it has to authenticate first and then check the page.

      Comment

      • Mairold
        Junior Member
        • Nov 2019
        • 5

        #4
        Regarding what curl does, this is the info i get, if i did it correctly. Im fresh sysadmin and some of the info displayed is beyond me
        Attached Files

        Comment

        Working...