Sponsored Content
Full Discussion: Monitoring Crontabs
Top Forums UNIX for Advanced & Expert Users Monitoring Crontabs Post 302346546 by r00t4u on Saturday 22nd of August 2009 10:28:30 PM
Old 08-22-2009
Monitoring Crontabs

Hi So, here is a million doller question. Being a Unix and Linux Admin we all use cront jobs to automate our tasks. But what if we need to monitor the cronjob itself. Oh!!! boy that can be a pain.

Few Techniques:

1. Redirect the output of the cronjob to a log file.Smilie
2. Using MAILTO option to get a e-mail notification for success or failure of a cronjob.Smilie

But in case of large set up it seems to be a no value ideaSmilie. let take an example of a set and than decide what should be the best option:Smilie

1. LAMP technology.
2. 75 VPS with LAMP.
3. ALL VPS has PHP scripts in cron to wget a PHP file from the local website.
4. Almost 10 Cronjobs running per VPS.
5. Frequency of cronjobs are 1 min. So, each Cronjob execute 24*60 = 1440 times. Smilie

Now both of the above idea would be ideal with this senario. Because going to 75 invidual VPSs and look for the log file will pain to the core.
MAILTO option seems to be promising but getting 1440*10*75 ,ail in a day will become an another mailbomb.

So, My question is how we can monitor these cronjob. is there any tools available which checks these cronjobs and redirect the result to a particular web page. Life would be easier if we have any sort this. One page all the information.

Secondly can we use this MAILTO option to create something like this for us. Like using MAILTO option send the mails to a specific e-mail address which belongs to some ticketing sstem or some other type of unit which generates a report on HTML page or PHP page.

Friends i am not sure how meaningful this will be for you guys but it is actually a pain for me these days. Smilie

Any sort of help or comment be will a great help.Smilie
 

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
Monitoring::Livestatus::MULTI(3pm)			User Contributed Perl Documentation			Monitoring::Livestatus::MULTI(3pm)

NAME
Monitoring::Livestatus::MULTI - connector with multiple peers SYNOPSIS
use Monitoring::Livestatus; my $nl = Monitoring::Livestatus::MULTI->new( qw{nagioshost1:9999 nagioshost2:9999 /var/spool/nagios/live.socket} ); my $hosts = $nl->selectall_arrayref("GET hosts"); CONSTRUCTOR
new ( [ARGS] ) Creates an "Monitoring::Livestatus::MULTI" object. "new" takes at least the server. Arguments are the same as in Monitoring::Livestatus. METHODS
do See Monitoring::Livestatus for more information. selectall_arrayref See Monitoring::Livestatus for more information. selectall_hashref See Monitoring::Livestatus for more information. selectcol_arrayref See Monitoring::Livestatus for more information. selectrow_array See Monitoring::Livestatus for more information. selectrow_arrayref See Monitoring::Livestatus for more information. selectrow_hashref See Monitoring::Livestatus for more information. selectscalar_value See Monitoring::Livestatus for more information. errors_are_fatal See Monitoring::Livestatus for more information. warnings See Monitoring::Livestatus for more information. verbose See Monitoring::Livestatus for more information. peer_addr See Monitoring::Livestatus for more information. peer_name See Monitoring::Livestatus for more information. peer_key See Monitoring::Livestatus for more information. disable $ml->disable() disables this connection, returns the last state. enable $ml->enable() enables this connection, returns the last state. AUTHOR
Sven Nierlein, <nierlein@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2009 by Sven Nierlein This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2010-07-04 Monitoring::Livestatus::MULTI(3pm)
All times are GMT -4. The time now is 07:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy