Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I display custom host variables in the Nagios web interface such as _mac_address?

share|improve this question
Did you find the solution? I have the same question, and I don't want to use the notes directive – user307010 Aug 26 '15 at 21:44

You can do this using the notes directive inside of the host definition even if the variables are also defined their and they will show up in the host detail page (extinfo.cgi). For example:

define host {
        host_name web01
        display_name web01
        _mac_address  00:21:9B:00:21:9B
        _sw_port_1    sw01_g3
        notes $_HOSTMAC_ADDRESS$ $_HOSTSW_PORT_1$
        hostgroups +webservers
        use web_servers
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.