Script to get failed schedulle jobs (plugin for Nagios/Centreon) REQUIRES: schtasks.exe Tested only Windows 2003 For configuring NSCP/NRPE create a .bat file because when called like cscript script/file.vbs does not work! here is the script:
vbs to list all local users of Adminisitrator
VBS Script to list all local users of Adminisitrator and Remote Desktop,id,desctiption,enable/disable, last_login(if local) Here is the script:
Windows Enumerate Servers
Back to some VBS scripting… This script enumerates all Servers on the current domain and test it with a ping then writes to a server.txt file.
yum update security check script
simple bash script to check for missing security this is important to make sure your linux is updated here is the script:
Failed to read keytab [default]
When starting sssd in centos 7 I was getting this error: “Failed to read keytab [default]”SOLUTION:rm /etc/krb5.keytabklist -kvi /etc/samba/smb.confsecurity = adsdedicated keytab file = /etc/krb5.keytabkerberos method = secrets and keytabrealm =service smb restartnet ads testjoinnet ads leave -U Administratornet ads […]
centos 7 disable useless services
This some of the tuning I do on a centos 7 install REMOVE USLESS NETWORK INTERFACE brctl delbr virbr0 systemctl get-default systemctl set-default multi-user.target DISABLE USELESS SERVICESON GUI INSTALLS: ON BASIC WEB INSTALLS: systemctl disable firewalld.service irqbalance.service abrtd.service polkit.service smartd.service […]
python nagios scrape
Wrote a script in python using beautiful soap to scrub a web page.
