[Xymon] [xymon] About Windows PS Client

dOCtoR MADneSS doctor at makelofine.org
Thu Feb 24 16:39:51 CET 2011


Le 24/02/2011 06:05, David Baldwin a écrit :
> On 23/02/11 10:10 PM, dOCtoR MADneSS wrote:
>> Le 25/01/2011 01:28, David Baldwin a écrit :
>>> On 25/01/11 8:05 AM, dOCtoR MADneSs wrote:
>>>> Le 24/01/2011 07:10, David Baldwin a écrit :
>>>>> On 24/01/11 3:55 AM, dOCtoR MADneSs wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I found this Xymon client :
>>>>>> http://xymon.svn.sourceforge.net/viewvc/xymon/sandbox/WinPSClient/
>>>>>> I tried to install it the way I found logical.
>>>>>>
>>>>>> 1st : I fought with Windows 7 Home Premium to allow execution on
>>>>>> PowerShell scripts. I finally edited registry and allow it manually.
>>>>>> 2nd : As administrator, I ran "powershell", then tried to install the
>>>>>> service this way :
>>>>>> .\xymonclient.ps1 install
>>>>>>
>>>>>> But I got many errors about adding service and modifying registry (all
>>>>>> errors are related to permission denial).
>>>>>>
>>>>>> Can D Baldwin, or anyone else informed about powershell and Xymon client
>>>>>> installation, help me ?
>>>>>>
>>>>> You'd need to have Administrator access to install I'm pretty sure.
>>>>>
>>>>> Please send me the errors and I'll see what I can do. I can probably
>>>>> find a Windows 7 box to test on.
>>>>>
>>>>> Thanks, David.
>>>>>
>>>> Hi,
>>>>
>>>> Can you give me informations about XymonPSClient.exe ?
>>> XymonPSClient.exe is just a renamed copy of ABC_SRVANY.EXE which is just
>>> the service runner that spawns the powershell process to run the script
>>> - it is xymonclient.ps1 that is the actual client code.
>>>> Where logs and temporary files are stored ?
>>> %TEMP%\xymonclient.log - contains date stamp and a copy of the last
>>> client report - written out as a debugging aid, the script doesn't
>>> actually need any temporary files
>>> %TEMP%\xymonconfig.cfg - contains the config returned from the server
>>> after each report is sent (i.e client-local.cfg section).
>>>
>>> Note that value of %TEMP% - or in PS $env:TEMP - will depend on whether
>>> you are running the service as specific user or just as a local service,
>>> and on the version of Windows you are using.
>>>
>>> David.
>>>
>> Hi,
>>
>> I finally installed XymonPSClient in following the readme. The logfile
>> is generated in c:\windows\temp. But I can't see anything sent to xymon
>> server. The following command :
>> xymonsend "ping" "xymonserver"
>> reports me the xymon version running on server. But nothing else. The
>> windows client is defined in bb-hosts file. All I can see is "conn",
>> "info" and "trends".
>>
>> Any idea ? I'm new to windows 7 (home premium), and don't understand
>> everything about how it works (or how it doesn't)
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
> In the file xymonclient.log the section at the top has the config values
> - most of these can be overridden in the registry as per README
>
> Two values to check:
> clientname is the name that is being reported to the server in the
> client report - it needs to match an entry in hosts.cfg/bb-hosts
> (probably exact case match) - check "Ghost Clients" report.
> servers is the address or list of addresses the client should be
> reporting to.
>
> The fact that you can "ping" the xymon server means you're pretty close
> to it working.
>
> David.
>
Thank you for your support .It seems that HKLM/Software/Wow6432Node is 
an hidden registry key, as I can't see it, nor create it with that name 
(error tells me that another key has the same name). In log file, 
everything was OK, but nothing was sent to Xymon servers. I set it 
manually with ".\xymonclient.ps1 set servers "1.2.3.4 2.3.4.5"". And 
it's OK ! I can see reports on the xymon servers. I had to change a few 
things in xymonclient.ps1 file, to get "usual" format for disk space 
(used/total instead of total\used). Everything is OK now !
Is there any docs on using/creating plugins for your windows client ?



More information about the Xymon mailing list