NetXMS Support Forum

English Support => General Support => Topic started by: Spheron on June 16, 2021, 05:12:28 PM

Title: WindowsFirewall.State
Post by: Spheron on June 16, 2021, 05:12:28 PM
Hello @all,

i want to monitor the windows firewall of our servers with the WindowsFirewall.State.

If i create a DCI with WindowsFirewall.State(public) (for the public firewall) so i get the value "0" (Firewall is off). If i activate the windows public firewall the DCI value doesn't change, it remains at "0".

How does the WindowsFirewall.State() work? Is "0" not the value if firewall profile is off?

Thanks for any help...


Greetings
Marco
Title: Re: WindowsFirewall.State
Post by: Spheron on June 17, 2021, 01:38:49 PM

I have searched in the Admin Guide (https://www.netxms.org/documentation/adminguide/index.html) but i don't find anything for WindowsFirewall.State.

Am i blind, or is there no entry for this function?

Greetings
Marco

Title: Re: WindowsFirewall.State
Post by: Spheron on June 18, 2021, 02:12:33 PM

I figured out, that only the domain firewall profile is processed from WindowsFirewall.State.

If Windows Domain Firewall Profile is active, all WindowsFirewall.State(domain/private/public) in NetXMS are "1"
If Windows Domain Firewall Profile is deactivated, all WindowsFirewall.State(domain/private/public) in NetXMS are "0"

It seems that the state of private+public firewall profiles is not read...

Can take a Dev here a closer look at?

Greetings
Marco

Title: Re: WindowsFirewall.State
Post by: Victor Kirhenshtein on June 18, 2021, 10:02:29 PM
I did a quick look at the code for reading firewall state, and it is indeed strange. Will dig deeper into it in next few days, as time permits.

Best regards,
Victor
Title: Re: WindowsFirewall.State
Post by: Spheron on July 07, 2021, 02:43:38 PM
Hi Victor,

have you had time to look at it yet?

Greetings
Marco
Title: Re: WindowsFirewall.State
Post by: Victor Kirhenshtein on July 09, 2021, 04:51:34 PM
Hi,

just fix it. Fix will be included into next release. You can also try this agent build with a patch: https://cloud.radensolutions.com/s/DWBNYGnGbSBMD59 (https://cloud.radensolutions.com/s/DWBNYGnGbSBMD59)

Best regards,
Victor
Title: Re: WindowsFirewall.State
Post by: Spheron on July 12, 2021, 03:56:41 PM
Hello Victor,

testet the Agent V3.8.425... and it worked like a charm...  :-)

Many thanks for the fast fix...

Greetings
Marco