Ad Widget

Collapse

Remote command with windows with special rights

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mma
    Member
    • Apr 2010
    • 39

    #1

    Remote command with windows with special rights

    Hi again,

    My second post today...
    I discover zabbix and this features, but I have a question (not really a problem) : I would to restart a windows application with zabbix.
    I use "remote command" in action. I tried {HOSTNAME}:echo It works > C:\tmp\mylog.txt, it's work, no problem.
    But if I try to launch a software (like notepad or more interesting, tiny), the owner of process (tiny.exe) is "SYSTEM", as the owner of mylog.txt is an administrator. I would launch some application with normal rights (simple user, like "mma" for example). Many application appears just in the Windows Task Manager, some doesn't work with administrator's rights.

    If someone has already solve this issue...?
    Have a good day !

    EDIT : Sorry, Tiny works perfectly with the user "SYSTEM"
    Last edited by mma; 06-04-2010, 16:01. Reason: mistake
  • rincewind
    Member
    • Oct 2009
    • 47

    #2
    Originally posted by mma
    Hi again,

    My second post today...
    I discover zabbix and this features, but I have a question (not really a problem) : I would to restart a windows application with zabbix.
    I use "remote command" in action. I tried {HOSTNAME}:echo It works > C:\tmp\mylog.txt, it's work, no problem.
    But if I try to launch a software (like notepad or more interesting, tiny), the owner of process (tiny.exe) is "SYSTEM", as the owner of mylog.txt is an administrator. I would launch some application with normal rights (simple user, like "mma" for example). Many application appears just in the Windows Task Manager, some doesn't work with administrator's rights.

    If someone has already solve this issue...?
    Have a good day !

    EDIT : Sorry, Tiny works perfectly with the user "SYSTEM"
    I apologize I not exactly understand your question, but in order you want to exec processes under certain user, you may set up zabbix_agentd service to start under non-system privileges, i.e. local user rights, and this way anything that starts under zabbix_agentd will be started with this user credentials. Hope this can help.
    Another trick is to use different user it to use CPAU.exe utility (http://www.joeware.net/freetools/tools/cpau/index.htm).

    Comment

    • mma
      Member
      • Apr 2010
      • 39

      #3
      What I want to say : When zabbix_agent launch {HOSTNAME}:C:\zabbix\ooO.bat thanks actions. OpenOffice doesn't open graphical interface. And it's the same problem with outlook, sunbird, and other software witch need a graphical interface... I can't interact with softwares (no window).
      As if the process cant' find the right tty (but I'm under windows... so no tty...)
      If I run a software as SYSTEM user, I have a graphical interface, if zabbix_agent launch my software, or my script, I have no window.

      My English is very approximate... but do you understand me ?
      I not sure that's a zabbix's problem...

      Comment

      • rincewind
        Member
        • Oct 2009
        • 47

        #4
        Originally posted by mma
        What I want to say : When zabbix_agent launch {HOSTNAME}:C:\zabbix\ooO.bat thanks actions. OpenOffice doesn't open graphical interface. And it's the same problem with outlook, sunbird, and other software witch need a graphical interface... I can't interact with softwares (no window).
        As if the process cant' find the right tty (but I'm under windows... so no tty...)
        If I run a software as SYSTEM user, I have a graphical interface, if zabbix_agent launch my software, or my script, I have no window.

        My English is very approximate... but do you understand me ?
        I not sure that's a zabbix's problem...
        Ok, just try to use CPAU utility in this case.

        Comment

        Working...