Ad Widget

Collapse

Need way to view IP address in trigger status page...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgoodman
    Member
    • Apr 2011
    • 33

    #1

    Need way to view IP address in trigger status page...

    Hey guys, maybe there is a way to do it from the interface, but I can't figure it out.

    I setup a new installation of Zabbix, 1.8.4, and it's generally great. However, I have several tiers of users, admins, super admins. When a user goes in to view a trigger, they are presented with the system name and the trigger status. They can acknowledge just fine. However, if they want to find out the IP of the system, I can't figure out a way to do it.

    The user *could* copy and paste the host name into the search, at which case they would be redirected to search.php and see the IP. This seems like a very complicated way of getting something so important as the IP.

    I don't want the host name to be an IP address because we have DNS in our environment for that very reason -- so changing the name to the IP is out of the question.

    Is there an easier way to get IP information in this scenario? I tried looking at the tr_status.php file to see if I could re-write it to display the hostname and the IP, but it was really complicated...I'd have to spend a lot more time with it...which I could do...just figured I'd reach out here first.

    So, if you know an easy way to get it, or a way to mod tr_status.php to display it -- that would be great.

    Thanks!
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #2
    I use FQDN names for the node registration in zabbix too, that way it is all consistent

    Maybe the {HOST.CONN}, {HOST.DNS} or {IPADDRESS} macros could be of use in notifications?

    http://www.zabbix.com/documentation/.../config#macros
    With kind regards,

    Raymond

    Comment

    • mgoodman
      Member
      • Apr 2011
      • 33

      #3
      Yeah, I can script the emails to insert the macros -- that's easy. But it's not the notifications that I'm talking about -- it's the dashboard, once you are in the system.

      If I have a low-level user log into the system and, without email notifications, he/she just wants to see the IP address of a system that has a failure, it is very difficult. I wasn't sure if there was some option I could set somewhere or a slight modification of the code to insert the ip next to the hostname.

      The biggest problem is that my environment is not very sane, so some systems use IP, others use DNS. I am going towards a DNS-based environment now that I am here, but we aren't there yet. And we don't control DNS either. Boooo.

      Comment

      • qix
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2006
        • 423

        #4
        You could use the builtin scripts for this.
        if you click on a host in the dashboard, a context menu will appear.

        This menu will provide you with the option of running a script.
        You could use nslookup or ping and similar for your scripts.

        That will allow the user to see the ip/dns for the host.
        With kind regards,

        Raymond

        Comment

        Working...