01-12-2012
Hi Mark,
Those rpms were not found in the yum repository as well as centOS cd, could you please let me know if there is any similar packages that I can use.
[root@nagiospoc Packages]# yum list | grep kernel
abrt-addon-kerneloops.x86_64 1.1.13-4.el6 @anaconda-CentOS-201106060106.x86_64/6.0
dracut-kernel.noarch 004-32.el6 @anaconda-CentOS-201106060106.x86_64/6.0
kernel.x86_64 2.6.32-71.el6 @anaconda-CentOS-201106060106.x86_64/6.0
kernel-firmware.noarch 2.6.32-71.el6 @anaconda-CentOS-201106060106.x86_64/6.0
kernel-headers.x86_64 2.6.32-220.2.1.el6 @updates
abrt-addon-kerneloops.x86_64 2.0.4-14.el6.centos base
dracut-kernel.noarch 004-256.el6 base
kernel.x86_64 2.6.32-220.2.1.el6 updates
kernel-debug.x86_64 2.6.32-220.2.1.el6 updates
kernel-debug-devel.x86_64 2.6.32-220.2.1.el6 updates
kernel-devel.x86_64 2.6.32-220.2.1.el6 updates
kernel-doc.noarch 2.6.32-220.2.1.el6 updates
kernel-firmware.noarch 2.6.32-220.2.1.el6 updates
libreport-plugin-kerneloops.x86_64 2.0.5-20.el6 base
[root@nagiospoc Packages]# pwd
/mnt/Packages
[root@nagiospoc Packages]# ls -ltr | grep kernel
-rw-r--r-- 2 deploy deploy 61352 Jul 3 2011 abrt-addon-kerneloops-1.1.13-4.el6.x86_64.rpm
-rw-r--r-- 2 deploy deploy 14936 Jul 3 2011 dracut-kernel-004-32.el6.noarch.rpm
-rw-r--r-- 2 deploy deploy 8807112 Jul 3 2011 kernel-doc-2.6.32-71.el6.noarch.rpm
-rw-r--r-- 2 deploy deploy 1181760 Jul 3 2011 kernel-firmware-2.6.32-71.el6.noarch.rpm
-rw-r--r-- 2 deploy deploy 23430964 Jul 3 2011 kernel-2.6.32-71.el6.x86_64.rpm
-rw-r--r-- 2 deploy deploy 23459212 Jul 3 2011 kernel-debug-2.6.32-71.el6.x86_64.rpm
-rw-r--r-- 2 deploy deploy 6769584 Jul 3 2011 kernel-debug-devel-2.6.32-71.el6.x86_64.rpm
-rw-r--r-- 2 deploy deploy 6731308 Jul 3 2011 kernel-devel-2.6.32-71.el6.x86_64.rpm
-rw-r--r-- 2 deploy deploy 988588 Jul 3 2011 kernel-headers-2.6.32-71.el6.x86_64.rpm
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Red Hat
I'm trying to install Redhat LInux AS 4 update 4 on an IBM x306 series server. I keep getting following error:
"No Drives Found. An error has occurred - no valid devices were found on which to create new file systems. Please check your hardware for the cause of this problem."
I called IBM and... (2 Replies)
Discussion started by: pieman8080
2 Replies
3. HP-UX
Hi people!
I've got this own library:
--------------------------------------------
Personal.h
--------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdarg.h>
#include <string.h> ... (0 Replies)
Discussion started by: donatoll
0 Replies
4. AIX
While trying to upgrade ssh from v4.7 to v5.0 on AIX 5.3 TL9, I end up with the following error.
Has anyone come across this?
Note: openssl has been upgraded to 0.9.8.840 before this upgrade
Bala (0 Replies)
Discussion started by: balaji_prk
0 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
7. Red Hat
Hello All,
I have setup Nagios 3.2.3 on CentOS release 5.7 (Final) with the default config files and added 1 host to it and it is sending "Service Alert: CentOS 5/HTTP is WARNING" frequently, how do you fix this one? what are the additional files that need to be added so that I can monitor the... (0 Replies)
Discussion started by: lovesaikrishna
0 Replies
8. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
9. Linux
Linux Gurus,
I need to provide Read only access for particular group of users, they should have Read only access to entire server except their Home directory.
I tried using setfacl that's not helping. Can you please suggest is there any other alternate way to address this request.
Your help is... (5 Replies)
Discussion started by: shekar777
5 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
nagios::object
Nagios::Object(3pm) User Contributed Perl Documentation Nagios::Object(3pm)
NAME
Nagios::Object - Creates perl objects to represent Nagios objects
DESCRIPTION
This module contains the code for creating perl objects to represent any of the Nagios objects. All of the perl classes are auto-generated
at compile-time, so it's pretty trivial to add new attributes or even entire objects. The following is a list of currently supported
classes:
Nagios::TimePeriod
Nagios::Command
Nagios::Contact
Nagios::ContactGroup
Nagios::Host
Nagios::Service
Nagios::HostGroup
Nagios::ServiceEscalation
Nagios::HostDependency
Nagios::HostEscalation
Nagios::HostGroupEscalation
Nagios::ServiceDependency
-- next two are for status.dat in Nagios 2.x
Nagios::Info
Nagios::Program
EXAMPLE
use Nagios::Object;
my $generic_host = Nagios::Host->new(
register => 0,
parents => undef,
check_command => $some_command,
max_check_attempts => 3,
checks_enabled => 1,
event_handler => $some_command,
event_handler_enabled => 0,
low_flap_threshold => 0,
high_flap_threshold => 0,
flap_detection_enabled => 0,
process_perf_data => 1,
retain_status_information => 1,
retain_nonstatus_information => 1,
notification_interval => $timeperiod,
notification_options => [qw(d u r)],
notifications_enabled => 1,
stalking_options => [qw(o d u)]
);
# this will automatically 'use' $generic_host
my $localhost = $generic_host->new(
host_name => "localhost",
alias => "Loopback",
address => "127.0.0.1"
);
my $hostname = $localhost->host_name();
printf "max check attempts for $hostname is %s.
",
$localhost->max_check_attempts;
$localhost->set_event_handler(
Nagios::Command->new(
command_name => "new_event_handler",
command_line => "/bin/true"
)
);
METHODS
new()
Create a new object of one of the types listed above.
Calling new() on an existing object will use the LHS object as the template for the object being created. This is mainly useful for
creating objects without involving Nagios::Object::Config (like in the test suite).
Nagios::Host->new( ... );
dump()
Output a Nagios define { } block from an object. This is still EXPERIMENTAL, but may eventually be robust enough to use for a
configuration GUI. Passing in a single true argument will tell it to flatten the object inheritance on dump.
print $object->dump();
print $object->dump(1); # flatten
name()
This method is common to all classes created by this module. It should always return the textual name for an object. It is used
internally by the Nagios::Object modules to allow polymorphism (which is what makes this module so compact). This is the only way to
retrieve the name of a template, since they are identified by their "name" field.
my $svc_desc = $service->name;
my $hostname = $host->name;
Which is just short for:
my $svc_desc = $service->service_description;
my $hostname = $service->host_name;
register()
Returns true/undef to indicate whether the calling object is registerable or not.
if ( $object->register ) { print $object->name, " is registerable." }
has_attribute()
Returns true/undef to indicate whether the calling object has the attribute specified as the only argument.
# check to see if $object has attribute "command_line"
die if ( !$object->has_attribute("command_line") );
list_attributes()
Returns a list of valid attributes for the calling object.
my @host_attributes = $host->list_attributes();
attribute_type()
Returns the type of data expected by the object's set_ method for the given attribute. For some fields like notification_options, it
may return "char_flag."
For "name" attributes, it will simply return whatever %setup_data contains.
This method needs some TLC ...
my $type = $host->attribute_type("notification_period");
attribute_is_list()
Returns true if the attribute is supposed to be a list (ARRAYREF).
if ( $object->attribute_is_list("members") ) {
$object->set_members( [$member] );
} else {
$object->set_members( $member );
}
AUTHOR
Al Tobey <tobeya@cpan.org>
Thank you to the fine people of #perl on freenode.net for helping me with some hairy code and silly optimizations.
WARNINGS
See AUTHOR.
perl v5.12.4 2011-10-22 Nagios::Object(3pm)