LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2014, 02:08 AM   #1
mhdayman
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Rep: Reputation: Disabled
linux piranha lvs


linux piranha lvs
why the send program (MONITOR SCRIPTING) in piranha LVS not working although the script is working normal by command, my script for https ,and i put "OK" for expect and "FAIL" if the services not avaliable ..
 
Old 10-24-2014, 02:16 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
Do you see any error message in log?
 
Old 10-24-2014, 05:36 PM   #3
mhdayman
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
no i don't see any error.. are you made script file and tried it in piranha ???the script is work with you or not >>??
 
Old 10-27-2014, 03:21 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
The piranha is application on Linux. What's your Linux distribution? The script is work for my Linux, Fedora.
 
Old 10-28-2014, 04:47 AM   #5
mhdayman
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
i'm using centos 6.5 this is my script:


#!/bin/bash
if [ $# -eq 0 ]; then
echo "host not specified"
exit 1
fi
curl --cert /etc/pki/tls/certs/a357b_7a311_1435017599_fb3303dae51a37d06c9159ea0f29565a.crt --key /etc/pki/tls/private/a357b_7a311_2329e577802b4f653afdaebdbeb582a5.key https://${1}:443 | grep "w3" &> /dev/null
if [ $? -eq 0 ]; then
echo "Ok"
else
echo "FAIL"
fi



the script is work normal


and i wrote in monitoring script in piranha "/etc/sysconfig/ha/mon_https.sh %h" and expect "Ok" and nothing work...

i change permission of file to 777 the same problem...
 
Old 10-28-2014, 02:20 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
You move script to /etc/sysconfig/ha directory. Do you know who call the script? Is it from bash shell? Your script is bash script.
 
Old 10-28-2014, 04:25 PM   #7
mhdayman
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
not necessary to know who call file because i put permisiion 777 so any user can excute it....
and i changed path the same problem .....

the bash shell is the best and sh script is symbolic link from bash so i think no problem to piranha and i test it the same problem ....
 
Old 10-29-2014, 02:41 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
If caller doesn't use bash shell, such as using tcsh shell, the shell don't understand the bash script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux piranha lvs mhdayman Linux - Server 0 10-19-2014 01:45 AM
Stuck trying to use Piranha and LVS TheGorf Linux - Networking 2 04-18-2013 04:25 AM
Piranha-LVS Configuration on CentOS 5.6 Questions goherdibg Linux - Networking 0 03-12-2012 02:14 PM
Piranha-LVS loadbalancing problem sanjee Linux - Server 2 06-09-2011 01:20 PM
Piranha LVS/TUN support OR alternative web interface for configuring LVS ajitabhpandey Red Hat 0 05-18-2009 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration