NAGIOS | poor mans report scripting

You wanna report some stuff to nagios the easy way? Try this. Nagios server side: Install netcat. Run a eternal loop script: # while true; do nc -l -p <THE_PORT_YOU_WANNA_LISTEN_TO> >> /var/nagios/rw/nagios.cmd; done& Client side: Install netcat. Drop your info to the NAGIOS server with something like: # echo -e “[$(date +%s)] PROCESS_SERVICE_CHECK_RESULT;<NAGIOSCONFIG_SERVER_NAME>;<NAGIOSCONFIG_SERVICE_NAME>;<RESULT_0_or_1_or_2>;<YOUR_IMPORTANT_MESSAGE>” | nc […]

TELEGRAM | telegram-cli | some hints

always use the -W parameter, otherwise you will earn an error (38: can not parse arg #1) that means your peer is unknown afaik its impossible to send strings to stdin address clients/channels whos name contain spaces by their id (user#1234567890 or channel#1234567890) use the -I and -N parameters still problematic? try

WSUS Database maintenance

Install ‘SQL Server Management Studio Express’ Run ‘SQL Server Management Studio Express’ as Administrator. Server is \\.\pipe\MICROSOFT##WID\tsql\query Backup your SUSDB. Check this: Short: Create a project, Create custom indexes (ONLY BEFORE YOUR FIRST REINDEXING, once in a databases lifetime), reindex ( HINT: Never distribute drivers via WSUS. Exclude them in WSUS. I […]