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 - Victor Wiebe

#1
General Support / NXSL Script to add Alarm comment
September 25, 2015, 03:10:40 PM
I use NXSL scripting to do a lot of custom event posting using PostEvent. I'd like to begin to add some more information to these alarms. Is there any way to use NXSL to add comments to an alarm?
#2
General Support / Re: Event Script issues
August 17, 2015, 03:41:33 PM
So I did some further digging and discovered that the issue was of my own doing. I had a syntax error in the script. Correcting that resolved my own problem.
#3
General Support / Event Script issues
August 13, 2015, 10:24:00 PM
I'm using the nxevent binary to insert a custom alert onto the console. Everything looks like it really should be working. The event shows up in the Event Monitor but an alarm does not show up in the Alarm Browser. I'm running this command manually:

/usr/bin/nxevent -u admin -P adminPassword 10.42.1.31 '100002' 'clientName' 'businessUnit' 'ALERT' 'Alarm ID 1890000  Alarm goes here!' 'Critical' 'Custom.alarm.key'

All the information and command line arguments are correct. The event processing policy - id 100002 - calls a script named NXEvent::Raw.

I see these entries in the netxmsd.log file when I enter the command:

[13-Aug-2015 15:19:26.613] [DEBUG] [CLSN-1] RecvNXCPMessageEx failed (0)
[13-Aug-2015 15:19:26.613] [DEBUG] *actions* Executing action 3 (NXEVENT::Raw) of type NXSL SCRIPT
[13-Aug-2015 15:19:26.613] [DEBUG] *actions* Executing NXSL script "NXEVENT::Raw"
[13-Aug-2015 15:19:26.614] [DEBUG] ExecuteActionScript(): Cannot find script NXEVENT::Raw

NXEVENT::Raw is certainly there. Is there anything else I can do to troubleshoot?
#4
General Support / Not storing incoming syslogs
April 03, 2015, 03:53:45 PM
I have a wireless device sending syslog to NetXMS. I see the syslogs coming in via tcpdump (I've cut and pasted a sample output below). However, the logs do not seem to be stored in the db.  The device itself - 'aruba-controller' - is added as a node in NetXMS. I've searched for this hostname and I've searched for all logs with a severity of 'debug' for the timeframe, and I cannot find the logs. Am I missing a configuration somewhere?

root@event-nmgt:/home/vwiebe# tcpdump -i em1 src 192.168.10.53 and port 514 -A -v
tcpdump: listening on em1, link-type EN10MB (Ethernet), capture size 65535 bytes
08:51:00.735117 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 162)
    aruba-controller.wilm.sevone.com.syslog > event-nmgt.sevone.com.syslog: SYSLOG, length: 134
   Facility local1 (17), Severity debug (7)
   Msg: Apr  3 08:51:06 2015 aruba-controller lldp[3704]: <235002> <DBUG> <aruba-controller 192.168.10.53>  LLDP Recv PKT at ingress 8448
E.....@.@.....
5..
.......R_<143>Apr  3 08:51:06 2015 aruba-controller lldp[3704]: <235002> <DBUG> <aruba-controller 192.168.10.53>  LLDP Recv PKT at ingress 8448
#5
General Support / Re: External Script from NXSL Script
August 08, 2014, 05:13:46 PM
Makes sense to me. Thanks!
#6
General Support / Re: nxmibc segfaulting
August 08, 2014, 05:13:25 PM
I'll dig further with my sysadmin. Thanks!
#7
General Support / Re: nxmibc segfaulting
August 07, 2014, 08:02:44 PM
Aha. Apologies. Here is the output:

(gdb) run
Starting program: /opt/netxms/bin/nxmibc --help
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x00000000006612a0 in strcmp@@GLIBC_2.2.5 ()
(gdb) bt
#0  0x00000000006612a0 in strcmp@@GLIBC_2.2.5 ()
#1  0x00007ffff7de7356 in elf_machine_rela (sym=0x400af0, skip_ifunc=<optimized out>, reloc_addr_arg=0x7ffff6ef1950, version=<optimized out>, map=0x7ffff7fe0000, reloc=<optimized out>) at ../sysdeps/x86_64/dl-machine.h:302
#2  elf_dynamic_do_Rela (skip_ifunc=<optimized out>, lazy=<optimized out>, nrelative=<optimized out>, relsize=<optimized out>, reladdr=<optimized out>, map=0x7ffff7fe0000) at do-rel.h:146
#3  _dl_relocate_object (scope=0x7ffff7fe0358, reloc_mode=<optimized out>, consider_profiling=consider_profiling@entry=0) at dl-reloc.c:265
#4  0x00007ffff7dde3e0 in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=0x7ffff7fdb740) at rtld.c:2282
#5  0x00007ffff7defb18 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffe1f0, dl_main=dl_main@entry=0x7ffff7ddcb60 <dl_main>) at ../elf/dl-sysdep.c:244
#6  0x00007ffff7ddfd45 in _dl_start_final (arg=0x7fffffffe1f0) at rtld.c:337
#7  _dl_start (arg=0x7fffffffe1f0) at rtld.c:563
#8  0x00007ffff7ddc598 in _start () from /lib64/ld-linux-x86-64.so.2
#9  0x0000000000000002 in ?? ()
#10 0x00007fffffffe470 in ?? ()
#11 0x00007fffffffe487 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)
#8
General Support / Re: nxmibc segfaulting
August 07, 2014, 07:40:43 PM
Hi Victor, sure thing. Here's the output:

[root@ITBox:/opt/netxms/bin] [S1V: 5.4.RC3.0] [16:38:18] $ gdb ./nxmibc
GNU gdb (Gentoo 7.4 p1) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /opt/netxms/bin/nxmibc...done.
(gdb) run
Starting program: /opt/netxms/bin/nxmibc
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x00000000006612a0 in strcmp@@GLIBC_2.2.5 ()
(gdb)
#9
General Support / nxmibc segfaulting
August 07, 2014, 06:31:26 PM
I'm attempting to install version 1.2.16 on Gentoo from source. Almost everything works, with the exception of nxmibc, which segfaults whenever it is run. I've tried running a simple 'nxmibc --help' manually and still see a Segfault. Has anyone come across an issue like this?
#10
General Support / External Script from NXSL Script
August 07, 2014, 05:21:44 PM
Is it possible to run an external, shell script from an NXSL script and return the output as a variable?
#11
General Support / Re: CreateNode and Zones
August 05, 2014, 08:43:29 PM
Here is some more information as to what I'm trying to accomplish.

I am using NetXMS as an Event Management station. We're using it very well, in fact, and we're very happy with it. So far we are receiving events from our internal network via snmp trap and syslog, and I am also using nxevent to push custom events from other outside sources. When a trap is received from a node that netxms does not have in its configuration we even have automation to auto-create the node without snmp capabilities.

Now we are being asked to receive events from external networks that have overlapping/conflicting ip networks (it's all private networking in the 192.168.0.0 range). For right or wrong there are conflicts beyond my control.

I am thinking that using Zones might be the best way to do this (if there is a better method I'm not too proud to change my plans). So after going through the documentation it looks like I need to do a few things:

1) Install a remote nxagent to act as a proxy
2) Add the nxagent as a managed node in my primary netxms console
3) Create a zone with the nxagent as proxy

So I suppose my questions are thus:

1) Do I send the traps for the new conflicting network devices to the nxagent or the console?
2) Knowing that I will still need to create the node on the fly using CreateNode, is it possible to create the Node inside a specific zone?

Thanks for the help!
#12
General Support / CreateNode and Zones
August 05, 2014, 07:47:38 PM
Is there anyway to use CreateNode to create a node inside a specific zone?
#13
Interestingly, I would like to receive traps and show them as alarms for unmanaged nodes. Is there anyway to make this a toggle, such as "Allow Trap For Unmanaged Node"? Is there a way to stuff an Alarm in using an external script?
#14
And I think I just found my own answer with the UnmanageObject function.

Thanks for the help Victor! Great product.
#15
Booya! That did it. I now have a series of auto-created node's based on trap. Sweet!

After creating the node using CreateNode, is there a way to programatically disable polling? I won't have direct access from my netxms platform to the devices sending traps.

Thanks again! My event browser is looking awesome.