The reason I write this, is because your script doesn't work as perfect as i want it to be. My problem is the core function, which gets the process names.
I gets me something like this on our mailgateways
So my core processes amavisd, postfix, etc are never monitored.
And by now I'm not able to find a solution for a command that would get me a process list like this:
Code:
ps axo comm | sort | uniq -c
Code:
...
1 tlsmgr
2 trivial-rewrite
3 udevd
1 uniq
11 /usr/sbin/amavi
1 /usr/sbin/postf
1 /usr/sbin/postg
1 /usr/sbin/spamd
1 verify
1 watchdog/0
1 watchdog/1
1 watchdog/2
1 watchdog/3
1 xe-daemon
...
And by now I'm not able to find a solution for a command that would get me a process list like this:
Code:
apache2 bash clamd cron squid
Sorry for your bad week.
Comment