<div><font size="2">Hello,<br><br>I am trying to develop a patch that helps me to hide certain hostgroups from the status cgi. I thought of something like adding a "shouldnotseeme-" prefix to the hostgroup alias:<br><br>define hostgroup {<br> hostgroup_name shown<br> alias This Host Group will be displayed<br> members host1,host2,host3<br> }<br><br></font><div><font size="2">define hostgroup {<br>
hostgroup_name not-shown<br>
alias shouldnotseeme-This Host Group will not be displayed<br>
members host3,host4,host5<br>
}<br>
</font><br>First of all I must admit I am no C programmer. <br>I had a look at the status.c source file. Around line 3090 I found a procedure show_hostgroup_overview. Now I'd like to simply check there if hstgrp->alias contains the string "shouldnotseeme-"<br>Unfortunally I do not know how to do this. <br>With PHP I think it would look like this:<br><br> if (strstr($hstgrp->alias, "shouldnotseeme-") != FALSE)<br> {<br> // don't show this one<br> ..<br> }<br><br>But I have no idea how to write this in C :( Can someone point me in the right direction. Do you think this will work at all? <br><br><br>Gruesse - Best regards<br><br>Daniel Tuecks<br>System Engineer<br>Consulting Services<br>Computacenter AG & Co. oHG<br>Kokkolastrasse 1, 40882 Ratingen, Germany<br>Phone: +49 (0)2102 169-0, Fax: +49 (0)2102 169-1144, Mobil: +49 (0)172 984 98 77<br>Email: <a href="mailto:daniel.tuecks@computacenter.com">daniel.tuecks@computacenter.com</a><br>Visit us on the Internet: http://<a href="https://www.mycomputacenter.de/get/uri/http://.f_wxyBgtsw22knq07t7Pvx">www.computacenter.de</a><br>Visit our Online-Shop: http://<a href="https://www.mycomputacenter.de/get/uri/http://.f_wxyBgtsw22knq07t7Pvx/connect">www.computacenter.de/connect</a><br><br>This email is confidential. If you are not the intended recipient,<br>you must not disclose or use the information contained in it.<br>If you have received this mail in error, please tell us<br>immediately by return email and delete the document.<br></div></div>