I'm looking to monitor a few things that aren't currently a part of the
PCP pmdas. I want to check to make sure that a few important processes
are running on the host being logged. These would be things like inetd,
sshd, and other processes. I figure there might be two ways of doing
this.
1. I could write my own pmdas for these, that just returns a 0 or 1
depending on if the process is running. This would take some time (for
me) because I haven't done work with processes in C before or with writing
pmdas.
2. I could utilize the current proc.psinfo.pid pmda that returns the whole
process tree, and see if they are running by parsing through that.
I also want to do a similar thing with NFS mounts, to make sure that
remote disks are properly mounted.
I'm leaning toward 1 just to keep everything being monitored on the same
level, and so there isn't another layer needed (like in 2). However, it
might be a lot of work. Any suggestions, or offers to write the pmda?
;-)
Alan
--
Alan Bailey
|