If you check running processes on netxms server, is netxmsd present in the list of processes on the moment it hangs? I mean, does it actually creash and terminate, or it hangs?
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 MenunewAuthName = 'public2'
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]: # filter all objects for objects.Node
if (node.getFlags() & Node.NF_DISABLE_SNMP) = 0: # SNMP polling is not disabled
if (node.getSnmpAuthName() != newAuthName):
print('Processing node %s: changing community string from %s to %s' % (node.objectName, node.getSnmpAuthName(), newAuthName))
md = NXCObjectModificationData(node.objectId)
md.setSnmpAuthName(newAuthName)
session.modifyObject(md)
java -jar nxshell-3.1.241.jar script_name.py
root@raspberrypi:~# ls /sys/bus/w1/devices/
28-6cb0611f64ff w1_bus_master1
root@raspberrypi:~# cat /sys/bus/w1/devices/28-6cb0611f64ff/w1_slave
78 01 55 00 7f ff 0c 10 57 : crc=57 YES
78 01 55 00 7f ff 0c 10 57 t=23500
SubAgent=ds18x20.nsm
[DS18X20]
Sensor = Test:28-6cb0611f64ff
user@netxms-server:~$ nxget raspberrypi.lan 'Sensor.Temperature(Test)'
23.312
nxscript 1.nxs "1" "2 3"