Yes, first problem was obvious negligence mistake.
And with upgrade to 1.2.14 everything works fine, thank you
Regards,
Nikk
And with upgrade to 1.2.14 everything works fine, thank you
Regards,
Nikk
We really need your input in this questionnaire
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 MenuQuote
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;
Quote
<parser trace="9">
<file>C:\NetXMS\var\log</file>
<rules>
<rule>
<match>(StatusPoll.*)</match>
<event>100049</event>
</rule>
</rules>
</parser>
Quotevalue = AgentReadParameter($node, "FileSystem.Total(" . $1 . ")");
return (value != null) && (value > 0);
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
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.
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;
Quoteif (substr($1,1,1) = "C") || (substr($1,1,1) = "D")
{
return true;
}
else
{
return false;
}
Quotereturn GetDCIValue($node, FindDCIByName($node, "Filesystem.Total(C:)"));but this is for one dci with disk C.