<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I am trying to build a custom component for nagios and I need to access the “notes” field from the hostgroup definitions, but when I make a backend call to the function get_xml_hostgroup_objects($args=null) found in /usr/local/nagiosxi/html/includes/utils-objects.inc.php,
 the notes field is not returned.  I tried to modify the code to request the notes field, but the result was always blank.  Upon further inspection I found that the notes field does not appear to even make it into the ndoutils database at all (see copy of mysql
 output below).</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a way I can reconfigure nagios to put that information in the database for later retrieval?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">mysql> use nagios;</p>
<p class="MsoNormal">Reading table information for completion of table and column names</p>
<p class="MsoNormal">You can turn off this feature to get a quicker startup with -A</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Database changed</p>
<p class="MsoNormal">mysql> desc nagios_hostgroups;</p>
<p class="MsoNormal">+---------------------+--------------+------+-----+---------+----------------+</p>
<p class="MsoNormal">| Field               | Type         | Null | Key | Default | Extra          |</p>
<p class="MsoNormal">+---------------------+--------------+------+-----+---------+----------------+</p>
<p class="MsoNormal">| hostgroup_id        | int(11)      | NO   | PRI | NULL    | auto_increment |</p>
<p class="MsoNormal">| instance_id         | smallint(6)  | NO   | MUL | 0       |                |</p>
<p class="MsoNormal">| config_type         | smallint(6)  | NO   |     | 0       |                |</p>
<p class="MsoNormal">| hostgroup_object_id | int(11)      | NO   |     | 0       |                |</p>
<p class="MsoNormal">| alias               | varchar(255) | NO   |     |         |                |</p>
<p class="MsoNormal">+---------------------+--------------+------+-----+---------+----------------+</p>
<p class="MsoNormal">5 rows in set (0.00 sec)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">mysql></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">--</p>
<p class="MsoNormal">Keith S. Morgan</p>
<p class="MsoNormal">Remote Monitoring Unit</p>
<p class="MsoNormal">Safeguards, IAEA</p>
<p class="MsoNormal">Vienna, Austria</p>
<p class="MsoNormal">Office: +43 1 2600 26672</p>
<p class="MsoNormal">Handy: +43 699 165 26672</p>
<p class="MsoNormal"><a href="mailto:k.morgan@iaea.org"><span style="color:blue">k.morgan@iaea.org</span></a>
</p>
<p class="MsoNormal"> </p>
</div>
<div>
<p>This email message is intended only for the use of the named recipient. Information contained in this email message and its attachments may be privileged, confidential and protected from disclosure. If you are not the intended recipient, please do not read,
 copy, use or disclose this communication to others. Also please notify the sender by replying to this message and then delete it from your system.
</p>
</div>
</body>
</html>