Merge branch 'ent-8521-wmic-incompatible-con-nueva-politica-de-seguridad-de-windows' into 'develop'
Ent 8521 wmic incompatible con nueva politica de seguridad de windows See merge request artica/pandorafms!4812
This commit is contained in:
commit
2be4e13a9c
|
@ -0,0 +1,2 @@
|
|||
*.exe filter=lfs diff=lfs merge=lfs -text
|
||||
pandorawmic filter=lfs diff=lfs merge=lfs -text
|
|
@ -1 +0,0 @@
|
|||
../lib/PandoraFMS
|
Binary file not shown.
Binary file not shown.
|
@ -256,6 +256,10 @@ wmi_timeout 7
|
|||
|
||||
wmi_threads 1
|
||||
|
||||
# WMI client binary (wmic by default).
|
||||
|
||||
#wmi_client pandorawmic
|
||||
|
||||
# recon_threads. Each thread will scan a different scantask.
|
||||
|
||||
recon_threads 1
|
||||
|
|
|
@ -213,6 +213,10 @@ wmi_timeout 10
|
|||
|
||||
wmi_threads 2
|
||||
|
||||
# WMI client binary (wmic by default).
|
||||
|
||||
#wmi_client pandorawmic.exe
|
||||
|
||||
# recon_threads. Each thread will scan a different scantask.
|
||||
|
||||
recon_threads 2
|
||||
|
|
|
@ -53,7 +53,7 @@ sub new ($$;$) {
|
|||
return undef unless $config->{'wmiserver'} == 1;
|
||||
|
||||
# Check for a WMI client
|
||||
if (system ($config->{'wmi_client'} . " >$DEVNULL 2>&1") >> 8 != 1) {
|
||||
if (system ($config->{'wmi_client'} . " >$DEVNULL 2>&1") >> 8 == 127) {
|
||||
logger ($config, ' [E] ' . $config->{'wmi_client'} . " not found. " . $config->{'rb_product_name'} . " WMI Server needs a DCOM/WMI client.", 1);
|
||||
print_message ($config, ' [E] ' . $config->{'wmi_client'} . " not found. " . $config->{'rb_product_name'} . " WMI Server needs a DCOM/WMI client.", 1);
|
||||
return undef;
|
||||
|
|
|
@ -31,8 +31,6 @@ install () {
|
|||
cp -R util /usr/share/pandora_server
|
||||
|
||||
echo "Rebuilding links /usr/local/bin -> /usr/bin"
|
||||
#rm /usr/local/bin/pandora_server 2> /dev/null
|
||||
#rm /usr/local/bin/pandora_exec 2> /dev/null
|
||||
ln -s /usr/local/bin/pandora_server /usr/bin/pandora_server 2> /dev/null
|
||||
ln -s /usr/local/bin/pandora_exec /usr/bin/pandora_exec 2> /dev/null
|
||||
|
||||
|
|
Loading…
Reference in New Issue