Ad Widget

Collapse

Show service availability on webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matboy
    Member
    • May 2005
    • 35

    #1

    Show service availability on webpage

    Hi Guys,


    For displaying the status of a service on a webpage, what do you guys do ?

    Use a custom script that check the service in tha DB and check it's available or do you show it in a different way ?

    Would be nice to know how people do this.
  • AudiAddict
    Junior Member
    • Jun 2008
    • 29

    #2
    I give some of our clients a separate login and give them READ access for a certain server. Redirect the start page to a Screen/map with our logo and the actual server displaying it's status up/down.

    Would be nice to not give out logins and keep the zabbix internal only and show some kind of status on a webpage.

    Comment

    • AudiAddict
      Junior Member
      • Jun 2008
      • 29

      #3
      Would be awesome if we could display a network MAP which we made in zabbix to display our network and it's up/down status.

      It must be writing this data to the database and updating it every 30 sec, would it be possible to script it to output to a html somewhere? So I can display this page without having to login etc?

      Comment

      • matboy
        Member
        • May 2005
        • 35

        #4
        We actually should write a script that pulls the data from the DB per host

        That's all actually.

        Comment

        • tighep
          Senior Member
          • Dec 2007
          • 124

          #5
          Why not just work with the maps.php that is already there? In just 5 minutes I've managed to create a new maps.php that only displays one of my client specific network maps, without the header to change the map without any need to login. I guess maybe I'm missing something. I guess if you wanted it on a seperate server you would need to grab over the include files as well, but all in all, it should be relatively easy.

          Comment

          • AudiAddict
            Junior Member
            • Jun 2008
            • 29

            #6
            Is there anyway u can provide me with that page/source? I have no programming or php skills..

            Comment

            • tighep
              Senior Member
              • Dec 2007
              • 124

              #7
              I would need to know the sysmapid to make a static php page.

              Comment

              • dminstrel
                Member
                • Apr 2005
                • 72

                #8
                I've setup a status page on our intranet that use a couple of SQL queries to extract data from ZABBIX.

                For instance, this returns host status for hosts with problems (NOT OK or NOT MONITORED):

                SELECT hosts.hostid, host, dns, ip, available, status, error, hosts_profiles.tag as tag FROM hosts left join hosts_profiles on hosts.hostid = hosts_profiles.hostid where status <> '3' and tag <> '' or (available = '1' and status = '0') order by tag ASC;

                This returns Alerts for the last 24 hours:

                select distinct subject, FROM_UNIXTIME(clock) as time, alerts.subject as subject, alerts.triggerid, triggers.status, triggers.description as description from alerts left join triggers on alerts.triggerid = triggers.triggerid where FROM_UNIXTIME(clock) >= DATE_SUB(CURDATE(),INTERVAL 1 DAY) order by time desc;

                With a good PHP/MySQL tutorial (or even ASP if you're a mostly Microsoft shop), it's not that hard to setup.


                Cheers,

                Comment

                • nibb
                  Member
                  • Oct 2008
                  • 78

                  #9
                  Im not sure if theres is a way to posts reports public.

                  A script that connects to the database and pulls data its not the best thing, specially with security concerns. Its better if Zabbix itself can output data instead of relaying on something getting inside. Like publishing it via a special unprivilieged user and RSS or something similar and then you could grab it.

                  Remember that Zabbix as monitoring server probably has access to all your servers. You dont want Zabbix to be hacked or your whole network would be hacked. Its 1 point failure unless you have it on your internal network.

                  Comment

                  Working...