Sponsored Content
Full Discussion: Monitoring Crontabs
Top Forums UNIX for Advanced & Expert Users Monitoring Crontabs Post 302346740 by r00t4u on Monday 24th of August 2009 03:25:15 AM
Old 08-24-2009
Quote:
Originally Posted by robsonde
not sure if I understand the question...

we just make our scripts very good at error checking.
it sends an email if there is an error.
otherwise if just does exit 0, with no output.

as long as it works we don't care about logs and errors and such.
Oops, i am sorry if am not understandable. Question is how can you monitor the cronjob if you have almost 1000 of them, what you have mention is absolutely right. but these are PHP script which directly related to the application it self. Now there could be N number of reasons for the failure of the script.

let me give you an idea of the crontab entries:

12 14 * * * /etc/webmin/cron/tempdelete.pl
*/5 * * * * wget -q -O /dev/null http://localhost/admin/cron.php
0 2 * * * /etc/webmin/fsdump/backup.pl 47211236803641
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
* * * * * curl -s The UNIX and Linux Forums - Learn UNIX and Linux from Experts
15 1,3 * * * /srv/www/htdocs/batch/CMCAttendanceoldJob.sh >>/root/wget_output
10 2 * * 1 wget -q -O /dev/null The UNIX and Linux Forums - Learn UNIX and Linux from Experts


So, here you can see an example of the crontab entry. So, these PHP scripts are basicall page from teh web site which pull and puts the data inside and outside of DB. they not very log running running scripts.
So, my concern is as i have mentioned there could be N number of reasons that these scripts fails so, any idea, tool by which you can monitor these. That what all script ran today and what all didn't dude what reason.
 

10 More Discussions You Might Find Interesting

1. AIX

Monitoring

Hi Can any one helpe me in obtaining commands , which enables me to know the following : Monitor Storage Monitor RAM & CPU Utilization Monitor Power Supply Best wishes (1 Reply)
Discussion started by: magasem
1 Replies

2. Solaris

monitoring cpu

I have a windows snmp server running prtg. I have a solaris 8 v440R server and only see the network statistics for the server. When I try to add a new service to watch for the CPU, I am not offered the results. There is the default sun.mib installed. SNMPDX is not running but mibiisa is. I... (1 Reply)
Discussion started by: csross
1 Replies

3. UNIX for Advanced & Expert Users

Jobs scheduled in crontabs are not running after a migration to oracle 9i

Good Morning. The problem started after tha migration to a newer version of oracle - migration to oracle 9i. Before the migration jobs that were scheduled in crontabs were running ok. but after the migration they are not running. I understand that is not easy to find out what the problem is.... (4 Replies)
Discussion started by: alexcol
4 Replies

4. Red Hat

Monitoring tools

Hi, In HPUX there is a grate monitor tools named GLANCE, which give you information on the disks load, memory usage, cpu ... What is the equivalent tool in LINUX Redhat 4. Thanks (3 Replies)
Discussion started by: yoavbe
3 Replies

5. Solaris

Monitoring Script

Hi, I want to write a script that will monitor cpu,mem usage and disk usage for entire day and data will be redirected to file, (4 Replies)
Discussion started by: manoj.solaris
4 Replies

6. Shell Programming and Scripting

crontabs entry not working

Hi, I have a crontab entry like the one shown below. My aim is to run the script from 06.10pm to 06.10am. But it seems not working. 10 18-06 * * * /usr/local/proj/cgi-bin/printmsg.pl 1>> /usr/local/proj/cgi-bin/printmsg.pl 2>> /usr/local/proj/cronlogs/printmsg.log Is... (2 Replies)
Discussion started by: DILEEP410
2 Replies

7. UNIX for Dummies Questions & Answers

FTP monitoring

Hello there, I have the following situation : I have a ftp server (PureFTPd)on which users can connect and put their files. The thing is I need to synchronize the files uploaded by the users to another server (so that everybody can download (via http) from that server the resources uploaded by... (6 Replies)
Discussion started by: spiriad
6 Replies

8. Shell Programming and Scripting

Multiple Crontabs

I have a crontab job in my sun solaris server and basically i have a unix script in 3 different parts 1 part will do an auto ftp from a server 2 part will have some grep and awk related commands and generate certain files 3 part the files that are generated above will be auto ftpied again... (1 Reply)
Discussion started by: aravindj80
1 Replies

9. Shell Programming and Scripting

Network Monitoring

My Office Hours between 10 A.M to 5 P.M .I am managing 16 client PCs which is remotely placed. I want to know the network status of every client PCs.I need an automatic trigger mail ,when the network connection is lost in any one of the Client PCs during office hours.I am a self study learner.I... (9 Replies)
Discussion started by: kannansoft1985
9 Replies

10. HP-UX

HP -UX 11.31 monitoring

Hi, i have joined newly as a hp-ux admin... previously worked in linux environment can anyone tell me how to monitor memory and cpu utilization in hpux?? hp-ux is not as flexible as linux as i understand... please help me out by giving the commands needed and way of troubleshooting if the... (12 Replies)
Discussion started by: Prasad@hp-ux
12 Replies
Module::Install::Admin(3)				User Contributed Perl Documentation				 Module::Install::Admin(3)

NAME
Module::Install::Admin - Author-side manager for Module::Install SYNOPSIS
In a Module::Install extension module: sub extension_method { my $self = shift; $self->admin->some_method(@args); } As an one-liner: % perl "-MModule::Install::Admin" -e'&some_method(@args);' The two snippets above are really shorthands for $some_obj->some_method(@args) where $some_obj is the singleton object of a class under the "Module::Install::Admin::*" namespace that provides the method "some_method". See "METHODS" for a list of built-in methods. DESCRIPTION
This module implements the internal mechanism for initializing, including and managing extensions, and should only be of interest to extension developers; it is never included under a distribution's inc/ directory, nor are any of the Module::Install::Admin::* extensions. For normal usage of Module::Install, please see Module::Install and "COOKBOOK / EXAMPLES" in Module::Install instead. Bootstrapping When someone runs a Makefile.PL that has "use inc::Module::Install", and there is no inc/ in the current directory, Module::Install will load this module bootstrap itself, through the steps below: o First, Module/Install.pm is POD-stripped and copied from @INC to inc/. This should only happen on the author's side, never on the end- user side. o Reload inc/Module/Install.pm if the current file is somewhere else. This ensures that the included version of inc/Module/Install.pm is always preferred over the installed version. o Look at inc/Module/Install/*.pm and load all of them. o Set up a "main::AUTOLOAD" function to delegate missing function calls to "Module::Install::Admin::load" -- again, this should only happen at the author's side. o Provide a "Module::Install::purge_self" function for removing included files under inc/. METHODS
SEE ALSO
Module::Install AUTHORS
Audrey Tang <autrijus@autrijus.org> COPYRIGHT
Copyright 2003, 2004 by Audrey Tang <autrijus@autrijus.org>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.16.3 2012-03-01 Module::Install::Admin(3)
All times are GMT -4. The time now is 12:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy