12-11-2019
Ever considered deploying Nagios?
Addendum:
More seriously, many options you have and we can't decide for you... About Nagios: Depending on your aim (looking at what your script returns...) It could be of some interest...
Q:
1- Many hosts, multi platforms?
2- Any other monitoring tools being used?
3- If only this script, how are you returning/look at the logs of other servers? Can an alternative method be acceptable?
...
...
Last edited by vbe; 12-11-2019 at 05:06 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am beginner in shell programming.In a shell script i found a call to a script
'runrep25m',which i think is to generate oracle reports?Could anyone help me by providing some details about its usage
With Thanks & Regards
Dileep (7 Replies)
Discussion started by: DILEEP410
7 Replies
2. Shell Programming and Scripting
I have input file with below content:
Person:
Name: Firstname1 lastname1
Address: 111, Straat
City : Hilversum
Person:
Name : Fistname2 lastname2
Address: 222, street
Cit: Bussum
Person:
Name : Firstname2 lastname3
Address: 333, station straat
City: Amsterdam
I need... (6 Replies)
Discussion started by: McLan
6 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I got a requirement in writing a sheel script in unix, please help me out
the requirement is there are two folders Folder1 and Folder2 and there are same files in the different folders. like file1,file2 in folder1 and file1 and file2 in folder2.
I would like to compare all the... (2 Replies)
Discussion started by: gmahesh2k
2 Replies
4. Shell Programming and Scripting
Hello,
I got a requirement in writing a KSH script in unix, please help me out
the requirement is there are two folders Folder1 and Folder2 and there are same files in the different folders. like file1,file2 in folder1 and file1 and file2 in folder2.
I would like to compare all the similar... (3 Replies)
Discussion started by: gmahesh2k
3 Replies
5. Shell Programming and Scripting
All,
I am pretty new to Unix Environment. I am not sure if my requirement can be accomplished in Unix. I did try searching this forum and others but could not get an answer. Requirement is explained below:
I have a set of files in a folder.
file1_unload
file2_unload
file3_unload... (7 Replies)
Discussion started by: bharath.gct
7 Replies
6. Shell Programming and Scripting
Hello everyone,
I have a list of inputs as below. My logic is to get the particular powerdisk which matches for ASM disk which means take the major & minor number of each asm disk and matches with powerdisk info then get the particular powerdisk
$ ls -l /dev/asm_* ---> ASM disk info... (11 Replies)
Discussion started by: kannan84
11 Replies
7. Shell Programming and Scripting
hi all
i need to generate a report file that contains the following details of files present in a directory.
1. File name
2.Complete path for each files and directory
3.File size
4.Days older
example i have a directory testing that contains sub-directories and some files.
i need to make a... (5 Replies)
Discussion started by: yashwantkumar
5 Replies
8. Shell Programming and Scripting
Hi I recently joined a project where I have been asked to generate a report using shell script accessing UNIX box.
I have no idea on how to do it as I am a beginner and learning shell scripts.
Suppose I have a XML:
Code:
... (3 Replies)
Discussion started by: vat1kor
3 Replies
9. Shell Programming and Scripting
Hi,
I have a perl script to read the log file and create a report from it. I have the script file and log file in a different directories. Now i have pipe the log file data to the perl script to create the report (HMTL file). I am using the below command this isn't working
tail -f... (4 Replies)
Discussion started by: vel4ever
4 Replies
10. UNIX for Beginners Questions & Answers
HI Team,
I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same.
#!/bin/bash
#Author: *******************
#Description: This script will return the following set of system information:
... (2 Replies)
Discussion started by: Mi4304
2 Replies
LEARN ABOUT DEBIAN
monitoring::availability
Monitoring::Availability(3pm) User Contributed Perl Documentation Monitoring::Availability(3pm)
NAME
Monitoring::Availability - Calculate Availability Data from Nagios / Icinga and Shinken Logfiles.
SYNOPSIS
use Monitoring::Availability;
my $ma = Monitoring::Availability->new();
DESCRIPTION
This module calculates the availability for hosts/server from given logfiles. The Logfileformat is Nagios/Icinga only.
REPOSITORY
Git: http://github.com/sni/Monitoring-Availability
CONSTRUCTOR
new ( [ARGS] )
Creates an "Monitoring::Availability" object. "new" takes at least the logs parameter. Arguments are in key-value pairs.
rpttimeperiod
report timeperiod. defines a timeperiod for this report. Will use 24x7 if not specified.
assumeinitialstates
Assume the initial host/service state if none is found, default: yes
assumestateretention
Assume state retention, default: yes
assumestatesduringnotrunning
Assume state during times when the monitoring process is not running, default: yes
includesoftstates
Include soft states in the calculation. Only hard states are used otherwise, default: no
initialassumedhoststate
Assumed host state if none is found, default: unspecified
valid options are: unspecified, current, up, down and unreachable
initialassumedservicestate
Assumed service state if none is found, default: unspecified
valid options are: unspecified, current, ok, warning, unknown and critical
backtrack
Go back this amount of days to find initial states, default: 4
showscheduleddowntime
Include downtimes in calculation, default: yes
timeformat
Time format for the log output, default: %s
verbose
verbose mode
breakdown
Breakdown availability into 'months', 'weeks', 'days', 'none'
adds additional 'breakdown' hash to each result with broken down results
METHODS
calculate
calculate()
Calculate the availability
start
Timestamp of start
end Timestamp of end
log_string
String containing the logs
log_file
File containing the logs
log_dir
Directory containing *.log files
log_livestatus
Array with logs from a livestatus query
a sample query could be:
selectall_arrayref(GET logs...
Columns: time type options, {Slice => 1})
log_iterator
Iterator object for logentry objects. For example a L<MongoDB::Cursor> object.
hosts
array with hostnames for which the report should be generated
services
array with hashes of services for which the report should be generated. The array should look like this:
[{host => 'hostname', service => 'description'}, ...]
initial_states
if you use the "current" option for initialassumedservicestate or initialassumedhoststate you have to provide the current states with a
hash like this:
{
hosts => {
'hostname' => 'ok',
...
},
services => {
'hostname' => {
'description' => 'warning',
...
}
}
}
valid values for hosts are: up, down and unreachable
valid values for services are: ok, warning, unknown and critical
get_condensed_logs
get_condensed_logs()
returns an array of hashes with the condensed log used for this report
get_full_logs
get_full_logs()
returns an array of hashes with the full log used for this report
BUGS
Please report any bugs or feature requests to http://github.com/sni/Monitoring-Availability/issues <http://github.com/sni/Monitoring-
Availability/issues>.
DEBUGING
You may enable the debug mode by setting MONITORING_AVAILABILITY_DEBUG environment variable. This will create a logfile:
/tmp/Monitoring-Availability-Debug.log which gets overwritten with every calculation. You will need the Log4Perl module to create this
logfile.
SEE ALSO
You can also look for information at:
o Search CPAN
http://search.cpan.org/dist/Monitoring-Availability/ <http://search.cpan.org/dist/Monitoring-Availability/>
o Github
http://github.com/sni/Monitoring-Availability <http://github.com/sni/Monitoring-Availability>
AUTHOR
Sven Nierlein, <nierlein@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010 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.14.2 2012-06-21 Monitoring::Availability(3pm)