Unable to run horizontal discovery on some linux machines due to a NaN value being passed to Linux/Unix Pre Sensor


Description

Unable to run horizontal discovery on some linux machines due to a NaN value being passed to Linux/Unix Pre Sensor

Steps to Reproduce

1) Run horizontal discovery on AIX Server

Expected: Successfully discover a linux server
Observed: Horizontal discovery fails with the error of << Running pre sensor script- Linux\Unix OS - Pre Sensor failed due to: TypeError: Cannot convert null to an object.. >>

Workaround

1. Go to "Linux\Unix OS - Pre Sensor" Pattern Pre Post

https://<instance_name>.service-now.com/nav_to.do?uri=sa_pattern_prepost_script.do?sys_id=9517f98e4fe52200c7e881c18110c7e9

 

2. Change line 19 FROM:

if(stdate){

TO:

if(stdate && (stdate != 'NaN')){


Related Problem: PRB1390666