Re: [Nagios-users] Using NSClient++ NRPE to check a local URI

2010-05-13 Thread Ward.P.Fontenot
NRPE for that? Is there a requirement that prevents you from using check_http 
from the Nagios server?

From: Srdan Dukic [mailto:srdan.du...@gmail.com]
Sent: Thursday, May 13, 2010 7:34 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Using NSClient++ NRPE to check a local URI

Hi,

I'm trying to get Nagios to check that a website/URI returns a document when it 
is requested from a client machine. It should do this using NRPE, and I should 
mention that the client machine is a Windows box running NSClient++

e.g. Check that getting http://local02/Service.svc?wsdl returns a XML document 
instead of a 404 Error

Now, I know that I could implement this using an 'External Script' but I was 
wondering if there was already a plugin in any of the existing modules which 
would allow this kind of setup. I've read the documentation and can't find 
anything, but wanted to confirm.

Thank you
--
Srđan Đukić
--

___
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] How to override a command definition?

2010-05-13 Thread Scot Wilcoxon
On Thu, 2010-05-13 at 21:25 -0500, Marc Powell wrote:
> On May 13, 2010, at 2:50 PM, Scot Wilcoxon wrote:
> 
> > I'm trying to override the existing definition, because I'd rather not
> > alter the configuration which is part of the installation package.
> 
> Just comment out the original if you want to keep it there as a reference.

I know how to alter the files, but I was hoping to leave the original
config file alone so the system updates could replace it if necessary.

Apparently Nagios is missing the ability to replace previous definitions
(also demonstrated in the problem of "undefined" causing specific
behavior but not being able to undefine, such as for a no-ping host).  I
also haven't noticed a defined priority for configuration info,
something which would be needed for an override.


--

___
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] How to override a command definition?

2010-05-13 Thread Marc Powell

On May 13, 2010, at 2:50 PM, Scot Wilcoxon wrote:

> I'm trying to override the existing definition, because I'd rather not
> alter the configuration which is part of the installation package.

Just comment out the original if you want to keep it there as a reference.

--
Marc

--

___
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] Using NSClient++ NRPE to check a local URI

2010-05-13 Thread Srdan Dukic
Hi,

I'm trying to get Nagios to check that a website/URI returns a document when
it is requested from a client machine. It should do this using NRPE, and I
should mention that the client machine is a Windows box running NSClient++

e.g. Check that getting http://local02/Service.svc?wsdl returns a XML
document instead of a 404 Error

Now, I know that I could implement this using an 'External Script' but I was
wondering if there was already a plugin in any of the existing modules which
would allow this kind of setup. I've read the documentation and can't find
anything, but wanted to confirm.

Thank you
-- 
Srđan Đukić
--

___
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] How to override a command definition?

2010-05-13 Thread Stuart Browne
> -Original Message-
> From: Scot Wilcoxon [mailto:s...@wilcoxon.org]
> 
> I want to make all check_http commands use a different timeout.  How
> can
> I replace the check_http command without altering the original
> definition file?
> 
> I tried redefining the command in the directory where I have my local
> configuration changes, but I get the following error:
>   Warning: Duplicate definition found for command 'check_http'
> (config
> file '/etc/nagios3/conf.d/commands_local.cfg', starting on line 13)
> 
> I'm trying to override the existing definition, because I'd rather not
> alter the configuration which is part of the installation package.

You can't.  You should just call it something new.

--

___
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] How to override a command definition?

2010-05-13 Thread Scot Wilcoxon
I want to make all check_http commands use a different timeout.  How can
I replace the check_http command without altering the original
definition file?

I tried redefining the command in the directory where I have my local
configuration changes, but I get the following error:
Warning: Duplicate definition found for command 'check_http' (config
file '/etc/nagios3/conf.d/commands_local.cfg', starting on line 13)

I'm trying to override the existing definition, because I'd rather not
alter the configuration which is part of the installation package.


--

___
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] Host down due to plugins timing out

2010-05-13 Thread Kaplan, Andrew H.
I was able to solve the problem. I checked the ip address of the client system
in the
hosts.cfg file on the Nagios server, and one of the digits in the address was
incorrect.
 
Once I corrected the mistake, everything worked fine. Thanks for the help.



From: Stier, Matthew [mailto:matthew.st...@us.fujitsu.com] 
Sent: Thursday, May 13, 2010 3:27 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Host down due to plugins timing out



The default timeout for nrpe is 10 seconds.How long does your plugin take to
run?

 

 

From: Kaplan, Andrew H. [mailto:ahkap...@partners.org] 
Sent: Thursday, May 13, 2010 1:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host down due to plugins timing out

 

Hi there -- 

I recently set up a new client to be monitored by our Nagios 3.1.2 server. The
client is running the CentOS 5.4 
operating system, and it has version 2.6 of NRPE as well as version 2.12 of the
plugins installed on it. I made 
sure to deactivate the firewall on the system, disable the SELinux option, and
also modified the /etc/services 
file to include port 5666 with udp and tcp. 

The problem that I am having is that even though everything appears to be
running properly, the requests that 
are sent from the Nagios server to the client are timing out, with the result
being the client appearing as down. 
The client has the nrpe program running with the following configuration: 

/usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d 

I verified the plugins are working on the client, and also confirmed there are
no other clients being reported as 
down. The configuration that I described is not unique to this client. This same
setup is working for other clients 
that are monitored by the server. 

Does anyone have any idea as to why this is occurring, and what I can do to
correct it? Thanks. 

 

 
 
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--

___
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] Host down due to plugins timing out

2010-05-13 Thread Kaplan, Andrew H.
Hi there --
 
The command_timeout option in the client's nrpe.cfg file is set to 60. The
syntax of the line is shown below:
 
command_timeout=60
 
 



From: Stier, Matthew [mailto:matthew.st...@us.fujitsu.com] 
Sent: Thursday, May 13, 2010 3:27 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Host down due to plugins timing out



The default timeout for nrpe is 10 seconds.How long does your plugin take to
run?

 

 

From: Kaplan, Andrew H. [mailto:ahkap...@partners.org] 
Sent: Thursday, May 13, 2010 1:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host down due to plugins timing out

 

Hi there -- 

I recently set up a new client to be monitored by our Nagios 3.1.2 server. The
client is running the CentOS 5.4 
operating system, and it has version 2.6 of NRPE as well as version 2.12 of the
plugins installed on it. I made 
sure to deactivate the firewall on the system, disable the SELinux option, and
also modified the /etc/services 
file to include port 5666 with udp and tcp. 

The problem that I am having is that even though everything appears to be
running properly, the requests that 
are sent from the Nagios server to the client are timing out, with the result
being the client appearing as down. 
The client has the nrpe program running with the following configuration: 

/usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d 

I verified the plugins are working on the client, and also confirmed there are
no other clients being reported as 
down. The configuration that I described is not unique to this client. This same
setup is working for other clients 
that are monitored by the server. 

Does anyone have any idea as to why this is occurring, and what I can do to
correct it? Thanks. 

 

 
 
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--

___
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] Host down due to plugins timing out

2010-05-13 Thread Stier, Matthew
The default timeout for nrpe is 10 seconds.How long does your plugin
take to run?

 

 

From: Kaplan, Andrew H. [mailto:ahkap...@partners.org] 
Sent: Thursday, May 13, 2010 1:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host down due to plugins timing out

 

Hi there -- 

I recently set up a new client to be monitored by our Nagios 3.1.2
server. The client is running the CentOS 5.4 
operating system, and it has version 2.6 of NRPE as well as version 2.12
of the plugins installed on it. I made 
sure to deactivate the firewall on the system, disable the SELinux
option, and also modified the /etc/services 
file to include port 5666 with udp and tcp. 

The problem that I am having is that even though everything appears to
be running properly, the requests that 
are sent from the Nagios server to the client are timing out, with the
result being the client appearing as down. 
The client has the nrpe program running with the following
configuration: 

/usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d 

I verified the plugins are working on the client, and also confirmed
there are no other clients being reported as 
down. The configuration that I described is not unique to this client.
This same setup is working for other clients 
that are monitored by the server. 

Does anyone have any idea as to why this is occurring, and what I can do
to correct it? Thanks. 

 

 
 
The information in this e-mail is intended only for the person to whom
it is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you
in error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.
--

___
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] Host down due to plugins timing out

2010-05-13 Thread Kaplan, Andrew H.
Hi there --

I recently set up a new client to be monitored by our Nagios 3.1.2 server. The
client is running the CentOS 5.4
operating system, and it has version 2.6 of NRPE as well as version 2.12 of the
plugins installed on it. I made
sure to deactivate the firewall on the system, disable the SELinux option, and
also modified the /etc/services
file to include port 5666 with udp and tcp. 

The problem that I am having is that even though everything appears to be
running properly, the requests that
are sent from the Nagios server to the client are timing out, with the result
being the client appearing as down.
The client has the nrpe program running with the following configuration:

/usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d

I verified the plugins are working on the client, and also confirmed there are
no other clients being reported as 
down. The configuration that I described is not unique to this client. This same
setup is working for other clients 
that are monitored by the server. 

Does anyone have any idea as to why this is occurring, and what I can do to
correct it? Thanks.





The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--

___
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] notification when a file is found

2010-05-13 Thread akp geek
Thanks a lot. I am working on it

Regards

On Thu, May 13, 2010 at 12:46 PM, Vincent Colombo wrote:

>
> http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_newfiles-2Esh/details
>
> On Thu, May 13, 2010 at 11:36 AM, akp geek  wrote:
>
>> Dear all -
>>
>>  We are using nagios. I would like to know if there is a way
>> notification can be sent if there is a new file created in a directory? Can
>> you please help?
>>
>> Regards
>>
>>
>> --
>>
>>
>> ___
>> 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 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 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] notification when a file is found

2010-05-13 Thread Morris, Patrick
akp geek wrote:
> Dear all -
>
>  We are using nagios. I would like to know if there is a 
> way notification can be sent if there is a new file created in a 
> directory? Can you please help?

It's incredibly easy to write a Nagios plugin.  The only major 
requirement is that it return a valid error code so that Nagios can 
interpret the results.  Something like this would work:

-- start check_file.sh --
#!/bin/sh

# $1 = Full path of filename to watch for

$ERRORCODE=0

if [ -e $1 ]; then
   $ERRORCODE=1
fi

exit $ERRORCODE
-- end check_file.sh -- 

--

___
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] notification when a file is found

2010-05-13 Thread Vincent Colombo
http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_newfiles-2Esh/details

On Thu, May 13, 2010 at 11:36 AM, akp geek  wrote:

> Dear all -
>
>  We are using nagios. I would like to know if there is a way
> notification can be sent if there is a new file created in a directory? Can
> you please help?
>
> Regards
>
>
> --
>
>
> ___
> 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 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] notification when a file is found

2010-05-13 Thread akp geek
Dear all -

 We are using nagios. I would like to know if there is a way
notification can be sent if there is a new file created in a directory? Can
you please help?

Regards
--

___
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] Monitor network traffic

2010-05-13 Thread Brian O'Mahony
Wow

That would be great, thanks.

B

From: Kumar, Ashish [mailto:xml.de...@gmail.com]
Sent: Thursday, May 13, 2010 4:39 PM
To: Brian O'Mahony
Cc: Nagios Users List
Subject: Re: [Nagios-users] Monitor network traffic



Currently RHEL5.4, but it would be good to have the option for Debian (3/4), 
AIX, HPUX (RISC & Itanium, both 11.23/11.31), Solaris, and zLinux (Suse11).

However none of these are a requirement - more of nice option

B

I have written plugins for AIX and Sun Solaris.  I will try tomorrow morning 
for HP-UX.

For Red Hat I am facing a little problem.  Apparently there is no way to figure 
out the NIC's speed (e.g. 100Mbps, 1Gbps) as a non-privileged user (mii-tool, 
ethtool).  I will share the plugins once I finish with it.


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.
--

___
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] Monitor network traffic

2010-05-13 Thread Kumar, Ashish
Currently RHEL5.4, but it would be good to have the option for Debian (3/4),
> AIX, HPUX (RISC & Itanium, both 11.23/11.31), Solaris, and zLinux (Suse11).
>
>
>
> However none of these are a requirement – more of nice option….
>
>
>
> B
>

I have written plugins for AIX and Sun Solaris.  I will try tomorrow morning
for HP-UX.

For Red Hat I am facing a little problem.  Apparently there is no way to
figure out the NIC's speed (e.g. 100Mbps, 1Gbps) as a non-privileged user
(mii-tool, ethtool).  I will share the plugins once I finish with it.
--

___
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] Monitor network traffic

2010-05-13 Thread Brian O'Mahony
Apologies was out sick the last few days.

Currently RHEL5.4, but it would be good to have the option for Debian (3/4), 
AIX, HPUX (RISC & Itanium, both 11.23/11.31), Solaris, and zLinux (Suse11).

However none of these are a requirement - more of nice option

B

From: Kumar, Ashish [mailto:xml.de...@gmail.com]
Sent: Tuesday, May 11, 2010 9:02 AM
To: Nagios Users List; Brian O'Mahony
Subject: Re: [Nagios-users] Monitor network traffic


What I am looking for is something like this, but I would prefer something more 
basic - I have only a handful of servers I want to monitor the network bandwith 
on, and to be honest MRTG looks like it has way more functionality than I need. 
I really just want something basic.


What platforms exactly?








The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.
--

___
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