Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have written a small plugin to check vidispine realm authorisation using the wget command as follows .
#!/bin/sh
WGET=/usr/bin/wget
URL=http://localhost:8080/API/version
$WGET --user=admin --password=admin123 $URL 2> /dev/null
if [ $? = "0" ]; then
rm -rf version; echo "Vidispine realm ok" ; exit 0
else
rm -rf version; echo "Vidispine realm not working" ;exit 1
fi
if I run this script in remote server(192.168.0.237 ), working fine
#/usr/local/nagios/libexec/check_vidispinerealm Vidispine realm ok
but when I am trying the same script using check nrpe from nagios server ,it is giving wrong value
Nagios-server#/usr/local/nagios/libexec/check_nrpe -H 192.168.0.237 -c check_vidispinerealm Vidispine realm not working
Note :On 192.168.0.237 ,I have copied to script to /usr/local/nagios/libexec folder ,given execute permission to nagios user and added the entry in nrpe.cfg
Any help will be highly appreciable .
Thanks in advance
Thanks for reply . I will try with curl and get back you . To fix immediately , I have used check_http -a .
Hi sag47,
Thanks a ton for reply .The problem was , while using wget ,it used to download one file called version .Since no permission was set to the existing folder ,it was giving wrong output .In my plugin script , I have added extra line i.e.
cd /usr/local/nagios
Now it is working fine .Thanks for pointing out this .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.