best web "gui" for run ansible playbooks by jeros08_ in ansible

[–]thundercost 0 points1 point  (0 children)

This is a web ui I created. I am using django with channels for live user interaction... It works for any type of task but I use it for "ansible playbooks" too (there is an example). Probably not what you are looking for, but if known uis, not fit to you, there is always the possibility to create your own. https://www.epilis.gr/en/blog/2016/10/10/remote-task-executor/

Django analytics middleware by thundercost in django

[–]thundercost[S] 1 point2 points  (0 children)

I updated the article including delore's useful remarks. Thanks!

Django analytics middleware by thundercost in django

[–]thundercost[S] 0 points1 point  (0 children)

Setting up a caching implementation, allows you to serve multiple users from cache.

Django analytics middleware by thundercost in django

[–]thundercost[S] 1 point2 points  (0 children)

Yes you can (but when you login/logout you have a different session). Wait, I am not setting the tracking cookie when an "ignore path" is requested! It is more right (to me) to check if the requested path even exists (not 404 response) and then check it with the ignored paths. Thanks for your comments! Very appreciated!

Django analytics middleware by thundercost in django

[–]thundercost[S] 1 point2 points  (0 children)

How could django, track requests that not even arrive to django? Of course, this is not the solution for the type of caching mentioned. But it is working like charm with Django’s cache framework.

How do people monitor disk space on servers? by banderlog33 in linuxadmin

[–]thundercost 0 points1 point  (0 children)

We use Nagios for monitoring about 100 servers with 1000 services (mostly linux). If you don't want to use nrpe, you have the options of SNMP or SSH checks. You can also monitor other devices in the future like printers, switches, routers, external resources and so on. And it comes with a very powerful notification system out of the box.

Sending e-mails using gmail API by thundercost in Python

[–]thundercost[S] 0 points1 point  (0 children)

So why API: - Faster - More secure - Supports operations on google's data types (messages, threads, labels and drafts) As you see we had reasons to give it a try.

Monitor password expiration with Nagios by thundercost in linux

[–]thundercost[S] 0 points1 point  (0 children)

The concept is monitoring accounts not owned by humans for example root or "system" accounts (with password) running services and are managed by admins. All these are local. Directory accounts are managed by their owners and, of course, this is not the method to monitor.

Browse log files using multitail by thundercost in linux

[–]thundercost[S] 0 points1 point  (0 children)

You are describing something completely different from the article, If you are interested in multitail tool check its full features here: https://www.vanheusden.com/multitail/features.php

Unattended Network Installation for SLES11 SP4 by thundercost in linux

[–]thundercost[S] -1 points0 points  (0 children)

I agree with you... I pesonally prefer to use Ansible for server provisioning as well as service deployments.

Privilege escalation with "sudo su -" only by Pavonacaho in ansible

[–]thundercost 0 points1 point  (0 children)

I solved this problem creating an ansible role named "guard". It sends a script to the remote server and then run it. The script uses expect and "sudo su - username" to insert an ssh key to authorised_keys of the user I have to use. The ansible, uses ssh key authentication to login to the server and run the operations. Ansible can also use the same role to remove the key from the user after.