Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class
587 views

Managment Pack Nginx not work

Jump to solution

We create a case for work Managment Pack Nginx, but the case was closed and was told to search for the answer in forum.

Not triggered Discovery, I will describe your problem step by step

Install RTSM package HPOprNginx.zip with errors (attached screenshots)

But in IT-Universe Manager CI Nginx not create.

Version Nginx 1.11.6

 

 

Labels (1)
Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Hi,

so basically, the MP works and behaves correctly. But you need to upload the RTSM package differently:

Alternative way:

copy HPOprNginx.zip to C:\HPBSM\odb\conf\factory_packages\content

(or equivalent on Linux)

and run

C:\HPBSM\opr\bin>opr-upload-ucmdb-package.bat HPOprNginx.zip

 

 

View solution in original post

0 Likes
14 Replies
Highlighted
Captain
Captain

Hello,

You are intergrating OMi with Nginx, as I know OMi is not support Management Pack for Nginx.

How can you integrate it? Please send me the guide which you are using.

Regards,

Hao

0 Likes
Highlighted
Absent Member.
Absent Member.

Is nginx running on Linux? 

You can log into that node, go to the instrumentation directory (I think it's /var/opt/OV/bin/instrumentation)

And run the monitorframework.pl with the parameters -debug and -topology.

Maybe you get a useful error message this way.

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

I did all the instructions from the official site OMi_MP_for_Nginx_UserGuide.pdf

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Nginx on LInux 6.7

[root@meret182 /var/opt/OV/bin/instrumentation]#  ./monitorframework.pl -debug -topolgy

./monitorframework.pl: line 2: use: command not found

: command not foundpl: line 2:

./monitorframework.pl: line 3: use: command not found

: command not foundpl: line 3:

: command not foundpl: line 4:

./monitorframework.pl: line 5: use: command not found

: command not foundpl: line 5:

./monitorframework.pl: line 6: use: command not found

: command not foundpl: line 6:

: command not foundpl: line 7:

./monitorframework.pl: line 8: use: command not found

: command not foundpl: line 8:

./monitorframework.pl: line 9: use: command not found

: command not foundpl: line 9:

./monitorframework.pl: line 10: use: command not found

: command not foundpl: line 10:

./monitorframework.pl: line 11: use: command not found

: command not foundpl: line 11:

./monitorframework.pl: line 12: syntax error near unexpected token `('

'/monitorframework.pl: line 12: `use File::Copy qw(move);

 

Redeploy policy repeatedly

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Looks like you are trying to run it as a shell script rather than a perl script.  Try this:

# export PATH=$PATH:/opt/OV/bin
# cd /var/opt/OV/bin/instrumentation
# ./monitorframeworkperl monitorframework.pl -developer -topology whatever.pm

CP.

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

[root@meret182 /var/opt/OV/bin/instrumentation]#  ./monitorframeworkperl monitorframework.pl -debug -topology
================================
Starting monitoring, using version 01.05.000, perl 5.016000, Agent: 12.00, Interval: all, Loglevel: 1
Nginx_Collector: we do discovery but the policy is for metric collection
Nginx_Collector: we do discovery but the policy is for metric collection
-------- Handling: /var/opt/OV/datafiles/policies/configfile/345edb7d-36aa-404f-a531-1db96990cc74_data --------
Starting collection
Running Nginx_Collector for topology.
Running: Nginx_Collector->topology
Nginx WebServer is running using non-default directory
Creating Nginx topology:
Nginx_Collector->topology succeeded
Calling addTopology
Topology xml created
Finished collection
 
 
Topology collected:
<Service>
<NewInstance ref="nginx_Nginx#meret182.ca.sbrf.ru">
  <Key>nginx_Nginx#meret182.ca.sbrf.ru</Key>
  <Std>DiscoveredElement</Std>
  <NodeGuid>meret182.ca.sbrf.ru</NodeGuid>
  <Attributes>
    <Attribute name="hpom_rootcontainer" value="host_node__meret182.ca.sbrf.ru" />
    <Attribute name="ucmdb_name" value="Nginx#meret182.ca.sbrf.ru" />
    <Attribute name="hpom_citype" value="nginx" />
    <Attribute name="ucmdb_product_name" value="nginx_web_server" />
    <Attribute name="ucmdb_vendor" value="Nginx" />
  </Attributes>
</NewInstance>
<NewInstance ref="host_node__meret182.ca.sbrf.ru">
  <Key>host_node__meret182.ca.sbrf.ru</Key>
  <Std>DiscoveredElement</Std>
  <Attributes>
    <Attribute name="hpom_citype" value="unix" />
    <Attribute name="ucmdb_name" value="meret182" />
    <Attribute name="ucmdb_primary_dns_name" value="meret182.ca.sbrf.ru" />
    <Attribute name="hpom_modifyexisting" value="false" />
  </Attributes>
</NewInstance>

But in the IT Universe Manager does not appear CI Nginx

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

[root@meret182 /var/opt/OV/bin/instrumentation]#  ./monitorframeworkperl monitorframework.pl -developer -topology whatever.pm
================================
Starting monitoring, using version 01.05.000, perl 5.016000, Agent: 12.00, Interval: all, Loglevel: 1
Template Directory: /var/opt/OV/datafiles/policies/configfiletmpl
Policy Directory:   /var/opt/OV/datafiles/policies/configfile
Nginx_Collector: we do discovery but the policy is for metric collection
Nginx_Collector: we do discovery but the policy is for metric collection


Topology collected:
<Service>

</Service>

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Good to see that it has topology to send to OMi. 

Can you please check two things:

1. Did you import the RTSM package HPOprNginx.zip (page 5 of the Nginx MP User Guide)?  If so was there any error?  If not, can you please import it.  Then...


2. Go to CI Type Manager.  In the menu, select CI Types > System Type Manager.  In the popup, scroll down the list to find product_name_enum and edit it. In the new popup, see if nginx_web_server is in the list.  If it is not in the list, click the + icon to add it as a new value in the list.

The try the discovery again.

CP.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

oops - just read your original post and see that you did import the RTSM package and there were errors.  So just jump to my suggestion in step 2 in my previous reply.

CP.

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Carol Park, thank you for your answers.

1) Add in list value. (screenshots 1.jpg)

2)Run command discovery

[root@amber ~]# ovdeploy -cmd "/var/opt/OV/bin/instrumentation/monitorframeworkperl monitorframework.pl -debug -topology" -host meret182
================================
Starting monitoring, using version 01.05.000, perl 5.016000, Agent: 12.00, Interval: all, Loglevel: 1
Nginx_Collector: we do discovery but the policy is for metric collection
Nginx_Collector: we do discovery but the policy is for metric collection
-------- Handling: /var/opt/OV/datafiles/policies/configfile/345edb7d-36aa-404f-a531-1db96990cc74_data --------
Starting collection
Running Nginx_Collector for topology.
Running: Nginx_Collector->topology
Nginx WebServer is running using non-default directory
Creating Nginx topology:
Nginx_Collector->topology succeeded
Calling addTopology
Topology xml created
Finished collection


Topology collected:
<Service>
<NewInstance ref="nginx_Nginx#meret182.ca.sbrf.ru">
<Key>nginx_Nginx#meret182.ca.sbrf.ru</Key>
<Std>DiscoveredElement</Std>
<NodeGuid>meret182.ca.sbrf.ru</NodeGuid>
<Attributes>
<Attribute name="hpom_rootcontainer" value="host_node__meret182.ca.sbrf.ru" />
<Attribute name="ucmdb_name" value="Nginx#meret182.ca.sbrf.ru" />
<Attribute name="hpom_citype" value="nginx" />
<Attribute name="ucmdb_product_name" value="nginx_web_server" />
<Attribute name="ucmdb_vendor" value="Nginx" />
</Attributes>
</NewInstance>
<NewInstance ref="host_node__meret182.ca.sbrf.ru">
<Key>host_node__meret182.ca.sbrf.ru</Key>
<Std>DiscoveredElement</Std>
<Attributes>
<Attribute name="hpom_citype" value="unix" />
<Attribute name="ucmdb_name" value="meret182" />
<Attribute name="ucmdb_primary_dns_name" value="meret182.ca.sbrf.ru" />
<Attribute name="hpom_modifyexisting" value="false" />
</Attributes>
</NewInstance>

</Service>
[root@amber ~]# ovdeploy -cmd "/var/opt/OV/bin/instrumentation/monitorframeworkperl monitorframework.pl -developer -topology whatever.pm" -host meret182
================================
Starting monitoring, using version 01.05.000, perl 5.016000, Agent: 12.00, Interval: all, Loglevel: 1
Template Directory: /var/opt/OV/datafiles/policies/configfiletmpl
Policy Directory: /var/opt/OV/datafiles/policies/configfile
Nginx_Collector: we do discovery but the policy is for metric collection
Nginx_Collector: we do discovery but the policy is for metric collection


Topology collected:
<Service>

</Service>

 

3) In IT Universe Manager CI nginx not add. (screenshots 2.jpg) 

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Can you try to unassign/undeploy the Nginx Discovery aspect and then assign/deploy it again?  Then check /var/opt/OV/log/System.txt on the node to see if it has any entries about discovery (ie, related to the agtrep process).

CP.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.