Could you check the $USER1$ variable in etc/resource.cfg ? What does it say?<br>In your case it should be: '/usr/local/nagios/libexec' according to how your launch the plugin from the commandline:<br>/usr/local/nagios/libexec/contrib/<a href="http://check_netapp3.pl">check_netapp3.pl</a><br>
<br>I just checked my old back-upped Nagios configuration and for some reason I decided to continue with check_netapp instead of check_netapp3 - even though both were located in libexec. Unfortunately that was around 2 years ago and I can't remember why I continued to use the old version, maybe there were problems with the plugin?<br>
Do the other checks with <a href="http://check_netapp3.pl">check_netapp3.pl</a> work? Did you already try some checks with check_netapp ? Just want to know if that one would work, there's also a CPULOAD check.<br><a href="http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/NetApp/check_netapp/details">http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/NetApp/check_netapp/details</a><br>
<br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 2:44 PM, alexandre fedi <span dir="ltr"><<a href="mailto:alex94130@hotmail.fr">alex94130@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
Thanks for your reply.<br><br>Here is "commands.cfg" :<br><br>define command {<br>command_name check_netapp3<br>command_line $USER1$/contrib/<a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a> -H $HOSTADDRESS$ -C public -v $ARG1$ -w $ARG2$ -c $ARG3$<br>
}<br><br>Here is "service check" :<br><br># Check CPU Server hardware - <a href="http://check_netapp3.pl" target="_blank">check_netapp3.pl</a><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><span title="">Alexandre</span><span title=""><br><br><br></span></span><br><hr>Date: Mon, 16 Aug 2010 14:31:46 +0200<br>From: <a href="mailto:ck@claudiokuenzler.com" target="_blank">ck@claudiokuenzler.com</a><div>
<div></div><div class="h5"><br>To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">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><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>On Mon, Aug 16, 2010 at 2:20 PM, alexandre fedi <span dir="ltr"><<a href="mailto:alex94130@hotmail.fr" target="_blank">alex94130@hotmail.fr</a>></span> wrote:<br><blockquote 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" target="_blank">lists@xodus.org</a><br>> Date: Mon, 16 Aug 2010 07:05:50 -0500<br>> To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">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><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" target="_blank">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" target="_blank">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></div></div>------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
<a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a><div class="im"><br>_______________________________________________
Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null </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>