[CentOS] mount.nfs: an incorrect mount option was specified

2016-10-03 Thread Tim Dunphy
Hey guys, My NFS server has been working really well for a long time now. Both client and server run CentOS 7.2. However when I just had to remount one of my home directories on an NFS client, I'm now getting the error when I run mount -a mount.nfs: an incorrect mount option was specified Th

Re: [CentOS] ElasticSearch Logrotate not working

2016-08-02 Thread Tim Dunphy
ok, good advice! thanks! On Thu, Jul 28, 2016 at 2:06 PM, Thomas Eriksson < thomas.eriks...@slac.stanford.edu> wrote: > On 07/28/2016 07:40 AM, Tim Dunphy wrote: > > Hey guys, > > > > I have this log rotation script setup in my /etc/logrotate.d folder > >

[CentOS] ElasticSearch Logrotate not working

2016-07-28 Thread Tim Dunphy
Hey guys, I have this log rotation script setup in my /etc/logrotate.d folder /var/log/elasticsearch/*.log { daily rotate 100 size 50M copytruncate compress delaycompress missingok notifempty create 644 elasticsearch elasticsearch } And I notice that log file

[CentOS] Apache/PHP Installation - opinions

2016-04-26 Thread Tim Dunphy
Hey guys, I tend to work on small production environments for a large enterprise. Never more than 15 web servers for most sites. But most are only 3 to 5 web servers. Depends on the needs of the client.I actually like to install Apache and PHP from source and by hand. Although I know that's cons

Re: [CentOS] SELinux denies haproxy

2016-03-12 Thread Tim Dunphy
information : > https://www.mankier.com/8/haproxy_selinux > > On Sun, Mar 13, 2016 at 2:05 AM, Alexander Dalloz > wrote: > > > Am 12.03.2016 um 23:18 schrieb Tim Dunphy: > > > >> Hi all, > >> > >> I'm load balancing 4 mysql databases using H

[CentOS] SELinux denies haproxy

2016-03-12 Thread Tim Dunphy
Hi all, I'm load balancing 4 mysql databases using HAProxy. The setup seems to be working pretty well. Except I keep seeing these messages turning up in syslog: Mar 12 22:11:31 db1 kernel: [6058125.959624] type=1400 audit(1457820691.824:3029129): avc: denied { name_connect } for pid=801 comm="ha

Re: [CentOS] logrotate script error

2016-03-05 Thread Tim Dunphy
` 2> /dev/null || true endscript } Thanks for the help! Tim On Sat, Mar 5, 2016 at 11:15 PM, Yamaban wrote: > On Sun, 6 Mar 2016 04:34, Tim Dunphy wrote: > > Hey guys, >> >> I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last >&g

[CentOS] logrotate script error

2016-03-05 Thread Tim Dunphy
Hey guys, I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last I saw! And that's because the logrotate script I came up with didn't work. The error I get on a syntax check is this: #logrotate -f logstash size: '100M': No such file size: '100M': No such file size: '100M'

[CentOS] delete directories with find and exclude other directories

2016-02-03 Thread Tim Dunphy
Hi all, I'm attempting to delete some directories and I want to be able to exclude a directory called 'logs' from being deleted. This is my basic find operation (without the exclusion) # find . -type d |tail -10 ./d20160124-1120-df8mfb/deployments ./d20160124-1120-df8mfb/releases ./d20160131-16

Re: [CentOS] LDAP create home directories

2015-12-19 Thread Tim Dunphy
_| |_| [odunphy@ops2 ~]$ Thanks for your help! Tim On Sat, Dec 19, 2015 at 4:49 PM, Bill Howe wrote: > Check /var/log/secure for why the directory is not able to be created. > > Might be selinux, is that enabled? (sestatus) > On Dec 19, 2015 15:40, "Ti

Re: [CentOS] LDAP create home directories

2015-12-19 Thread Tim Dunphy
backed ldap connection service on the clients. > On Dec 19, 2015 14:25, "Tim Dunphy" wrote: > > > Hey guys, > > > > I've setup an LDAP server on our network. I'm using OpenLDAP. > > > > It was really easy to use the authconfig-tui to gen

[CentOS] LDAP create home directories

2015-12-19 Thread Tim Dunphy
Hey guys, I've setup an LDAP server on our network. I'm using OpenLDAP. It was really easy to use the authconfig-tui to generate the nsswitch.conf and ldap.conf files that would allow user authentication. But when users would log in, the system wasn't creating the home directories. I found

[CentOS] prefork vs worker mpm in apache

2015-11-03 Thread Tim Dunphy
Hey guys, We had to recompile apache 2.4.12 because we needed to disable thread safety in php (ZTS). Because for some reason when compiling php with the --disable-maintainer-zts with the worker mpm model and checking the php info page, it was saying that thread safety was still enabled. So when

Re: [CentOS] use pssh to restart a service

2015-11-02 Thread Tim Dunphy
im On Mon, Nov 2, 2015 at 5:25 AM, Anthony K wrote: > On 02/11/15 12:35, Tim Dunphy wrote: > >> Hey Gordon, >> >> Sorry, man my bad! Disabling the tty requirement for my sudo user does >> indeed work. I had a type-o in the sudoers file, and when I corrected

Re: [CentOS] use pssh to restart a service

2015-11-01 Thread Tim Dunphy
's any difference to the sudoers file I guess. Thanks for your help! Tim On Sun, Nov 1, 2015 at 7:06 PM, Gordon Messmer wrote: > On 10/31/2015 04:16 PM, Tim Dunphy wrote: > >> Got the same exact message! >> >> Anything else I can try? >> > > I think yo

Re: [CentOS] use pssh to restart a service

2015-10-31 Thread Tim Dunphy
in the logs after making the suggested change to disable tty: [root@logs:~] #cat /etc/sudoers.d/bluethundr Defaults:myuser!requiretty, visiblepw Got the same exact message! Anything else I can try? Thanks On Sat, Oct 31, 2015 at 5:34 PM, Gordon Messmer wrote: > On 10/31/2015 02:0

Re: [CentOS] use pssh to restart a service

2015-10-31 Thread Tim Dunphy
@es1.example.com "/bin/echo $?" 0 And the user has 'NOPASSWD' access. Any ideas? Thanks, Tim On Sat, Oct 31, 2015 at 5:09 PM, Tony Schreiner wrote: > On Sat, Oct 31, 2015 at 5:04 PM, Tim Dunphy wrote: > > > Hi all, > > > > I need to restart a service

[CentOS] use pssh to restart a service

2015-10-31 Thread Tim Dunphy
Hi all, I need to restart a service on a few elasticsearch nodes. I'm trying to do it with pssh. I'm getting this error when I try to do that: pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch" [1] 17:01:50 [FAILURE] bluethu...@es2.example.com Exited with error code 1 [2] 17

Re: [CentOS] disable ZTS in php

2015-10-30 Thread Tim Dunphy
Yeah Erro, ok you have a point. I'll do that. Thanks! On Fri, Oct 30, 2015 at 11:40 AM, Eero Volotinen wrote: > This is really wrong way to do this. Install yum-utils and use > yumdownloader --source package-name to get rhel version of package. Then > modify spec file and recompile. > > Eero > H

Re: [CentOS] disable ZTS in php

2015-10-30 Thread Tim Dunphy
ike MacOS i’ll run into a problem with the > standard version of iconv in php. To leave it out i use the —without-iconv > directive. Maybe give that a shot with maintainer-zts. > > — > > Jeremy > > > > > > > On Oct 30, 2015, at 6:44 AM, Tim Dunphy wro

[CentOS] disable ZTS in php

2015-10-30 Thread Tim Dunphy
Hey guys, I'm trying to disable ZTS in php, because an application we need (AppDynamics) is not compatible with it. So I tried compiling php with the following flags: php -i | grep configure Configure Command => './configure' '--with-apxs2=/opt/apache2/bin/apxs' '--with-zlib=/usr' '--prefix=/

Re: [CentOS] selinux commands fail on low memory box

2015-10-14 Thread Tim Dunphy
ule -i newrelic.pp [root@ops3:~] # Thanks! Tim On Thu, Oct 15, 2015 at 12:19 AM, Eero Volotinen wrote: > How about adding some swap into system? > > -- > Eero > > 2015-10-15 4:40 GMT+03:00 Tim Dunphy : > > > Hey all, > > > > I have 3 web servers hosted at

[CentOS] selinux commands fail on low memory box

2015-10-14 Thread Tim Dunphy
Hey all, I have 3 web servers hosted at Digital Ocean that all have the same amount of memory at 512MB. They're all running CentOS 7. They are low powered apache servers and don't really need more than that. All they're doing is serving the web, no database on those hosts at all. On the first

[CentOS] mount: unknown filesystem type '(null)' error

2015-10-12 Thread Tim Dunphy
Hey guys, I'm trying to mount a disk volume on aws under CentOS 7. And when I try I get this result: [root@repo:~] #mount /dev/xvdf1 /opt/repo mount: /dev/xvdf1 is write-protected, mounting read-only mount: unknown filesystem type '(null)' The only thing I can see in dmesg that seems to relate

[CentOS] python setup.py ssl error

2015-10-06 Thread Tim Dunphy
Hey guys, I'm trying to do a source install of s3cmd onto a centos 6.5 host. Because the version in the repo is a little old. So when I go to run the installer app with the command python2.7 setup.py install, I'm getting the following error: Installed /usr/local/lib/python2.7/site-packages/s3cmd

Re: [CentOS] Keepalived vrrp problem

2015-09-30 Thread Tim Dunphy
t; >> On 09/29/2015 09:14 AM, Tim Dunphy wrote: >> >>> And if I do an ifconfig command I see no evidence of an eth1 existing. >>> >> >> "ifconfig -a" will show you all of your interfaces. >> > > Maybe there is a confusion here. Sounds

[CentOS] Keepalived vrrp problem

2015-09-29 Thread Tim Dunphy
Hey guys, I'm trying to install keepalived 1.2.19 on a centos 6.5 machine. I did an install from source. And when I start keepalived this is what I'm seeing in the logs. It's reporting that the VRRP_Instance(VI_1) Now in FAULT state. Here's more of that log entry: Sep 29 12:06:58 USECLSNDMNRDB

[CentOS] setting up solr/tomcat gives 404 page

2015-09-09 Thread Tim Dunphy
Hey all, I tried following a few guides and I'm struggling with trying to setup apache solr 4.10 under apache tomcat 7.0.64 along with the drupal config necessary to get that this working with drupal. The latest guide I followed was this one which seemed like it might work: http://duntuk.com/ho

Re: [CentOS] camgirl spam on the list

2015-08-28 Thread Tim Dunphy
Hey Fabian, Here's the headers for one of the spam responses I got from the list: from:Tracy reply-to:tracy12...@safeloves.com to:Tim Dunphy date:Fri, Aug 28, 2015 at 2:19 PMsubject:Re: [CentOS] apache mysterious 404 errormailed-by:safeloves.comsigned-by:safeloves.com:Important mainly because it

Re: [CentOS] apache mysterious 404 error

2015-08-28 Thread Tim Dunphy
Guys, We actually found the problem. The problem was actually in a javascript file. It was referring to it's parent directory as mycompanyStore. So once I noticed that, I went into that directory and created a symlink. ln -s . mycompanyStore from within that directory. That let the java script kn

[CentOS] camgirl spam on the list

2015-08-28 Thread Tim Dunphy
Hey guys, I just noticed this recently in my latest posts to the list. But I've noticed that every time I mail the list for some advice, I get hit with spam from a camgirl site like every other message. Kinda funny actually. But also annoying!! Anyone else experience this? Maybe this is somethin

Re: [CentOS] apache mysterious 404 error

2015-08-28 Thread Tim Dunphy
ssage- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of Tim Dunphy > Sent: Friday, August 28, 2015 10:12 AM > To: CentOS mailing list > Subject: Re: [CentOS] apache mysterious 404 error > > Hey guys, > > Sorry for the failed atte

Re: [CentOS] apache mysterious 404 error

2015-08-28 Thread Tim Dunphy
rt Wolfe wrote: > Check the links again. Remove the * from images*/ and you should be all > set. > > -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of Tim Dunphy > Sent: Thursday, August 27, 2015 5:18 PM > To: CentOS m

Re: [CentOS] apache mysterious 404 error

2015-08-27 Thread Tim Dunphy
; on browser : > > > (index):1 GET > http://stage.theshopatmycomany.com/mycomanyStore/images*/altImg.png > > try : > > > (index):1 GET > http://stage.theshopatmycomany.com/mycomanystore/images/altImg.png > <http://stage.theshopatmycomany.com/mycomanyStore/imag

[CentOS] apache mysterious 404 error

2015-08-27 Thread Tim Dunphy
Hey guys, Just have a question about apache. Hoping to get an opinion on this. I've just setup a site under apache 2.4. And made sure that the document root setup in the vhost for the site I'm serving has permissions for the apache user. Yet some of the files are throwing a 404 error in a bro

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
right.. I'll be much better off using expect to get this type of work done. It's jut that I'm more familiar with bash so I thought that there might be a good way to do it with that also. On Tue, Aug 25, 2015 at 4:04 PM, Peter wrote: > On 08/26/2015 04:51 AM, Tim Dunphy wrote: >

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
> > Use expect? yep! Expect should work. Thanks On Tue, Aug 25, 2015 at 12:56 PM, Eero Volotinen wrote: > Use expect? > > Eero > 25.8.2015 7.52 ip. "Tim Dunphy" kirjoitti: > > > Hey guys, > > > > I'm trying to echo my password into so

[CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
Hey guys, I'm trying to echo my password into some commands inside of a bash script. But I think I'm going about it incorrectly. Here's the top part of my script: #!/bin/bash pub="~/.ssh/id_rsa.pub" dps_pass="my_pass" ssh="/usr/bin/ssh" scp="/usr/bin/scp" for i in 10.10.10.2{5,6} do echo "xfrin

Re: [CentOS] wordpess can't connect to DB but mediawiki can

2015-08-15 Thread Tim Dunphy
But do you have any idea why that wordpress setting won't allow the site to connect to the DB? While it may not be of super high importance to have my site contact the DB via SSL, it would still be a nice thing to have. Thanks, Tim On Sat, Aug 15, 2015 at 10:45 PM, Tim Dunphy wrote: > Yo

Re: [CentOS] wordpess can't connect to DB but mediawiki can

2015-08-15 Thread Tim Dunphy
looking at the mysql.db table) on your > "db.example.com" machine, correct? > > > Original Message > > Date: Saturday, August 15, 2015 19:32:25 -0400 > > From: Tim Dunphy > > To: CentOS mailing list > > Subject: Re: [CentOS] wordpes

Re: [CentOS] wordpess can't connect to DB but mediawiki can

2015-08-15 Thread Tim Dunphy
nge how that's happening! On Sat, Aug 15, 2015 at 6:12 PM, Richard wrote: > > > Date: Saturday, August 15, 2015 17:57:03 -0400 > > From: Tim Dunphy > > >> > >> [this isn't really a centos issue, even if you're using centos, > >> which

Re: [CentOS] wordpess can't connect to DB but mediawiki can

2015-08-15 Thread Tim Dunphy
rmation_schema | | jfwiki | | jokefire | | mysql | | performance_schema | ++ 6 rows in set (0.00 sec) Any other ideas? Thanks, Tim On Sat, Aug 15, 2015 at 3:07 PM, Richard wrote: > > > > Date: Saturday, August 15, 2015 13:53:28

[CentOS] wordpess can't connect to DB but mediawiki can

2015-08-15 Thread Tim Dunphy
Hey guys, I'm running both a wordpress site as well as a mediawiki off of the same web servers. The mediawiki site works great! The wordpress site, meh. Not so much. I keep getting the common database connection error: Error establishing a database connection And as far as I can tell the setting

Re: [CentOS] can't ssh into C7 host

2015-07-18 Thread Tim Dunphy
Cool thanks! I'll check it out. On Sat, Jul 18, 2015 at 9:56 PM, Alexander Dalloz wrote: > Am 19.07.2015 um 01:58 schrieb Tim Dunphy: > >> hey guys, >> >> Yesterday I had no trouble loggging into this database host. But today for >> some reason I can

[CentOS] can't ssh into C7 host

2015-07-18 Thread Tim Dunphy
hey guys, Yesterday I had no trouble loggging into this database host. But today for some reason I can't log in using my RSA key and password authentication doesn't work either. I am able to log onto the host via console. And I was able to grab the ssh config file. Here it is: [root@db1 ~]# grep

[CentOS] ssh failed only with nfs home directory

2015-07-13 Thread Tim Dunphy
Hey all, Having a weird ssh issue I'd like some opinions on. If I have my home directory mounted on the NFS server itself, I get permission denied when I try to ssh into it. The correct permissions and ownership are on the home directory, ssh directory and the authorized_users file. Here's wha

Re: [CentOS] puppet files denied by SELinux

2015-07-11 Thread Tim Dunphy
ad just run restorecon on the object it would have > set it back to the correct/default context. > > You might want to setup an alias mv "mv -Z" > > This changes the way mv works to set the context after mv rather then > maintaining the source context. > > On 06/21/

Re: [CentOS] rsyncing directories - sanity check

2015-06-25 Thread Tim Dunphy
In say 3 or 4 weeks. On my own servers no sweat. But at work. nah. not really practical. Thanks for the suggestion anyway! On Wed, Jun 24, 2015 at 2:33 PM, Gordon Messmer wrote: > On 06/24/2015 09:42 AM, Tim Dunphy wrote: > >> And for >> some reason when the servers were orde

Re: [CentOS] rsyncing directories - sanity check

2015-06-24 Thread Tim Dunphy
xt file that you can examine for more >clues. > hth & regards, > Good suggestions! Thanks! Tim On Wed, Jun 24, 2015 at 1:05 PM, Carl E. Hartung wrote: > On Wed, 24 Jun 2015 12:42:19 -0400 > Tim Dunphy wrote: > > > Does anyone have a good guess as to why these &#x

[CentOS] rsyncing directories - sanity check

2015-06-24 Thread Tim Dunphy
hey guys, I need to mount a different volume onto /var so we have more room to breathe. I'll be turning 3 servers into an elasticsearch cluster. And for some reason when the servers were ordered the large local volume ended up being /usr when the ES rpm likes to store it's indexes on /var. So I'

Re: [CentOS] puppet files denied by SELinux

2015-06-21 Thread Tim Dunphy
think that a puppet host would be one of the most important if not 'the' most important to protect! I'm definitely open to suggestions at this point! Thanks, Tim On Sun, Jun 21, 2015 at 11:11 AM, Tim Dunphy wrote: > Hi all, > > Thanks for all your suggestions. Here's where

Re: [CentOS] puppet files denied by SELinux

2015-06-21 Thread Tim Dunphy
sted on the monitor2 host which had the key pair copied from the NFS share. So in summary it appears that there is some interaction between SELinux and NFS that is causing the issue. Any thoughts? Thanks, Tim On Sun, Jun 21, 2015 at 11:09 AM, Tim Dunphy wrote: > Yes, you did when you used

[CentOS] puppet files denied by SELinux

2015-06-19 Thread Tim Dunphy
Hey folks, Ok so I'm having another issue with SELinux. However I think I'm pretty close to a solution and just need a nudge in the right directtion. I wrote a puppet module that gets systems into bacula backups. Part of the formula is to distribute key/cert pairs with permissions that allow bac

Re: [CentOS] selinux allow apache log access

2015-06-17 Thread Tim Dunphy
3:30:51PM -0400, Tim Dunphy wrote: > >> No prob! Thanks for all the help! But in searching my system I don't > find > >> anything of the sort. > >> > >> [root@monitor2:~] #updatedb > >> [root@monitor2:~] #locate myzabbix.te > >> [root@

Re: [CentOS] selinux allow apache log access

2015-06-17 Thread Tim Dunphy
d / -name "myzabbix.*" I also did search using 'yum provides' to find something similar. But wasn't' able to find anything. yum provides "*/myzabbix.*" ... No matches found Maybe I'll need to install a package? Thanks, Tim On Wed, Jun 17, 2015 at 2:1

Re: [CentOS] selinux allow apache log access

2015-06-17 Thread Tim Dunphy
> > What turns up in myzabbix.te? Same deal. :( #semodule -i myzabbix.te semodule: Failed on myzabbix.te! sigh... but thanks any other clues? On Wed, Jun 17, 2015 at 11:42 AM, Harold Toms wrote: > On 17/06/15 16:29, Tim Dunphy wrote: > >> That's because there&#x

Re: [CentOS] selinux allow apache log access

2015-06-17 Thread Tim Dunphy
Just in case.. none of that worked. Got any other ideas? :) Tim On Wed, Jun 17, 2015 at 11:24 AM, Harold Toms wrote: > On 17/06/15 15:27, Tim Dunphy wrote: > >> Try something like: >>> grep zabbix /var/log/audit/audit.log | audit2allow -M zabbix >>> semodule

Re: [CentOS] selinux allow apache log access

2015-06-17 Thread Tim Dunphy
; Try something like: > > grep zabbix /var/log/audit/audit.log | audit2allow -M zabbix > semodule -i zabbix.pp > > > On 16/06/15 15:58, Tim Dunphy wrote: > >> Hey guys,. >> >> I have a centos 7 machine I'm using as a zabbix server. And I noticed >

[CentOS] selinux allow apache log access

2015-06-16 Thread Tim Dunphy
Hey guys,. I have a centos 7 machine I'm using as a zabbix server. And I noticed that apache won't start, with this complaint in the error log: (13)Permission denied: AH00091: httpd: could not open error log file /var/log/zabbix_error_log. AH00015: Unable to open logs I tried having a look at

Re: [CentOS] exclude directory from rsync

2015-06-09 Thread Tim Dunphy
Hey guys, Thanks for your input! Both examples you gave worked, and I'll do some reading on the suggested subjects!! Just a heads up that it worked. I appreciate the clarification! Thanks, Tim On Tue, Jun 9, 2015 at 1:45 AM, Gordon Messmer wrote: > On 06/08/2015 10:12 PM, Tim Dunp

[CentOS] exclude directory from rsync

2015-06-08 Thread Tim Dunphy
hey guys, I'm trying to do an rsync of the entire /var directory, but exclude just the /var/www directory. So far I've tried these approaches: rsync -avzp --exclude-from=/var/www /var/ /mnt/var/ rsync -avzp --exclude=/var/www /var/ /mnt/var/ But neither has worked. Can I get a suggestion on h

Re: [CentOS] could not insert 'fuse' error on CentOS 7.1

2015-06-08 Thread Tim Dunphy
Cool! Thanks Eero. I'll check this out. Best regards, Tim Sent from my iPhone > On Jun 8, 2015, at 12:06 AM, Eero Volotinen wrote: > > This looka good: https://github.com/juliogonzalez/s3fs-fuse-rpm > > Eero > 7.6.2015 4.23 ip. "Tim Dunphy" kirjoitti: >

Re: [CentOS] could not insert 'fuse' error on CentOS 7.1

2015-06-07 Thread Tim Dunphy
> > Centos 7 base repo contains fuse, use it. it works. handcompiling packages > to centos is *really* stupid, without proper knowledge.. Thanks, you're right. The Centos 7 package works. [root@ops ~]# lsmod | grep fuse fuse 87661 1 My final goal is to install s3fs. Funny how

[CentOS] could not insert 'fuse' error on CentOS 7.1

2015-06-06 Thread Tim Dunphy
Hey guys, I tried installing the latest fuse on CentOS 7.1. I downloaded the latest version (2.9.4) from sourceforge and did a source install. After rebooting the host, now when I go modprobe fuse, this is what I get! *modprobe: ERROR: could not insert 'fuse': Unknown symbol in module, or unknow

[CentOS] nginx conflicting server name ignored warning

2015-06-01 Thread Tim Dunphy
Guys, I'm getting a strange warning whenever I do a config test or a restart of nginx 1.0.15 [root@aoadbld00032lb nginx]# nginx -t nginx: [warn] conflicting server name "aoadbld00032lb.company.com" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "logs.pcf.company.com" on 0.0.0.0:80,

[CentOS] specify port on check_memcached.pl

2015-05-24 Thread Tim Dunphy
Hey guys, I'm trying use check_memcached.pl to monitor a couple of memcached services running on two ports. I have my command definition setup like this: # 'check_memcached' command definition define command { command_name check_memcached command_line $USER1$/check_memcached.pl -H $HOSTADDR

Re: [CentOS] nagios check_local_disk failing

2015-05-14 Thread Tim Dunphy
-m] [-R path ] [-r path ] > [-t timeout] [-u unit] [-v] [-X type] > [root@nagios plugins]# ./check_disk -w 20 -c 10 -p / > DISK OK - free space: / 20848 MB (92% inode=97%);| > /=1670MB;23711;23721;0;23731 Thanks for the tip! That worked. :-) On Thu, May 14, 2015 at 7:33 AM, Tris Hoar wrot

[CentOS] nagios check_local_disk failing

2015-05-13 Thread Tim Dunphy
Hey all, I have a local disk check defined which is giving me an error: Current Status: UNKNOWN (for 0d 0h 1m 38s)Status Information:Unknown argument Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p pathPerformance Data:-x device} [-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m

Re: [CentOS] appdynamics php agent prevented by SELinux

2015-05-12 Thread Tim Dunphy
this up to them, we have a pretty big account with them. Thanks! Tim On Tue, May 12, 2015 at 1:47 AM, Jason Woods wrote: > > > On 12 May 2015, at 03:39, Tim Dunphy wrote: > >* Plugin catchall_labels (83.8 > > confidence) suggests **

Re: [CentOS] appdynamics php agent prevented by SELinux

2015-05-11 Thread Tim Dunphy
/opt/AppDynamics/ drwxrwxr-x. apache apache unconfined_u:object_r:usr_t:s0 appdynamics-php-agent drwxr-xr-x. apache apache unconfined_u:object_r:usr_t:s0 var Anyone have any ideas on how I can beat this problem? Thanks!! Tim On Mon, May 11, 2015 at 3:08 PM, wrote: > Tim Dunphy wrote: >

Re: [CentOS] appdynamics php agent prevented by SELinux

2015-05-11 Thread Tim Dunphy
that's why I'm trying out this experiment. Thanks, Tim On Mon, May 11, 2015 at 11:22 AM, Valeri Galtsev wrote: > > On Mon, May 11, 2015 9:47 am, Tim Dunphy wrote: > >> > >> That's a rather odd (personally, I think bad) place for a log (or > >> even lo

Re: [CentOS] appdynamics php agent prevented by SELinux

2015-05-11 Thread Tim Dunphy
< lists-cen...@listmail.innovate.net> wrote: > > > -------- Original Message > > Date: Sunday, May 10, 2015 09:02:11 PM -0400 > > From: Tim Dunphy > > > > Hey guys, > > > > I've got another C7 problem I was hoping to solve. I >

Re: [CentOS] firewalld trouble opening a port

2015-05-11 Thread Tim Dunphy
t out! On Mon, May 11, 2015 at 9:18 AM, Bowie Bailey wrote: > On 5/9/2015 3:24 PM, Tim Dunphy wrote: > >> Hi Earl, >> >> The problem is you added the rule in runtime and when you reloaded it >>> removed the rule that you added; therefore you need to use --perma

[CentOS] appdynamics php agent prevented by SELinux

2015-05-10 Thread Tim Dunphy
Hey guys, I've got another C7 problem I was hoping to solve. I installed appdynamics-php-agent-4.0.5.0-1.x86_64 on a C7.1 host. It's failing to communicate with it's controller on another host. And this is the interesting part. Whether or not I have SELinux enabled, I have apache reporting SELinu

Re: [CentOS] mariadb fails to start under C7

2015-05-10 Thread Tim Dunphy
Actually, the systemctl command is: systemctl start mysql.service from the "systemctl show" output it looks like this actually calls the /etc/rc.d/init.d/mysql file for start/stop/reload, which seems backwards. It appears that mariadb is trying to be a total drop-in replacement to mysql, so a

Re: [CentOS] mariadb fails to start under C7

2015-05-10 Thread Tim Dunphy
see if anyone has any ideas on getting MariaDB 10 working. I've already googled this to no avail. If nothing turns up on the list or if I can't find anything, I'll just go with MariaDB 5. Thanks, Tim On Sun, May 10, 2015 at 3:11 PM, Earl A Ramirez wrote: > Hello Tim, > > On

[CentOS] mariadb fails to start under C7

2015-05-10 Thread Tim Dunphy
Hey all, I just unstalled MariaDB version 10 from the mariadb repositories under a CentOS 7 host. The install went fine! [root@nfsdb1 ~]# rpm -qa | grep -i mariadb MariaDB-common-10.0.19-1.el7.centos.x86_64 MariaDB-server-10.0.19-1.el7.centos.x86_64 MariaDB-client-10.0.19-1.el7.centos.x86_64 M

Re: [CentOS] firewalld trouble opening a port

2015-05-09 Thread Tim Dunphy
:14 PM, Earl A Ramirez wrote: > On 9 May 2015 at 14:57, Tim Dunphy wrote: > > > Hey all, > > > > I'm having a little trouble opening up a port on a C7 machine. > > > > Here's the default zone: > > > > [root@appd:~] #firewall-cmd

[CentOS] firewalld trouble opening a port

2015-05-09 Thread Tim Dunphy
Hey all, I'm having a little trouble opening up a port on a C7 machine. Here's the default zone: [root@appd:~] #firewall-cmd --get-default-zone home So I try to add the port: [root@appd:~] #firewall-cmd --zone=home --add-port=8181/tcp success Then I reload firewalld: [root@appd:~] #firewal

Re: [CentOS] can't disable tcp6 on centos 7

2015-05-04 Thread Tim Dunphy
> > On Sun, May 03, 2015 at 08:25:45PM -0400, Tim Dunphy wrote: > > > Rather than a yum install. If I install the nrpe package from yum I don't > > find a check_nrpe script on the system for some reason! > That's because the 'check_nrpe' command isn

Re: [CentOS] can't disable tcp6 on centos 7

2015-05-03 Thread Tim Dunphy
Eero > > 2015-05-04 2:27 GMT+03:00 Stephen Harris : > > > On Sun, May 03, 2015 at 07:23:19PM -0400, Tim Dunphy wrote: > > > [root@puppet:~] #telnet localhost 5666 > > > > This is using TCP > > > > > [root@monitor1:~] #nmap -p 5666 puppet.mydomain.co

Re: [CentOS] can't disable tcp6 on centos 7

2015-05-03 Thread Tim Dunphy
not correct. > > -- > Eero > > 2015-05-04 1:55 GMT+03:00 Tim Dunphy : > > > > > > > It's listening on both IPv6 and IPv4. Specifically, why is that a > > problem? > > > > > > The central problem seems to be that the monitoring host ca

Re: [CentOS] can't disable tcp6 on centos 7

2015-05-03 Thread Tim Dunphy
! > Worth a shot! On Sun, May 3, 2015 at 5:44 PM, Gordon Messmer wrote: > On 05/03/2015 02:18 PM, Tim Dunphy wrote: > >> Yet, xinetd/nrpe still seems to be listeing on TCP v6!! >> > > It's listening on both IPv6 and IPv4. Specifically, why is that a problem? >

[CentOS] can't disable tcp6 on centos 7

2015-05-03 Thread Tim Dunphy
hey all, I tried disabling tcp v6 on a C7 box this way: [root@puppet:~] #cat /etc/sysctl.conf # System default settings live in /usr/lib/sysctl.d/00-system.conf. # To override those settings, enter new settings here, or in an /etc/sysctl.d/.conf file # # For more information, see sysctl.conf(5)

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-02 Thread Tim Dunphy
d if NRPE is running under either inetd or xinetd allowed_hosts=127.0.0.1 Thanks for the input tho, I genuinely appreciate it! On Sat, May 2, 2015 at 4:05 PM, Mark Milhollan wrote: > On Sat, 2 May 2015, Tim Dunphy wrote: > > >>>It's only when checking from the monitoring h

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-02 Thread Tim Dunphy
so I really appreciate the ongoing dialog with the community on this issue. I'm grasping at straws at this point. And all the attempts at help have been really great! I hope we can still get to the bottom of this! Tim On Sat, May 2, 2015 at 11:45 AM, Mark Milhollan wrote: > On Fri, 1 May

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-01 Thread Tim Dunphy
libpcre.so.1 => /lib64/libpcre.so.1 (0x7fdd4f17c000) liblzma.so.5 => /lib64/liblzma.so.5 (0x7fdd4ef57000) Both look completely fine! No missing libs. But thanks for the suggestion tho! Definitely not a bad idea to rule that out! Thanks, Tim On Fri, May 1, 2015 at 4:58 PM, B

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-01 Thread Tim Dunphy
#x27;s this... [root@monitor1:~] #/usr/local/nagios/libexec/check_nrpe -H ops.jokefire.com CHECK_NRPE: Error - Could not complete SSL handshake. Sadly :( Thanks for your input tho! On Fri, May 1, 2015 at 3:18 PM, Brian Miller wrote: > On Fri, 2015-05-01 at 01:32 -0400, Tim Dunphy wrote: >

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-01 Thread Tim Dunphy
> /etc/passwd > Am 01.05.2015 18:45 schrieb "Tim Dunphy" : > > > > > > > Oh my mistake. I mean nrpe without parameters. It should say something > > > about SSL/TLS aktiv or so. > > > You could test nrpe without SSL. Use nrpe -n - H host >

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-01 Thread Tim Dunphy
t; You could test nrpe without SSL. Use nrpe -n - H host > Am 01.05.2015 13:18 schrieb "Eero Volotinen" : > > > well. how about trying default setting and running nrped without xinetd. > > > > -- > > Eero > > > > 2015-05-01 14:14 GMT+03:00 Tim Dunp

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-05-01 Thread Tim Dunphy
So it looks like everything is OK from the SSL end of things. Any other ideas or suggestions? Thanks Tim On Fri, May 1, 2015 at 5:46 AM, Eric Lehmann wrote: > This is strange... > Do you have SSL aktive on both systems? Run nrpr localy without parameters > (this should return some nrpe

Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-04-30 Thread Tim Dunphy
!! Tim On Fri, May 1, 2015 at 1:02 AM, Eric Lehmann wrote: > Hi > Does the deamon run under xinetd? Then you have to configure the only_from > in */etc/**xinetd.d**/**nrpe* to. > > Regards > Eric > Am 01.05.2015 06:46 schrieb "Tim Dunphy" : > > > Hello, &g

[CentOS] Could not complete SSL handshake to Amazon EC2 host

2015-04-30 Thread Tim Dunphy
Hello, I am trying to monitor a host in the Amazon EC2 cloud. Yet when I try to check NRPE from the monitoring host I am getting an SSL handshake error: [root@monitor1:~] #/usr/local/nagios/libexec/check_nrpe -H ops.jokefire.com CHECK_NRPE: Error - Could not complete SSL handshake. And if I te

Re: [CentOS] can't install gd-devel on centos 7.1

2015-04-26 Thread Tim Dunphy
l just trash it and start up an **actual** CentOS host and try again. Gotta learn to be in less of a hurry... ;) Thanks anyways! Tim On Sun, Apr 26, 2015 at 6:52 PM, Eero Volotinen wrote: > 2015-04-27 1:30 GMT+03:00 John R Pierce : > > > On 4/26/2015 1:54 PM, Tim

[CentOS] can't install gd-devel on centos 7.1

2015-04-26 Thread Tim Dunphy
Hey guys, I'm trying to instal gd-devel onto a CentOS 7 host. --> Finished Dependency Resolution Error: Package: gd-last-devel-2.1.1-2.el7.remi.x86_64 (remi) Requires: libvpx-devel(x86-64) You could try using --skip-broken to work around the problem You could try running: rpm -Va --

Re: [CentOS] bash script fails conditional test

2015-04-19 Thread Tim Dunphy
> > It's a matter of "consistency". The script began #!/bin/bash and so a > direct shell invocation should _also_ use the same command. Good point. I'll try to keep that in mind. Thank you, Tim On Sun, Apr 19, 2015 at 10:04 PM, Stephen Harris wrote: > On Sun, Apr 19, 2015 at 09:00:06PM -0500

Re: [CentOS] bash script fails conditional test

2015-04-19 Thread Tim Dunphy
his into an init script. Which I probably will. But this is just for a hobby project ,and I'm a little too lazy to do it this weekend. Maybe next weekend. Thanks, Tim On Sun, Apr 19, 2015 at 9:58 PM, Chris Adams wrote: > Once upon a time, Tim Dunphy said: > > pid=$(ps -ef | grep

Re: [CentOS] bash script fails conditional test

2015-04-19 Thread Tim Dunphy
cript with sh +x . I guess that running it with sh +xv would do the same thing. But that is a useful tip to include the debug lines right in the script. I'll have to remember that for next time! Thanks! :) Tim On Sun, Apr 19, 2015 at 1:55 PM, Always Learning wrote: > > On Sun, 2015

[CentOS] bash script fails conditional test

2015-04-19 Thread Tim Dunphy
Hey all, I wrote a very basic script to determine if cassandra db is running. I'm setting a variable called 'pid' to the output of a ps | grep like to grab the pid of the cassandra process. #!/bin/bash pid=$(ps -ef | grep cassandra | grep -v grep | grep -i -v -e grep -e screen -e s3fs|awk '{prin

[CentOS] mounted NFS does not show in df -h

2015-04-02 Thread Tim Dunphy
Hey guys, This is kind of odd, so I wanted to do a sanity check. I mounted an NFS share like so: [root@web1:~] #mount -t nfs nfs1.jokefire.com:/home /mnt/home Seemed to go ok. Then I took a look at the output of df -h and didn't see it! [root@web1:~] #df -h Filesystem Size

  1   2   3   4   >