Posts Tagged ‘dell open manage’

Dell Server updating – tool

October 16th, 2017

Simple tool to allow you to run updates on your dell hardware:

https://linux.dell.com/repo/hardware/dsu/

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Clear Dell Hardware logs via Command line

January 27th, 2017

To clear the logs via command line use the following command:

omconfig system esmlog action=clear
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Dell Open Manage + nagios on Ubuntu 9.04 and up

November 10th, 2010

The following should get dell open manage installed on ubuntu systems:

echo 'deb http://linux.dell.com/repo/community/deb/latest /' |
      sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
apt-get update
apt-get install srvadmin-all
apt-get install nagios-nrpe-server

cd /usr/local/bin
wget http://www.sogoth.com/nagios/check_dell
chmod +x check_dell

cd /etc/nagios
mv nrpe.cfg nrpe.cfg.orig

wget http://www.sogoth.com/nagios/nrpe.cfg
/etc/init.d/nagios-nrpe-server restart

You may need to run "service dataeng start"

You may get a battery warning. To edit this out:


vi check_dell

Find the section:

        vdisk = parse_om("storage vdisk controller=" + controller, vfilter)
        pdisk = parse_om("storage pdisk controller=" + controller, pfilter)
        battery = parse_om("storage battery controller=" + controller, bfilter)
        components = vdisk + pdisk + battery

Comment out #battery = parse_om("storage battery controller=" + controller, bfilter)
And remove battery from “components = vdisk + pdisk + battery” so that it is “components = vdisk + pdisk”

Like other installs, make sure the source IP is set properly and the firewall is modified to allow on the desired port, both declared in the nrpe.cfg file.

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Linux – Nagios/Dell Open Manage Install Redhat/CentOs 4/5

November 6th, 2010

*** REDHAT 4/5 & CENTOS ***

(Using up2date):

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
up2date -i srvadmin-all
up2date -i nagios-nrpe

You may need to download the packages to install nagios i have included a compilation of possible dependencies in the following. Download the required one then unpack and rpm -Uvh nagios.etc…

Download packages for RHEL4 32 bit HERE

Download packages for RHEL5 32bit HERE

Alternatively you can download the required packages at:

http://packages.sw.be/nagios-plugins/  <-- download appropriate version
nagios-plugins-1.*****. This is the only thing you need

http://packages.sw.be/nagios-nrpe/ <-- download appropriate version
nagios-nrpe-2.*****. This is the only thing you need

depending on dependencies for plugins Google search for (package missing) RHEL#. Download and install, further packages may be missing.

Install the packages

rpm -Uvh ***.***.rpm

Once complete you can go to

cd /etc/nagios
mv nrpe.cfg nrpe.cfg.orig
wget http://www.sogoth.com/nagios/nrpe.cfg
/etc/init.d/nrpe restart

Note that this is a modified/simplified file.
You can edit this file to monitor different things, remove and add.

You will most likely need to change the port and allowed_hosts.

cd /usr/local/bin
wget http://www.sogoth.com/nagios/check_dell
or
wget http://www.sogoth.com/nagios/check_dell2 (sometimes check_dell does
not work, if you download this mv check_dell2 check_dell)
chmod +x check_dell

if you get the error that omreport is not recognized, locate omreport and then

ln -s /opt/dell/srvadmin/sbin/omreport /usr/local/bin/omreport
or
ln -s /opt/dell/srvadmin/bin/omreport /usr/local/bin/omreport

Now test and see that it works. In this install and script the monitoring port is 10344. Also make sure any firewalls you have are open on the required port for at least the source IP address.

You may need to open the port on your firewall. In this example it is :

iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 10344 -j ACCEPT

note: You may get a "device unknown" error of some type. if this is the case run the following:

modprobe mptctl
echo alias scsi_hostadapter mptctl >> /etc/modprobe.conf
/opt/dell/srvadmin/sbin/srvadmin-services.sh start
/opt/dell/srvadmin/sbin/srvadmin-services.sh enable 3
chkconfig --level 3 nrpe on
/etc/init.d/nrpe restart 
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz