check_citrix help - Part III.

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Fri Sep 17 04:28:50 CEST 2004


Dear Ladies and Gentlemen,

I am writing to correct my _wrong_ advice about wrapping the 
check_citrix plugin to assist in debugging this problem.

Here is a tested plugin wrapper


#!/bin/sh

# duplicate stdout onto a file opened in append mode

output=`/usr/local/nagios/libexec/check_cit_wrapped $@ 2>&1`
status=$?
echo "'/usr/local/nagios/libexec/check_cit_wrapped $@' ran at `date`"   
>> /tmp/check_citrix_debug.out
echo         >> /tmp/check_citrix_debug.out
echo $output >> /tmp/check_citrix_debug.out
echo         >> /tmp/check_citrix_debug.out
echo "/usr/local/nagios/libexec/check_cit_wrapped exited with status: 
$status"  >> /tmp/check_citrix_debug.out
echo $output
exit $status



Change the file-names/paths to suit (my check_citrix plugin is called 
check_cit by nagios; I have renamed the plugin file to 
check_cit_wrapped and this shell script is named 'check_cit')

The output in /tmp/check_citrix_debug.out looks like

tsitc# cat /tmp/check_citrix_debug.out 
'/usr/local/nagios/libexec/check_cit_wrapped -C metaframe -P Desktop' 
ran at Fri Sep 17 12:15:37 EST 2004

Ok. Citrix master browser "10.0.100.23" reported that the published 
application "Desktop" is available.

/usr/local/nagios/libexec/check_cit_wrapped exited with status: 0
'/usr/local/nagios/libexec/check_cit_wrapped -C metaframe -P Desktop' 
ran at Fri Sep 17 12:16:54 EST 2004

Ok. Citrix master browser "10.0.100.23" reported that the published 
application "Desktop" is available.

/usr/local/nagios/libexec/check_cit_wrapped exited with status: 0
'/usr/local/nagios/libexec/check_cit_wrapped -C metaframe -P Desktop' 
ran at Fri Sep 17 12:19:09 EST 2004

Ok. Citrix master browser "10.0.100.23" reported that the published 
application "Desktop" is available.

/usr/local/nagios/libexec/check_cit_wrapped exited with status: 0
'/usr/local/nagios/libexec/check_cit_wrapped -C metaframe -P Desktop' 
ran at Fri Sep 17 12:24:09 EST 2004

Ok. Citrix master browser "10.0.100.23" reported that the published 
application "Desktop" is available.

/usr/local/nagios/libexec/check_cit_wrapped exited with status: 0
tsitc# 


If you add the -d debug switch the output will look funny but should 
return the same status as the plugin would normally detect.

Sorry to waste your time with stupid suggestions.

Yours sincerely. 

-- 
Stanley Hopcroft



TROUBLE
(Words and Music by Bob Dylan)

Trouble in the city, trouble in the farm,
You got your rabbit's foot, you got your good-luck charm.
But they can't help you none when there's trouble.

Trouble,
Trouble, trouble, trouble,
Nothin' but trouble.

Trouble in the water, trouble in the air,
Go all the way to the other side of the world, you'll find trouble there.
Revolution even ain't no solution for trouble.

Trouble,
Trouble, trouble, trouble,
Nothin' but trouble.

Drought and starvation, packaging of the soul,
Persecution, execution, governments out of control.
You can see the writing on the wall inviting trouble.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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