Custom sensor throwing an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi,
I am trying to discover UPS devices manufactured by Sanyo denki. For UPS we don't have OOTB pattern available yet. OOTB Probe was able to only fetch the name and IP address of the UPS and not the serial number, due to which IRE threw errors and did not create the CI.
My task is simple. I wanna capture the serial number which uses a different OID so that IRE can at least allow to create this CI.
For this, I created a custom classifier, included the below OOTB probes-
DNS-DNS
SNMP-SNMP - UPS
And i created a custom multi-probe that include our base Identity Probe and a dedicated probe to just retrieve the serial number using that specific OID -
SNMP- Identity Info
Sanyo Denki UPS Serial number
In the custom probe "Sanyo Denki UPS Serial number" - I am simply defining the snmp walk OID command in the "SNMP fields" related list which is fetching the serial number as expected
For processing this info I have written a custom sensor script -
JavaScript evaluation error on:
new DiscoveryIDSensor({});
Stack: at sys_script_include.7eb50b460a0a0b3f009981accbd08ce2.script:9
at sys_script_include.778011130a0a0b2500c4595ad1d1d768.script:255
at sys_script_include.778011130a0a0b2500c4595ad1d1d768.script:159
at sys_script_include.778011130a0a0b2500c4595ad1d1d768.script:116
at sys_script_include.778011130a0a0b2500c4595ad1d1d768.script:33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11m ago
@srinija_itom, @Zach Biewend1, @johnram
I saw your comments on few of the related posts . Do you guys have any idea about what might be going wrong here? Any inputs are highly appreciated 🙂
