script execution
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
script execution
Hi,
I wrote shell script which is using chck_http .How to execute that shell script using nagios i.e in command configuration. what output will be shown in nagios webUI?
I wrote shell script which is using chck_http .How to execute that shell script using nagios i.e in command configuration. what output will be shown in nagios webUI?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: script execution
Is this related to your json thread? If so please continue posting in there, so we know it is the same issue. If not, let us know and we can try to help out.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: script execution
No, its not related to JSON thread.. I have script, need to execute this script as one of the service for which I need to define in command/service configuration.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: script execution
OK, can you give us an example of how you would run the command from the command line please.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: script execution
I would like to run this command ./tmp/script.sh
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: script execution
I think sreinhardt is asking if you can run the script and show the output you are returning, and what you are expecting to return.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: script execution
No its not wokring for me.
if I use ./tmp/script.sh in command line its wokring fine. I want to execute the same line using nagios command and service configuration.
if I use ./tmp/script.sh in command line its wokring fine. I want to execute the same line using nagios command and service configuration.
Re: script execution
Can you show us an example?if I use ./tmp/script.sh in command line its working fine.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: script execution
This is the example
./tmp/script.sh
./tmp/script.sh
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: script execution
can you show the output from running the following commands
Code: Select all
pwd
ls -la ./tmp/script.sh