Forum Discussion
Anonymous
3 years agoOk, the Collector will need Node installed in order for it to be able to run the script. If it's linux, you can simply have node installed and add a shebang line that points to the installation directory. Then you can simply reference the script name in the "Linux/Unix Script" box in the DS.
To test that things will work using the Collector, but outside the DS, put your script in /usr/local/logicmonitor/agent/local/bin (give it a different name than the file you uploaded to avoid collisions with the DS). Then run it from that directory. If it works from that directory by calling "node compliance-count.js", then put "node" in the "Linux/Unis Script" box and "compliance-count.js" in the "Parameters" box.
Related Content
- 8 months ago
- 11 months ago