brockp
2011-11-11 03:03:16 UTC
brockp [http://community.zenoss.org/people/brockp] created the discussion
"Why does mysqld show up as /bin/sh ?"
To view the discussion, visit: http://community.zenoss.org/message/62577#62577
--------------------------------------------------------------
I have been trying to debug a process monitoring issue involving mysql, I have two mysql servers on a single host, the stock one and the zenoss one.
ps aux | grep mysqld
mysql    1070 0.1 0.5 848600 11732 ?       Ssl 10:24  0:52 /usr/sbin/mysqld
root    15432 0.0 0.0  4220  620 pts/0   S   20:50  0:00 /bin/sh /usr/local/zenoss/mysql/bin/mysqld_safe --defaults-file=/usr/local/zenoss/mysql/my.cnf --port=3307 --socket=/usr/local/zenoss/mysql/tmp/mysql.sock --old-passwords --datadir=/usr/local/zenoss/mysql/data --log-error=/usr/local/zenoss/mysql/data/mysqld.log --pid-file=/usr/local/zenoss/mysql/data/myth.pid --lower-case-table-names=1 --default-table-type=InnoDB
mysql   15491 0.1 1.2 196468 25552 pts/0   Sl  20:50  0:04 /usr/local/zenoss/mysql/bin/mysqld.bin --defaults-file=/usr/local/zenoss/mysql/my.cnf --basedir=/usr/local/zenoss/mysql --datadir=/usr/local/zenoss/mysql/data --user=mysql --pid-file=/usr/local/zenoss/mysql/data/myth.pid --skip-external-locking --port=3307 --socket=/usr/local/zenoss/mysql/tmp/mysql.sock --old-passwords --lower-case-table-names=1 --default-table-type=InnoDB
If I use a regex of mysqld, the system finds the processes, but one shows up as '/bin/sh', if I set 'ignore parameters' to no, I see that /bin/sh is pid 15432, which correct that comand line does match the regex, but shouldn't that be the 'parameter' that is being ignored? If this is expected showing /bin/sh as monitored by mysqld is difficult to parse if I have more things running spawned by /bin/sh I get a full list of processes such as the above all being identifed by /bin/sh
Any thoughts would be great.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62577#62577]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Why does mysqld show up as /bin/sh ?"
To view the discussion, visit: http://community.zenoss.org/message/62577#62577
--------------------------------------------------------------
I have been trying to debug a process monitoring issue involving mysql, I have two mysql servers on a single host, the stock one and the zenoss one.
ps aux | grep mysqld
mysql    1070 0.1 0.5 848600 11732 ?       Ssl 10:24  0:52 /usr/sbin/mysqld
root    15432 0.0 0.0  4220  620 pts/0   S   20:50  0:00 /bin/sh /usr/local/zenoss/mysql/bin/mysqld_safe --defaults-file=/usr/local/zenoss/mysql/my.cnf --port=3307 --socket=/usr/local/zenoss/mysql/tmp/mysql.sock --old-passwords --datadir=/usr/local/zenoss/mysql/data --log-error=/usr/local/zenoss/mysql/data/mysqld.log --pid-file=/usr/local/zenoss/mysql/data/myth.pid --lower-case-table-names=1 --default-table-type=InnoDB
mysql   15491 0.1 1.2 196468 25552 pts/0   Sl  20:50  0:04 /usr/local/zenoss/mysql/bin/mysqld.bin --defaults-file=/usr/local/zenoss/mysql/my.cnf --basedir=/usr/local/zenoss/mysql --datadir=/usr/local/zenoss/mysql/data --user=mysql --pid-file=/usr/local/zenoss/mysql/data/myth.pid --skip-external-locking --port=3307 --socket=/usr/local/zenoss/mysql/tmp/mysql.sock --old-passwords --lower-case-table-names=1 --default-table-type=InnoDB
If I use a regex of mysqld, the system finds the processes, but one shows up as '/bin/sh', if I set 'ignore parameters' to no, I see that /bin/sh is pid 15432, which correct that comand line does match the regex, but shouldn't that be the 'parameter' that is being ignored? If this is expected showing /bin/sh as monitored by mysqld is difficult to parse if I have more things running spawned by /bin/sh I get a full list of processes such as the above all being identifed by /bin/sh
Any thoughts would be great.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62577#62577]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]