News:

We really need your input in this questionnaire

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Nikk

#31
General Support / Re: Log parsing
May 19, 2014, 02:48:06 PM
Yes, first problem was obvious negligence mistake.

And with upgrade to 1.2.14 everything works fine, thank you :)

Regards,
Nikk
#32
Script looks like this:
Quote
snmp = CreateSNMPTransport($node);
value = SNMPGetValue(snmp, ".1.3.6.1.2.1.16.1.1.1.3." . $1);
if (value != null || value != 0) return value;
else return false;

Maybe i just don't get it :)
#33
General Support / Re: Log parsing
May 14, 2014, 10:39:50 AM
Yes, i have changed the parser a little bit, but it doesn't change the problem. (see 1st screen) :/

So the parser is:
Quote
<parser trace="9">
    <file>C:\NetXMS\var\log</file>
   
    <rules>
        <rule>
            <match>(StatusPoll.*)</match>
         <event>100049</event>
        </rule>
    </rules>
</parser>

And attached is both agent and server logs.
#34
General Support / Re: GetDCI
May 14, 2014, 09:42:54 AM
It could be, but I don't have no direct access to that server to check it. Thank you!
#35
General Support / Re: GetDCI
May 12, 2014, 12:10:38 PM
Anyway, i'm still getting the other disks (see 1. screen), maybe the script isn't right.

Then i tried your script:
Quotevalue = AgentReadParameter($node, "FileSystem.Total(" . $1 . ")");
return (value != null) && (value > 0);

And get rid only of Disk A:, but no disk E: (see 2. screen).
#36
Victor you are right, i'm receiving null values, so is there a chance to get rid of them too? I tried to add != null, but no success.
#37
General Support / Re: Log parsing
May 12, 2014, 10:55:45 AM
Yes, sorry for wrong log, here is the agent log:

Quote
[12-May-2014 10:49:16.919] [DEBUG] LogParser: file size differs for stat(4) and fstat(C:\NetXMS\var\log), assume file rename
[12-May-2014 10:49:16.919] [DEBUG] LogParser: file "C:\NetXMS\var\log" (pattern "C:\NetXMS\var\log") successfully opened
[12-May-2014 10:49:16.919] [DEBUG] LogParser: parsing existing records in file "C:\NetXMS\var\log"
[12-May-2014 10:49:16.935] [DEBUG] Match line: "[12-May-2014 06:19:48.093] [DEBUG] Node::createAgentConnection(Proxy) [383]): conn=0000000002827EB0"
[12-May-2014 10:49:16.935] [DEBUG] checking rule 1 ""
[12-May-2014 10:49:16.935] [DEBUG]   rule has no context
[12-May-2014 10:49:16.935] [DEBUG]   matching against regexp (StatusPoll.*)
[12-May-2014 10:49:16.935] [DEBUG]   no match
[12-May-2014 10:49:16.935] [DEBUG] Processing stopped at end of rules list; result = false
[12-May-2014 10:49:16.951] [DEBUG] Match line: "[12-May-2014 06:19:48.124] [DEBUG] StatusPoll(JURM [430]): boot time set to 1395223729 from agent"
[12-May-2014 10:49:16.951] [DEBUG] checking rule 1 ""
[12-May-2014 10:49:16.951] [DEBUG]   rule has no context
[12-May-2014 10:49:16.951] [DEBUG]   matching against regexp (StatusPoll.*)
[12-May-2014 10:49:16.951] [DEBUG]   matched
[12-May-2014 10:49:16.951] [DEBUG] SendTrap(): event_code=100049, event_name=(null), num_args=0, arg[0]="(null)" arg[1]="(null)" arg[2]="(null)"
[12-May-2014 10:49:16.951] [DEBUG] rule 1 "" matched
[12-May-2014 10:49:16.951] [DEBUG] processing stopped at rule 1 ""; result = true

And DebugLevel in agent conf file doesn't work (or maybe i need to set something else?)
#38
General Support / Re: GetDCI
May 12, 2014, 10:05:20 AM
Really, thank you for the obvious mistake :)
#39
Quote from: Victor Kirhenshtein on June 04, 2013, 10:00:43 PM
Hi!

You actually thinking in right direction - you can use SNMPGet function to read value of each instance and determine to include it or not. Below is a working example of such approach. I use OID .1.3.6.1.2.1.2.2.1.16 (ifOutOctets) as a base. I use

Port traffic: {instance}

as description and

.1.3.6.1.2.1.2.2.1.16.{instance}

as parameter name. Correct parameter name is important, because {instance} will be the part after base OID you configure on instance discovery page, not the full OID.

Then, on instance discovery page, I set discovery method to "SNMP Walk - OIDs", set base OID to .1.3.6.1.2.1.2.2.1.16, and use the following filtering script:

snmp = CreateSNMPTransport($node);
return SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1) != 0;

Now just close data collection configuration for the node and run configuration poll. You should get DCIs for all OIDs with non-zero value.

Best regards,
Victor

Quote from: Victor Kirhenshtein on December 07, 2013, 11:39:11 AM
This filtering script checks that absolute value for given OID is 0. If you have non-zero value which is not changing over time, OID will pass filter but you will still get 0 as delta value.

So I changed from delta value to original value and i'm still getting 0 values. Absolute values all are 0s (checked with snmpwalk).
Where is the problem?
Configuration is the same, except oid is now .1.3.6.1.2.1.31.1.1.1.3. (CRCAlignErrors) where all values are 0:

Quote from: Nikk on December 06, 2013, 04:53:01 PM
My parameter is:  .1.3.6.1.2.1.31.1.1.1.10.{instance}
and in Instance tab:
SNMP Walk - OID's
.1.3.6.1.2.1.31.1.1.1.10

and script:
snmp = CreateSNMPTransport($node);
return SNMPGetValue(snmp, ".1.3.6.1.2.1.31.1.1.1.10." . $1) != 0;
#40
General Support / Re: GetDCI
May 07, 2014, 03:33:25 PM
Thanks for solution!

So I tried it, stumpled upon instance discovery filter script. I wanted to get only C and D disks.
I tried this script:
Quoteif (substr($1,1,1) = "C") || (substr($1,1,1) = "D")
{
   return true;
}
else
{
   return false;
}


Seems like i don't get something, please guide me to right path :)

Nikk
#41
General Support / Re: Log parsing
May 07, 2014, 01:52:59 PM
I added trace 9 and runned debug mode 9, please see attachment.

#42
General Support / Re: Log parsing
May 07, 2014, 11:49:06 AM
Is there anything I can do? Spamming hasn't stopped.
Maybe i need to give more information?
#43
General Support / Re: Itanium
May 07, 2014, 11:48:04 AM
Well thanks for solution and offering assistance! But we will till system upgrade, so you don't have to put effort in this!

Thanks,
Nikk
#44
General Support / Itanium
April 30, 2014, 12:10:07 PM
Hi,

We have Horizon software running on Itanium system, but considering the fact that Windows doesn't support this system anymore, then until upgrade we are stuck with it. So maybe there is compatible agent for this system, or maybe  a way to monitor systems load?

Regards,
Nikk
#45
General Support / GetDCI
April 30, 2014, 11:59:51 AM
Hi,

I was wondering whether i can achieve this or not:

I have dci's who shows free disk space and dci's who shows total disk space. For one node there are more than one disk.
What i want is, when alarm ir raised from free disk space threshold, i want to pass the total disk value to event too.
I can achieve this with script:
Quotereturn GetDCIValue($node, FindDCIByName($node, "Filesystem.Total(C:)"));
but this is for one dci with disk C.
So is there a way to use this one script or event for more than one disk, or I must create new script and event for each disk?

Regards,
Nikk