Add notes to host status page
Posted: Wed Jan 22, 2014 10:55 am
Most of my hosts have some additional information defined in the notes field.
Currently, the only way to see that information in Nagios XI from the host status page is to open the Advanced tab and click "See this host in Nagios Core".
What I'd like to see is an option to have that displayed underneath the host name and alias on the status page.
I've already developed a patch to do it, but I need to re-install it after every upgrade so it would be nice if this could be included in a future version.
Patch against Nagios XI 2012R2.8c
Currently, the only way to see that information in Nagios XI from the host status page is to open the Advanced tab and click "See this host in Nagios Core".
What I'd like to see is an option to have that displayed underneath the host name and alias on the status page.
I've already developed a patch to do it, but I need to re-install it after every upgrade so it would be nice if this could be included in a future version.
Patch against Nagios XI 2012R2.8c
Code: Select all
729a730,736
>
> // Get notes for host status page
> $backendargs = array('host_id' => $host_id);
> $func = "get_xml_host_objects";
> $notexml = $func($backendargs);
> foreach($notexml->host as $obj)
> $note = strval($obj->notes);
741a749
> <?php if ($note != "") { echo "<br/><div>$note</div>"; } ?>
1611c1619
< ?>
\ No newline at end of file
---
> ?>
