in reply to Re: Whoa! looking for a better pidfile module
in thread Whoa! looking for a better pidfile module

No offense taken, I know I'm a bit lazy. I updated my original node with a code snippet: I do die when running() returns false. I think what happened was that it can create the file, but not write the pid into it.

Reading the source for my installed version (1.24) now, I see that it doesn't check the return value of syswrite, and I'm pretty sure that's the bug that bit me.

So, I'm off to post a bug report and a patch :-)

BTW, I have been meaning to look into Nagios. I have some 16 machines under my care now, so it's not all that strange I missed this. A man without tools isn't much more than a monkey ;^)

Replies are listed 'Best First'.
Re^3: Whoa! looking for a better pidfile module
by McDarren (Abbot) on Dec 14, 2006 at 05:15 UTC
    "I have been meaning to look into Nagios. I have some 16 machines under my care now.."

    I'd just like to throw in a plug for Big Brother. I've been using it for several years now, and currently we're running about 15 different tests on 600+ hosts - and it never misses a beat.

    It's extremely easy to setup and configure, and also quite easy to customise to specific needs. I can't say if it's better or worse than Nagios, as I've not used that. Just offering an alternative :)

    Cheers,
    Darren :)