- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2014 07:24 AM
So I added two OIDs to Discovery's SNMP System OIDs
Ran a Discovery and saw those OIDs in the Discovery log
I think Discovery is pulling the information I need, but I can't get it to output. I've tried creating a field in the form section, but I can't see how I associate that field with the OID. How do I get this to work? Thanks!
Solved! Go to Solution.
- Labels:
-
Discovery
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2014 10:17 AM
The solution was to create a new SNMP Sensor;
new DiscoverySensor({
process: function(result) {
var snmp = new SNMPResponse(result);
var oid_mib2 = 'iso.org.dod.internet.mgmt.mib-2.';
var location = snmp.getOIDText(oid_mib2 + 'system.sysLocation');
var contact = snmp.getOIDText(oid_mib2 + 'system.sysContact');
current.u_system_contact = contact + '\n';
current.u_system_location = location + '\n';
},
type: "DiscoverySensor"
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2014 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2014 10:17 AM
The solution was to create a new SNMP Sensor;
new DiscoverySensor({
process: function(result) {
var snmp = new SNMPResponse(result);
var oid_mib2 = 'iso.org.dod.internet.mgmt.mib-2.';
var location = snmp.getOIDText(oid_mib2 + 'system.sysLocation');
var contact = snmp.getOIDText(oid_mib2 + 'system.sysContact');
current.u_system_contact = contact + '\n';
current.u_system_location = location + '\n';
},
type: "DiscoverySensor"
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2014 03:04 PM
This is very good. Thanks for sharing the script