alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
733 stars 325 forks source link

Check Syslog settings with various combinations of names #723

Open TechnoNotice opened 3 years ago

TechnoNotice commented 3 years ago

We have multiple syslog servers configured on the hosts with a site specific server configured as a second target.

udp://syslog.domin.com:514,tcp://syslog-SITE1.sec.domain.com:514 OR udp://syslog.domin.com:514,tcp://syslog-SITE2.sec.domain.com:514

Is it possible to get vCheck to check both possibilities? If so what would the format be?

Sneddo commented 3 years ago

I don't believe this is possible. It looks like the plugin essentially finds all syslog servers for a host and concatenate to a comma seperated string, which is then tested for it to be equal to the setting in the plugin.

Off the top of my head, you could potentially change the -ne to a -notmatch which should mean you could use regex in the $SyslogServer setting.