Hello Everyone,
We do backup of some commands outputs from network devices to a linux server. In Nagios we used to assign a script to each network device, and the script would ssh to the linux server and check if a file with the assigned network device hostname exists with today's date. I was trying to use SAM scripts to check file existance but seems like if you assign the script to a node it tries to SSH to that node (the network device instead of the remote linux server) and i couldn't find anyway to specify which server that script should be run at.
What i want is when i assign a script to a node to simply pass it's ${IP}/${Node.DNS} as a variable, while have the script ssh to the remote server and check for file with hostname variable and today's date. There might be other ways to achieve this in Solarwinds (API maybe?) so i highly appreciate your suggestions and ideas.