nrpe script
jeremiah
jeremiah.jester at panasonic.aero
Fri Oct 31 22:38:25 CET 2008
When I typed python on the command line it drops my into the python
interpreter.
Regardless, I went ahead and specified it in the command:
command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py
now when i run the check_nrpe command from the server I get "could not
run command".
$ sudo /usr/lib/nagios/plugins/check_nrpe -H 10.10.10.45 -c
loadscript_check_error_log
Could not run command
Thoughts?
Thanks,
JJ
On Fri, 2008-10-31 at 14:25 -0700, Valdinger, Stephen (DOV, MSX) wrote:
> Is python in the path on the particular server? Try
> using /path/to/python and see if you have success.
>
>
> Stephen Valdinger
> MIS Helpdesk Coordinator
> P: 330.365.3622
> C: 740.491.0958
>
>
> -----Original Message-----
> From: jeremiah
> To: Nagios
> Sent: Fri Oct 31 17:21:07 2008
> Subject: [Nagios-users] nrpe script
>
> Hi folks,
>
> I have another question for you all that i haven't been able to
> resolve.
>
> I want to run a python script on my monitored hosts using the nrpe
> command.
>
> On my server I am running the following command:
>
> # /usr/lib/nagios/plugins/check_nrpe -H 10.10.10.45 -c
> loadscript_check_error_log
>
> Every time i run the command above then i get the following error:
>
> "NRPE: Command 'loadscript_check_error_log' not defined
>
> On my monitored hosts, I've specified the corellary command
> in /etc/nagios/nrpe.cfg, then restarted the service.
>
> # command[loadscript_check_error_log]=python /home/username/script.py
>
> Am I missing something? Does the command[loadscript_check_error_log]
> actually have to be a valid plugin in the plugins directory or am I
> defining the action of running the script in this file?
>
> Note: This is the only command in my config that is not working for me
> so unlikely a service issue but rather something wrong with my config.
>
> Thanks!
>
> JJ
>
>
>
> Disclaimer: The information contained in this transmission, including
> any
> attachments, may contain confidential information of Panasonic
> Avionics
> Corporation. This transmission is intended only for the use of the
> addressee(s) listed above. Unauthorized review, dissemination or
> other use
> of the information contained in this transmission is strictly
> prohibited.
> If you have received this transmission in error or have reason to
> believe
> you are not authorized to receive it, please notify the sender by
> return
> email and promptly delete the transmission.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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