PropertySource - Certificate Information
We had to find out who issued the SSL cert on port 443 for a bunch of network devices and servers. So I wrote this TCPMLH.
It pulles the IssuerCN, SubjectCN, ValidFrom and ValidTo info for the certificate. It could easily be modified to look at other ports as well if wanted.
It depends on a PropertySource that was listed here awhile ago 'DataSources_List', which I don't have the key for, but can share the XML if needed.
Joe Williams
Posted 6 years ago·Last reply 6 years ago
7 comments
LM User
·6 years agoThis just means that your script didn't write anything to the stdout pipe. With PowerShell, you use Write-Host "propertyname=propertyvalue" for every property you want to create on the device. https://www.logicmonitor.com/support/logicmodules/propertysources/creating-propertysources
You may also look at using the debug window to run your script. That way you can see the raw output. The command you'd want to run is !posh. However, you'll want this chrome extension. Without it, you have to upload your script to the collector and specify the path. With it, you can just paste in your script and select the device to run against. It will make the token substitutions and run it on the collector against that device.
Dominique
·6 years agoHello,
I tried to test the powershell script and got this
What exactly does this means?
I was having an expired certificate I was expecting to catch!!!
Thanks,
Dom
Herin
·6 years agoHi Joe,
Can you please share the XML. Much Appreciated
Thanks
LM User
·6 years agoHaha, i should have waited. This one has now been flipped to public so you should be able to use it.
LM User
·6 years agoThis one is "stuck" with us for the moment. There are new Exchange features coming out (really cool stuff; think app store). While that's being done, all non-core LogicModules (meaning LogicModules not written by LM) have been marked as private. Once the new Exchange features go live, the module author should be able to go to the "My Integrations" tab and flip the toggle from private to public. (Working on a shortcut for this one right now.)
Joe Williams
OP6 years agoGuessing it hasn't been approved yet. Below is the PowerShell script and the AppliesTo is 'auto.activedatasources =~ "HTTPS"'
mkerfoot
·6 years agoI'm getting the following error;
LogicModule is Private, Cannot Read