Can you please send me the output of snmp walk for .1.3.6.1.4.1.9.5.1.2.14 and .1.3.6.1.2.1.1 for that switch?
Best regards,
Victor
Best regards,
Victor
We really need your input in this questionnaire
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
Quote from: David Hewison on May 16, 2012, 08:14:35 PM
I have now discovered ServiceCheck.HTTP() , however if copy the example (below) into the DCI I get 'unable to create new data collection item: invalid argument' , I've quotes around what are likely to be strings, reduced the test expression to "*" but cannot create the item. Anyone point me in the right direction ?
ServiceCheck.HTTP(159.148.208.90,80,/index.html,www.netxms.org,"^HTTP/1\.[01] 200.*")
package org.netxms.samples;
import org.netxms.api.client.NetXMSClientException;
import org.netxms.client.NXCSession;
import org.netxms.client.objects.GenericObject;
import java.net.InetAddress;
import java.io.IOException;
public class Sample {
private static final String SERVER = "127.0.0.1";
private static final String LOGIN = "admin";
private static final String PASSWORD = "netxms";
public static void main(final String[] args) throws NetXMSClientException, IOException {
final NXCSession session = new NXCSession(SERVER, LOGIN, PASSWORD);
session.connect();
NXCObjectCreationData cd = new NXCObjectCreationData(GenericObject.OBJECT_NODE, "TestNode", 2);
cd.setIpAddress(InetAddress.getByName("192.168.10.1"));
long id = session.createObject(cd);
// id of new node object now is in variable "id"
session.disconnect();
}
}