<br><br><div class="gmail_quote">On Fri,n Oct 31, 2008 at 6:41 PM, <span dir="ltr"><<a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Nagios-users mailing list submissions to<br>
<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:nagios-users-owner@lists.sourceforge.net">nagios-users-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Nagios-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: does nagios need apache? (jeremiah)<br>
2. Re: does nagios need apache? (Marc Powell)<br>
3. Re: does nagios need apache? (Valdinger, Stephen (DOV, MSX))<br>
4. Re: does nagios need apache? (jeremiah)<br>
5. nrpe script (jeremiah)<br>
6. Re: nrpe script (Valdinger, Stephen (DOV, MSX))<br>
7. Re: nrpe script (Marc Powell)<br>
8. Re: nrpe script (Mathieu Gagn?)<br>
9. Re: nrpe script (Patrick Morris)<br>
10. Re: nrpe script (jeremiah)<br>
11. Re: nrpe script (jeremiah)<br>
12. Re: nrpe script (Aaron Segura)<br>
13. Re: nrpe script (Patrick Morris)<br>
14. Re: nrpe script (Mathieu Gagn?)<br>
15. Re: nrpe script (jeremiah)<br>
16. Re: nrpe script (jeremiah)<br>
17. Re: nrpe script (jeremiah)<br>
18. Re: nrpe script (Mathieu Gagn?)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 31 Oct 2008 13:25:28 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] does nagios need apache?<br>
To: Novin Jaiswal <<a href="mailto:novin.jaiswal@ishisystems.com">novin.jaiswal@ishisystems.com</a>><br>
Cc: "Valdinger, Stephen \(DOV, MSX\)" <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>>,<br>
<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225484728.22686.40.camel@jeremiah-laptop><br>
Content-Type: text/plain<br>
<br>
But can i view the historical data without running apache by a nagios<br>
command line interface without parsing log files?<br>
<br>
On Fri, 2008-10-31 at 13:23 -0700, Novin Jaiswal wrote:<br>
> Using apache you can view the different historical data of Nagios as<br>
> html out put. Using http protocol.<br>
><br>
> For eg. <a href="http://servername/nagios" target="_blank">http://servername/nagios</a><br>
><br>
> Thanks & Regards<br>
> Novin Jaiswal<br>
> Ishi Systems Inc.<br>
> 732-318-8156(cell)<br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Valdinger, Stephen (DOV, MSX) [mailto:<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>]<br>
> Sent: Friday, October 31, 2008 4:20 PM<br>
> To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>; <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
> Subject: Re: [Nagios-users] does nagios need apache?<br>
><br>
> Nagios itself is just a daemon. The only reason for apache is for the<br>
> cgi's and web interface.<br>
><br>
><br>
> ------Original Message------<br>
> From: jeremiah<br>
> To: Nagios-Users<br>
> ReplyTo: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
> Sent: Oct 31, 2008 4:14 PM<br>
> Subject: [Nagios-users] does nagios need apache?<br>
><br>
> Does nagios need apache to run or is it possible to run as a daemon?<br>
><br>
> thanks,<br>
> JJ<br>
><br>
><br>
><br>
> Disclaimer: The information contained in this transmission, including<br>
> any<br>
> attachments, may contain confidential information of Panasonic<br>
> Avionics<br>
> Corporation. This transmission is intended only for the use of the<br>
> addressee(s) listed above. Unauthorized review, dissemination or<br>
> other<br>
> use<br>
> of the information contained in this transmission is strictly<br>
> prohibited.<br>
> If you have received this transmission in error or have reason to<br>
> believe<br>
> you are not authorized to receive it, please notify the sender by<br>
> return<br>
><br>
> email and promptly delete the transmission.<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
> -<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
> Stephen Valdinger<br>
> MIS Helpdesk Coordinator<br>
> P: 330.365.3622<br>
> C: 740.491.0958<br>
><br>
> ------------------------------------------------------------------------<br>
> -<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 31 Oct 2008 15:55:24 -0500<br>
From: Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>><br>
Subject: Re: [Nagios-users] does nagios need apache?<br>
To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <<a href="mailto:316B3A65-1A44-4458-AA1F-A7ADCE745C9B@ena.com">316B3A65-1A44-4458-AA1F-A7ADCE745C9B@ena.com</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br>
<br>
<br>
On Oct 31, 2008, at 3:25 PM, jeremiah wrote:<br>
<br>
> But can i view the historical data without running apache by a nagios<br>
> command line interface without parsing log files?<br>
<br>
No, the cgi's are the only provided interface for that. There are no<br>
command-line reporting tools included. grep and less of the log files<br>
for basic stuff; one of the reporting addons at <a href="http://nagiosexchange.org" target="_blank">nagiosexchange.org</a><br>
are your other options. There's also a third party command line<br>
interface at nagiosexchange (Utilities->Terminal) but I think it just<br>
shows current states.<br>
<br>
--<br>
Marc<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 31 Oct 2008 17:03:05 -0400<br>
From: "Valdinger, Stephen \(DOV, MSX\)" <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>><br>
Subject: Re: [Nagios-users] does nagios need apache?<br>
To: <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>>, "Novin Jaiswal"<br>
<<a href="mailto:novin.jaiswal@ishisystems.com">novin.jaiswal@ishisystems.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID:<br>
<D34E2E139C3B86498D9FAB0F86FAB6590A4ED8F6@dovmsx00.dover.internal><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
There are utilities do that yes. In the /usr/local/bin/Nagios (at least<br>
in my install, your path may be different) there is a nagiosstats binary<br>
you can run. There are options for mrtg (-m) or csv (-c) output. Note<br>
that this only gives you performance data, and not data on individual<br>
checks of hosts and services. As Marc stated you will have to look on<br>
<a href="http://nagiosexchange.org" target="_blank">nagiosexchange.org</a> for utilities that do those sorts of functions.<br>
<br>
Stephen Valdinger<br>
MIS Helpdesk Coordinator<br>
330.365.3622 -O<br>
740.491.0958 - C<br>
<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a><br>
Never agrue with an idiot. They drag you down to their level and then<br>
beat you with their experience.<br>
<br>
-----Original Message-----<br>
From: jeremiah [mailto:<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>]<br>
Sent: Friday, October 31, 2008 4:25 PM<br>
To: Novin Jaiswal<br>
Cc: Valdinger, Stephen (DOV, MSX); <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Subject: RE: [Nagios-users] does nagios need apache?<br>
<br>
But can i view the historical data without running apache by a nagios<br>
command line interface without parsing log files?<br>
<br>
On Fri, 2008-10-31 at 13:23 -0700, Novin Jaiswal wrote:<br>
> Using apache you can view the different historical data of Nagios as<br>
> html out put. Using http protocol.<br>
><br>
> For eg. <a href="http://servername/nagios" target="_blank">http://servername/nagios</a><br>
><br>
> Thanks & Regards<br>
> Novin Jaiswal<br>
> Ishi Systems Inc.<br>
> 732-318-8156(cell)<br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Valdinger, Stephen (DOV, MSX) [mailto:<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>]<br>
> Sent: Friday, October 31, 2008 4:20 PM<br>
> To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>; <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
> Subject: Re: [Nagios-users] does nagios need apache?<br>
><br>
> Nagios itself is just a daemon. The only reason for apache is for the<br>
> cgi's and web interface.<br>
><br>
><br>
> ------Original Message------<br>
> From: jeremiah<br>
> To: Nagios-Users<br>
> ReplyTo: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
> Sent: Oct 31, 2008 4:14 PM<br>
> Subject: [Nagios-users] does nagios need apache?<br>
><br>
> Does nagios need apache to run or is it possible to run as a daemon?<br>
><br>
> thanks,<br>
> JJ<br>
><br>
><br>
><br>
> Disclaimer: The information contained in this transmission, including<br>
> any<br>
> attachments, may contain confidential information of Panasonic<br>
> Avionics<br>
> Corporation. This transmission is intended only for the use of the<br>
> addressee(s) listed above. Unauthorized review, dissemination or<br>
> other<br>
> use<br>
> of the information contained in this transmission is strictly<br>
> prohibited.<br>
> If you have received this transmission in error or have reason to<br>
> believe<br>
> you are not authorized to receive it, please notify the sender by<br>
> return<br>
><br>
> email and promptly delete the transmission.<br>
><br>
><br>
><br>
><br>
------------------------------------------------------------------------<br>
> -<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
> Stephen Valdinger<br>
> MIS Helpdesk Coordinator<br>
> P: 330.365.3622<br>
> C: 740.491.0958<br>
><br>
><br>
------------------------------------------------------------------------<br>
> -<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 31 Oct 2008 14:10:25 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] does nagios need apache?<br>
To: "Valdinger, Stephen (DOV, MSX)" <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225487425.3209.9.camel@jeremiah-laptop><br>
Content-Type: text/plain<br>
<br>
Great. thanks to all.<br>
<br>
On Fri, 2008-10-31 at 14:03 -0700, Valdinger, Stephen (DOV, MSX) wrote:<br>
> There are utilities do that yes. In the /usr/local/bin/Nagios (at<br>
> least<br>
> in my install, your path may be different) there is a nagiosstats<br>
> binary<br>
> you can run. There are options for mrtg (-m) or csv (-c) output. Note<br>
> that this only gives you performance data, and not data on individual<br>
> checks of hosts and services. As Marc stated you will have to look on<br>
> <a href="http://nagiosexchange.org" target="_blank">nagiosexchange.org</a> for utilities that do those sorts of functions.<br>
><br>
> Stephen Valdinger<br>
> MIS Helpdesk Coordinator<br>
> 330.365.3622 -O<br>
> 740.491.0958 - C<br>
> <a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a><br>
> Never agrue with an idiot. They drag you down to their level and then<br>
> beat you with their experience.<br>
><br>
> -----Original Message-----<br>
> From: jeremiah [mailto:<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>]<br>
> Sent: Friday, October 31, 2008 4:25 PM<br>
> To: Novin Jaiswal<br>
> Cc: Valdinger, Stephen (DOV, MSX); <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
> Subject: RE: [Nagios-users] does nagios need apache?<br>
><br>
> But can i view the historical data without running apache by a nagios<br>
> command line interface without parsing log files?<br>
><br>
> On Fri, 2008-10-31 at 13:23 -0700, Novin Jaiswal wrote:<br>
> > Using apache you can view the different historical data of Nagios as<br>
> > html out put. Using http protocol.<br>
> ><br>
> > For eg. <a href="http://servername/nagios" target="_blank">http://servername/nagios</a><br>
> ><br>
> > Thanks & Regards<br>
> > Novin Jaiswal<br>
> > Ishi Systems Inc.<br>
> > 732-318-8156(cell)<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > -----Original Message-----<br>
> > From: Valdinger, Stephen (DOV, MSX) [mailto:<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>]<br>
> > Sent: Friday, October 31, 2008 4:20 PM<br>
> > To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>;<br>
> <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
> > Subject: Re: [Nagios-users] does nagios need apache?<br>
> ><br>
> > Nagios itself is just a daemon. The only reason for apache is for<br>
> the<br>
> > cgi's and web interface.<br>
> ><br>
> ><br>
> > ------Original Message------<br>
> > From: jeremiah<br>
> > To: Nagios-Users<br>
> > ReplyTo: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
> > Sent: Oct 31, 2008 4:14 PM<br>
> > Subject: [Nagios-users] does nagios need apache?<br>
> ><br>
> > Does nagios need apache to run or is it possible to run as a daemon?<br>
> ><br>
> > thanks,<br>
> > JJ<br>
> ><br>
> ><br>
> ><br>
> > Disclaimer: The information contained in this transmission,<br>
> including<br>
> > any<br>
> > attachments, may contain confidential information of Panasonic<br>
> > Avionics<br>
> > Corporation. This transmission is intended only for the use of the<br>
> > addressee(s) listed above. Unauthorized review, dissemination or<br>
> > other<br>
> > use<br>
> > of the information contained in this transmission is strictly<br>
> > prohibited.<br>
> > If you have received this transmission in error or have reason to<br>
> > believe<br>
> > you are not authorized to receive it, please notify the sender by<br>
> > return<br>
> ><br>
> > email and promptly delete the transmission.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > -<br>
> > This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> > challenge<br>
> > Build the coolest Linux based applications with Moblin SDK & win<br>
> great<br>
> > prizes<br>
> > Grand prize is a trip for two to an Open Source event anywhere in<br>
> the<br>
> > world<br>
> > <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> > _______________________________________________<br>
> > Nagios-users mailing list<br>
> > <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> > ::: Please include Nagios version, plugin version (-v) and OS when<br>
> > reporting any issue.<br>
> > ::: Messages without supporting info will risk being sent<br>
> to /dev/null<br>
> ><br>
> ><br>
> > Stephen Valdinger<br>
> > MIS Helpdesk Coordinator<br>
> > P: 330.365.3622<br>
> > C: 740.491.0958<br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > -<br>
> > This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> > challenge<br>
> > Build the coolest Linux based applications with Moblin SDK & win<br>
> great<br>
> > prizes<br>
> > Grand prize is a trip for two to an Open Source event anywhere in<br>
> the<br>
> > world<br>
> > <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> > _______________________________________________<br>
> > Nagios-users mailing list<br>
> > <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> > ::: Please include Nagios version, plugin version (-v) and OS when<br>
> > reporting any issue.<br>
> > ::: Messages without supporting info will risk being sent<br>
> to /dev/null<br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 31 Oct 2008 14:21:07 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: [Nagios-users] nrpe script<br>
To: Nagios <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <1225488067.3209.20.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi folks,<br>
<br>
I have another question for you all that i haven't been able to resolve.<br>
<br>
I want to run a python script on my monitored hosts using the nrpe<br>
command.<br>
<br>
On my server I am running the following command:<br>
<br>
# /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
loadscript_check_error_log<br>
<br>
Every time i run the command above then i get the following error:<br>
<br>
"NRPE: Command 'loadscript_check_error_log' not defined<br>
<br>
On my monitored hosts, I've specified the corellary command<br>
in /etc/nagios/nrpe.cfg, then restarted the service.<br>
<br>
# command[loadscript_check_error_log]=python /home/username/script.py<br>
<br>
Am I missing something? Does the command[loadscript_check_error_log]<br>
actually have to be a valid plugin in the plugins directory or am I<br>
defining the action of running the script in this file?<br>
<br>
Note: This is the only command in my config that is not working for me<br>
so unlikely a service issue but rather something wrong with my config.<br>
<br>
Thanks!<br>
<br>
JJ<br>
<br>
<br>
<br>
Disclaimer: The information contained in this transmission, including any<br>
attachments, may contain confidential information of Panasonic Avionics<br>
Corporation. This transmission is intended only for the use of the<br>
addressee(s) listed above. Unauthorized review, dissemination or other use<br>
of the information contained in this transmission is strictly prohibited.<br>
If you have received this transmission in error or have reason to believe<br>
you are not authorized to receive it, please notify the sender by return<br>
email and promptly delete the transmission.<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Fri, 31 Oct 2008 17:25:01 -0400<br>
From: "Valdinger, Stephen \(DOV, MSX\)" <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>>,<br>
<<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID:<br>
<D34E2E139C3B86498D9FAB0F86FAB65905F534A0@dovmsx00.dover.internal><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Is python in the path on the particular server? Try using /path/to/python and see if you have success.<br>
<br>
<br>
Stephen Valdinger<br>
MIS Helpdesk Coordinator<br>
P: 330.365.3622<br>
C: 740.491.0958<br>
<br>
<br>
-----Original Message-----<br>
From: jeremiah<br>
To: Nagios<br>
Sent: Fri Oct 31 17:21:07 2008<br>
Subject: [Nagios-users] nrpe script<br>
<br>
Hi folks,<br>
<br>
I have another question for you all that i haven't been able to resolve.<br>
<br>
I want to run a python script on my monitored hosts using the nrpe<br>
command.<br>
<br>
On my server I am running the following command:<br>
<br>
# /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
loadscript_check_error_log<br>
<br>
Every time i run the command above then i get the following error:<br>
<br>
"NRPE: Command 'loadscript_check_error_log' not defined<br>
<br>
On my monitored hosts, I've specified the corellary command<br>
in /etc/nagios/nrpe.cfg, then restarted the service.<br>
<br>
# command[loadscript_check_error_log]=python /home/username/script.py<br>
<br>
Am I missing something? Does the command[loadscript_check_error_log]<br>
actually have to be a valid plugin in the plugins directory or am I<br>
defining the action of running the script in this file?<br>
<br>
Note: This is the only command in my config that is not working for me<br>
so unlikely a service issue but rather something wrong with my config.<br>
<br>
Thanks!<br>
<br>
JJ<br>
<br>
<br>
<br>
Disclaimer: The information contained in this transmission, including any<br>
attachments, may contain confidential information of Panasonic Avionics<br>
Corporation. This transmission is intended only for the use of the<br>
addressee(s) listed above. Unauthorized review, dissemination or other use<br>
of the information contained in this transmission is strictly prohibited.<br>
If you have received this transmission in error or have reason to believe<br>
you are not authorized to receive it, please notify the sender by return<br>
email and promptly delete the transmission.<br>
<br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 31 Oct 2008 16:37:36 -0500<br>
From: Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: Nagios <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:D8548623-C593-42CC-B257-59C748FBD83C@ena.com">D8548623-C593-42CC-B257-59C748FBD83C@ena.com</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed<br>
<br>
<br>
On Oct 31, 2008, at 4:21 PM, jeremiah wrote:<br>
<br>
> Every time i run the command above then i get the following error:<br>
><br>
> "NRPE: Command 'loadscript_check_error_log' not defined<br>
><br>
> On my monitored hosts, I've specified the corellary command<br>
> in /etc/nagios/nrpe.cfg, then restarted the service.<br>
><br>
> # command[loadscript_check_error_log]=python /home/username/script.py<br>
<br>
This command definition is commented out (#).<br>
<br>
--<br>
Marc<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 31 Oct 2008 17:42:54 -0400<br>
From: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
Cc: Nagios <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:490B7BDE.4080803@iweb.com">490B7BDE.4080803@iweb.com</a>><br>
Content-Type: text/plain; charset=us-ascii; format=flowed<br>
<br>
Hi Jeremiah,<br>
<br>
jeremiah wrote:<br>
> On my monitored hosts, I've specified the corellary command<br>
> in /etc/nagios/nrpe.cfg, then restarted the service.<br>
><br>
> # command[loadscript_check_error_log]=python /home/username/script.py<br>
><br>
> Am I missing something?<br>
<br>
Is there really a "#" at the beginning of the line?<br>
<br>
You should remove it as this character indicates the beginning of a<br>
comment, therefore everything after will be ignored.<br>
<br>
Also, make sure the daemon is loading the right configuration file and<br>
not another located in /etc or /usr/local/nagios/etc, ...<br>
<br>
--<br>
Mathieu<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 31 Oct 2008 14:36:58 -0700<br>
From: Patrick Morris <<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Cc: "Morris, Patrick" <<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>>, Nagios<br>
<<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:20081031213658.GZ31128@bakgwai.americas.hpqcorp.net">20081031213658.GZ31128@bakgwai.americas.hpqcorp.net</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Fri, 31 Oct 2008, jeremiah wrote:<br>
<br>
> No, I was trying to simulate a command prompt.<br>
><br>
> JJ<br>
><br>
> On Fri, 2008-10-31 at 14:31 -0700, Patrick Morris wrote:<br>
> > On Fri, 31 Oct 2008, jeremiah wrote:<br>
> ><br>
> > > Hi folks,<br>
> > ><br>
> > > I have another question for you all that i haven't been able to<br>
> > resolve.<br>
> > ><br>
> > > I want to run a python script on my monitored hosts using the nrpe<br>
> > > command.<br>
> > ><br>
> > > On my server I am running the following command:<br>
> > ><br>
> > > # /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> > > loadscript_check_error_log<br>
> > ><br>
> > > Every time i run the command above then i get the following error:<br>
> > ><br>
> > > "NRPE: Command 'loadscript_check_error_log' not defined<br>
> > ><br>
> > > On my monitored hosts, I've specified the corellary command<br>
> > > in /etc/nagios/nrpe.cfg, then restarted the service.<br>
> > ><br>
> > > #<br>
> > command[loadscript_check_error_log]=python /home/username/script.py<br>
> > ><br>
> > > Am I missing something? Does the command[loadscript_check_error_log]<br>
> > > actually have to be a valid plugin in the plugins directory or am I<br>
> > > defining the action of running the script in this file?<br>
> > ><br>
> > > Note: This is the only command in my config that is not working for<br>
> > me<br>
> > > so unlikely a service issue but rather something wrong with my<br>
> > config.<br>
> ><br>
> > Is it in the config file commented out with a "#" like that?<br>
<br>
Even on the "command[loadscript_check_error_log]" line (which you<br>
wouldn't have seen at a command line)?<br>
<br>
You should also always define your commands with absolute paths, both<br>
for clarity and security reasons.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Fri, 31 Oct 2008 14:38:25 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: "Valdinger, Stephen (DOV, MSX)" <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225489105.3209.31.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
When I typed python on the command line it drops my into the python<br>
interpreter.<br>
<br>
Regardless, I went ahead and specified it in the command:<br>
<br>
command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py<br>
<br>
now when i run the check_nrpe command from the server I get "could not<br>
run command".<br>
<br>
$ sudo /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
loadscript_check_error_log<br>
<br>
Could not run command<br>
<br>
Thoughts?<br>
<br>
Thanks,<br>
JJ<br>
<br>
<br>
On Fri, 2008-10-31 at 14:25 -0700, Valdinger, Stephen (DOV, MSX) wrote:<br>
> Is python in the path on the particular server? Try<br>
> using /path/to/python and see if you have success.<br>
><br>
><br>
> Stephen Valdinger<br>
> MIS Helpdesk Coordinator<br>
> P: 330.365.3622<br>
> C: 740.491.0958<br>
><br>
><br>
> -----Original Message-----<br>
> From: jeremiah<br>
> To: Nagios<br>
> Sent: Fri Oct 31 17:21:07 2008<br>
> Subject: [Nagios-users] nrpe script<br>
><br>
> Hi folks,<br>
><br>
> I have another question for you all that i haven't been able to<br>
> resolve.<br>
><br>
> I want to run a python script on my monitored hosts using the nrpe<br>
> command.<br>
><br>
> On my server I am running the following command:<br>
><br>
> # /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> loadscript_check_error_log<br>
><br>
> Every time i run the command above then i get the following error:<br>
><br>
> "NRPE: Command 'loadscript_check_error_log' not defined<br>
><br>
> On my monitored hosts, I've specified the corellary command<br>
> in /etc/nagios/nrpe.cfg, then restarted the service.<br>
><br>
> # command[loadscript_check_error_log]=python /home/username/script.py<br>
><br>
> Am I missing something? Does the command[loadscript_check_error_log]<br>
> actually have to be a valid plugin in the plugins directory or am I<br>
> defining the action of running the script in this file?<br>
><br>
> Note: This is the only command in my config that is not working for me<br>
> so unlikely a service issue but rather something wrong with my config.<br>
><br>
> Thanks!<br>
><br>
> JJ<br>
><br>
><br>
><br>
> Disclaimer: The information contained in this transmission, including<br>
> any<br>
> attachments, may contain confidential information of Panasonic<br>
> Avionics<br>
> Corporation. This transmission is intended only for the use of the<br>
> addressee(s) listed above. Unauthorized review, dissemination or<br>
> other use<br>
> of the information contained in this transmission is strictly<br>
> prohibited.<br>
> If you have received this transmission in error or have reason to<br>
> believe<br>
> you are not authorized to receive it, please notify the sender by<br>
> return<br>
> email and promptly delete the transmission.<br>
><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Fri, 31 Oct 2008 14:33:57 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: Patrick Morris <<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>><br>
Cc: Nagios <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <1225488837.3209.26.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
No, I was trying to simulate a command prompt.<br>
<br>
JJ<br>
<br>
On Fri, 2008-10-31 at 14:31 -0700, Patrick Morris wrote:<br>
> On Fri, 31 Oct 2008, jeremiah wrote:<br>
><br>
> > Hi folks,<br>
> ><br>
> > I have another question for you all that i haven't been able to<br>
> resolve.<br>
> ><br>
> > I want to run a python script on my monitored hosts using the nrpe<br>
> > command.<br>
> ><br>
> > On my server I am running the following command:<br>
> ><br>
> > # /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> > loadscript_check_error_log<br>
> ><br>
> > Every time i run the command above then i get the following error:<br>
> ><br>
> > "NRPE: Command 'loadscript_check_error_log' not defined<br>
> ><br>
> > On my monitored hosts, I've specified the corellary command<br>
> > in /etc/nagios/nrpe.cfg, then restarted the service.<br>
> ><br>
> > #<br>
> command[loadscript_check_error_log]=python /home/username/script.py<br>
> ><br>
> > Am I missing something? Does the command[loadscript_check_error_log]<br>
> > actually have to be a valid plugin in the plugins directory or am I<br>
> > defining the action of running the script in this file?<br>
> ><br>
> > Note: This is the only command in my config that is not working for<br>
> me<br>
> > so unlikely a service issue but rather something wrong with my<br>
> config.<br>
><br>
> Is it in the config file commented out with a "#" like that?<br>
><br>
><br>
><br>
<br>
<br>
Disclaimer: The information contained in this transmission, including any<br>
attachments, may contain confidential information of Panasonic Avionics<br>
Corporation. This transmission is intended only for the use of the<br>
addressee(s) listed above. Unauthorized review, dissemination or other use<br>
of the information contained in this transmission is strictly prohibited.<br>
If you have received this transmission in error or have reason to believe<br>
you are not authorized to receive it, please notify the sender by return<br>
email and promptly delete the transmission.<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 12<br>
Date: Fri, 31 Oct 2008 15:43:01 -0600<br>
From: Aaron Segura <<a href="mailto:Aaron.Segura@cabelas.com">Aaron.Segura@cabelas.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>>, "Nagios"<br>
<<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID:<br>
<D33D2B75D8C1284BBDA4D7F61F47770F01302E61@SIDHQEXCHMB4.Cabelas.Corp><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
There is no '#' on the beginning of the line in your nrpe.cfg is there?<br>
That's just in your e-mail for readability?<br>
<br>
-----Original Message-----<br>
From: jeremiah [mailto:<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>]<br>
Sent: Friday, October 31, 2008 3:21 PM<br>
To: Nagios<br>
Subject: [Nagios-users] nrpe script<br>
<br>
Hi folks,<br>
<br>
I have another question for you all that i haven't been able to resolve.<br>
<br>
I want to run a python script on my monitored hosts using the nrpe<br>
command.<br>
<br>
On my server I am running the following command:<br>
<br>
# /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
loadscript_check_error_log<br>
<br>
Every time i run the command above then i get the following error:<br>
<br>
"NRPE: Command 'loadscript_check_error_log' not defined<br>
<br>
On my monitored hosts, I've specified the corellary command<br>
in /etc/nagios/nrpe.cfg, then restarted the service.<br>
<br>
# command[loadscript_check_error_log]=python /home/username/script.py<br>
<br>
Am I missing something? Does the command[loadscript_check_error_log]<br>
actually have to be a valid plugin in the plugins directory or am I<br>
defining the action of running the script in this file?<br>
<br>
Note: This is the only command in my config that is not working for me<br>
so unlikely a service issue but rather something wrong with my config.<br>
<br>
Thanks!<br>
<br>
JJ<br>
<br>
<br>
<br>
Disclaimer: The information contained in this transmission, including<br>
any<br>
attachments, may contain confidential information of Panasonic Avionics<br>
Corporation. This transmission is intended only for the use of the<br>
addressee(s) listed above. Unauthorized review, dissemination or other<br>
use<br>
of the information contained in this transmission is strictly<br>
prohibited.<br>
If you have received this transmission in error or have reason to<br>
believe<br>
you are not authorized to receive it, please notify the sender by return<br>
<br>
email and promptly delete the transmission.<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
-<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great<br>
prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the<br>
world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when<br>
reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 13<br>
Date: Fri, 31 Oct 2008 14:31:36 -0700<br>
From: Patrick Morris <<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Cc: Nagios <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:20081031213136.GX31128@bakgwai.americas.hpqcorp.net">20081031213136.GX31128@bakgwai.americas.hpqcorp.net</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Fri, 31 Oct 2008, jeremiah wrote:<br>
<br>
> Hi folks,<br>
><br>
> I have another question for you all that i haven't been able to resolve.<br>
><br>
> I want to run a python script on my monitored hosts using the nrpe<br>
> command.<br>
><br>
> On my server I am running the following command:<br>
><br>
> # /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> loadscript_check_error_log<br>
><br>
> Every time i run the command above then i get the following error:<br>
><br>
> "NRPE: Command 'loadscript_check_error_log' not defined<br>
><br>
> On my monitored hosts, I've specified the corellary command<br>
> in /etc/nagios/nrpe.cfg, then restarted the service.<br>
><br>
> # command[loadscript_check_error_log]=python /home/username/script.py<br>
><br>
> Am I missing something? Does the command[loadscript_check_error_log]<br>
> actually have to be a valid plugin in the plugins directory or am I<br>
> defining the action of running the script in this file?<br>
><br>
> Note: This is the only command in my config that is not working for me<br>
> so unlikely a service issue but rather something wrong with my config.<br>
<br>
Is it in the config file commented out with a "#" like that?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 14<br>
Date: Fri, 31 Oct 2008 18:01:39 -0400<br>
From: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <<a href="mailto:490B8043.9010401@iweb.com">490B8043.9010401@iweb.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi,<br>
<br>
jeremiah wrote:<br>
> When I typed python on the command line it drops my into the python<br>
> interpreter.<br>
><br>
> Regardless, I went ahead and specified it in the command:<br>
><br>
> command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py<br>
><br>
> now when i run the check_nrpe command from the server I get "could not<br>
> run command".<br>
><br>
> $ sudo /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> loadscript_check_error_log<br>
><br>
> Could not run command<br>
><br>
> Thoughts?<br>
<br>
Can the user under which the NRPE daemon runs access and execute<br>
/home/jesterj/report_loadscript_error_log.py ?<br>
<br>
--<br>
Mathieu<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Fri, 31 Oct 2008 15:10:25 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225491025.3209.34.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I just chown'd the file for nagios.<br>
<br>
$ sudo chown nagios /home/jesterj/report_loadscript_error_log.py<br>
<br>
$ ls -la *.py<br>
-rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55<br>
report_loadscript_error_log.py<br>
<br>
I'm now getting a different error after i fixed the path issue.<br>
<br>
$ /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
loadscript_check_error_log<br>
NRPE: Unable to read output<br>
<br>
Thoughts?<br>
<br>
thanks,<br>
JJ<br>
<br>
<br>
<br>
On Fri, 2008-10-31 at 15:01 -0700, Mathieu Gagn? wrote:<br>
> Hi,<br>
><br>
> jeremiah wrote:<br>
> > When I typed python on the command line it drops my into the python<br>
> > interpreter.<br>
> ><br>
> > Regardless, I went ahead and specified it in the command:<br>
> ><br>
> ><br>
> command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py<br>
> ><br>
> > now when i run the check_nrpe command from the server I get "could<br>
> not<br>
> > run command".<br>
> ><br>
> > $ sudo /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> > loadscript_check_error_log<br>
> ><br>
> > Could not run command<br>
> ><br>
> > Thoughts?<br>
><br>
> Can the user under which the NRPE daemon runs access and execute<br>
> /home/jesterj/report_loadscript_error_log.py ?<br>
><br>
> --<br>
> Mathieu<br>
><br>
><br>
><br>
<br>
<br>
<br>
Disclaimer: The information contained in this transmission, including any<br>
attachments, may contain confidential information of Panasonic Avionics<br>
Corporation. This transmission is intended only for the use of the<br>
addressee(s) listed above. Unauthorized review, dissemination or other use<br>
of the information contained in this transmission is strictly prohibited.<br>
If you have received this transmission in error or have reason to believe<br>
you are not authorized to receive it, please notify the sender by return<br>
email and promptly delete the transmission.<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 16<br>
Date: Fri, 31 Oct 2008 15:20:53 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225491653.3209.36.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
i check the manual and this is what it says about this particular error:<br>
<br>
On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote:<br>
> I just chown'd the file for nagios.<br>
><br>
> $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py<br>
><br>
> $ ls -la *.py<br>
> -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55<br>
> report_loadscript_error_log.py<br>
><br>
> I'm now getting a different error after i fixed the path issue.<br>
><br>
> $ /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> loadscript_check_error_log<br>
> NRPE: Unable to read output<br>
><br>
> Thoughts?<br>
><br>
> thanks,<br>
> JJ<br>
</blockquote><div><br>what does the output of the python file look like?<br>You just want nrpe to print the output in the nagios monitor? or are you setting parameters for warning and critical email alerts?<br><br>the log should show you what was sent to nrpe<br>
<br>install check_nrpe on the machine with the py script to simplifiy your debugging<br><br><br>-Aric<br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>
><br>
><br>
> On Fri, 2008-10-31 at 15:01 -0700, Mathieu Gagn? wrote:<br>
> > Hi,<br>
> ><br>
> > jeremiah wrote:<br>
> > > When I typed python on the command line it drops my into the<br>
> python<br>
> > > interpreter.<br>
> > ><br>
> > > Regardless, I went ahead and specified it in the command:<br>
> > ><br>
> > ><br>
> ><br>
> command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py<br>
> > ><br>
> > > now when i run the check_nrpe command from the server I get "could<br>
> > not<br>
> > > run command".<br>
> > ><br>
> > > $ sudo /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> > > loadscript_check_error_log<br>
> > ><br>
> > > Could not run command<br>
> > ><br>
> > > Thoughts?<br>
> ><br>
> > Can the user under which the NRPE daemon runs access and execute<br>
> > /home/jesterj/report_loadscript_error_log.py ?<br>
> ><br>
> > --<br>
> > Mathieu<br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
> Disclaimer: The information contained in this transmission, including<br>
> any<br>
> attachments, may contain confidential information of Panasonic<br>
> Avionics<br>
> Corporation. This transmission is intended only for the use of the<br>
> addressee(s) listed above. Unauthorized review, dissemination or<br>
> other use<br>
> of the information contained in this transmission is strictly<br>
> prohibited.<br>
> If you have received this transmission in error or have reason to<br>
> believe<br>
> you are not authorized to receive it, please notify the sender by<br>
> return<br>
> email and promptly delete the transmission.<br>
><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 17<br>
Date: Fri, 31 Oct 2008 15:27:31 -0700<br>
From: jeremiah <<a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <1225492051.3209.41.camel@jeremiah-laptop><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
I just pulled this error up in the manual and it sasy the following<br>
about the error: "NRPE: Unable to read output"<br>
<br>
=====<br>
This error indicates that the command that was run by the NRPE daemon<br>
did not return any character output.<br>
This could be an indication of the following problems:<br>
<br>
-An incorrectly defined command line in the command definition. Verify<br>
that the command definition in your NRPE configuration file is correct.<br>
<br>
-The plugin that is specified in the command line is malfunctioning. Run<br>
the command line manually to make sure the plugin returns some kind of<br>
text output.""<br>
=====<br>
<br>
I ran the command via the command prompt and works fine w/ returning<br>
output.<br>
<br>
Hmmm.<br>
<br>
<br>
On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote:<br>
> I just chown'd the file for nagios.<br>
><br>
> $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py<br>
><br>
> $ ls -la *.py<br>
> -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55<br>
> report_loadscript_error_log.py<br>
><br>
> I'm now getting a different error after i fixed the path issue.<br>
><br>
> $ /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> loadscript_check_error_log<br>
> NRPE: Unable to read output<br>
><br>
> Thoughts?<br>
><br>
> thanks,<br>
> JJ<br>
><br>
><br>
><br>
> On Fri, 2008-10-31 at 15:01 -0700, Mathieu Gagn? wrote:<br>
> > Hi,<br>
> ><br>
> > jeremiah wrote:<br>
> > > When I typed python on the command line it drops my into the<br>
> python<br>
> > > interpreter.<br>
> > ><br>
> > > Regardless, I went ahead and specified it in the command:<br>
> > ><br>
> > ><br>
> ><br>
> command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py<br>
> > ><br>
> > > now when i run the check_nrpe command from the server I get "could<br>
> > not<br>
> > > run command".<br>
> > ><br>
> > > $ sudo /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
> > > loadscript_check_error_log<br>
> > ><br>
> > > Could not run command<br>
> > ><br>
> > > Thoughts?<br>
> ><br>
> > Can the user under which the NRPE daemon runs access and execute<br>
> > /home/jesterj/report_loadscript_error_log.py ?<br>
> ><br>
> > --<br>
> > Mathieu<br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
> Disclaimer: The information contained in this transmission, including<br>
> any<br>
> attachments, may contain confidential information of Panasonic<br>
> Avionics<br>
> Corporation. This transmission is intended only for the use of the<br>
> addressee(s) listed above. Unauthorized review, dissemination or<br>
> other use<br>
> of the information contained in this transmission is strictly<br>
> prohibited.<br>
> If you have received this transmission in error or have reason to<br>
> believe<br>
> you are not authorized to receive it, please notify the sender by<br>
> return<br>
> email and promptly delete the transmission.<br>
><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great<br>
> prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the<br>
> world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 18<br>
Date: Fri, 31 Oct 2008 18:41:02 -0400<br>
From: Mathieu Gagn? <<a href="mailto:mgagne@iweb.com">mgagne@iweb.com</a>><br>
Subject: Re: [Nagios-users] nrpe script<br>
To: <a href="mailto:jeremiah.jester@panasonic.aero">jeremiah.jester@panasonic.aero</a><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <<a href="mailto:490B897E.4030109@iweb.com">490B897E.4030109@iweb.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Hi,<br>
<br>
jeremiah wrote:<br>
> i check the manual and this is what it says about this particular error:<br>
><br>
> On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote:<br>
>> I just chown'd the file for nagios.<br>
>><br>
>> $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py<br>
>><br>
>> $ ls -la *.py<br>
>> -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55<br>
>> report_loadscript_error_log.py<br>
>><br>
>> I'm now getting a different error after i fixed the path issue.<br>
>><br>
>> $ /usr/lib/nagios/plugins/check_nrpe -H <a href="http://10.10.10.45" target="_blank">10.10.10.45</a> -c<br>
>> loadscript_check_error_log<br>
>> NRPE: Unable to read output<br>
>><br>
>> Thoughts?<br>
<br>
"/home/jesterj/" is probably chowned to 700 anyway so the NRPE daemon<br>
won't be able to access and execute it anyway.<br>
<br>
Try running it manually with sudo to see the actual result:<br>
sudo -u nagios /usr/local/bin/python<br>
/home/jesterj/report_loadscript_error_log.py<br>
<br>
Also, you should copy your script in a more appropriate location such as<br>
/usr/local/bin or even /usr/lib/nagios/plugins if you have installed<br>
Nagios on a Debian or Ubuntu server.<br>
<br>
You can also try to start NRPE with "debug=1":<br>
<br>
"How to go about debugging other problems...<br>
<br>
When debugging problems it may be useful to edit the NRPE configuration<br>
file and change the debug=0 entry to debug=1. Once you do that, restart<br>
the NRPE daemon if it is running as a standalone daemon. After you try<br>
using the check_nrpe plugin again, you should be able to see some<br>
debugging information in the log files of the remote host. Check your<br>
logs carefully ? they should be able to help provide clues as to where<br>
the problem lies..."<br>
<br>
Ref.: <a href="http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf" target="_blank">http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf</a><br>
<br>
<br>
--<br>
Mathieu<br>
<br>
<br>
<br>
------------------------------<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
<br>
<br>
End of Nagios-users Digest, Vol 29, Issue 34<br>
********************************************<br>
</blockquote></div><br>