<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks for your reply.<br><br>Here is "commands.cfg" :<br><br>define command {<br>command_name check_netapp3<br>command_line $USER1$/contrib/check_netapp3.pl -H $HOSTADDRESS$ -C public -v $ARG1$ -w $ARG2$ -c $ARG3$<br>}<br><br>Here is "service check" :<br><br># Check CPU Server hardware - check_netapp3.pl<br>define service{<br>use generic-service<br>host_name hostname<br>service_description CPULOAD<br>check_command check_netapp3!CPULOAD!80!90<br>}<br><br><span id="result_box" class="medium_text"><span title="">Alexandre</span><span title=""><br><br><br></span></span><br><hr id="stopSpelling">Date: Mon, 16 Aug 2010 14:31:46 +0200<br>From: ck@claudiokuenzler.com<br>To: nagiosplug-help@lists.sourceforge.net<br>Subject: Re: [Nagiosplug-help] Problem with check_netapp3.pl<br><br>Permissions look good and it runs with your Nagios user. Already sth good.<br>Did you double-check the command you're using in commands.cfg and in your actual service check? Maybe there's a typo-mistake in your config?<br>
<br><div class="ecxgmail_quote">On Mon, Aug 16, 2010 at 2:20 PM, alexandre fedi <span dir="ltr"><<a href="mailto:alex94130@hotmail.fr">alex94130@hotmail.fr</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>
Here is the command with 'nagios' user, with same arguments :<br><br>[root@nagios etc]# su - nagios<br>[nagios@nagios ~]$ /usr/local/nagios/libexec/contrib/./<a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a> -H 192.X.X.X -C public -v CPULOAD -w 80 -c 90<br>
CPULOAD OK - CPU load: 6%|cpuload=6%<br><br>Here's permissions :<br><br>-rwxr-xr-x 1 nagios nagios 22051 aoĆ» 16 09:56 /usr/local/nagios/libexec/contrib/<a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a><br>
<br>Alexandre<br><br><br><br>> From: <a href="mailto:lists@xodus.org">lists@xodus.org</a><br>> Date: Mon, 16 Aug 2010 07:05:50 -0500<br>> To: <a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
> Subject: Re: [Nagiosplug-help] Problem with <a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a><div><div></div><div class="h5"><br>> <br>> <br>> On Aug 16, 2010, at 6:47 AM, alexandre fedi wrote:<br>
> <br>> > Hi all,<br>> > <br>> > I'm trying to use "<a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a>" to monitor my Netapp FAS2050 (<a href="http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/NetApp/Check_netapp3/details" target="_blank">http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/NetApp/Check_netapp3/details</a>).<br>
> > <br>> > Running the command in terminal works fine:<br>> > <br>> > [root@nagios contrib]# ./<a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a> -H 192.X.X.X -v CPULOAD <br>
> > CPULOAD OK - CPU load: 5%|cpuload=5%<br>> <br>> It may run fine as the 'root' user, but likely not as the nagios user. Try running it as 'nagios' from the command line, exactly as you use it in the command{} definition (with appropriate substitutions).<br>
> <br>> --<br>> Marc<br>> <br>> <br>> ------------------------------------------------------------------------------<br>> This SF.net email is sponsored by <br>> <br>> Make an app they can't live without<br>
> Enter the BlackBerry Developer Challenge<br>> <a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a> <br>> _______________________________________________<br>> Nagiosplug-help mailing list<br>
> <a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
> ::: Please include plugins version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br> </div></div></div>
<br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by<br>
<br>
Make an app they can't live without<br>
Enter the BlackBerry Developer Challenge<br>
<a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a> <br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br>
<br>------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev<br>_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null </body>
</html>