Dell Power Edge plugin for nagios nagios_check_temps
Marc Powell
marc at ena.com
Mon Jan 3 23:10:08 CET 2005
Again, please reply to the list so that other may benefit and respond.
> -----Original Message-----
> From: Eduardo Martinez [mailto:emartine at bsd.uchicago.edu]
> Sent: Monday, January 03, 2005 3:44 PM
> To: Marc Powell
> Subject: Re: [Nagios-users] Dell Power Edge plugin for nagios
> nagios_check_temps
>
> Marc Powell wrote:
>
> >Please reply to the list so that others may benefit...
> >
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: Eduardo Martinez [mailto:emartine at bsd.uchicago.edu]
> >>Sent: Monday, January 03, 2005 10:48 AM
> >>To: Marc Powell
> >>Subject: Re: [Nagios-users] Dell Power Edge plugin for nagios
> >>nagios_check_temps
> >>
> >>You are correct... These are not standard plugins. I do remember
> >>
> >>
> >getting
> >
> >
> >>to these pages from nagios.org though.
> >>There was a link to an article that showed these (my bookmarks)
> >>www.dell.com/downloads/global/power/1q04-sch.pdf
> >>www.dell.com/downloads/global/power/ps1q04-sch_oe.pdf
> >>
[ plugin script removed]
> >>
> >>Here is my check_command, it has varied. This is what I am having an
> >>issue with.
> >>
> >>
> >>--------------------check_commands.cfg----------------------
> >># 'nagios_check_temps' command definition
> >> define command{
> >> command_name nagios_check_temps
> >> command_line /opt/nagios/libexec/nagios_check_temps
> >>$HOSTADDRESS$
> >>}
> >>-----------------------------------------------------------------
> >>
> >>Here is the services_host.cfg file, which also varied.
> >>
>
>>----------------services_omchecks.cfg--------------------------------
> >>define service{
> >> use om_template
> >> hostgroup om_template
> >> service_description OM Temperature Checks
> >> check_command
> >>check_nrpe!nagios_check_temps!'Temperature Warning'!'Temperatures
> >>CRITICAL!!!'
> >>}
> >>
> >>
> >>
>
>-----------------------------------------------------------------------
> >
> >
> >>I have much to learn about understanding scripting and I am not a
> >>programmer. Though I understand the logic, i'm not sure what output
it
> >>is expecting.
> >>
> >>
> >
> >The plugin above is not network aware and simply runs the command
> >`omreport chassis temps` on the host it is run on and parses that
> >output. It accepts no command line arguments other than a -v for
verbose
> >output. You can not pass it warning and critical thresholds as it
> >figures those out from the "Maximum Warning" and "Maximum Failure"
> >output of omreport. Your service definition check command should
simply
> >be --
> >
> >check_command check_nrpe!nagios_check_temps
> >
> >presuming that you have a 'nagios_check_temps' command definition in
> >your nrpe.cfg on the remote machine ala --
> >
> >command[nagios_check_temps]=/path/to/nagios_check_temps
> >
> >and nagios_check_temps is installed on the machine you are wanting to
> >check the temperature on in the location specified in the nrpe.cfg
> >command definition. The command definition that you included above
isn't
> >used at all, at least by the service definition you included.
> >
> >You didn't give any indication about what the actual problem was you
> >were experiencing so that's about all I can tell you.
> >
>
> What I am trying to figure out is the expectancy of the plugin. I have
> already tried the above from the main server.
> check_nrpe -H <my machine> -c nagios_check_temps
> and receive the output
> CHECK_NRPE: Error receiving data from daemon.
This might indicate that nrpe on the remote host is not able to run the
plugin. Have you tried running it as it is defined in nrpe.cfg as the
user that nrpe is running as on the remote machine? It is entirely
possible that omreport may currently not be executable by that user
(i.e. only root). Do any other nrpe checks work on that machine?
--
Marc
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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