check cron

Marc Powell marc at ena.com
Mon Oct 17 17:12:34 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Pascal MIQUET
> Sent: Monday, October 17, 2005 9:57 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check cron
> 
> Hi,
> 
> Is there a plugin, or a way to check on a remote linux server that the
> crontab is up an running, and some commands are active into the
crontab of
> a specific user ?

Checking that cron is running is easy: check_procs + check_by_ssh or
NRPE. There's not a specific plugin that can check the entries in a
users crontab but you could use check_log to see if it ran in
/var/log/cron or you could script a simple plugin to verify that the
line exists as expected in /var/spool/cron/{user}. There are probably
other ways but those two come to mind first.

--
Marc
 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list