Forum Discussion
3 years ago
Alright, I had some time to get this setup. Installed node and npm packages on the collector that is monitoring a specific resource. I uploaded the script via the new datasource and it appeared here /usr/local/logicmonitor/agent/local/bin, I am able to run "node compliance-count.js" in that directory and it works.
Adding the script name "compliance-count.js" to linux/unix script and then parameters "node" is still giving me the same error. I don't think adding "node" to the linux/unix script box will work, it couldnt find the external script.
/usr/local/logicmonitor/agent/local/bin/compliance-count.js: 1: Syntax error: word unexpected (expecting ")")
Related Content
- 5 months ago
- 7 months ago