[Check_mk (english)] Dell OMSA

Hi, I am very new to Linux and extremely new to Nagios but I have managed to set up the OMD Distro on an Ubuntu 10.10 server and have it monitoring 40+ hosts – Linux, Windows, Cisco, Printers etc. I am very pleased with it – thank you for all your efforts with this.

The one thing I cannot seem to figure out is how to incorporate the Dell OMSA check.

I can get it running on a pure Nagios test environment using the check_dell_openmanage.1.3-pl from the Nagios Exchange but how to get it incorporated with check_mk and OMD is beyond me.

I am putting Asterix/Dell server in a hosted facility and I need some way to monitor the RAID etc.

I would be extremely grateful for any information on this.

Regards

Nigel

You run nagios plugins on check_mk client systems with check_mk-agent. You put the command to run the nagios plugin(s) in the mrpe.cfg file.

To test if you did it correctly, do a: telnet localhost 6556 and you will see the agent’s output, and there should be an mrpe section with the output of the nagios plugins you put in the mrpe.cfg file.

I myself prefer the other plugin(http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/check_openmanage/details), you should try both and see which one is preferable for your site. I preferred having things show up as a single service, and the output seemed more understandable to our staff. If I remember correctly, the other plugins did not return performance data which check_openmanage does.

cheers,

e. nielsen

···

On Thu, Mar 10, 2011 at 8:44 PM, Nigel Cardwell nigelc@celticcommunications.com wrote:

Hi, I am very new to Linux and extremely new to Nagios but I have managed to set up the OMD Distro on an Ubuntu 10.10 server and have it monitoring 40+ hosts – Linux, Windows, Cisco, Printers etc. I am very pleased with it – thank you for all your efforts with this.

The one thing I cannot seem to figure out is how to incorporate the Dell OMSA check.

I can get it running on a pure Nagios test environment using the check_dell_openmanage.1.3-pl from the Nagios Exchange but how to get it incorporated with check_mk and OMD is beyond me.

I am putting Asterix/Dell server in a hosted facility and I need some way to monitor the RAID etc.

I would be extremely grateful for any information on this.

Regards

Nigel


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

The line:

(check_openmanage.pl) OMSA 127

should mean that the check_mk agent was unable to run the plugin. So I would ensure that whatever user check_mk is running as can run the exact command you specified in the mrpe.cfg file. You can determine the user by looking at the check_mk xinetd config file.

You can also run the agent by hand on the client system by becoming the user it runs as (as specified in the xinetd config file) and running the check_mk_agent script (can be located by looking in the xinetd config file for check_mk)

edgar

···

On Sun, Mar 13, 2011 at 10:02 AM, Nigel Cardwell nigelc@celticcommunications.com wrote:

Thank you Edger for the reply unfortunately I am still not able to get this working

I am having real difficulty trying to add Dell OMSA plugin to my OMD!!

I do have it running OK on a standard Nagios server monitoring 5 Windows and 1 Linux server using SNMP so I know it should definately work when I get OMD set up properly.

Here is my current setup that I have been trying on the OMD server:

OMD Server

The plugin location is “/opt/omd/versions/0.46/lib/nagios/plugins/check_openmanage”

Host (Asterix):

The mrpe.cfg is located in " /etc/check_mk/mrpe.cfg"

The content is of mrpe.cfg is “OMSA /opt/omd/versions/0.46/lib/nagios/plugins/check_openmanage -H cc-fl-pbx1 -C ”

When I call:

check_mk -I mrpe (anything)

I am getting:

Host ‘mrpe’: Cannot get data from TCP port

If I do a check_mk -D I get


<<>>

[[[/var/log/messages]]]

[[[/var/log/kern:missing]]]

[[[/var/log/kern.log:missing]]]

<<>>

<<>>

(check_openmanage.pl) OMSA 127

When I look in my http://MYOMDSERVER/MySITE/check_mk

I see the service but with “no output returned from plugin”

Anyons Ideas where I am going wrong??? Please - I have been stuck at this for almost a week now :frowning:

Thanks - Nigel


From: coldtex@gmail.com on behalf of edgar nielsen

Sent: Fri 3/11/2011 1:34 PM

To: Nigel Cardwell
Subject: Re: [Check_mk (english)] Dell OMSA

logwatch is for monitoring log files on the local client system. You need to determine where your mrpe.cfg file needs to be. I have a custom install so I do not know where the default is… I would think you could look in the check_mk-agent script to determine the location.

Note: you have read this page:

http://mathias-kettner.de/checkmk_mrpe.html

<http://mathias-kettner.de/checkmk_mrpe.html> Before changing anything you should verify that doing the telnet localhost 6556 works! If it does not, the packages you installed are not working correctly unless they expect some kind of initial configuration which presumably the package README/doc should go into… So back out the plugin installation and the logwatch.cfg changes.

My installation requires nagios plugins to be where nagios would expect them, but now that I think of that I am not sure if that was originally my preference or driven by requirements of check_mk or nagios plugins. Certainly some nagios plugins may require support files so I would stick with putting nagios plugins where they would normally go.

I believe the check_mk plugins directory is for check_mk local plugins, not nagios plugins.

The in the mrpe.cfg file do something like:

ntp_offset /opt/nagios/libexec/check_ntp_time -H ntp1 -w 1 -c 60

(this example is for using the nagios check_ntp_time plugin - note that your location is almost certainly somewhere else!) Perhaps if you use your package manager to install a nagios plugin, you can see where you should put the omsa plugin…

The agent is just being run out of xinetd, I have never seen it crash, though hangs in a few edge cases, usually with NFS or LDAP issues. You can see if an agent is still running by doing something of the form:

ps auxww | grep check_mk

Anyway, you certainly need to back out your change to logwatch.cfg!

e. nielsen

On Fri, Mar 11, 2011 at 10:15 AM, Nigel Cardwell nigelc@celticcommunications.com wrote:

    Thanks for the reply, I am still a bit lost though.

I have the check_dell_openmanage.pl <http://check_dell_openmanage.pl/> file. (I will certainly try the other one you recommend once I figure out how to set the up)

    I put it in the check_mk agent plugin folder on the server where the agent is installed? And in the plugin folder on the OMD/Nagios server.







    In OMD that would be /opt/omd/versions/0.46/share/check_mk/agents/plugins



    On the client (if it's a windows os) for me that would be .............program files/check_mk/plugins







    Then on the Nagios server I created the mrpe.cfg file in /opt/omd/versions/0.46/share/check_mk/agents



    This is where I found the logwatch.cfg file  and I added the line

OMSA /opt/omd/versions/0.46/share/check_mk/agents/plugins/check_dell_openmanage.pl <http://check_dell_openmanage.pl/>

    What am I doing wrong??







    When I try to telnet localhost on the server with the agent and plugin I just get a black screen and it seems to cause the agent to crash.



    I cannot restart the agent service and I have to reboot the server to restore it.







    Thanks again for your assistance.















    From: coldtex@gmail.com [mailto:coldtex@gmail.com] On Behalf Of edgar nielsen

    Sent: Friday, March 11, 2011 12:25 AM

    To: Nigel Cardwell

    Cc: checkmk-en@lists.mathias-kettner.de

    Subject: Re: [Check_mk (english)] Dell OMSA







    You run nagios plugins on check_mk client systems with check_mk-agent. You put the command to run the nagios plugin(s) in the mrpe.cfg file.



    To test if you did it correctly, do a: telnet localhost 6556 and you will see the agent's output, and there should be an mrpe section with the output of the nagios plugins you put in the mrpe.cfg file.







    I myself prefer the other plugin([http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/check_openmanage/details](http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/check_openmanage/details)), you should try both and see which one is preferable for your site. I preferred having things show up as a single service, and the output seemed more understandable to our staff. If I remember correctly, the other plugins did not return performance data which check_openmanage does.









    cheers,



    e. nielsen



    On Thu, Mar 10, 2011 at 8:44 PM, Nigel Cardwell <nigelc@celticcommunications.com> wrote:







    Hi,   I  am very new to Linux and extremely new to Nagios but I have managed to set up the OMD Distro on an Ubuntu 10.10 server and have it monitoring 40+ hosts - Linux, Windows, Cisco, Printers etc. I am very pleased with it - thank you for all your efforts with this.





    The one thing I cannot seem to figure out is how to incorporate the Dell OMSA check.



     I can get it running on a pure Nagios test environment using the check_dell_openmanage.1.3-pl from the Nagios Exchange but how to get it incorporated with check_mk and OMD is beyond me.



    I am putting  Asterix/Dell server in a hosted facility and I need some way to monitor the RAID etc.



    I would be extremely grateful for any information on this.



    Regards



    Nigel

    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

I got it figured out using Jason Ellison's check_dell_openmanage.1.3.pl from the Nagios Exchange

I didnt realise the plugin actually needed to be placed in my Linux host (cc-fl-pbx1) in /etc/check_mk/plugins (You need to create this directory).

Once that was in place the /etc/check_mk/mrpe.cfg file needed to look like this:

DELL_OMSA /etc/check_mk/plugins/check_dell_openmanage -H cc-fl-pbx1 -C public -T dellom

Then I installed the Net::SNMP on the OMD server and it's working now thankfully!!!

I have it running on VMWare Ubuntu 10.4 and 10.10 server also.

Once again Edger thanks for your assistance and thanks to Jason for the plugin.

···

________________________________

From: coldtex@gmail.com on behalf of edgar nielsen
Sent: Sun 3/13/2011 1:33 PM
To: Nigel Cardwell
Cc: checkmk-en
Subject: Re: [Check_mk (english)] Dell OMSA

The line:
(check_openmanage.pl <http://check_openmanage.pl/> ) OMSA 127

should mean that the check_mk agent was unable to run the plugin. So I would ensure that whatever user check_mk is running as can run the exact command you specified in the mrpe.cfg file. You can determine the user by looking at the check_mk xinetd config file.

You can also run the agent by hand on the client system by becoming the user it runs as (as specified in the xinetd config file) and running the check_mk_agent script (can be located by looking in the xinetd config file for check_mk)

edgar

On Sun, Mar 13, 2011 at 10:02 AM, Nigel Cardwell <nigelc@celticcommunications.com> wrote:

  Thank you Edger for the reply unfortunately I am still not able to get this working
  
  I am having real difficulty trying to add Dell OMSA plugin to my OMD!!
  
  I do have it running OK on a standard Nagios server monitoring 5 Windows and 1 Linux server using SNMP so I know it should definately work when I get OMD set up properly.
  
  Here is my current setup that I have been trying on the OMD server:
  
  OMD Server
  
  The plugin location is "/opt/omd/versions/0.46/lib/nagios/plugins/check_openmanage"
  
  Host (Asterix):
  
  The mrpe.cfg is located in " /etc/check_mk/mrpe.cfg"
  
  The content is of mrpe.cfg is "OMSA /opt/omd/versions/0.46/lib/nagios/plugins/check_openmanage -H cc-fl-pbx1 -C <mycommunity>"
  
  When I call:
  
  check_mk -I mrpe (anything)
  
  I am getting:
  
  Host 'mrpe': Cannot get data from TCP port
  
  If I do a check_mk -D I get
  
  —
  
  <<<logwatch>>>
  
  [[[/var/log/messages]]]
  
  [[[/var/log/kern:missing]]]
  
  [[[/var/log/kern.log:missing]]]
  
  <<<local>>>
  
  <<<mrpe>>>
  
  (check_openmanage.pl <http://check_openmanage.pl/> ) OMSA 127
  
  When I look in my http://MYOMDSERVER/MySITE/check_mk
  
  I see the service but with "no output returned from plugin"
  
  Anyons Ideas where I am going wrong??? Please - I have been stuck at this for almost a week now :frowning:
  
  Thanks - Nigel
  
  ________________________________
  
  From: coldtex@gmail.com on behalf of edgar nielsen
  Sent: Fri 3/11/2011 1:34 PM
  To: Nigel Cardwell
  
  Subject: Re: [Check_mk (english)] Dell OMSA
  
  logwatch is for monitoring log files on the local client system. You need to determine where your mrpe.cfg file needs to be. I have a custom install so I do not know where the default is… I would think you could look in the check_mk-agent script to determine the location.
  
  Note: you have read this page:
  http://mathias-kettner.de/checkmk_mrpe.html
  <http://mathias-kettner.de/checkmk_mrpe.html> Before changing anything you should verify that doing the telnet localhost 6556 works! If it does not, the packages you installed are not working correctly unless they expect some kind of initial configuration which presumably the package README/doc should go into… So back out the plugin installation and the logwatch.cfg changes.
  
  My installation requires nagios plugins to be where nagios would expect them, but now that I think of that I am not sure if that was originally my preference or driven by requirements of check_mk or nagios plugins. Certainly some nagios plugins may require support files so I would stick with putting nagios plugins where they would normally go.
  
  I believe the check_mk plugins directory is for check_mk local plugins, not nagios plugins.
  
  The in the mrpe.cfg file do something like:
  ntp_offset /opt/nagios/libexec/check_ntp_time -H ntp1 -w 1 -c 60
  (this example is for using the nagios check_ntp_time plugin - note that your location is almost certainly somewhere else!) Perhaps if you use your package manager to install a nagios plugin, you can see where you should put the omsa plugin…
  
  The agent is just being run out of xinetd, I have never seen it crash, though hangs in a few edge cases, usually with NFS or LDAP issues. You can see if an agent is still running by doing something of the form:
  ps auxww | grep check_mk
  
  Anyway, you certainly need to back out your change to logwatch.cfg!
  
  e. nielsen
  
  On Fri, Mar 11, 2011 at 10:15 AM, Nigel Cardwell <nigelc@celticcommunications.com> wrote:
  
         Thanks for the reply, I am still a bit lost though.
  
         I have the check_dell_openmanage.pl <http://check_dell_openmanage.pl/> <http://check_dell_openmanage.pl/> file. (I will certainly try the other one you recommend once I figure out how to set the up)
  
         I put it in the check_mk agent plugin folder on the server where the agent is installed? And in the plugin folder on the OMD/Nagios server.
  
         In OMD that would be /opt/omd/versions/0.46/share/check_mk/agents/plugins
  
         On the client (if it's a windows os) for me that would be …program files/check_mk/plugins
  
         Then on the Nagios server I created the mrpe.cfg file in /opt/omd/versions/0.46/share/check_mk/agents
  
         This is where I found the logwatch.cfg file and I added the line
  
         OMSA /opt/omd/versions/0.46/share/check_mk/agents/plugins/check_dell_openmanage.pl <http://check_dell_openmanage.pl/> <http://check_dell_openmanage.pl/>
  
         What am I doing wrong??
  
         When I try to telnet localhost on the server with the agent and plugin I just get a black screen and it seems to cause the agent to crash.
  
         I cannot restart the agent service and I have to reboot the server to restore it.
  
         Thanks again for your assistance.
  
         From: coldtex@gmail.com [mailto:coldtex@gmail.com] On Behalf Of edgar nielsen
         Sent: Friday, March 11, 2011 12:25 AM
         To: Nigel Cardwell
         Cc: checkmk-en@lists.mathias-kettner.de
         Subject: Re: [Check_mk (english)] Dell OMSA
  
         You run nagios plugins on check_mk client systems with check_mk-agent. You put the command to run the nagios plugin(s) in the mrpe.cfg file.
  
         To test if you did it correctly, do a: telnet localhost 6556 and you will see the agent's output, and there should be an mrpe section with the output of the nagios plugins you put in the mrpe.cfg file.
  
         I myself prefer the other plugin(http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/check_openmanage/details), you should try both and see which one is preferable for your site. I preferred having things show up as a single service, and the output seemed more understandable to our staff. If I remember correctly, the other plugins did not return performance data which check_openmanage does.
  
         cheers,
  
         e. nielsen
  
         On Thu, Mar 10, 2011 at 8:44 PM, Nigel Cardwell <nigelc@celticcommunications.com> wrote:
  
         Hi, I am very new to Linux and extremely new to Nagios but I have managed to set up the OMD Distro on an Ubuntu 10.10 server and have it monitoring 40+ hosts - Linux, Windows, Cisco, Printers etc. I am very pleased with it - thank you for all your efforts with this.
  
         The one thing I cannot seem to figure out is how to incorporate the Dell OMSA check.
  
          I can get it running on a pure Nagios test environment using the check_dell_openmanage.1.3-pl from the Nagios Exchange but how to get it incorporated with check_mk and OMD is beyond me.
  
         I am putting Asterix/Dell server in a hosted facility and I need some way to monitor the RAID etc.
  
         I would be extremely grateful for any information on this.
  
         Regards
  
         Nigel
         _______________________________________________
         checkmk-en mailing list
         checkmk-en@lists.mathias-kettner.de
         http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en