Anyone using "check_citrix" with Nagios? Help.

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Jul 22 09:25:38 CEST 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Tue, Jul 20, 2004 at 08:20:37PM -0700, nagios-users-request at lists.sourceforge.net wrote:
> 
> Message: 2
> From: "Kevin Burks" <burkskw at hotmail.com>
> Date: Tue, 20 Jul 2004 14:55:00 -0500
> Subject: [Nagios-users] Anyone using "check_citrix" with Nagios? Help.
> 
> $USER$/check_citrix -C $HOSTADDRESS$ -P published1
>

Looks Ok.

Here's mine - should be no different in effect - 

command_name    check_cit
command_line    $USER1$/check_cit -C $ARG1$ -P $ARG2$

 
> >From command window on the Nagios host this returns:
> 
> "Ok. Citrix master browser "10.20.xx.xx" reported that
> the published application "published1" is available."
> 
> But when the command above is exectuded by Nagios it
> returns a "Warning - (No output).
>

No output! (see base/checks.c) is what Nagios sets the plugin output to 
when it reads _nothing_ from the file handle connected to the plugin 
process stdout.

In other words, the plugin has written nothing to stdout because it 
abended or failed to handle what it received.

You can shed some light on the matter by, when you ask for help

1 reporting OS (name and version)

2 reporting plugin version

as the footer of each mail in the archives or on the lists asks for

(> 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
> 
)

3 If you understand and can live with the consequences of this 
modification to your setup, the results when you

3.1 rename your check_citrix plugin to something like 
check_citrix_WRAPPED

3.2 create a script called check_citrix containing something like

pc09011> cat x
#!/bin/sh

exec > BAD_PLUGIN_whining 2>&1

# perl -e 'my $x = 4; print $x/0, "\n"' 

_path_to_nagios_/libexec/check_citrix_WRAPPED $@

# BAD_PLUGIN_whining is the name of a file in a path writable by
# Nag. It will contain any output - including compiler warnings
# to stdout.

Wraning ! I haven't tried this with my Nag setup. It will probably 
behave no worse than what you have at the moment, but YMMV.
 
> Hopefully I am just not doing something very simple.
> Any help would be appreciated, I would like to be able to
> monitor my Citrix boxes more completely.
>

Change file modes and install in _path_to_nagios_/libexec/.

Check_citrix was conceived for pre Citrix Metaframe /XP. There is some 
doubt as to whether the ICA browse service is required for Metaframe 
/XP.

 
> Thanks.
> 
>

You may also want to repeat the above with the -d option.

This should show the network activity like 

tsitc> /usr/local/nagios/libexec/check_cit -C metaframe -P metaframe -d
Sending helo datagram. datagram number: 1
Querying metaframe for master browser
0000  20 00 01 30 02 fd a8 e3 00 00 00 00 00 00 00 00   ..0............
0010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

metaframe.aipo.gov.au:1604 responded with: 48 bytes
0000  30 00 01 31 02 fd a8 e3 02 00 06 44 0a 00 64 17  0..1.......D..d.
0010  00 00 00 00 00 00 00 00 00 00 00 00 02 00 06 44  ...............D
0020  0a 00 64 17 00 00 00 00 00 00 00 00 00 00 00 00  ..d.............

Master browser = 10.0.100.23
using directed query
Querying master browser for published application list
Sending application query datagram.  datagram number: 1
0000  2c 00 02 32 02 fd a8 e3 00 00 00 00 00 00 00 00  ,..2............
0010  00 00 00 00 00 00 00 00 00 00 00 00 21 00 02 00  ............!...
0020  01 00 00 00 00 00 00 00 00 00 00 00              ............

metaframe.aipo.gov.au:1604 responded to app query with: 86 bytes
0000  56 00 04 33 02 fd a8 e3 02 00 06 44 0a 00 64 17  V..3.......D..d.
0010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00  ................
0020  03 00 28 00 01 00 00 00 44 00 65 00 73 00 6b 00  ..(.....D.e.s.k.
0030  74 00 6f 00 70 00 00 00 4f 00 4c 00 44 00 44 00  t.o.p...O.L.D.D.
0040  65 00 73 00 6b 00 00 00 4f 00 6c 00 64 00 54 00  e.s.k...O.l.d.T.
0050  6f 00 70 00 00 00                                o.p...

Received list of applications: "Desktop,OLDDesk,OldTop".
Failed. "metaframe" not found in list of published applications 
"Desktop,OLDDesk,OldTop" from master browser "10.0.100.23".


Yours sincerely.

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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