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

#16
The value "Agent Command Timeout" impact the execution of the nxshell script? I increase it to 60 sec because my agent execute some long perl  script.

The Request timed out exception is not correlated to the script! I got the exception even if i launch only the nxshell console:

java -D -jar nxshell-1.2.11.jar

#17
Feature Requests / Mail with alarms summary
January 29, 2014, 06:22:33 PM
Hi,

if netxms can sent periodically a mail with the summary of the active alarms it can be so useful.

For example, configure netxms for sent a mail every 3 hours with the critical alarm still active.

Sometime, after that many up/down alarms for many host are raised, my client asks my if all equipment returned up: if I can't access the console, i have to control every up&down mail to check that all it's ok. With a summury alarm mail, i have the complete scenario under control.

Thank you! 
#18
Hi,

With nxshell, I execute some of the scripts posted in http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations .
Sometimes the script works, sometime it returns the following exception:
org.netxms.client.NXCException: Request timed out

Here is the command i use to launch the script: java -Dnetxms.server=127.0.0.1 -Dnetxms.admin=admin -Dnetxms.password=mypwd -jar nxshell-1.2.11.jar show_alarms.py

How can i resolve the problems?

Thank you|
#19
Hi,
it can be so useful change the "propagate status as" of many items( es: interface) in one time, I mean:
1)select all the items
2)right click
3)change "propagate status as"

I have some switch with 48 interfaces, the status of the switch have to change if one of the two uplink interfaces go down...I have to monitor the other 46 interfaces, so i cannot set them as unmanaged or set expected status to "ignore" or "down"....So, actually i have to change one interface at time the "propagate status as".

Thank you!
#20
Hi,

i have two netxms server and i want to import a template from "netxms1" to "netxms2". I export the template from netxms1 on a .xml file and then i import the same file on "netxms2", but i got the following error "Cannot import configuration: component locked from admin@netxms1"...When i export the template from netxms there are no window opened in console, and when i import the configuration on netxms2, netxms1's console is closed.
Any help?
netxms1 is version 1.2.8 and netxms2 is 1.2.5

Thanks!
#21
Thank you so much, is very useful! also the possibility of use macro's in template is great.

Congratulations, Netxms is a really complete tool.

Giovanni
#22
Hi,

i'm monitoring the CRC errors for my switch's interface through snmp. I create a DCI for each interface (each DCI have a different oid), and when there are too many CRC errors a "Too Many CRC errors" event is created.
Now i want to configure the email alarm. I want in the mail alarm the interface that have too many CRC errors. For obtain this goal, i need that when event "Too Many..." is raised, the oid of the DCI is passed as parameter of the event. In that way, in event processing policy i can do the filtering that i need.
How can i pass an oid as event parameter?
I don't want to create an event for each interface.
Thank you for the help.

Giovanni

#23
General Support / Script for change propagate status
November 14, 2013, 02:03:23 PM
Hi!

I have a container with a great number of node (more then one hundred) and each node have 5/6 interface. My goal is to set the "Propagate Status" as "Normal" for each interface of each node in this containar.

Is it possible to set the interface's Propagate Status from Nxshell? I've searched in the docs for this function but i don't find it.
If is impossible to do through Nxshell, do you advice me to realize the script with directly Mysql or using the Java API?

I want to realize a dashboard and put in it all of this node. The status of the node is calculated from some DCI obtained from the agent and i don't want are generated alarms if some interface is down.
Than i put the dashboard on a big TV and i show to the client he's equipment are monitored in everymoment  ^_^

PS: Dashboard are great for this kind of job!!


#24
General Support / Re: NXSL: Casting problems
October 31, 2013, 11:17:59 AM
Yes, it works!

Here is a working filtering script that get the interface description from the switch and put it in the alarm mail when interface goes down/up:

sub main() {
   
   transport = CreateSNMPTransport($node);    // Create SNMP transport for node
   
   ifIndex = $5 ;
   trace(0,"ifIndex =".ifIndex);
   
   value = SNMPGetValue(transport, ".1.3.6.1.4.1.9.2.2.1.1.28.".ifIndex);
   
   
   
   CUSTOM_MESSAGE = "Description: ".value;
   
   
 
  return true;
}

Works on Cisco. For other switch, just change the base OID in SNMPGetValue.

Is it possible to create a topic in forum in which share our NXSL script?
Sharing and example are so useful for nxsl devoloper ^^

Thank you :)
#25
General Support / NXSL: Casting problems
October 28, 2013, 02:36:51 PM
Hi,

i'am trying to realize a filtering script that when an interface goes down get an snmp value from the switch, using the IfIndex of the interface.

Here is my filtering script:

sub main() {
   
   transport = CreateSNMPTransport($node);    // Create SNMP transport for node
   
   ifIndex= %5;   
   
   value = SNMPGetValue(transport, ".1.3.6.1.4.1.9.2.2.1.1.28.".ifIndex);
   
   
   
   CUSTOM_MESSAGE = "Description: ".value;
   
   
 
  return true;
}

The IfIndex of the interface is rapresented by the %5 special variable, because the filtering script is relative to "SYS_IF_DOWN" event which has as parameter:

"
   1) Interface object ID
   2) Interface name
   3) Interface IP address
   4) Interface netmask
   5) Interface index
"

But when the script is executed i get the following error code:

Error in line 5: syntax error, unexpected T_INT32, expecting '('.

I have tryed to cast the value -> ifIndex = string(%5);

or

I have tryed to use a switch case to convert the value:

switch(%5):
   case "10134": etc

but nothing works :(

Can you help me?

Tnx
#26
Hi,

i have the following scenario:

one netxms server monitoring many Cisco 2960. When an interface of switch goes down, i want that netxms sent a mail alarm with the interface name and the host connected to that interface.

Unfortuneatly, my netxms can't get the list of peer connected to the switch (https://www.netxms.org/forum/general-support/can%27t-get-switch-forwarding-database-on-cisco-2960/msg10277/#msg10277). There are news about this problems?

If no, i realize a filtering script that get interface description from the switch through SNMP and add it to the message mail .

Thank You



#27
Hi!
Okay, thank you!
#28
Announcements / Re: NetXMS 1.2.8 released
October 02, 2013, 12:49:48 PM
Hi!
Unfortunately after the upgrade to 1.2.8 the issue is NOT solved.
What did you suggest for debug?
Sorry for the late feedback, but i can't upgrade netxms when I want, i have to wait until the first production stop of my enviroment.

Thank you

Quote from: Victor Kirhenshtein on July 24, 2013, 11:53:20 AM
Quote from: tivanni on July 24, 2013, 11:40:26 AM
Thank you so much!

For info, is this issue (https://www.netxms.org/forum/general-support/can%27t-get-switch-forwarding-database-on-cisco-2960/msg10277/#msg10277) resolved in 1.2.8?

I hope so. In my test lab everything works as expected. Check if you still have this issue. If yes, we will have to try to debug this remotely...

Best regards,
Victor
#29
Ok, Great!

An info: how many packets of the 3 packets netxms have to lost for consider ICMP poll failed?

Regards,

Giovanni
#30
Hi,

when netxms check a node throught icmp, how many icmp packets sent?
I've to check a node over a vpn tunnel, if i ping that node from my network, usually I lose some icmp packets.
So, my goal is similar to this:
i sent 5 icmp packet, if I lose all the packets then netxms have to consider the icmp status polling failed.
Is it possible to configure this?
If not, no problem, i write a simple script that do this task and i execute it throght netxms.

Thank you!