Ask the Community
Groups
Can I run Python to create Plugin Monitors ? - Connect IT Community | Kaseya
<main> <article class="userContent"> <h3 data-id="question"><strong>QUESTION:</strong></h3> <p>Can I use Python to create plugin monitor script?</p> <p> </p> <h3 data-id="resolution"><strong>RESOLUTION:</strong></h3> <p>Yes, you can run basic Python scripts. They run natively for GNU/Linux but if you run it in Windows you have to run it through a wrapper batch file.</p> <p>Here is the example code:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0"><a href="https://kaseya.vanillacommunities.com/profile/echo" rel="nofollow">@echo</a> off<br><br>rem This will create the drive, path and filename variable (e.g "C:\Program Files (x86)\Traverse\plugin\monitors\filecheck\isfile.py")<br>SET script=%~d0%~p0%~n0.py<br><br>rem We run the script<br>c:\Python27\python.exe "%script%" %* 2> c:\users\public\dump </pre> <p> </p> <p>Replace 'isfile.py' for the right script name.</p> <p> </p> <p>Attached the same example code.</p> <p> </p> <p><strong>APPLIES TO:</strong></p> <p>All versions of Traverse </p> <p> </p> <p><strong>REFERENCE:</strong></p> <p>For more information about custom plugin please review</p> <p><a title="TCP connections plugin monitor" href="https://kaseya.vanillacommunities.com/kb/articles/aliases/kaseya/entries/102273266" rel="noopener noreferrer noreferrer nofollow">TCP connections plugin monitor</a></p> <p> </p> </article> </main>