This is actually a Windows XP machine. I have tried the suggestions and stopping the services but the install still hangs.
m1975Michael
Posts
-
Windows Service Install Hangs -
Windows Service Install HangsThe service was off. I even uninstalled 1.2.16 and tried a fresh install of 1.2.17. I made sure none of the services were installed before I attempted the fresh install.
-
Windows Service Install HangsI have tried to install 1.2.17 on Windows but the install hangs when checking the netxms core service. I get a check mark by Installing service. It works correctly in 1.2.16. Any suggestions? Thank you for your assistance.
-
Set Primary Host Name to SNMP sysNameI have it working now. Somehow the $ from all of node (s) were removed.
-
Set Primary Host Name to SNMP sysNameI am trying to set the primary host name to the SNMP sysName. I have found a couple of scripts on the forum but I can not get either of them to work.
if (($node->snmpSysName != null) && ($node->snmpSysName != "")) { RenameObject($node, $node->snmpSysName); }I receive the following error when I run this script in the server console. ERROR: Script finished with error: Error 14 in line 1: Function or operation argument is not an object.
//rename node after configuration poll to snmp sysLocation //if sysLocation is null then rename to node ip address //also 3 custom attributes will be setted // you can use this attributes in events with %{attribute_name} macros //uncomment trace line and run netxmsd with -D1 param for logging sub main() { if ($1->isSNMP) { //trace(1,"hook executed for ".$1->ipAddr); transport = CreateSNMPTransport($1); if (transport == null) { //trace(1,"snmp transport error on ".$1->ipAddr); return -1; } location = SNMPGetValue(transport, ".1.3.6.1.2.1.1.6.0"); // sysLocation sysname = SNMPGetValue(transport, ".1.3.6.1.2.1.1.5.0"); // sysname uptime = SNMPGetValue(transport, ".1.3.6.1.2.1.1.3.0"); // uptime //trace(1,"[".location."], [".sysname."], [".uptime."]"); if (location != null && location !="" && location!=" ") { //trace(1,"attr location changed to ".location); RenameObject($1, location); } else { //trace(1,"error in location block"); RenameObject($1, $1->ipAddr); //change name to node ip address } if (sysname != null && sysname !="" && sysname !=" ") { SetCustomAttribute($1, "sysname", sysname); //set custom attribute for node snmp sysName //trace(1,"attr sysname changed to ".location); } else { //trace(1,"error in sysname block"); } if (uptime != null) { SetCustomAttribute($1, "uptime", SecondsToUptime(uptime/100)); //set custom attribute uptime for node //trace(1,"attr uptime changed to ".SecondsToUptime(uptime/100)); } else { //trace(1,"error in uptime block"); } //trace(1,"end execution"); SetCustomAttribute($1, "last_update",localtime(time())->mday.".".localtime(time())->mon.".".localtime(time())->year.", ".localtime(time())->hour.":".localtime(time())->min.":".localtime(time())->sec); } }I receive the following error when I run this script in the server console. ERROR: Script finished with error: Error 14 in line 9: Function or operation argument is not an object.
I tried to look at examples on the wiki but I really don't know how to script. Any assistance would be greatly appreciated. Thank you.
-
Email TestIs there a way I can test send an Email from NetXMS to verify Email is working properly? Thank you for your assistance.
-
SNMP Walk Error@victor said in SNMP Walk Error:
This message could popup if you try to call SNMP walk on non-node object (for example, template or cluster).
Best regards,
VictorI was adding items to a template when I received that error message. It would seem to me that you still should be able to walk the MIB even is in a template or even in the MIB browser.
-
SNMP Walk ErrorI am getting the following error message when I try to walk the tree.
"Walk MIB tree' had encounter a problem.
Cannot do SNMP MIB tree walk: Incompatible operation.I have recompiled the MIB file.
Any suggestions would be helpful. Thank you.
-
Polling Options Under Node@victor said in Polling Options Under Node:
Hi!
You have two options, and both requires script creation. One is to use nxshell script - there is an example of how to disable SNMP polling: http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations#Disable_SNMP_polling_for_node. Other option is to use NXSL script on server - you can use node enumeration example: http://wiki.netxms.org/wiki/Script_Example:_Enumerate_All_Nodes and add calls to methods enableAgent, enableConfigurationPolling, enableIcmp, enableSnmp, enableStatusPolling, enableTopologyPolling on node objects as needed. Each of these methods accepts true or false as parameter. For example, to disable agent for node you can call
n->enableAgent(false);
assuming that you have reference to node object in a variable n.
Best regards,
VictorThank you Victor for the information. I like the bulk disable SNMP but I am not sure what options are available besides SNMP. I would like to disable NetXMS agent for all pulls and disable usage of ICMP pings for status polling but I am not sure what to replace DISABLE_SNMP with. I was looking in the scripting section but I have not found those specific options unless I am looking in the incorrect place. Thank you for your continued assistance.
-
Polling Options Under NodeHow can I configure multiple nodes polling options. For example I need to configure a group of nodes to not get stats from ICMP pings and disable NetXMS agent polling. Any assistance would be greatly appreciated. Thank you.
-
Alarm configuation for Iomega/Lenovo ix2 NAS Drives@victor said in Alarm configuation for Iomega/Lenovo ix2 NAS Drives:
Hi!
You don't have to use instance discovery to monitor single item. All you have to do is to put .1.3.6.1.4.1.11369.10.3.2.1.0 as "parameter" on general page. Make sure that instance discovery is off.
Best regards,
VictorCan you please describe when and why you would use instance discovery? Thank You.
-
Import List of IP Addresses@andrey-k said in Import List of IP Addresses:
See indentation example on wiki:
http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation
Thank you Andrey I understand now. I was able to get your script to work. It is much appreciated.
-
Import List of IP Addresses@andrey-k said in Import List of IP Addresses:
Sorry, but am running linux-only versions.
Hello, did some of the script get cut off. Do you need closing statements for IF and For?
-
Alarm configuation for Iomega/Lenovo ix2 NAS DrivesI have been following the directions that you have presented me. One thing I change was instead of Actions Configuration I just set up an Alarm. I have not received the expected alarm. The remoteAccess OID is .1.3.6.1.4.1.11369.10.3.2. When I walk into it I get .1.3.6.1.4.1.11369.10.3.2.1.0, Type: integer, Value: 0. The description in .1.3.6.1.4.1.11369.10.3.2.1 OID is Whether RA is enabled
0 Disable
1 Enable
Under General I changed the Data Type from String to Integer. I did try String first. Under Instance Discovery I have SNMP Walk - OIDs with .1.3.6.1.4.1.11369.10.3.2.1.0 as the OID. Under Thresholds Instance named typed raEnabled corresponds to the .1.3.6.1.4.1.11369.10.3.2.1 OID. I marked Process all thresholds. Function: Last polled value = 1 Operation equal to 1. I have tried 0 also. Activation event: is the event name I created.The value should be 1 as remote access is enabled.
Last values for the device only shows the status.
I can't figure out why I am not receiving an alarm. If any one has any suggestion it would be appreciated.
-
Import List of IP Addresses@andrey-k said in Import List of IP Addresses:
I have ready script for similar purpose.
from org.netxms.client.objects import GenericObject, Node, Template rootObject = session.findObjectByName("FromFile") #print rootObject #print "\n" if rootObject: for nodeIP in open("discover.txt").readlines(): test = s.findObjectByName(nodeIP.strip()) if test: print "Object exists\n" else: name = "IP%s" % nodeIP.strip() newNode = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, rootObject.getObjectId()); newNode.setPrimaryName(nodeIP.strip()) try: nodeId = session.createObject(newNode) except: print "exception create node\n" pass else: if nodeId: try: s.pollNode(nodeId,2,None) except: print "exception make pool\n" passCreate file with ip list, delimited by newline (without whitespaces).
rename it to discover.txtput all in one folder. (/home/nxuser/nxShell/)
Create folder "FromFile" via nxmc. New objects will be added there.
Runjava -Djava.io.tmpdir=/tmp/ -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -Dnetxms.password=netxms -jar /home/nxuser/nxShell/nxshell-1.2.14.jar nodesRemoveSoftwareScan.pyScript work slowly. For 600 ip it will take 3-5 hours but all nodes will be polled.
If you want to do it faster - comment or delete next lines from script:if nodeId: try: s.pollNode(nodeId,2,None) except: print "exception make pool\n" passThank you for the script. I am running the windows version of NetXMS anything I need to change in the script? How do you run the script?
-
Alarm configuation for Iomega/Lenovo ix2 NAS Drives@victor said in Alarm configuation for Iomega/Lenovo ix2 NAS Drives:
Hi!
You can try to do SNMP walk from MIB Explorer view on different parts of MIB tree - but most likely you'll have to find some additional information about your devices - often data you get via SNMP is meaningless without description.
Best regards,
VictorI will look at that. Why would NetXMS find device NICS with eth0/l0 then later mark them unknown? I know the devices are running net-snmp for the agent.
-
Import List of IP Addresses@victor said in Import List of IP Addresses:
Hi!
Your best bet is to create simply script with nxshell (http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations) to read list of addresses and create node objects. If you are not good at Python - just ask, I'm quite sure that somebody will create such script.
Best regards,
VictorHello Victor thank you for replying. Actually I know nothing about Python. Any assistance would be great.
-
Alarm configuation for Iomega/Lenovo ix2 NAS Drives@victor said in Alarm configuation for Iomega/Lenovo ix2 NAS Drives:
Hi!
There are tutorial on creating alarms and sending notifications: http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low - just replace NetXMS agent DCI with appropriate SNMP OID.
Best regards,
VictorThank you Victor for replying. Is there a way to display all of the information the device can send through SNMP? I am new to SNMP also.
-
Alarm configuation for Iomega/Lenovo ix2 NAS DrivesHello Everyone,
I am new to NetXMS. I need to know how to properly setup alarms for the Iomega/Lenovo ix2 NAS drives. I have been able to import the .mib file into NetXMS. In the mib browser I am able to see the options that I can monitor but I have no idea how to set it up properly. The units are running net-snmp for the agent. Any assistance would be greatly appreciated. Thank you.
-
Import List of IP AddressesHello Everyone,
I am new to NetXMS. I would like to import a list of IP addresses. The devices are on different networks and I only want to add that specific device to NetXMS. We have about 600 networks connected through VPN connections. Any assistance would be greatly appreciated. Thank you.