Checking for cron
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Thu Sep 19 16:45:50 CEST 2002
Write a plugin to basically do "ps -ef | grep cron | grep -v grep" and if
the answer is null, return a critical error "exit 2". Then call it remotely
using NRPE from your Nagios host.
But this begs the question... are you seriously having problems with cron
abending?
If I were you, I'd be checking logfiles and/or running truss and/or checking
with SunSolve. If you're still not having any luck, try and install xinetd.
But seriously, I'd consider cron to be one of those daemons that never
exits, unless someone's been mucking with the libraries (or the binary, for
that matter).
jc
> -----Original Message-----
> From: Derek Belrose [mailto:derek at omegabyte.com]
> Sent: Thursday, September 19, 2002 3:33 AM
> To: 'Nagios-Users (E-mail)'
> Subject: [Nagios-users] Checking for cron
>
>
> Hey guys, I'm running Nagios to monitor a bunch of different systems
> (mostly the Sun/Cobalt Raqs) and I need to keep a close watch on crond
> to make sure it DOES NOT drop.
>
> I'm running it on one server and having it check others using the
> standard check_* plugins and I tend to want to stay away from SNMP due
> to a severe lack of understanding of it.
>
> Any ideas on how I may check this on a reoccurring basis?
>
> Derek
> Omegabyte Networks
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list