<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nikola Cavar on Medium]]></title>
        <description><![CDATA[Stories by Nikola Cavar on Medium]]></description>
        <link>https://medium.com/@nikolacvr?source=rss-2e3d44474a90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Nikola Cavar on Medium</title>
            <link>https://medium.com/@nikolacvr?source=rss-2e3d44474a90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:42:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikolacvr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HP uCMDB Integration Challenges: Part 2]]></title>
            <link>https://medium.com/@nikolacvr/hp-ucmdb-integration-challenges-part-2-f23e212553a3?source=rss-2e3d44474a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/f23e212553a3</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[hp-ucmdb]]></category>
            <category><![CDATA[global-id]]></category>
            <category><![CDATA[hp-service-manager]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Nikola Cavar]]></dc:creator>
            <pubDate>Sat, 28 Oct 2017 11:54:59 GMT</pubDate>
            <atom:updated>2017-11-11T11:38:31.313Z</atom:updated>
            <content:encoded><![CDATA[<p>What will happen if somebody deletes a server CI from uCMDB unintentionally?</p><h4>Introduction</h4><p>This simple scenario explains what happens if somebody deletes a CI in uCMDB which has been already pushed to ServiceNow or HP ServiceManager.</p><h4>Sequence Diagram</h4><p>This diagram is similar to the diagram in the <a href="https://medium.com/@nikolacvr/integration-challenges-generated-global-ids-and-integration-part-1-b1081ac73cfb">Part 1</a> so only differences will be explained here:</p><p>10. CI is deleted from HP uCMDB<br>11. uCMDB triggers a population job<br>12. A deleted CI is retrieved from ServiceNow<br>13. UCMDB creates a new CI and ServiceNow correlation_id is set as a new CI global_id<br>14. UD rediscovers the same server<br>15. UD creates a new CI instanceand it defines all attributes except UCMDB global_id because global_id is generated by UCMDB Server.<br>16. UCMDB merges CI retrieved from ServiceNow and the new CI created by UD in the reconciliation process. UD updates existing CI in UCMDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*VJqNzR7qpF3XOoGT0PonfQ.png" /><figcaption>Unintentional CI deletion from HP uCMDB</figcaption></figure><h4>How does uCMDB inform ServiceNow a CI has been deleted?</h4><p>It doesn’t. It’s essential to include the last access time attribute in the push because HP Universal Discovery (UD) updates CIs when it rediscovers them. CI “touching” is another name for updating the last access time by discovery jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IApMBUe3VoE2t_V4fNmY8Q.png" /></figure><h4>How does ServiceNow know CI has been deleted in HP uCMDB?</h4><p>HP uCMDB implements the configuration management database (CMDB) which means it contains the actual state. If server is not provisioned it can’t be discovered …</p><p>On the other hand ServiceNow contains a planned state and CIs are never deleted from ServerNow. Why? Because nobody wants to loose history, e.g. incidents must be mapped to configuration items (CIs) and many others.</p><p>Then, how does ServiceNow handles CI deletions? ServerNow must implement a mechanism which will:</p><ol><li>Check Last Access Time</li><li>If CI hasn’t been “touched” for too long there are three options:<br>a) Discovery doesn’t work<br>b) A CI has been retired in ServiceNow and deleted from uCMDB. Planned changes can be automatically accepted and noted in ServiceNow.<br>c) Everything works and CI has not been retired in ServiceNow. ServiceNow will detect that CI hasn’t been rediscovered (touched). Too many unplanned changes have to be addressed from the process and people perspective and not technology.</li></ol><h4>Conclusion</h4><p>Deleting a CI from uCMDB is a simple scenario because the original state is restored in the next cycle:</p><ol><li>Pull from Service Now (to get a CI name and global_id)</li><li>Discovery (discover all attributes)</li><li>Push back to ServiceNow to update mapped attributes</li></ol><p><a href="https://medium.com/@nikolacvr/integration-challenges-generated-global-ids-and-integration-part-1-b1081ac73cfb">Part 1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f23e212553a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HP uCMDB Integration Challenges: Part 1]]></title>
            <link>https://medium.com/@nikolacvr/integration-challenges-generated-global-ids-and-integration-part-1-b1081ac73cfb?source=rss-2e3d44474a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1081ac73cfb</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[global-id]]></category>
            <category><![CDATA[hp-ucmdb]]></category>
            <category><![CDATA[hp-service-manager]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Nikola Cavar]]></dc:creator>
            <pubDate>Fri, 27 Oct 2017 09:08:29 GMT</pubDate>
            <atom:updated>2017-11-03T08:36:07.058Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Generated “global” IDs and integrations</em></p><p>Anybody can generate an ID and announce it as global ID but in reality if there is no central registry other tools especially other vendor products won’t be aware of your global IDs. In reality your global ID will remain only global for you or in the best case it will be global for one vendor.</p><p>I will publish stories based on my experience with uCDMB, Service Manager and ServiceNow integrations. In fact MicroFocus uCMDB as ITILv3 CMDB implementation could be integrated to any product but challenges would remain.</p><p>My goal is to write about concepts based on my experience in real life and I’ve chosen “HP” software portfolio due to my background. But as I said, products and technologies have been changing but concepts have remained.</p><h4>Generating IDs</h4><p>UUID is a standard algorithm for generating unique identifiers but the protocol is not sufficient and it doesn’t guaranty it will be universally unique as the first letter in the acronym might give us an impression.</p><p>HP uCMDB probably uses something like in the example below:</p><pre>[root@zabbix ~]# uuidgen -r | sed -s &#39;s/-//g&#39;<br>b5585dad2c7b453185804b47ee58bc87<br>[root@zabbix ~]# uuidgen -r<br>03dfac37-0988-4864-a1f0-b9f9e74b8844</pre><h4>Sequence Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*KjMDOn8ATNzLeFnHWHNrnw.png" /><figcaption>Diagram 1: Discover a new CI which does not exist in target product</figcaption></figure><ol><li>A new server is provisioned.</li><li>HP Universal Discovery (UD) jobs collect all information for discovered system</li><li>UD creates a new CI object with all discovered attributes and it pushes CI to uCMDB. IMPORTANT: global_id hasn’t been defined yet.</li><li>HP uCMDB Server in the reconciliation process finds out there are no CI candidates for merge so it creates a new CI based on input provided by UD.</li><li>IMPORTANT: global_id (random UUID) is generated and assigned by the uCMDB Server.</li><li>In our case uCMDB global_id has been mapped to the correlation_id in Service Now (SN, SNOW). SN searches CIs by name because the name has been defined by the configuration management team as a sufficient criteria to identify server CIs.</li><li>This is a new server so a CI does not exist in SN.</li><li>A new CI has been created (a server name and a correlation id have been populated). The correlation_ d attribute will be used as back reference. For example, ServiceNow users will open UCMDB CIs in the uCMDB Browser by following the link which contains correlation id (= global_id in uCMDB).</li><li>Adding a new CI is a change and all changes are handled by other ITIL process called Change Management.</li></ol><h4>CI is deleted from uCMDB and rediscovered by UD</h4><p>If server is shut down due to any reason after a while as defined in the CI life cycle it will be removed from uCMDB. This process is called aging and it guaranties CMDB accuracy (by default after 40 days)</p><p>Afterwards, the same server is started and uCMDB (Universal Discovery) re-discovers it.</p><p>Is it still the same server because the server name, IP address, bios_uuid, serial_number and so on haven’t been changed? Yes it is. Since uCMDB generates random identifiers all integrated products which have been populated from uCMDB will loose back reference. Unfortunately uCMDB global id is a random string which is generated when a new CI is created.</p><p>IMPORTANT: Do not forget, when the aging period expires the old CI is deleted so there is nothing to be compared to when the server is rediscovered. Re-discovery automatically creates a new CI (a new random global_id)</p><h4>The Calculated ID</h4><p>The only way to handle deleted and recreated CIs is to introduce another attribute which will be calculated only once and it won’t be a random string. The new attribute (Correlation ID) should be calculated based on CI identification criteria otherwise the system would merge or update too many CIs in integrated products.</p><p>Designing a new ID is not a trivial problem because it depends on enterprise processes (ITILv3, Configuration Management, ….).</p><p>For example if somebody re-installs a server and he replaces Windows by Linux. Is this a new CI or it is still the same? If a server is converted from a physical server to a virtual machine is it still the same CI? And so on …</p><p>All these questions have to be answered by the configuration management team because the calculated id is going to be promoted as global unique for all HP uCMDB integrations and it will not change no matter what happens.</p><p>The snippet below does not propose any important attributes and it’s just an example how to calculate md5sum which could be used as new correlation IDs.</p><pre>import hashlib<br><br>def calculateId(attribs):<br><br>    plain = &#39;&#39;<br>    for k in sorted(attribs.keys()):<br>        plain = plain + &quot;|&quot; + k + &quot;=&quot; + attribs[k]<br><br>    hash = hashlib.md5(plain.encode(&#39;utf-8&#39;)).hexdigest().lower()<br>    return hash + plain<br><br>if __name__== &quot;__main__&quot;:<br>    attribs = dict()<br>    attribs[&#39;name&#39;] = &#39;servername&#39;<br>    attribs[&#39;os_family&#39;] = &#39;Linux&#39;<br>    attribs[&#39;os_name&#39;] = &#39;CentOS Linux release 7.4.1708 (Core)&#39;<br><br>    print(calculateId(attribs))</pre><p>And the result is …</p><pre>555e6718ca51a293ce6a0ecf6172cd2d|name=servername|os_family=Linux|os_name=CentOS Linux release 7.4.1708 (Core)</pre><p><a href="https://medium.com/@nikolacvr/hp-ucmdb-integration-challenges-part-2-f23e212553a3">Part 2</a>, …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1081ac73cfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zabbix triggers and multiple expressions: How to migrate HP OML policy with multiple thresholds to…]]></title>
            <link>https://medium.com/@nikolacvr/zabbix-triggers-and-multiple-expressions-how-to-migrate-hp-oml-policy-with-multiple-thresholds-to-9ea08d5d55db?source=rss-2e3d44474a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ea08d5d55db</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[hp-operations-manager]]></category>
            <category><![CDATA[policy]]></category>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Nikola Cavar]]></dc:creator>
            <pubDate>Thu, 26 Oct 2017 13:05:10 GMT</pubDate>
            <atom:updated>2017-10-26T13:05:10.294Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zabbix triggers and multiple expressions: How to migrate HP OML policy with multiple thresholds to Zabbix?</h3><p>Unfortunately Zabbix cannot handle multiple thresholds in the same trigger so if you want to achieve the same effect you have to create one trigger for each threshold (HP Operations Manager policy condition) and create dependencies.</p><h3>Configuration</h3><ol><li>If Disaster is in PROBLEM state do not alert as High</li><li>If High in PROBLEM state do not alert as Warning</li><li>if Disaster is in PROBLEM state, do not alert on High and Warning.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpP2pOfBKpFeieh0fzsPOg.png" /></figure><h3>Test</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_FsrlKTE9OG6p8G9KS99A.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 1<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000119&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VR04ZtivZxvB7uHmVJKMEA.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 5<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000092&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNCUjC33BSX_cNKccg_zrw.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 10<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000121&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PlVKM9vhnQ8EPVUlkXcscA.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 5<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000115&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQNAk9E6-3mqiYG8jdQxzA.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 1<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000108&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDabWdJ1XG9x2Dx1AmZUuw.png" /></figure><pre>[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 0<br>info from server: &quot;processed: 1; failed: 0; total: 1; seconds spent: 0.000048&quot;<br>sent: 1; skipped: 0; total: 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkYpbN08w4hDDfeyoIXGsg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ea08d5d55db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>