Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zbx-windows-envmon - agent doesn't start #134

Open
Gihicius opened this issue Aug 28, 2017 · 2 comments
Open

zbx-windows-envmon - agent doesn't start #134

Gihicius opened this issue Aug 28, 2017 · 2 comments

Comments

@Gihicius
Copy link

Hello everyone,

I can install the agent with the modified conf file, when I've imported the XLM file no problem.

Is just the agent can't start. But if I add # before "UserParameter =" I can start my agent.

This is my conf file :

####### USER-DEFINED MONITORED PARAMETERS #######

Option: UnsafeUserParameters

Allow all characters to be passed in arguments to user-defined parameters.

The following characters are not allowed:

\ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @

Additionally, newline characters are not allowed.

0 - do not allow

1 - allow

Mandatory: no

Range: 0-1

Default:

UnsafeUserParameters=1

Option: UserParameter

User-defined parameter to monitor. There can be several user-defined parameters.

Format: UserParameter=,

Mandatory: no

Default:

UserParameter = system.discovery[],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_system_discovery.vbs $1
UserParameter = quota[],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_quota.vbs $1 $2
UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_all.vbs
UserParameter = wu.crit,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_crit.vbs
UserParameter = server.domain,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_user_domain.vbs
UserParameter = server.roles,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_role.vbs
UserParameter = server.serial,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_serialnumber.vbs

like is explain in https://github.com/jjmartres/Zabbix/...windows-envmon

Is someone have a solution, I'll be very very happy.....

And sorry for my english

@J0HAN85
Copy link

J0HAN85 commented Aug 28, 2017

This works fine:
UserParameter=system.discovery[*],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_system_discovery.vbs "$1"

UserParameter=quota[*],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_quota.vbs "$1" "$2"

UserParameter=wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_all.vbs

UserParameter=wu.crit,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_crit.vbs

UserParameter=server.domain,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_user_domain.vbs

UserParameter=server.roles,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_role.vbs

UserParameter=server.serial,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_serialnumber.vbs

@Gihicius
Copy link
Author

HHOOOOOOO YYYEAAAAAA!!!!!

thank you every much!!!!! It's working now!!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants