On Sep 16, 2008, at 4:23 AM, thomas wrote:
I have created a process monitor for monitoring mysqld is running, and basically it is working, but it appears that zenoss uses the regex in both the hrSWRunPath and hrSWRunParameters sections of snmp.

Case:
ps -ef |grep mysqld

Code:
/bin/sh /pack/mysql/bin/mysqld_safe --datadir=/pack/mysql/data --pid- file=/pack /pack/mysql/bin/mysqld --defaults-extra-file=/pack/mysql/data/my.cnf --basedir=


regex: (bin\/mysqld|sbin\/mysqld|libexec\/mysqld)
Ignore Parameters: true

When I remodel the device, it finds both processes, and not only the last one (/pack/mysql/bin/mysqld). It names the found processes "/ bin/sh" and "/pack/mysql/bin/mysqld"

Is this a bug, or should my regex be more specific? If I enter a "$" after mysqld, it doesn't find any mysqld processes.

Not really a bug. We want people to be able to differentiate between processed based on parameters if required. I would recommend setting up your regex as mysqld\s to catch the trailing whitespace.

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to