check_citrix help part II (Solution)

Dale Hobbs dhobbs at chancery.com
Fri Sep 17 23:53:00 CEST 2004


Ok so using a wrapper file help some. If you were to run
/etc/local/nagios/libexec/check_citrix with no options you would get the
following output

Can't locate utils.pm in @INC (@INC contains: /etc/perl
/usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.4/i686-linux
/usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.2/i686-linux
/usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2/i686-linux
/usr/lib/perl5/site_perl/5.8.2 .) at libexec/check_citrix line 33.
BEGIN failed--compilation aborted at libexec/check_citrix line 33.


Basically what this means is that Nagios is trying to run the
check_citrix command from it's working directory but perl is looking for
the utils.pm file in one of the directory's listed in the error above.
So if you move the utils.pm file to any directory listed in the error
(we moved it to /etc/perl, the directory didn't exist so we created it)
then Nagios should successfully run the plugin.




-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stanley
Hopcroft
Sent: Thursday, September 16, 2004 3:55 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_citrix help part II

Dear Folks,

Both _Dale_ Hobbs and stilleto are having problems with check_citrix.

Some more hopfully helpful advice

1 The old favourite problem with Perl plugins - can't find utils.pm

Try the plugin from the CLI logged in as the Nagios user

Works ?

Yes ==> 

  Nothing

No  ==>

  utils.pm probably in a directory unreadable by Nag. Copy it into 
  a Perl include path or add a 'use libs' statement to the plugin text.

  Write me if you need advice.

2 Make sure you have a -B or -C option specified in your check_commands

  If the master browser is not on the same VLAN as the Nag server, you 
  must use -C <address_of_master_browser>.

  These options are probably non-standard; sorry. Also, te plugin 
  may be doing something disgsuting like writing to STDERR ...

Still no go ?

3 Wrap the plugin (see last letter) and send me the results.

3.1 As above but add a -d option to the wrapper (ie

exec <path_to_nag>/wrapped_plugin_name "-d $@"

You should get something like

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



WHEN YOU GONNA WAKE UP?
1979 Special Rider Music

God don't make no promises that He don't keep.
You got some big dreams, baby, but in order to dream you gotta still be
asleep.

When you gonna wake up, when you gonna wake up
When you gonna wake up and strengthen the things that remain?

Counterfeit philosophies have polluted all of your thoughts.
Karl Marx has got ya by the throat, Henry Kissinger's got you tied up in
knots.

When you gonna wake up, when you gonna wake up
When you gonna wake up and strengthen the things that remain?

You got innocent men in jail, your insane asylums are filled,
You got unrighteous doctors dealing drugs that'll never cure your ills.

When you gonna wake up, when you gonna wake up
When you gonna wake up and strengthen the things that remain?



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


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