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 - tfines

#1
General Support / Event Processing Policy Events
August 07, 2020, 06:18:35 AM
I'm running into the modern problem of getting an alert when there is 15% disk free, but the disk is so large that there is still 80GB free.

In EPP, I don't see an "AND" option for the Events.  That is, the EPP reads "IF event code is one of the following..." then it will run the policy. 

I'd like to have a logic like "If disk is < 15% full, AND diskspace < 8 GB", then run the policy.

Is it there and I don't see it?  Or how would you prevent this policy from running?

Thanks!
#2
Why doesn't NetXMS know the IP addresses of remote computers?  The computers all have the agent installed and connect to the server using a TLS tunnel.

I have email alerts adding "IP address: %a" to the message body.  With these systems I see "UNSPEC".  In the console > object details > overview, "Primary IP address" also shows "UNSPEC".

I also include "%[FQDN]" in the message, which is a 1-line script of "return GetDCIValueByName($node,"System.FQDN");".  I do get an FQDN.  How can I get an address?  Do I have to define it in the client config file?

#3
Hi Victor. 

You suggested to use %6, but when I dump the %1...%9 variables in my email message, for troubleshooting, %6 is empty.  Do the %1 variables in filtering scripts not match those used in Actions?


FQDN: Ted-Win10VM.odcvu.local
Zone:0
Severity:[3]
Name: Ted-Win10VM
Message:  disk low (66.925406% remaining)
1 is FileSystem.FreePerc(C:\)
2 is ODC- C:\ free space
3 is 70
4 is 66.925406
5 is 0x0000279F
6 is
7 is 0
8 is 66.925406
9 is

#4
Thanks, Victor. I appreciate all the work you guys are doing!
#5
Thank you!
#6
Hi,

We don't have a contract.  I'd previously reported NX-1865, which was taken care of pretty quickly. That's why I was surprised this one was still unassigned... I understand if you have to address contracted customers first.  Thanks for replying and taking a look at it.

Ted
#7
I am using NetXMS 3.4.

All nodes have all filesystems discovered with instance discovery.  However, I only want and email alert if C:\ free space reaches a threshold.

I thought creating a Filtering Script in the EPP would be the way to do this, but I continue to get alerts for ALL filesystems.

Here is my script:

if (%6 ilike "C:\\") {
return true;
}
return false;


I've also tried variations like below but they don't work either.

if (%6 ilike "*C:\\*") {
or
if (%1 ilike "*C:\\*") {


Here is the body of an email alert I receive for D:\, which I thought the above script would filter out.  (I have the alert threshold set to 92 for testing, so the events keep getting triggered.)
FQDN: Jacques-PC.odcvu.local
Zone:0
Severity:[3]
Name: JACQUES-PC
Message: D:\ disk low (17.853211% remaining)
1 is FileSystem.FreePerc(D:\)
2 is File system: free space on D:\ (%)
3 is 92
4 is 17.853211
5 is 0x00002688
6 is D:\
7 is 0
8 is 17.853211
9 is

On a related topic, the EPP Filtering Script 'Hint' text reads there is a local variable "EVENT_TEXT" you can use.  One, is that the equivalent of %m?  And two, is the correct syntax for that:

if (EVENT_TEXT like "something") {
or
if ($EVENT_TEXT like "something") {
or
if (%EVENT_TEXT like "something") {
...or something else?


What is wrong with my script?  What should be changed?  Thanks!
#8
NX-1876 concerns how NetXMS 3.3 and 3.4 continue to add duplicates of nodes when a remotely monitored network happens to have the same address space as the NetXMS network.
Our server currently runs NetXMS 3.4.178.

I opened the ticket on June 11, and as of today, July 29, the ticket hasn't been assigned.

Example:
Remote network, 192.168.16.0/24, Zone 14
Local network, 192.168.16.0/24, Zone 0

NetXMS produces duplicate nodes for systems with NetXMS agents and others -- we have duplicates of printers discovered via SNMP.  They get created both in our zone and the remote zone. 

I have attached screen shots of an example of a duplicate system with the agent, and a duplicate printer.  Notice how the assigned names are different too, with the local, correct hostname, having the domain name included.

I both cases I have noted the 'creation time' of these nodes.  For whatever reason, the incorrect remote node gets created first.

I also highlight that the AgentID, which I *think* is supposed to be unique in NetXMS, is the same on both the correctly created local node and the duplicate remote node.

I really do like NetXMS, but this really is a big problem for us, as we are an MSP and will have remote networks which may have the same 192.168.xx.0/24 address space.  Please look at this problem.  I am happy to provide more information, screen shots, etc.

#9
General Support / Template Import does not work
July 10, 2020, 02:39:40 AM
Server version 3.4.178/Windows

In nxmc I use Tools -> Import Configuration.

I get a success message, "Configuration was successfully imported from file <filename>".  The file is the Printers one another user posted here: https://www.netxms.org/forum/general-support/sharing-standard-templates-for-netxms/msg6110/#msg6110.

But I can't find it in nxmc, not under Templates or anywhere else.  I restarted the NetXMS server, not knowing if it needed that to refresh.

Nothing in the netxms server log about the template at all.

Where is it?  What am I missing?  Thanks!
#10
Aha! Many thanks!
#11
General Support / How to hide unwanted objects?
May 25, 2020, 12:49:58 AM
Section 10.1.1 of the manual indicates you can "Hide unmanaged objects"

How?  Or How can I hide any object for that matter?

I can set an object to Unmanaged.  But it still is listed.  I've browsed through the menus, searched the docs, the forums, and Googled, and I still can't find where to actually set a 'Hide' flag.

I want to hide some irrelevant objects.  For example, my PC's Virtualbox IP subnet, only used on my PC, is something I will never ever want status on, and is just noise on the list of objects.
#12
After restarting the NetXMS server the problem went away.
#13
General Support / NetXMS gets the wrong address
May 23, 2020, 03:44:39 AM
Client System is Windows 2008 using agent 3.3.314

It is a remote system, behind a NAT firewall.  The tunnel connects to the server right away, no problem.

But after selecting 'Bind and create node' in the MC, for some reason NetXMS thinks it is on the 192.168.16.0/24 subnet.  But it is on a 192.168.50.0/24 subnet.

I have another system there I'm monitoring, and it connected through the tunnel and is being monitored without any problems.

The only thing I can think of is that, on our local lan, the same hostname resolves to a 192.168.16.0/24 address.  But NetXMS should not be using our local lan for resolving remote addresses.  Also, I did try manually setting the IP address when in 'Bind and connect' but that didn't work.

Because of the wrong IP, after binding, NetXMS can't communicate with the node at all because it has the wrong IP.

Help!

Thanks,
Ted
#14
Please post your agent config file.

What setting did you select on the server for how it handles new nodes?
#15
General Support / Re: Parsing webpage result
May 20, 2020, 02:43:35 AM
In short, yes.  So you can take advantage of existing Nagios probes or other scripts you've written.  But you'll have to write your script.

Download the manual and see section 6.9 and 6.10 for using "external metrics".

Here are two easy examples you can add to your nxagentd.conf file to try it out:
# Windows examples
# Get number of files in a directory (C:\ here)
ExternalParameterShellExec = AAFileCount:dir C:\ | find /c /v ""

# See what directory the agent runs in by default
ExternalParameterShellExec = AAWhatDirIsTheAgentIn:cd

After you add the lines restart the agent.

(I named them AA-whatever so they'd be at the top of the list.  )

On the nxmc right-click the node, and select Data Collection Configuration.
Click the New Parameter button.
Click Select
Choose either of the above parameters, then click Query.  If you've done it right, it will come back with values.
You can then have NetXMS do different things based on the values, like it does with any other data point.