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

#1
General Support / Regex problem
January 26, 2015, 09:57:45 PM
Hi,

to extract the interface name from Net.InterfaceList I use this regular expression: "^(.+?)\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+)$"
The reason is that Windows could contain spaces in the interface name: 13 10.141.120.11/23 6 000C29F2B70D LAN-Verbindung 2

It seems like NetXMS doesn't honor the non-greedy operator, because the result is:
$1 = 13 10.141.120.11/23
$2 = 6
$3 = 000C29F2B70D
$4 = LAN-Verbindung
$5 = 2

Actually $5 should be: LAN-Verbindung 2

Thanks, VMGuy
#2
General Support / Re: Instance discovery
January 26, 2015, 11:58:51 AM
After some more investigation I found this post:
https://www.netxms.org/forum/configuration/dci-filter-script-how-to-ignore-some-filesytems/
It solves the problem with empty values.

But it still displays CD-ROM drives have a disc inserted.
And it triggers an alarm in that case as CD-ROM's always have 0 free space.
#3
General Support / Instance discovery
January 24, 2015, 03:37:24 AM
Hi,

I added some file system DCI using instance discovery.

When I use Agent List -> FileSystem.MountPoints it also discovers CD-ROM drives which results in an error value.
At least when I use the drive letters as the volume name is kind of unreadable.

So I tried using Agent Table -> FileSystem.Volumes but I couldn't figure out how to access this table in the filter script.
I also found a forum entry that said Agent Table wouldn't work.

Is this still true?
If not could someone please give me a hint on how to access the columns of this table?

Thanks, VMGuy
#4
General Support / Re: Several problems (v2.0-M1)
January 19, 2015, 09:55:29 PM
Ok, got it.

But this looks a bit inconsitent to me as the Built-In admin-user is not part of the Admins group. It only has directly set permissions.
#5
General Support / Re: NetXMS and SNOM phones
January 19, 2015, 09:41:53 PM
Tried it today and it worked.
Thanks for that.

But I would vote for an additional flag where I can say "Apply custom attribute on linked nodes".
Would be great if it could be set per attribute.

Thanks, VMGuy
#6
General Support / Re: Several problems (v2.0-M1)
January 19, 2015, 09:37:47 PM
So, today I installed a new 2.0-M1 system and found out this:

- Logged on as Admin and create a new Group SuperAdmins where I set all permission flags.
- Created a new user and added this group to the user
- Changed password of user

> Logged on with this new user and Object Browser was empty

- Logged on as admin again
- Removed group SuperAdmins from the user
- Set permissions directly for the user

> Logged on with this new user and Object Browser was empty

- Logged on as admin again
- Add Built-In group Admins to this user
- Leaving direct permissions set

> Logged on with this new user and Object Browser filled as usual

Tried several times and always the same.

Thanks, VMGuy
#7
General Support / Re: NetXMS and SNOM phones
January 14, 2015, 12:58:49 PM
I created now a new template with a custom attribute snmp.testoid = .1.3.6.1.2.1.7526.2.4 and an automatic filter that applies to all SNOM phones.
The phone were added to this template by NetXMS, but the SNMP poll doesn't work.
It looks like the custom attribute of the template doesn't apply to the linked nodes.

When I add the snmp.testoid directly to a phone node it works, but not with the template.

Is that a bug or did I miss something?

Thanks, VMGuy
#8
General Support / Re: Several problems (v2.0-M1)
January 13, 2015, 10:23:59 PM
QuoteLogin as admin, right click on any object (node / container / object root like "Entire Network" / etc.) in the tree, select properties and set permissions for the user. By default, permissions are propagated to child objects unless you implicitly disable inheritance in object's access control.
That's the point. There's no "Entire network" or anything else. The only thing that is there is the filter box. It happens on all installations I made with 1.2.16 or 1.2.17.
Now I did a fresh installation of 2.0 and here it works.

QuoteWorks fine for me (OSX). What OS you are using?
My test case was: Open script library, create new script (editor opens, icon is grayed out), type anything - icon becomes active.
I use Windows 7 with Chrome browser.
Same test case, but the save button stays disabled.

QuoteCheck agent's config file – server IP address should be whitelisted by using "MasterServers" option, all others ("Servers" and "ControlServers") don't have sufficient rights to edit configuration file remotely.
In the config file I have (and always had) this:
Servers = 192.168.x.y
ControlServers = 192.168.x.y
MasterServers = 192.168.x.y

But it doesn't work.

Thanks, VMGuy
#9
General Support / Several problems (v2.0-M1)
January 13, 2015, 01:33:19 AM
Hi,

I played around a lot lately with NetXMS and here's a summary of where I have problems at the moment.
Don't know if they're caused by me or not.

- Creating a new user
  > Objects is completely empty
    > Doesn't matter if I set the permissions manually or if I add the user to an admin group
    > Checked with same permissions as admin user

- Deleting a user and recreating it with the same name
  > Always says the user already exists, but it's not in the user list anymore (also checked with refresh)
  > I need to restart the server to be able to create the user again

- Script library
  > Save button is disabled
    > The only way to save is closing the script and answer the next question with yes

- Edit agent's configuration file
  > Always get "Cannot open agent config: Access denied"
  > Appears on Linux and Windows
  > Other agent stuff works, e.g. software inventory

So that's what I remember :)

Thanks,
VMGuy

P.S.: Really like this product. Much easier to handle and to configure than others...
#10
It's still on my screen as result of the select statement before I deleted it.
It was a copy of a script I found in this forum and I started playing around with it.

|     10001 | Acronis_Backup_Trap     |
sub main() {
    switch($event->parameters[1]) {
      case "Unkown":
        evt = "ACRONIS_BACKUP_UNKOWN";
        break;
      case "Information"
        evt = "ACRONIS_BACKUP_INFO";
        break;
      case "Warning"
        evt = "ACRONIS_BACKUP_WARNING";
        break;
      case "Error"
        evt = "ACRONIS_BACKUP_ERROR";
        break;
      default:
        evt = "ACRONIS_BACKUP_INFO";
        break;
    }
    PostEvent($node, evt, null, $event->parameters[1]);  // pass message as first parameter to generated event
  } else {
    PostEvent($node, "ACRONIS_BACKUP_CLOSE");
  }
}
#11
Thanks for the table name.
I removed this script from the table and now the server starts.

Thanks for that.

No the script wasn't used yet.
It should be a script for handling SNMP traps.
#12
Hi,

I just had/have a strange issue where the backend crashed and isn't able to start anymore.

That's what happened:
- I created a new script in the script library
- When I was finished I closed the script and was asked to save it
- I clicked yes and got an error - Something like "Broken pipe"
- Then the backend crashed and wasn't reachable anymore

And now I can't even start it.
The last entry in the log file is this:
...
[05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::SNMP added to library
[05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::Agent added to library
[05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::AgentOrSNMP added to library
[05-Jan-2015 22:42:18.366] [DEBUG] Script DCI::SampleTransform added to library
[05-Jan-2015 22:42:18.366] [DEBUG] Script Hook::ConfigurationPoll added to library


After the last loaded script there should be the newly created one. I assume it can't be loaded and crashes the server.
I already did a DB check, but no problem was found.

What can I do to fix that?
Any chance to remove it from the database?

Thanks, VMGuy
#13
General Support / NetXMS and SNOM phones
December 19, 2014, 03:28:42 AM
Hi,

I'm currently trying add data collection parameters for our SNOM phones.
But unfortunately they support only snmpget and their agent is very limited (see: http://wiki.snom.com/Category:HowTo:SNMP).

I already tried to add a custom snmp.testoid parameter.
After that it gets recognized as an snmp device (side effect is that the hostname disappears).

But data collection parameters don't work (with or without snmp.testoid). The value is just "<<ERROR>>"
Linux snmpget (e.g. snmpget -v1 -c public a.b.c.d .1.3.6.1.2.1.7526.2.4) works.

Is there any way how to make data collection work?

Thanks, VMGuy