Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all 17768 articles
Browse latest View live

Is it possible to configure Zabbix to monitor only websites uptime?

$
0
0

I have installed Zabbix but I am having a hard time understanding how to do it. I must enter a server IP and add it as a host and then add websites as Web Scenarios?

submitted by /u/drakehfh
[link] [comments]

Converting procmail rules to Powershell rules for exchange online, what utility to use?

$
0
0

Hi all,

I'm looking at writing some form of script that will scrape procmail rules and generate a new powershell script to dump these in after an Office 365 switchover.

I've been doing it by hand as we only have a few test users moving but this will clearly not scale as it'll take up a significant amount of time. Given that both setups have defined rules I'd imagine that it is possible to do this. However, I'm not sure what way to go about it. Sed? Awk? Python? Has anyone tried something like this before and if so how well did it work for you?

Here's an example comparison;

# canonical lists **(list name)** :0: *^(To|CC|Delivered-To): users@canonical.com **(mailing list address)** .lists.canonical **(folder within Dovecot Maildir to place matching mail)** 

In Powershell it would be;

New-InboxRule -Name "canonical" -Mailbox "Test User" -MoveToFolder "test.user@domain.com:\Inbox\lists\canonical" -RecipientAddressContainsWords "users@canonical.com" 

Thanks for any advice and at the minute it looks like AWK might be the way to go with this but if anyone else has any useful pointers that'd be appreciated!

submitted by /u/patsharpesmullet
[link] [comments]

Email archiving management

$
0
0

Hey guys ! First of all, I'm sorry if this is not the better place to ask this question.

I'm currently using Thunderbird to manage ~10 emails account (IMAP). When an email is important, I'm moving it from the IMAP server to the local folders offered by Thunderbird.

Problem : The local folder are not visible from my other computers (since they're local !).

What it tried : Putting the local folders path on a network folder.

This works since I'm able to read my local folders on every machine I use BUT each time I try modifying my local folders when an other instance of thunderbird is running on another machine, I get many conflicts.

I'm looking for a way (using Thunderbird or not...) which would allow me to archive emails that could be read/written on multiple computer at the same time.

Note : All the computers are using Linux and I'm looking for an open-source/free software.

Thank you !

submitted by /u/Kenshinto
[link] [comments]

Linux Academy - no labs

Ssh stuck at pledge network

$
0
0

Hi guys,

So I’m stuck with this issue, I have a debian jessie server running openSSH to which I’m trying to connect with password authentification. The connection never actually completes, setting the client on verbose shows it gets stuck at the pledge network step without any error before that. On the server side I checked /var/log/auth.log and I can see the following: pam_krb5(sshd:auth): user xxxx authenticated as xxxx@MYREALM Accepted password for xxxx from x.x.x.x port 57796 ssh2 pam_unix(sshd:session): session opened for user xxxx by (uid=0) The thing is, connecting with pubkey works flawlessly, but with password it only works randomly, and more often not. I’m kinda stuck on this, any ideas ?

submitted by /u/carlm42
[link] [comments]

FCC’s Free Offsite Storage | TechSNAP 337 | Jupiter Broadcasting

Centos 7 Kickstart Bonded Interface

$
0
0

Hi,

I'm having some trouble with kickstarting a bonded interface on Centos 7.3.1611. I end up with a set of ifcfg files that don't seem to have the proper configuration written into them.

Summary :

I have network.service setup and NetworkManager disabled. I'm expecting to see the following in /etc/sysconfig/network-scripts, post kickstart:

ifcfg-bond0 (with IP address, netmask, etc)

ifcfg-bond0_slave_1 (with the MAC of eth0)

ifcfg-bond0_slave_2 (with the MAC of eth1)

My pxelinux.cfg append line looks like this :

append noipv6 console=tty0 console=ttyS1,115200n8 bond=bond0:eth0,eth1:mode=active-backup,primary=eth0,miimon=100,updelay=10000 ks=http://kickstart.host/kickstart.cfg initrd=path/to/initrd.img ramdisk_size=9025 net.ifnames=0 biosdevname=0

And my network config from the actual kickstart file looks like this :

network --device=bond0 --onboot=yes --bootproto=static --ip=x.x.x.x --netmask=x.x.x.x --gateway=x.x.x.x --nameserver=x.x.x.x --hostname=host.name --noipv6 --bondslaves=eth0,eth1 --bondopts=mode=active-backup,miimon=100,primary=eth0,updelay=10000

The resulting ifcfg-bond0_slave_x files have a MASTER= with a UUID instead of bond0, and no SLAVE=YES directive - meaning they won't slave to bond0 when it comes up.

The ifcfg-bond0_slave_2 file also has the wrong MAC address (eth0's instead of eth1's).

Any idea why this is happening, and are there any alternatives to completely rewriting the ifcfg files in the %post section of kickstart?

Thanks!

submitted by /u/knudtsy
[link] [comments]

Free AWS re:Invent 2017 Trip Giveaway (Worth Up To $3000)


Curl clients no ssl handshake output?

$
0
0

I was troubleshooting a TLS cert problem and my curl client would hang after the http->https redirect but I couldn't see where. However an OS X client seems to show the client and server hello and all the handshake messages to where we could see where the problem was. I went back and tested on all my curl clients of various OSs, Ubuntu, centos, fedora, and none of them show this output.

A colleagues recent OSX curl didn't seem to have this feature either. I spotted it in this link as this guy is just using a -v switch:

https://unix.stackexchange.com/questions/192944/how-to-fix-curl-sslv3-alert-handshake-failure

You'll see a:

  • SSLv3, TLS handshake, Client hello (1):
  • SSLv3, TLS alert, Server hello (2):

which is what I'm looking for. All the options and switches I've tried don't work. It seems to work on curl clients <7.50 as far as I can tell. All mine are newer and contain more protocols and features than the one mentioned in the link above.

Anyone know how to get this feature or which switches to use?

submitted by /u/bripod
[link] [comments]

Change in btrfs screw up my environment adventure #3.

$
0
0

before doing btrfs subvol snapshot -r <$ori> <$dest> will create a snapshot with last modify date on the date that command is ran. However, after the last update the last modify date of the file will be the same when the <$ori> is created. This is problematic because I clean up snapshot that is over 45 days old but now every snapshot i made is 1+years old.

anyone have this issue and how to solve this?

submitted by /u/juniorsysadmin1
[link] [comments]

Mysql high availability on a two node vsphere with no shared storage? - xpost /r/sysadmin

How Not to Get a Job With an Elite Tech Company

Not seeing a path to becoming a linux sysadmin.

$
0
0

So I'm not sure how to go about becoming a linux system admin. I thought passing RHCSA would at least give me some opportunities but I do not get a call back..and I think it's rightly so. I have around 2-3 years Tier 1 level technical support experience. I do not use any linux for my job. I use it for web development - my hobby. The geography also matters I think as I am located in Toronto, Canada and there are barely any posting related to linux here. I'd try US, but they stopped calling after Trump got elected. Before him I got a call from Thief River Falls for linux admin position..and other random calls from US, but after Trump - nothing.

Kinda feeling hopeless, but at the same time my mind is telling me to get my RHCE and grab some cloud certs like AWS Sys ops and then Dev Ops. Even if it doesn't result in a job at least I tried.

Any advice for me?

submitted by /u/__root
[link] [comments]

Best/proper way to share applications between workstations using server-side home directories [xpost from r/linux4noobs]

$
0
0

Hi, I am trying to figure out what is the best or proper way to share (self-compiled) applications between a smaller number (10-20) of workstations.

Some background: The home directories reside on a server and are mounted via NFS such that every user can login from any workstation. The base system is the same (Ubuntu 14.04) but the machines run different types of CPUs (only intel) from over the last ~9 year.

At the moment most of the shared applications (and some libraries) are stored on the home server and made available via module environments (as it is usually done on HPC facilities). My question is, if this is the correct way to do it? Or should all software always be physically installed on each workstation? Is there a right way to do it? Or maybe there are some good links for this kind of setups you know about?

Another question would be what about software installed via the package manager? It seems redundant to install every package on every machine if it could easily be shared. But then again I think it depends on what kind of software is installed?

Anyway, thanks for your help!

submitted by /u/seb45tian
[link] [comments]

Zabbix domain.ltd monitoring

$
0
0

Hello,

I want to monitor a few domains on my Zabbix server. I have added the host and then added domains as web scenarios. Now I want to receive notifications (add trigger?) when a domain goes offline and online. How can I do that? I have tried different expressions from google but they didn't work as explained here.

Thank you

submitted by /u/drakehfh
[link] [comments]

Anybody here know Java? Is it useful to learn Java in this field?

(X-Post sysadmin) Passed my rhcsa exam with a perfect score.

$
0
0

Huzzah!!!

"Dear $ME:

The results of your EX200 Exam are reported below.

Exam Domain Number: 3

Passing score for the exam: 210

Your score: 300

Result: PASS

Congratulations -- you have earned the EX200 Certificate. "

submitted by /u/goodguygreenpepper
[link] [comments]

Limiting/stopping outgoing spams from a WHM/cPanel (Exim mail server) server.

$
0
0

Hello everyone,

I'm looking for a solution for blocking outgoing spams -> spams that are sent from the hosting servers and result in the blacklisting of the IP address when not noticed and stopped manually. These spams originate usually from a compromised email addresses or injected script into some vulnerable website.

I'm trying to set some rate limiting per email address using exim ACLs , so at least in case of spaming it will limit the damage , because usually legitimate users don't send 100 emails in an hour for example. These limits will of course affect only emails sent to external domains (not emails between users from the same company/organization:domain)

So if anyone knows a better way, a plugin maybe that provides more than just rate limiting,I'l be glad to hearit, the important thing is that it has to be on the same server. At the moment we use MailScanner but it doesn't have these features, we also have apache Spamassasin but it's still not clear to me if the scoring method will d the job and not stop legitimate emails from going out.

submitted by /u/Namqol
[link] [comments]

How to make a "Sign in to network" page on linux

$
0
0

some public wifi routers have (Sign into Network page) that pops up a warning automaticly once connected.. how to do it on linux? please help

submitted by /u/4096x
[link] [comments]

How much could I get if I got a job of "Linux Sysadmin" (remotely) if I only have RHCSA?

Viewing all 17768 articles
Browse latest View live