Update, for anyone trying to do anything similar, I believe I have a working solution. I was able create a polled DCI parameter from a Windows Agent using the SSH.nsm subagent to access a router / firewall and then run a script from that device ( in my case Edgerouter ). Below is how I setup the DCI properties on the Windows Agent System:
Data - Parameter:
SSH.Command(192.168.239.1,username, password,sudo /config/scripts/polling_script.sh)
Origin:
NetXMS Agent
( this differs from information online that says it should be "SSH", I could not get this to work )
Data Type:
String
Source Node:
Pointing at the Same windows Agent
I run a script that is found on the remote router / firewall that consist of a ping command that is parsed for information on if the ping is successful and returns either "OK" or "Failed"
my script is similar to this:
if ping -q -c 1 10.200.200.112 2>&1 > /dev/null ; then
echo "Ok"
else
echo "Fail"
fi
Thank you all for your help, this will allow me to confirm the status of VPN's that I do not control any remote devices, that only allow certain IP's to ping them.
Data - Parameter:
SSH.Command(192.168.239.1,username, password,sudo /config/scripts/polling_script.sh)
Origin:
NetXMS Agent
( this differs from information online that says it should be "SSH", I could not get this to work )
Data Type:
String
Source Node:
Pointing at the Same windows Agent
I run a script that is found on the remote router / firewall that consist of a ping command that is parsed for information on if the ping is successful and returns either "OK" or "Failed"
my script is similar to this:
if ping -q -c 1 10.200.200.112 2>&1 > /dev/null ; then
echo "Ok"
else
echo "Fail"
fi
Thank you all for your help, this will allow me to confirm the status of VPN's that I do not control any remote devices, that only allow certain IP's to ping them.