Questions tagged [system-administration]

Use this tag for asking about programs you have written to perform system-administration tasks. Non-programming questions about system administration are off-topic for Stack Overflow and should not be asked here.

983 questions
3
votes
6 answers

How do you handle bandwidth billing on shared servers in apache?

What solutions do you have in place for handling bandwidth billing for your vhosts on a shared environment in apache? If you are using log parsing, does your solution scale well when the logs become very very large? Anyone using any sort of module…
jlintz
  • 463
  • 3
  • 8
3
votes
1 answer

Is it possible to set SUID of console_script created by Python setuptools?

I have certain scripts that are installed as console_scripts using Python's setuptools. This script is run as www-data user. But the script also needs access to SSL certs that can be read only by root user. One of the possible solutions that I see…
vaidik
  • 2,191
  • 1
  • 16
  • 22
3
votes
3 answers

Hosting multiple websites on a single server

I have a bunch of different websites, mostly random weekend projects that I'd like to keep on the web because they are still useful to me. They don't see more than 3-5 hits per day between all of them though, so I don't want to pay for a server for…
Drew
  • 12,578
  • 11
  • 58
  • 98
3
votes
3 answers

Puppet Servers of same type

I have a best practice question around Puppet when working is server/agent mode. I have created a working solution using a manifest/sites.pp configuration that identifies the configuration using the hostname of the agent. For example: node…
eggsy84
  • 1,059
  • 1
  • 14
  • 26
3
votes
5 answers

How to handle new files to process in cron job

How can I check files that I already processed in a script so I don't process those again? and/or What is wrong with the way I am doing this now? Hello, I am running tshark with the ring buffer option to dump to files after 5MB or 1 hour. I wrote a…
salparadise
  • 5,699
  • 1
  • 26
  • 32
3
votes
4 answers

How to update contacts in Zimbra by scripting?

I have a Zimbra installation and I need to programmaticaly update contacts in it. It seems that its REST interface is only working to add new contacts, but I need to update existing ones. Is there a way, tool or something, open-source, to do that ?
edomaur
  • 1,397
  • 4
  • 23
  • 38
3
votes
1 answer

How to use Clojure to run system administration and deployment tasks over SSH?

Python has the Fabric library to perform such actions, does Clojure have options like that ?
Bruno Lee
  • 1,867
  • 16
  • 17
3
votes
2 answers

How to monit disk I/O with monit?

Currently I'm using M/Monit to monitor a lot of instances at once. But Iwould also like to know if anyone tried to monitor Disk I/O with monit? I don't have any good knowledge about disks, so if someone could point me to the right direction or share…
Vor
  • 33,215
  • 43
  • 135
  • 193
3
votes
1 answer

Ubuntu mysterious proxy

Can't find where my proxy settings are stored. I'm on Ubuntu 12.04. Once upon a time I created a "manual" proxy through Network app GUI. Turned it off same way but now I everytime I use shell I have to "empty" proxies with export http_proxy="" and…
user1343639
3
votes
2 answers

How to create a capistrano task to download latest database_backup.tgz and import locally?

I'm trying to do something with a Capistrano task that is similar to the heroku db:pull functionality if you are familiar with it. I have a remote server. On that server I have a bunch of backups in the /path/db_backups/ folder. And in that folder…
Daniel Fischer
  • 3,042
  • 1
  • 26
  • 49
3
votes
2 answers

How can I fix this failing Python extension build due to not finding a suitable Fortran compiler in Cygwin?

I'm attempting to install a Python extension (hydroclimpy.sourceforge.net) which apparently needs to compile some Fortran into itself before it's installed. When I run the build command for the extension I end up with an error telling me that no…
James Adams
  • 8,448
  • 21
  • 89
  • 148
3
votes
1 answer

PHP MYSQL - Populate HTML table numbered rows based on whether they match row number

So, basically I'm trying to make a datacenter cab diagram. We have an excel spreadsheet, but this is not easy to update, nor easily searchable. I have three tables in a MySQL DB; the db is: racks, the tables are: cabinets, devices, & datacenters -…
3
votes
6 answers

Linux-based solution for domain management?

Using any member of the Windows Server family, I can set up an active directory, and have a single pool of users for a large scale of computers; access can be given / removed for any shared resources in the given domain (including access to client…
Silver Dragon
  • 5,480
  • 6
  • 41
  • 73
3
votes
4 answers

Perl or Python script to remove user from group

I am putting together a Samba-based server as a Primary Domain Controller, and ran into a cute little problem that should have been solved many times over. But a number of searches did not yield a result. I need to be able to remove an existing…
Loren Charnley
  • 235
  • 4
  • 9
3
votes
3 answers

Shell script to run task and shutdown after task is done

I want to run a shell script that runs a python program and shutdowns after the program is done. Here is what I wrote #!/bin/bash python program sudo shutdown -h now This just shutdowns the system without waiting for the program to complete. Is…
viper
  • 2,220
  • 5
  • 27
  • 33