command sudo

command sudo

Hi,

I'm connected with a solaris device by ssh (without command login and passwd prompt). I would like to create a custom monitor with the command:
sudo iptables -L -n | wc -l

Can someone tell me how i can do?

I tried to create the custom monitor. As the command sudo needs a password, I put the correct password in the field prompt password in the link password of my device. But the monitor returns the value 0. I think the problem is the password needed by sudo and not the custom monitor.

If necessary this is my custom monitor in the files HostResource.xml:
<CATEGORY ID="Essai Paquet Recu 2" command="sudo iptables -L -n | wc -l" description="Test : paquets recus �" parseAll="false">
<ENTITY ID="EssaiPaquetRecu" applyThresholdOver="maxValue" comparePreValue="false" storeHistory="true" storeValue="maxValue" threshold="Th6" units="%">
<PARSE line="1" name="maxValue" token="1"/>
</ENTITY>












                  New to ADSelfService Plus?