Absent Member.. Absent Member..
Absent Member..
698 views

Store metric to CODA (OMU 9.10)

Jump to solution

Hi!

 

I cant find answer anywhre here.

 

I have shell script, that monitor  directory content coutn ( ls -l | ws -l)

I need to save this value in coda.

 

So, in measurement threshold policy set:

 

Do I need do made something else?

May be I need to create this Metric on CODA before I create policy?

Now this is not work.

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Absent Member.. Absent Member..
Absent Member..

I find solution.

 

It is not possible to store custom metric in CODA.

So, right way is to  set Data Source not CODA, but custom element.

 

After this, all works fine.

View solution in original post

0 Likes
4 Replies
Absent Member.. Absent Member..
Absent Member..

Hi,

 

did you send your value back to the policy with the opcmon command?

 

Command Syntax to submit monitored values:

 

opcmon <parameterlist>

 

Parameter              Value                                                              Required

monitor_name=     name of monitor to deliver value to      yes

object=                     component which caused/detected       no
                                    or was affected by the problem 

-option <var>=       additional parameter of any kind           no
                                    supplying a value;  may be given
                                    multiple times 

 

you can look also in a powerpoint presentation:

http://nas.wowunix.com/down/manual/etc/ovo%20%EC%8A%AC%EB%9D%BC%EC%9D%B4%EB%93%9C/mod11_sc.ppt

 

 

0 Likes
Absent Member.. Absent Member..
Absent Member..

Here is the listing of my script:

 

#cat getdircontentcount.sh
#!/bin/sh
FILESCOUNT=`ls $1 | wc -l`
opcmon $2=$FILESCOUNT

 

in policy I use: getdircontentcount.sh <directory> <policy>

 

So? I think? script works fine.

 

Any suggestion?

 

I just need some way to collect custom metric in any of OA database ( CODA or PA nevermind). Also I need to see this metric usint Performance manager.

 

 

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hi,

 

for me, i miss in the last row in your script, the opcmon command with policyname.

 

In your excample: opcmon TestCollectMetric=$FILESCOUNT

 

Look in the presentation slide 9 or 15

 

Tipp: you can look at the in the database with the command: ovcodautil -dumpdcoda or ovcodautil -dumpds [Datasource]

 

0 Likes
Absent Member.. Absent Member..
Absent Member..

I find solution.

 

It is not possible to store custom metric in CODA.

So, right way is to  set Data Source not CODA, but custom element.

 

After this, all works fine.

View solution in original post

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.