Linux Kernel Version
James Pratt
jpratt at norwich.edu
Fri Jun 29 14:24:04 CEST 2012
I use check_snmp for that -
Here is the service definition I use (You must have snmpd enabled on the host, and a community string defined etc) -
## check os version via snmp
define command {
command_name check_os
command_line $USER1$/check_snmp -H $HOSTNAME$ -o SNMPv2-MIB::sysDescr.0 -C $USER15$
}
Where $USER15$ is my community string, thus on Redhat/Centos it returns :
SNMP OK - Linux avamar05 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64
for windows -
SNMP OK - Hardware: Intel64 Family 6 Model 44 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Cheers,
James
From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org]
Sent: Thursday, June 28, 2012 11:11 PM
To: Nagios Users List (nagios-users at lists.sourceforge.net)
Subject: [Nagios-users] Linux Kernel Version
Does anyone know of or have a plugin that will display the current kernel level for Redhat?
Thanks,
Ed
P Please consider the environment before printing this e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120629/184ace57/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
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