[Nagios-users] Custom Object Variables in CGI's ?

2009-03-18 Thread Matthias Haider

Hi,

i would like to use Custom Object Variables, but found only examples  
to use them in plugins, eventhandlers etc..
Is it possible to use them in the standard nagios cgi-s and make them  
visible in the nagios web interface?


br,
Matthias



smime.p7s
Description: S/MIME cryptographic signature
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] blank perfdata: not parsing macros

2009-03-18 Thread Jim Avery
2009/3/17 M P r...@eyesopen.org:
 Hi,

 I have nagios3 running (installed via apt-get on Debian). Everything worked
 pretty well until I tried to add graphing support.

 As described in numerous how-tos, I added the following to nagios.cfg:
 ...

What kind of graphing support are you trying to add?  There are
various kinds including Nagiosgrapher and PNP.

Don't forget that if the plugin doesn't produce any performance data,
there will be nothing to graph!  Check the service detail screen for
the service you're interested in and check that there is some
performance data there.

I'd recommend installing Nagios using the standard instructions rather
than from the repositories.  You'll learn more about how it works that
way, and will find installation of various add-ons much easier than
battling with whatever directory layout whoever built the packages
decided on.

Cheers,

Jim.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Problems with nrpe and nagios 3

2009-03-18 Thread Dunn, Larry
Good morning group!
 
I am still relatively new to nagios and trying to implement nrpe with
nagios 3 at my site.  I believe I have everything setup correctly on
both the nagios server and the client.  When I try to use check_nrpe to
run a script on the client side I am getting the error:
 
nrpe[]: Error: Request packet had invalid CRC32.
nrpe[]: Client request was invalid, bailing out...
 
I am running the nagios server on solaris 9 and the client is running
Redhat Linux WS 3 update 6. The version of check_nrpe is 1.9 but the
version of nrpe is 2.12.  I have the system setup to execute the nrpe
daemon through xinetd on the linux client.
 
The server_args line in the nrpe startup file under /etc/xinetd.d has
the following arguments listed per a suggested issue on the internet
asking to redirect standard error to /dev/null:
 
server_args= -n -c path_to_nagios/etc/nrpe.cfg --inetd 21
/dev/null
 
Also my only_from config is setup to allow the client to receive
requests from the nagios server only.
 
only_from   = ipaddress_of_nagios_server
 
 
Any help or suggestions are appreciated.
 
 
 
Larry
bechtel_logo_small.jpgbettis_white.jpg--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] monitoring remote networks

2009-03-18 Thread Mark Weaver
Hi All,

I'm running Nagios 3 on a CentOS 4.7 server. I've got it monitoring 
other windows and linux servers on the LAN as well as all the Windows 
Desktops, both XP Pro and Vista. All runs very well, however now I've 
got to take the next step:

How do I use this same Nagios server to monitor remote client networks 
using the NSClient?

thanks,

Mark

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] monitoring remote networks

2009-03-18 Thread Marc Powell

On Mar 18, 2009, at 6:29 AM, Mark Weaver wrote:

 Hi All,

 I'm running Nagios 3 on a CentOS 4.7 server. I've got it monitoring
 other windows and linux servers on the LAN as well as all the Windows
 Desktops, both XP Pro and Vista. All runs very well, however now I've
 got to take the next step:

 How do I use this same Nagios server to monitor remote client networks
 using the NSClient?


It shouldn't be any different than the windows monitoring you're  
presumably doing now with nsclient on your LAN (did you end up using  
that?) Across your LAN or across the world, it's all the same to  
nagios presuming there's network connectivity between the two.

Is there a particular or special issue you have to deal with in that  
case?

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] delay notifications on passive checked services

2009-03-18 Thread Marc Powell

On Mar 18, 2009, at 5:46 AM, Jaime Ventura wrote:

 With active checks its possible to specific a how many checks are made
 before sending a notification. But im using passive checks.

 Is there any way to do it?

The capability is the same between active and passive checks, just  
make sure you have your max_check_attempts where you want it. I'm  
going to guess that you have 'is_volatile' enabled though, which  
causes nagios to send an alert for every non-OK check it receives for  
that service. You'll need to disable that. The side effect is that  
you'll need to reset the service to an OK state before you'll receive  
further notifications.

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] monitoring remote networks

2009-03-18 Thread Jim Avery
2009/3/18 Mark Weaver mwea...@compinfosystems.com:
 Hi All,

 I'm running Nagios 3 on a CentOS 4.7 server. I've got it monitoring
 other windows and linux servers on the LAN as well as all the Windows
 Desktops, both XP Pro and Vista. All runs very well, however now I've
 got to take the next step:

 How do I use this same Nagios server to monitor remote client networks
 using the NSClient?

 thanks,

 Mark


Put simply, you monitor the remote systems in exactly the same way as
you already monitor your local ones.  I suggest you might also like to
monitor the routers and switches which connect your remote sites to
your local lan and set up the parent relationships appropriately too.

Somehow I'm not sure I understand what you're getting at though.  Is
there something which is stopping you from simply doing this?  If it's
a firewall in the way for example, you'll need to enable whichever
port numbers you're using to communiicate with NSClient.  By default,
NSClient uses port 1248. If you're using NSClient++ it uses port 12489
by default for NSClient connections and 5666 for nrpe.

I'm not convinced Nagios is entirely suitable for monitoring ordinary
desktop PCs, as people will usually turn them off and on whenever they
like.  There may be some value in receiving SNMP traps from them
though and it might be useful to use it to test they have virus
checker up-to-date and working.  No doubt someone here will come back
with some other reasons to convince me otherwise too.

Cheers,

Jim

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] service dependency and escalations

2009-03-18 Thread Chris Beattie
Lori Adams wrote:
 We are still running nagios 2.x.

I appropriated a spare desktop PC and practiced the upgrade there first. 
  There were a few changes in the nagios.cfg file that I needed to make, 
but it was relatively painless.

 Is it possible to specify a  servicedependency and/or a service 
 escalation within a service definition?

I don't think so, but that's how I do things with host groups and 
service groups.  I have the dependencies and escalations defined in 
separate config files, but wildcards let me have one service escalation 
definition, one host escalation definition, and one service dependency 
definition.

 For the dependencies:
 
 I run into the situation that a service is dependent on another service 
 on the same host.  Even though this host is in a hostgroup, I can’t use 
 the hostgroup to specify the dependencies.
 
 This makes the configs very messy and not easily templatizable.
 
 Is something like this possible for the 3.x series?

I'm running 3.10 right now, and you can put a hostgroup in the 
dependency definition.

I have hundreds of Windows servers monitored.  Occasionally, the agent 
gets starved for resources during backups or otherwise clobbered.  That 
used to cause a slew of notifications, since none of the checks worked, 
but the host could still be pinged.

I set up a service dependency so all the services defined for the 
Windows hosts are dependent on a check of the client's version number. 
The client version is checked more often than the rest of the services. 
  There isn't a threshold: if it's not OK, the client needs to be fixed:

define servicedependency {
hostgroup_name  dev_windows_servers,windows_servers
service_description Client Version
dependent_service_description   *,!Client Version
execution_failure_criteria  w,c
notification_failure_criteria   w,c
}

I use a wildcard to get all the services on the host, but since Client 
Version is also one of the services assigned to the 
(dev_)windows_servers hostgroup, I had to add the !Client Version 
exception.  That's the entire contents of my servicedependencies.cfg 
file, though.

For the sake of completeness, here is how I defined the escalations I 
needed:

define serviceescalation {
hostgroup_name  windows_servers,Agentless_Checks
service_description *
contact_groups  +nogmgr
first_notification  3
last_notification   0
}

define hostescalation {
host_name   *
contact_groups  +nogmgr
first_notification  3
last_notification   0
}

-- 
Chris Beattie

Nothing in this message is intended to make or accept and offer or to form a 
contract, except that an attachment that is an image of a contract bearing the 
signature of an officer of our company may be or become a contract. This 
message (including any attachments) is intended only for the use of the 
individual or entity to whom it is addressed. It may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product. If 
you are not the intended recipient, we hereby notify you that any use, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this message in error, please notify us immediately by 
telephone and delete this message immediately.

Thank you.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] monitoring remote networks

2009-03-18 Thread Kevin Keane
Mark Weaver wrote:
 How do I use this same Nagios server to monitor remote client networks 
 using the NSClient?
   
As others have already pointed out, fundamentally, it doesn't matter 
whether the client is on the same network segment, or behind a router.

However, in reality, when you are talking about a remote network, most 
of the time you are actually talking about a network that has one or 
more firewalls in front of them. Very often, you have a firewall from 
your local network to the Internet, and a second firewall from the 
Internet to the remote network. And firewalls indeed will interfere with 
with Nagios. Severely.

There are several options for dealing with that:
- Establish a VPN between the local and the remote network. Obviously, 
you can only do that when the two networks completely trust each other. 
Also, if you have several remote networks connecting that way, you may 
inadvertently open security holes between two remote networks.
- Establish an SSH tunnel that just forwards the NRPE requests from the 
local to the remote client. Requires that the remote client trusts you 
enough to establish an SSH connection. Also requires that you have a way 
to monitor the tunnel, and reestablish it if it goes down.
- Open the appropriate ports on the firewalls to allow NRPE traffic 
through. You don't want to do that - monitoring information can be quite 
sensitive, and you don't want it traveling over the Internet in plain text.

There may be more ways to deal with the firewall problem.

The way I solved it is by writing a wrapper around NSClient++ that uses 
NSCA (i.e., passive checks) instead of NRPE, and then wraps the NSCA 
packages in HTTPS. It's primarily for my own in-house use (which is why 
the documentation leaves to be desired), but it is an open source 
project on SourceForge; look for the project name tntmonitoring.

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Problems with nrpe and nagios 3

2009-03-18 Thread Andreas Ericsson
Dunn, Larry wrote:
 Good morning group!
  
 I am still relatively new to nagios and trying to implement nrpe with
 nagios 3 at my site.  I believe I have everything setup correctly on
 both the nagios server and the client.  When I try to use check_nrpe to
 run a script on the client side I am getting the error:
  
 nrpe[]: Error: Request packet had invalid CRC32.
 nrpe[]: Client request was invalid, bailing out...
  
 I am running the nagios server on solaris 9 and the client is running
 Redhat Linux WS 3 update 6. The version of check_nrpe is 1.9 but the
 version of nrpe is 2.12.  I have the system setup to execute the nrpe
 daemon through xinetd on the linux client.
  

That doesn't work. The nrpe protocol changed between 1.x and 2.x, so
you need to make sure you're using the same (major) version of nrpe
on both ends of the connection.

I faintly remember having to make some modifications to (check_)nrpe
2.x for it to compile cleanly on solaris, although I think that was
an older version of it than yours. If you run into similar problems,
poke me and I'll see if I can find the modified sources somewhere.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Make nagios3 log successful tests

2009-03-18 Thread Andreas Ericsson
Kelly Jones wrote:
 When a nagios3 host/service test fails, nagios.log has something like this:
 
 SERVICE ALERT: host;service;CRITICAL;SOFT;5;text of some sort
 
 How do I make nagios3 log *successful* tests as well?
 
 One reason: I want to keep perfdata long-term *even if* I don't want
 to process it right away.
 
 Another reason: I want to insure that nagios is running its tests as
 scheduled.
 
 I'm pretty sure I got nagios2 to do this. Thoughts?
 
 Do I have to pretend I'm going to process the perfdata to make nagios log 
 this?
 

Read the manuals and look for stalking_options.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] NRPE return values

2009-03-18 Thread Assaf Flatto

Hello List 

I am trying to write a plugin to count the number of connection of a specific 
type on a port .
I wrote the script that gives me the output i require and running the script on 
the machine i need it it works well .

The problem is when i am trying to execute the script via NPRE , i added the 
command and params to the nrpe.cfg and run the test , and the result returning 
to the nagios server is always a numeric  0 , when i put a text string  it 
returns the string no problem , but when i try to add a number from a variable 
, it shows only 0 .

actuall script line :

if [ $1 = 2598 ]; then
W=`lsof -Pn -i | grep squid | grep ESTABLISHED | grep -v 127.0.0.1 | 
grep 2598 | wc -l`
echo Number of connections is $W
exit 0
fi

from the messages log :
Running command: /usr/lib/nagios/plugins/check_squid_citrix.sh 2598
Mar 18 14:18:46  host nrpe[3869]: Command completed with return code 3 and 
output: Number of connections is 0

running from the nagios server: 

../libexec/check_nrpe -H X.X.X.X -c check_2598
Number of connections is 0

Manual execution on tartget server: 
sh -x  /usr/lib/nagios/plugins/check_squid_citrix.sh 2598
+ '[' 2598 = 1494 ']'
+ '[' 2598 = 2598 ']'
++ lsof -Pn -i
++ grep squid
++ grep ESTABLISHED
++ grep -v 127.0.0.1
++ grep 2598
++ wc -l
+ W=83
+ echo 'Number of connections is 83'
Number of connections is 83
+ exit 0

Any ideas why i am only getting the  0 output ?

-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE






IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] blank perfdata: not parsing macros

2009-03-18 Thread M P

On 18-Mar-09, at 5:06 AM, Jim Avery wrote:

 2009/3/17 M P:
 Hi,

 I have nagios3 running (installed via apt-get on Debian).  
 Everything worked
 pretty well until I tried to add graphing support.

 As described in numerous how-tos, I added the following to  
 nagios.cfg:
 ...

 What kind of graphing support are you trying to add?  There are
 various kinds including Nagiosgrapher and PNP.

 Don't forget that if the plugin doesn't produce any performance data,
 there will be nothing to graph!  Check the service detail screen for
 the service you're interested in and check that there is some
 performance data there.
 ...
 Cheers,

 Jim.

Thanks for the reply.

I am trying to add support for Nagiosgrapher. So far it does not pick  
up any information - not surprisingly since the files are blank.

The plugins do show performance data on the detail screen, so that  
part must be working: they are actually producing it.

It looks like I am missing something very basic. It's as if the  
context is lost when it tries to execute the process-service-perfdata  
command. Most macros do not get parsed, although $USER1$ as well as  
$ARG1$ and so on get recognized.

Looking at http://nagios.sourceforge.net/docs/3_0/macrolist.html it  
appears that a number of macros are supported for Service Perf Data,  
but that's not the behaviour I see.


Other than compiling from source, any other tips?


Thanks,


M

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] RESEND: orphaned check, no check results posted, no macro expand: solaris 10, new install]

2009-03-18 Thread David Dozier
All,

Should I be seeing the following lack of macro expansion in nagios.debug?

In nagios.debug:

[] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% 
-c 5000.0,100% -p 5
[] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -w 
3000.0,80% -c 5000.0,100% -p 5

[] Finished reaping 0 check results


In nagios.log:
==
Warning: The check of host 'localhost' looks like it was orphaned (results 
never came back).  I'm scheduling an immediate c
heck of the host...



Nagios 3.0.8
Plugins 1.4.13
Solaris 10 10/08

Fresh, first install of Nagios from source, using documentation  Fedaora quick 
start guide


If this is not the correct forum for this type of question, kindly point me to 
the proper one.

Thanks,

EARLIER POST: 

I am having difficulty with a new 3.0.6 install on Solaris 10;  check 
results are not being posted to and/or successfully reaped from the temp 
file in var/spool/checkresults. No errors are

The plugins (eg, /usr/local/nagios/libexec/check_http) can be 
successfully launched manually, and return the expected results.

The checks are being scheduled  launched, for the hosts and services 
defined.  Most other aspects of the GUI seem as expected.  But no data 
is being reported to the Nagios web app.


To simplify debugging, I am looking only at localhost, as defined in the 
out-of-the-source objects/localhost.cfg
Debugging_level=2
Debuggins_output=16

In the debug fragment below,  Expanded Command Ouput is not expanded; 
the $USER1$, $HOSTADDRESS$ and other macros remain as literals. 

Is this an artifact of the debug logging?  Or might this be part of the 
problem?

A fragment from var/nagios.debug

[] ** Running async check of host 'localhost'...
[] Checking host 'localhost'...
[] Adjusting check attempt number for host 'localhost': current 
attempt=1/10, state=0, state type=1
[] New check attempt number = 1
[] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% 
-c 5000.0,100% -p 5

[] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -w 
3000.0,80% -c 5000.0,100% -p 5

[] Check result output will be written to 
'/opt/local/nagios-3.0.6/var/spool/checkresults/checkNraWhI' (fd=7)
[] Host check is executing in child process (pid=17909)
[] Starting to reap check results.
[] Starting to read check result queue 
'/opt/local/nagios-3.0.6/var/spool/checkresults'...
[] Finished reaping 0 check results


FYI: I set Debugging_output=256, and every  Expanded Command Output is 
not expanded, and every Reap check results yeilds 0 check results.

Any ideas?

Many thanks,
David









--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Nagios plugins compile errors on OS X 10.3 Server

2009-03-18 Thread Andrew Davis
I'm having some issues compiling Nagios (natively, not through MacPorts, 
etc) on two Mac servers. One is running 10.3, the other 10.4. Both are 
PPC. Neither can be updated to 10.5 due to third party s/w constraints.


On the 10.3 server, after running ./configure it seems to end okay, but 
I see the following when running make all:


   configure: creating ./config.status
   config.status: creating gl/Makefile
   config.status: creating Makefile
   config.status: creating lib/Makefile
   config.status: creating plugins/Makefile
   config.status: creating lib/tests/Makefile
   config.status: creating plugins-root/Makefile
   config.status: creating plugins-scripts/Makefile
   config.status: creating plugins-scripts/subst
   config.status: creating plugins-scripts/utils.pm
   config.status: creating plugins-scripts/utils.sh
   config.status: creating perlmods/Makefile
   config.status: creating command.cfg
   config.status: creating test.pl
   config.status: creating pkg/solaris/pkginfo
   config.status: creating po/Makefile.in
   config.status: creating config.h
   config.status: config.h is unchanged
   config.status: executing depfiles commands
   config.status: executing po-directories commands
   config.status: creating po/POTFILES
   config.status: creating po/Makefile
   --with-apt-get-command: /sw/bin/apt-get
 --with-ping6-command: /sbin/ping6 -n -c %d %s
  --with-ping-command: /sbin/ping -n -c %d %s
  --with-ipv6: yes
 --with-mysql: no
   --with-openssl: yes
--with-gnutls: no
  --enable-extra-opts: no
  --with-perl: /usr/bin/perl
--enable-perl-modules: no
--with-cgiurl: /nagios/cgi-bin
  --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin

   /usr/local/src/nagios-plugins-1.4.13 root# make all
   cd .  /bin/sh
   /usr/local/src/nagios-plugins-1.4.13/build-aux/missing --run autoheader
   configure.in:3: error: Autoconf version 2.59 or higher is required
   configure.in:3: the top level
   autom4te: /usr/bin/gm4 failed with exit status: 1
   autoheader: /usr/bin/autom4te failed with exit status: 1
   make: *** [config.h.in] Error 1


Obviously it would seem that I might need a newer version of Autoconf? 
Any thoughts on a workaround or where I can get autoconf 2.59 or higher 
for OS X 10.3 Server?


--


 A. Davis
 Email: ncc...@gmail.com

 There is no limit to what a man can accomplish
  if he doesn't care who gets the credit. - Ronald Reagan

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] NRPE return values

2009-03-18 Thread Assaf Flatto

The sudo was in place - but silly me - i forgot that the sudoers file has a 
specific list of 
commands that the nagios user have sudo permissions to run .

Adding the new script to the file did solve the issue.

But thank you for reminding me this slight oversight .

Assaf


On Wednesday 18 March 2009 14:56:11 you wrote:
 I am just guessing here, but is the command that works being run as
 root?  My guess is that the lsof command isn't working the same was as
 root when run by NRPE.  Try running the command as whatever users run
 NRPE and see if that makes any difference.
 --
 Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
 Email:slo...@ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444

 -Original Message-
 From: Assaf Flatto [mailto:assaf.fla...@ssp-intl.com]
 Sent: Wednesday, March 18, 2009 9:45 AM
 To: Nagios User list
 Subject: [Nagios-users] NRPE return values


 Hello List
 I am trying to write a plugin to count the number of connection of a
 specific type on a port .
 I wrote the script that gives me the output i require and running the
 script on the machine i need it it works well .
 The problem is when i am trying to execute the script via NPRE , i added
 the command and params to the nrpe.cfg and run the test , and the result
 returning to the nagios server is always a numeric 0 , when i put a
 text string it returns the string no problem , but when i try to add a
 number from a variable , it shows only 0 .
 actuall script line :
 if [ $1 = 2598 ]; then
 W=`lsof -Pn -i | grep squid | grep ESTABLISHED | grep -v 127.0.0.1 |
 grep 2598 | wc -l`
 echo Number of connections is $W
 exit 0
 fi
 from the messages log :
 Running command: /usr/lib/nagios/plugins/check_squid_citrix.sh 2598
 Mar 18 14:18:46 host nrpe[3869]: Command completed with return code 3
 and output: Number of connections is 0
 running from the nagios server:
 ../libexec/check_nrpe -H X.X.X.X -c check_2598
 Number of connections is 0
 Manual execution on tartget server:
 sh -x /usr/lib/nagios/plugins/check_squid_citrix.sh 2598
 + '[' 2598 = 1494 ']'
 + '[' 2598 = 2598 ']'
 ++ lsof -Pn -i
 ++ grep squid
 ++ grep ESTABLISHED
 ++ grep -v 127.0.0.1
 ++ grep 2598
 ++ wc -l
 + W=83
 + echo 'Number of connections is 83'
 Number of connections is 83
 + exit 0
 Any ideas why i am only getting the 0 output ?


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] NRPE return values

2009-03-18 Thread Marc Powell

On Mar 18, 2009, at 9:45 AM, Assaf Flatto wrote:
 if [ $1 = 2598 ]; then

 W=`lsof -Pn -i | grep squid | grep ESTABLISHED | grep -v 127.0.0.1 |  
 grep 2598 | wc -l`


A couple possible problems here...
- use full paths to every program (lsof, grep, wc). The environment  
available to the script when run by NRPE may not have the $PATH you  
expect.
- are you sure that lsof is returning results you expect when run by  
a non-root user? From my own testing, running '/usr/sbin/lsof -Pn -i'  
as root returns results but when run as a normal user, nothing is  
returned.
 echo Number of connections is $W

 exit 0

 fi


 from the messages log :

 Running command: /usr/lib/nagios/plugins/check_squid_citrix.sh 2598

 Mar 18 14:18:46 host nrpe[3869]: Command completed with return code  
 3 and output: Number of connections is 0


Your script is exiting with an exit code of 3. In the script above you  
always exit with a 0. Why the difference? Under what conditions does  
your script 'exit 3'?

 Manual execution on tartget server:

 sh -x /usr/lib/nagios/plugins/check_squid_citrix.sh 2598


As the NRPE user?

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] RESEND: orphaned check, no check results posted, no macro expand: solaris 10, new install]

2009-03-18 Thread Marc Powell

On Mar 18, 2009, at 10:02 AM, David Dozier wrote:

 All,

 Should I be seeing the following lack of macro expansion in  
 nagios.debug?

 In nagios.debug:
 
 [] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -w  
 3000.0,80%
 -c 5000.0,100% -p 5
 [] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -w
 3000.0,80% -c 5000.0,100% -p 5

 [] Finished reaping 0 check results

I don't use nagios-3 yet but I believe it might depend on the  
debug_verbosity without looking at the actual code. Here is an example  
where it was shown as expanded after the second loop through MACRO  
PROCESSING -- http://article.gmane.org/gmane.network.nagios.devel/4737

 FYI: I set Debugging_output=256, and every  Expanded Command  
 Output is
 not expanded, and every Reap check results yeilds 0 check results.

Did you mean debug_level? is debug_verbosity set to 2?

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Nagios plugins compile errors on OS X 10.3 Server

2009-03-18 Thread Andrew Davis
Disregard. I pulled down m4 and automake from the GNU site, compiled 
them and put /usr/local/bin into my path and all is fine.


 A. Davis
 Email: ncc...@gmail.com

 There is no limit to what a man can accomplish
  if he doesn't care who gets the credit. - Ronald Reagan



Andrew Davis wrote:
I'm having some issues compiling Nagios (natively, not through 
MacPorts, etc) on two Mac servers. One is running 10.3, the other 
10.4. Both are PPC. Neither can be updated to 10.5 due to third party 
s/w constraints.


On the 10.3 server, after running ./configure it seems to end okay, 
but I see the following when running make all:


configure: creating ./config.status
config.status: creating gl/Makefile
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating plugins/Makefile
config.status: creating lib/tests/Makefile
config.status: creating plugins-root/Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/subst
config.status: creating plugins-scripts/utils.pm
config.status: creating plugins-scripts/utils.sh
config.status: creating perlmods/Makefile
config.status: creating command.cfg
config.status: creating test.pl
config.status: creating pkg/solaris/pkginfo
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
--with-apt-get-command: /sw/bin/apt-get
  --with-ping6-command: /sbin/ping6 -n -c %d %s
   --with-ping-command: /sbin/ping -n -c %d %s
   --with-ipv6: yes
  --with-mysql: no
--with-openssl: yes
 --with-gnutls: no
   --enable-extra-opts: no
   --with-perl: /usr/bin/perl
 --enable-perl-modules: no
 --with-cgiurl: /nagios/cgi-bin
   --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin

/usr/local/src/nagios-plugins-1.4.13 root# make all
cd .  /bin/sh
/usr/local/src/nagios-plugins-1.4.13/build-aux/missing --run
autoheader
configure.in:3: error: Autoconf version 2.59 or higher is required
configure.in:3: the top level
autom4te: /usr/bin/gm4 failed with exit status: 1
autoheader: /usr/bin/autom4te failed with exit status: 1
make: *** [config.h.in] Error 1


Obviously it would seem that I might need a newer version of Autoconf? 
Any thoughts on a workaround or where I can get autoconf 2.59 or 
higher for OS X 10.3 Server?

--


  A. Davis
  Email: ncc...@gmail.com

  There is no limit to what a man can accomplish
   if he doesn't care who gets the credit. - Ronald Reagan
  
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] RESEND: orphaned check, no check results posted, no macro expand: solaris 10, new install]

2009-03-18 Thread David Dozier
Thanks Marc,

For the URL:

I see that the debug_level needs to be set to 2048 to capture macro 
expansion.

Debug_verbosity=2

I've restarted and will continue troubleshooting.

David



Marc Powell wrote:
 On Mar 18, 2009, at 10:02 AM, David Dozier wrote:

   
 All,

 Should I be seeing the following lack of macro expansion in  
 nagios.debug?

 In nagios.debug:
 
 [] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -w  
 3000.0,80%
 -c 5000.0,100% -p 5
 [] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -w
 3000.0,80% -c 5000.0,100% -p 5

 [] Finished reaping 0 check results
 

 I don't use nagios-3 yet but I believe it might depend on the  
 debug_verbosity without looking at the actual code. Here is an example  
 where it was shown as expanded after the second loop through MACRO  
 PROCESSING -- http://article.gmane.org/gmane.network.nagios.devel/4737

   
 FYI: I set Debugging_output=256, and every  Expanded Command  
 Output is
 not expanded, and every Reap check results yeilds 0 check results.
 

 Did you mean debug_level? is debug_verbosity set to 2?

 --
 Marc


 --
 Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
 powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
 easily build your RIAs with Flex Builder, the Eclipse(TM)based development
 software that enables intelligent coding and step-through debugging.
 Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
 ___
 Nagios-users mailing list
 Nagios-users@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
   


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] problem starting nagios

2009-03-18 Thread Marc Powell

Hi Anirudh,

On Mar 18, 2009, at 12:13 PM, Anirudh Srinivasan wrote:

 This is what i see when i run this .and to tell you i dint create  
 time period which i think is no way related to this problem:

 Nagios 3.0.6
 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
 Last Modified: 12-01-2008
 License: GPL

 Nagios 3.0.6 starting... (PID=31661)
 Local time is Wed Mar 18 12:59:33 EDT 2009
 Error: Template 'generic-host' specified in host definition could  
 not be not found (config file '/usr/local/nagios/etc/objects/ 
 localhost.cfg', starting on line 20)
 Error: Template 'generic-service' specified in service definition  
 could not be not found (config file '/usr/local/nagios/etc/objects/ 
 localhost.cfg', starting on line 64)

 Error: Could not create external command file '/usr/local/nagios/var/ 
 rw/nagios.cmd' as named pipe: (2) - No such file or directory.  If  
 this file already exists and you are sure that another copy of  
 Nagios is not running, you should delete this file.
 Bailing out due to errors encountered while trying to initialize the  
 external command file... (PID=31661)


Any Error's will prevent nagios from starting. That's a pretty common  
convention for daemons. You must fix the three configuration errors  
above before nagios will start.

For the first two errors, you have host{} and service{} definitions  
that reference other definitions named 'generic-host' and 'generic- 
service'. They do not exist in a cfg file that you've told nagios to  
load. Use grep to find which file they exist in and make sure it's  
listed as a cfg_file in nagios.cfg.

For the last error, nagios has been told to listen for external  
commands but is unable to create the 'file' needed to do that under / 
usr/local/nagios/var/rw. Does that directory exist and is it owned and  
readable/writable by the nagios user? If you installed from source, I  
believe the make command to do that is 'make install-commandmode' from  
within the nagios source tree, or you can just create the rw directory  
(but not the nagios.cmd file) and give it nagios ownership and rwx  
permissions.

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Circular Map setup

2009-03-18 Thread Albrecht Dreß

Hi all,

I use Nagios to monitor several servers, redundant switches, and  
Windows PC's and printers.  Works perfectly, except for the circular  
status map...  The problem is that the icons of the components in the  
outer ring are overlapping (see attached screenshot).  Is there any  
way to influence the placement of icons in the circular map?


Thanks in advance, Albrecht.
inline: nagios-circular.png

pgp9UizX0WYXo.pgp
Description: PGP signature
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Nagios-SNMP

2009-03-18 Thread Jim Avery
2009/3/18 Joseph Ribin Roy ribin@mformation.com:
 Any feedback or other ways of integrating of Nagios-SNMP will be grateful.

I use NagTrap.  It's probably not everyone's cup of tea but is easy to
install and maintain (compared with the scripts I used before anyway).

http://nagtrap.org

Cheers,

Jim

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] blank perfdata: not parsing macros

2009-03-18 Thread Jim Avery
2009/3/18 M P r...@eyesopen.org:
 Other than compiling from source, any other tips?

I would suggest you try PNP4Nagios, but again if you installed Nagios
from repositories you're going to find it more difficult to get it
working than if you installed it from source.

Cheers,

Jim

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Circular Map setup

2009-03-18 Thread Jim Avery
2009/3/18 Albrecht Dreß albrecht.dr...@arcor.de:
 Hi all,

 I use Nagios to monitor several servers, redundant switches, and Windows
 PC's and printers.  Works perfectly, except for the circular status map...
  The problem is that the icons of the components in the outer ring are
 overlapping (see attached screenshot).  Is there any way to influence the
 placement of icons in the circular map?

 Thanks in advance, Albrecht.

You could try specifying 2d_coords in your host definitions.  See
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host

But I recommend you try either NEXSM (can be tricky to install but is
great for large networks) or the automap feature in NagVis (easy to
install, but requires a MySQL database).

hth,

Jim

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Stuck on NRPE for OS X Server

2009-03-18 Thread Andrew Davis
I have two Mac OS X servers, one running 10.3, the other running 10.4. 
Neither can be upgraded to 10.5 due to third party s/w constraints. Both 
are PPC based XServe's.


Trying to compile nrpe with:

   ./configure --sysconfdir=/etc/nagios --enable-ssl

Initially, I got the cannot find ssl libraries error:

   ~
   checking for SSL headers... SSL headers found in /usr/local/ssl
   checking for SSL libraries... configure: error: Cannot find ssl
   libraries

I downloaded the latest openssl and built it with:

   ./config --prefix=/usr/local shared --openssldir=/usr/local/openssl
   make
   make test
   make install

I then had to edit ~/src/nrpe/configure and change the reference from 
libssl.so to libssl.dylib


After that, nrpe compiled cleanly and I was able to move 
~src/nrpe/src/nrpe to /usr/local/sbin and start xinetd up. I've 
confirmed that port 5666 is open and xinetd is running:


   /usr/local/src/nrpe-2.12/src root# ps waux|grep xinet|grep -v
   greproot   29066   0.0 -0.027484308  ??  Ss3:53PM  
   0:00.02 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
   /usr/local/src/nrpe-2.12/src root# netstat -an|grep 5666tcp4  
   0  0  *.5666 *.*LISTEN


However, when connecting from the remote server, I get:

   /usr/local/nagios/libexec/check_nrpe -H host.mydomain.org
   CHECK_NRPE: Error - Could not complete SSL handshake.

The same test but w/o SSL gives yields:

   [nag...@nephilim src]$ /usr/local/nagios/libexec/check_nrpe -n -H
   host.mydomain.org
   CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server
   logs for error messages.

So two questions:

1) I'm a UNIX guy, but obviously Mac's are A) different and B) a tad 
different being BSD-based. So what's the proper way to stop/restart the 
xinetd daemon?
2) Any thoughts on SSL handshake error? I've googled it, but I'm not 
getting very far.


Anyone have a step-by-step for compiling nagios plugins and NRPE from 
source on OS X 10.x (specifically 10.3 and 10.4)? I'm using NRPE for all 
other internal hosts, so I prefer to use it for the Mac's too. I know I 
could do it via check_by_ssh and get around this, but I prefer to use 
NRPE if I can.


--


 A. Davis
 Email: ncc...@gmail.com

 There is no limit to what a man can accomplish
  if he doesn't care who gets the credit. - Ronald Reagan

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Stuck on NRPE for OS X Server

2009-03-18 Thread Andrew Davis

FYI: /var/log/system.log on the client shows:

Mar 18 16:08:07 shu xinetd[29066]: START: nrpe pid=557 from=10.1.1.170
Mar 18 16:08:07 shu nrpe[557]: Error: NRPE daemon cannot be run as 
user/group root!


whether I do the default test (with SSL) or use the -n flag to test w/o 
SSL. The odd thing is that the nrpe config in /etc/xinetd.d is set to 
run as nobody:nobody and /etc/nagios/nrpe.cfg is owned by nobody:nobody. 
Only /usr/local/sbin/nrpe is owned by root (as it should be), but is 
also set to 755 perms. I've compared to a Linux box I have with NRPE and 
xinetd working properly and the permissions are identical.


I'm stumped...

Andrew Davis wrote:
I have two Mac OS X servers, one running 10.3, the other running 10.4. 
Neither can be upgraded to 10.5 due to third party s/w constraints. 
Both are PPC based XServe's.


Trying to compile nrpe with:

./configure --sysconfdir=/etc/nagios --enable-ssl

Initially, I got the cannot find ssl libraries error:

~
checking for SSL headers... SSL headers found in /usr/local/ssl
checking for SSL libraries... configure: error: Cannot find ssl
libraries

I downloaded the latest openssl and built it with:

./config --prefix=/usr/local shared --openssldir=/usr/local/openssl
make
make test
make install

I then had to edit ~/src/nrpe/configure and change the reference from 
libssl.so to libssl.dylib


After that, nrpe compiled cleanly and I was able to move 
~src/nrpe/src/nrpe to /usr/local/sbin and start xinetd up. I've 
confirmed that port 5666 is open and xinetd is running:


/usr/local/src/nrpe-2.12/src root# ps waux|grep xinet|grep -v
greproot   29066   0.0 -0.027484308  ??  Ss3:53PM  
0:00.02 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
/usr/local/src/nrpe-2.12/src root# netstat -an|grep 5666tcp4  
0  0  *.5666 *.*LISTEN


However, when connecting from the remote server, I get:

/usr/local/nagios/libexec/check_nrpe -H host.mydomain.org
CHECK_NRPE: Error - Could not complete SSL handshake.

The same test but w/o SSL gives yields:

[nag...@nephilim src]$ /usr/local/nagios/libexec/check_nrpe -n -H
host.mydomain.org
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server
logs for error messages.

So two questions:

1) I'm a UNIX guy, but obviously Mac's are A) different and B) a tad 
different being BSD-based. So what's the proper way to stop/restart 
the xinetd daemon?
2) Any thoughts on SSL handshake error? I've googled it, but I'm not 
getting very far.


Anyone have a step-by-step for compiling nagios plugins and NRPE from 
source on OS X 10.x (specifically 10.3 and 10.4)? I'm using NRPE for 
all other internal hosts, so I prefer to use it for the Mac's too. I 
know I could do it via check_by_ssh and get around this, but I prefer 
to use NRPE if I can.

--


  A. Davis
  Email: ncc...@gmail.com

  There is no limit to what a man can accomplish
   if he doesn't care who gets the credit. - Ronald Reagan
  
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Stuck on NRPE for OS X Server

2009-03-18 Thread Andrew Davis
If I'm reading this correctly, the line about NRPE daemon cannot be run 
as user/group root! is directly from the source code of NRPE. Its not 
an xinetd thing. I've confirmed that xinetd is running and listening on 
port 5666. I tried changing the owner/group from nobody:nobody to 
another unprivileged user, but it didn't work. Same results. It appears 
that despite my configuring the /etc/nagios/nrpe.cfg and the 
/etc/xinetd.d/nrpe files to use a user other than root, it still tries 
to start it as the root user and thus when an incoming connection comes 
in, it gives the NRPE daemon cannot be run as user/group root! error. 
Any thoughts on how to rectify this? Since NRPE is working fine on 
Linux, is this just a Mac OS X thing? Any help would be immensely 
appreciated.


AD

Andrew Davis wrote:

FYI: /var/log/system.log on the client shows:

Mar 18 16:08:07 shu xinetd[29066]: START: nrpe pid=557 from=10.1.1.170
Mar 18 16:08:07 shu nrpe[557]: Error: NRPE daemon cannot be run as 
user/group root!


whether I do the default test (with SSL) or use the -n flag to test 
w/o SSL. The odd thing is that the nrpe config in /etc/xinetd.d is set 
to run as nobody:nobody and /etc/nagios/nrpe.cfg is owned by 
nobody:nobody. Only /usr/local/sbin/nrpe is owned by root (as it 
should be), but is also set to 755 perms. I've compared to a Linux box 
I have with NRPE and xinetd working properly and the permissions are 
identical.


I'm stumped...

Andrew Davis wrote:
I have two Mac OS X servers, one running 10.3, the other running 
10.4. Neither can be upgraded to 10.5 due to third party s/w 
constraints. Both are PPC based XServe's.


Trying to compile nrpe with:

./configure --sysconfdir=/etc/nagios --enable-ssl

Initially, I got the cannot find ssl libraries error:

~
checking for SSL headers... SSL headers found in /usr/local/ssl
checking for SSL libraries... configure: error: Cannot find ssl
libraries

I downloaded the latest openssl and built it with:

./config --prefix=/usr/local shared --openssldir=/usr/local/openssl
make
make test
make install

I then had to edit ~/src/nrpe/configure and change the reference from 
libssl.so to libssl.dylib


After that, nrpe compiled cleanly and I was able to move 
~src/nrpe/src/nrpe to /usr/local/sbin and start xinetd up. I've 
confirmed that port 5666 is open and xinetd is running:


/usr/local/src/nrpe-2.12/src root# ps waux|grep xinet|grep -v
greproot   29066   0.0 -0.027484308  ??  Ss3:53PM  
0:00.02 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive

/usr/local/src/nrpe-2.12/src root# netstat -an|grep
5666tcp4   0  0  *.5666
*.*LISTEN


However, when connecting from the remote server, I get:

/usr/local/nagios/libexec/check_nrpe -H host.mydomain.org
CHECK_NRPE: Error - Could not complete SSL handshake.

The same test but w/o SSL gives yields:

[nag...@nephilim src]$ /usr/local/nagios/libexec/check_nrpe -n -H
host.mydomain.org
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote
server logs for error messages.

So two questions:

1) I'm a UNIX guy, but obviously Mac's are A) different and B) a tad 
different being BSD-based. So what's the proper way to stop/restart 
the xinetd daemon?
2) Any thoughts on SSL handshake error? I've googled it, but I'm not 
getting very far.


Anyone have a step-by-step for compiling nagios plugins and NRPE from 
source on OS X 10.x (specifically 10.3 and 10.4)? I'm using NRPE for 
all other internal hosts, so I prefer to use it for the Mac's too. I 
know I could do it via check_by_ssh and get around this, but I prefer 
to use NRPE if I can.

--


  A. Davis
  Email: ncc...@gmail.com

  There is no limit to what a man can accomplish
   if he doesn't care who gets the credit. - Ronald Reagan
  
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Stuck on NRPE for OS X Server

2009-03-18 Thread Allan Clark
Reply is bottom-posted.

On Wed, Mar 18, 2009 at 16:57, Andrew Davis ncc...@gmail.com wrote:

  If I'm reading this correctly, the line about NRPE daemon cannot be run
 as user/group root! is directly from the source code of NRPE. Its not an
 xinetd thing. I've confirmed that xinetd is running and listening on port
 5666. I tried changing the owner/group from nobody:nobody to another
 unprivileged user, but it didn't work. Same results. It appears that despite
 my configuring the /etc/nagios/nrpe.cfg and the /etc/xinetd.d/nrpe files to
 use a user other than root, it still tries to start it as the root user and
 thus when an incoming connection comes in, it gives the NRPE daemon cannot
 be run as user/group root! error. Any thoughts on how to rectify this?
 Since NRPE is working fine on Linux, is this just a Mac OS X thing? Any help
 would be immensely appreciated.

 AD


 Andrew Davis wrote:

 FYI: /var/log/system.log on the client shows:

 Mar 18 16:08:07 shu xinetd[29066]: START: nrpe pid=557 from=10.1.1.170
 Mar 18 16:08:07 shu nrpe[557]: Error: NRPE daemon cannot be run as
 user/group root!

 whether I do the default test (with SSL) or use the -n flag to test w/o
 SSL. The odd thing is that the nrpe config in /etc/xinetd.d is set to run as
 nobody:nobody and /etc/nagios/nrpe.cfg is owned by nobody:nobody. Only
 /usr/local/sbin/nrpe is owned by root (as it should be), but is also set to
 755 perms. I've compared to a Linux box I have with NRPE and xinetd working
 properly and the permissions are identical.

 I'm stumped...

 Andrew Davis wrote:

 I have two Mac OS X servers, one running 10.3, the other running 10.4.
 Neither can be upgraded to 10.5 due to third party s/w constraints. Both are
 PPC based XServe's.

 Trying to compile nrpe with:

 ./configure --sysconfdir=/etc/nagios --enable-ssl

 Initially, I got the cannot find ssl libraries error:

 ~
 checking for SSL headers... SSL headers found in /usr/local/ssl
 checking for SSL libraries... configure: error: Cannot find ssl libraries

 I downloaded the latest openssl and built it with:

 ./config --prefix=/usr/local shared --openssldir=/usr/local/openssl
 make
 make test
 make install

 I then had to edit ~/src/nrpe/configure and change the reference from
 libssl.so to libssl.dylib

 After that, nrpe compiled cleanly and I was able to move ~src/nrpe/src/nrpe
 to /usr/local/sbin and start xinetd up. I've confirmed that port 5666 is
 open and xinetd is running:

 /usr/local/src/nrpe-2.12/src root# ps waux|grep xinet|grep -v greproot
 29066   0.0 -0.027484308  ??  Ss3:53PM   0:00.02
 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
 /usr/local/src/nrpe-2.12/src root# netstat -an|grep 5666tcp4   0
 0  *.5666 *.*LISTEN

 However, when connecting from the remote server, I get:

 /usr/local/nagios/libexec/check_nrpe -H host.mydomain.org
 CHECK_NRPE: Error - Could not complete SSL handshake.

 The same test but w/o SSL gives yields:

 [nag...@nephilim src]$ /usr/local/nagios/libexec/check_nrpe -n -H
 host.mydomain.org
 CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for
 error messages.

 So two questions:

 1) I'm a UNIX guy, but obviously Mac's are A) different and B) a tad
 different being BSD-based. So what's the proper way to stop/restart the
 xinetd daemon?
 2) Any thoughts on SSL handshake error? I've googled it, but I'm not
 getting very far.

 Anyone have a step-by-step for compiling nagios plugins and NRPE from
 source on OS X 10.x (specifically 10.3 and 10.4)? I'm using NRPE for all
 other internal hosts, so I prefer to use it for the Mac's too. I know I
 could do it via check_by_ssh and get around this, but I prefer to use NRPE
 if I can.

 --


On a Mac, your xinetd is a bolt-on over the launchd that's there by default;
you've obviously got it running.  Since you're in /etc/xinetd.d/something,
you need to cnfigure a different username via xinetd's config.  Look for a
/etc/xinetd.d/nrpe file, or similar, containing the config for your nrpe
service.  I tend to grep for the port number in order to find the file.
Remember to check /local/*

The time service has an example with juicy comments:


service time
{
# This is for quick on or off of the service
disable = yes
...
...
# External services must fill out the following
#   user=
#   group   =
...
...
}


Take a look there, see if you can choose a better username and/or group and
if your port of xinetd honours it.  I don't know if you have a nrpe user, or
run it as nobody.

A better option would be a proper launchd config, allowing you to shutdown
xinetd if you're installing it there for this purpose only, but then it's a
Mac-only thing, and would be more difficult to maintain for non-Mac people.

Allan
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 

Re: [Nagios-users] Host checks instead of service checks

2009-03-18 Thread Israel Brewster
Using check_dummy with a service check titled No Services is exactly  
how we are doing this here. We have a number of hosts which we are  
really only interested in if the machine is running or not - so  
check_icmp is specified as the host check, and No services as the  
only service check. You are right, however, in that all these No  
Services show up in the service status list. If you don't want that,  
about the only way I can think of is to not associate any services  
with the host, and simply ignore the warnings you get about that when  
running nagios -v. This does cause some display issues, however (hosts  
without services tend to not show up in various screens) - thus the  
reason I opted to add the No services service.

---
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---



On Mar 16, 2009, at 9:34 AM, Deborah Martin wrote:


Folks,

Whilst using check_dummy as a service check does resolve the pre- 
flight warnings, it's not the solution I think I'm looking for.


The total number of service checks now includes the dummy checks  
which i've chosen to always exit as UP so that it doesn't show up as  
a service problem - which to me
doesn't sound like the right way to do this. I want all service  
checks to be useful service checks rather than have checks which  
would need to be ignored as they don't return
anything useful as with check_dummy - I wouldn't ever use that check  
in any Nagios SLA reporting.


What I really want to do is the following :

Hosts -- ssh check -- When CRITICAL alert under Host  
problems only.


The docs show a distinct difference for behaviour between Nagios  
2.0b4 and Nagios 3.0.6.


From Nagios 2.0b4, under Host Definitions:-
check_command:	This directive is used to specify the short name of  
the command that should be used to check if the host is up or down.  
Typically, this command would try and ping the host to see if it is  
alive. The command must return a status of OK (0) or Nagios will  
assume the host is down. If you leave this argument blank, the host  
will not be checked - Nagios will always assume the host is up. This  
is useful if you are monitoring printers or other devices that are  
frequently turned off. The maximum amount of time that the  
notification command can run is controlled by the host_check_timeout  
option.



From Nagios 3.0.6
check_command:	This directive is used to specify the short name of  
the command that should be used to check if the host is up or down.  
Typically, this command would try and ping the host to see if it is  
alive. The command must return a status of OK (0) or Nagios will  
assume the host is down. If you leave this argument blank, the host  
will not be actively checked. Thus, Nagios will likely always assume  
the host is up (it may show up as being in a PENDING state in the  
web interface). This is useful if you are monitoring printers or  
other devices that are frequently turned off. The maximum amount of  
time that the notification command can run is controlled by the  
host_check_timeout option.


The difference is highlighted in RED. So on changing the ssh  
check  from a service to a host definition (to prevent PENDING on  
the hosts), the pre-flight warnings now complain there are no  
services associated with the hosts. On big systems here (100 nodes+)  
this makes the pre-flight output really unreadable and not really  
accurate as surely we should be able to choose whether something is  
a host check or service check but not have to define BOTH!


Ultimately, I just want to filter SSH check problems to appear under  
Host problems rather than under Service problems so users can  
easily spot other service problem issues and not have to trawl  
through 100's of lines of output in the web interface. Believe me,  
Nagios web interface users can be a fickle bunch!


A switch to tell Nagios to not complain about this would be really  
useful unless anyone thinks of a good reason why this would be a bad  
idea.


any help / pointers would be appreciated, even if it's to tell me  
politely how stupid i'm being - I can take it!


regards,
deborah

From: Deborah Martin [mailto:deborah.mar...@kognitio.com]
Sent: 16 March 2009 15:34
To: 'Richard Quintin'
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Host checks instead of service checks

Thanks Richard. I'll give that a try.

regards,
deborah


-Original Message-
From: Richard Quintin [mailto:rich+nag...@quintinz.com]
Sent: 16 March 2009 15:26
To: Deborah Martin
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Host checks instead of service checks

You could use check_dummy for the host check and just have it always  
return OK.
Or perhaps the opposite you could add a check_dummy service check  
for all hosts.


Which you 

Re: [Nagios-users] check_jmx plugin chokes on more than 2Gb memory

2009-03-18 Thread Adam Serediuk
Old message, but I had the same problem. check_jmx  was built using  
Integer's for numbers and the Java Integer type is not able to handle  
values larger than 2^31-1(2147483647.) When you pass a value larger  
than this NumberFormatException is thrown. I have no idea who the  
original author is, but the source code was with the bundle I  
downloaded so I've updated it to use a Long rather than an Integer and  
values up to 2^63-1 are now supported.


I have uploaded the patched version to NagiosExchange at 
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F3002.html;d=1

Hope it helps.

Adam Serediuk
sered...@gmail.com


 This works:
 [nag...@monitor1 libexec]$ ./check_jmx -U
 service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O
 java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483647

 JMX CRITICAL HeapMemoryUsage.used=-1942171464

 But this doesn't:
 [nag...@monitor1 libexec]$ ./check_jmx -U
 service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O
 java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483648

 JMX UNKNOWN For input string: 2147483648 Usage: check_jmx -help

 Does anyone have source code for jmxquery.jar? Or perhaps a newer
 version that can cope with larger heap size?



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@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