WindowsFirewall.State

Started by Spheron, June 16, 2021, 05:12:28 PM

Previous topic - Next topic

Spheron

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

Spheron


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


Spheron


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


Victor Kirhenshtein

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

Spheron

Hi Victor,

have you had time to look at it yet?

Greetings
Marco

Victor Kirhenshtein

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

Best regards,
Victor

Spheron

Hello Victor,

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

Many thanks for the fast fix...

Greetings
Marco