Checking for cron
Marc Powell
mpowell at ena.com
Thu Sep 19 16:33:21 CEST 2002
Well, if you have apache running on the Raqs, a quick and dirty (very
dirty) solution would be to write a 10 liner cgi to simply do a 'ps -ef
| grep crond | grep -v grep' and output that as HTML. The check command
you would use in Nagios would be something like:
# 'check_remote_crond' command definition
define command{
command_name check_remote_crond
command_line $USER1$/check_http -I $HOSTADDRESS$ -u http://
$HOSTADDRESS$/croncheck.cgi -s crond
}
--
Marc
> -----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