Парамеиры субагентов и ActionShellExec
-
Приветствую!
Имеем такой конфиг:MasterServers = trampampam.ru ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d logFile = C:\NetXMS\var\log.txt FileStore = C:\NetXMS\var SubAgent = ecs.nsm SubAgent = ping.nsm SubAgent = logwatch.nsm SubAgent = portcheck.nsm SubAgent = winperf.nsm SubAgent = wmi.nsm SubAgent = ups.nsm *PING Timeout = 1000 PacketRate = 12 Target = 10.0.0.1:target_1 ActionShellExec = ResroreWinVPN:C:\Windows\system32\rasdial.exe $1 $2 $3При таком конфиге не срабатывает ActionShellExec, и если с сервера сделать запрос:
nxaction Х.Х.Х.Х ResroreWinVPN vpn_to_buh XXX YYYПолучаем : "404: Unknown parameter"
Стоит выкинуть из конфига:
*PING Timeout = 1000 PacketRate = 12 Target = 10.0.0.1:target_1то все работает отлично...
Версия агента 1.2.7
-
*PING - это начало новой секции конфига. ActionShellExec должен быть в основной секции, вот так:
MasterServers = trampampam.ru ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d logFile = C:\NetXMS\var\log.txt FileStore = C:\NetXMS\var SubAgent = ecs.nsm SubAgent = ping.nsm SubAgent = logwatch.nsm SubAgent = portcheck.nsm SubAgent = winperf.nsm SubAgent = wmi.nsm SubAgent = ups.nsm ActionShellExec = ResroreWinVPN:C:\Windows\system32\rasdial.exe $1 $2 $3 *PING Timeout = 1000 PacketRate = 12 Target = 10.0.0.1:target_1 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
не догадался )) спасибо!