[Nagios-users] Problems with check_cisco_ping_ssh

2012-10-29 Thread Jairo Saravia
Hello,

I have problems with check_cisco_ping_ssh pluglin

Code: Select all
"
#!/usr/bin/perl
#
# Usa la libreria Net::SSH de http://www.stupidfool.org/perl/net-ssh/
#
# Uso: /usr/local/sbin//usr/local/sbin/check_cisco_ping_ssh  

#
#
use strict;

use Net::SSH::Perl;

$ENV{'HOME'} = '/var/lib/nagios/';

my $router=$ARGV[0];
my $puerto=$ARGV[1];

my $usuariort=$ARGV[2];
my $clave=$ARGV[3];

my $ip=$ARGV[4];

my $warn=$ARGV[5];
my $crit=$ARGV[6];



my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, cipher=>'DES',
port=>$puerto, debug=> 'false');
$sesion_ssh->login($usuariort, $clave);

my $comando="ping $ip";

my($salida, $salida_error, $valor_exit) = $sesion_ssh->cmd($comando);

$salida =~ /Success rate is (\d*) (.*)/;

my $rate=$1;

if ( $rate <= $crit ) {
print "PROBLEMA: Rate=$rate%\n";
exit 2;
}

if ( $rate <= $warn ) {
print "WARNING: Rate=$rate%\n";
exit 1;
}

if ( $rate <= 100 ) {
print "OK: Rate=$rate%\n";
exit 0;
}

exit 3;
"

becasuse when I execute the plugin it presente me this error

"Waiting for server public key.
Connection closed by remote host. at
/usr/share/perl5/vendor_perl/Net/SSH/Perl/SSH1.pm line 78"

I install:

Code: Select 
allyum
install perl-Net-Telnet-Cisco.noarch

yum install perl-Net-SSH-Perl.noarch

yum install perl-Net-OpenSSH-Parallel.noarch

but the problem persists, somebody have any idea of this error
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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 Graph Issue

2012-10-29 Thread Amit Anjarlekar
Is files under /usr/local/pnp4nagios/var/perfdata/hostname/* should get
updated? In my case nagios is running but files are not updating. What may
be reason?

Note - I upgraded from 3.3.1 ver to 3.4.1. From that day it stopped
updating. Can any body help to resolve the same.

Regards
Amit

On Mon, Oct 29, 2012 at 2:06 PM, Claudio Kuenzler 
wrote:

> Sorry, don't really know pnp4nagios, but from other message mails the
> graphs seem to be handled by templates.
> You might want to check the pnp4nagios template documentation
> http://docs.pnp4nagios.org/pnp-0.6/tpl
>
> Also take a look at
> http://www.monitoring-portal.org/wbb/index.php?page=Board&boardID=58 .
> The pnp4nagios developer is often in that bulletin board.
>
>
>
> On Mon, Oct 29, 2012 at 11:44 AM, Amit Anjarlekar <
> amit.anjarle...@gmail.com> wrote:
>
>> Hi ,
>>
>> I am using pnp4nagios. Could you please let me know as which exactly file
>> i need to check as i am new to nagios.. Also if you have any url where i
>> will get exact idea on which files are called from collecting data till
>> graph creation, it will be gr8 help for m to understand nagios architecture.
>>
>> Thanks
>> Amit
>>
>>
>> On Mon, Oct 29, 2012 at 1:11 PM, Claudio Kuenzler > > wrote:
>>
>>> What Nagios Graphing solution do you use?
>>> In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check
>>> your map file, you might have to adjust some of the entries to match
>>> special plugins/perfdata.
>>>
>>> On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar <
>>> amit.anjarle...@gmail.com> wrote:
>>>
  Dear All,

 Nagios graphs scale is improper. Also i added few remote servers for
 monitoring. For them weekly or monthly data reflecting properly. But not
 for last 4 hours or 24 hours?

 Any body have idea on this then plz suggest.

 Thanks & Regards
 Amit
 Linux Admin, TCS.


 --
 The Windows 8 Center - In partnership with Sourceforge
 Your idea - your app - 30 days.
 Get started!
 http://windows8center.sourceforge.net/

 what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
 ___
 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

>>>
>>>
>>>
>>> --
>>> The Windows 8 Center - In partnership with Sourceforge
>>> Your idea - your app - 30 days.
>>> Get started!
>>> http://windows8center.sourceforge.net/
>>>
>>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>>> ___
>>> 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
>>>
>>
>>
>>
>> --
>> The Windows 8 Center - In partnership with Sourceforge
>> Your idea - your app - 30 days.
>> Get started!
>> http://windows8center.sourceforge.net/
>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>> ___
>> 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
>>
>
>
>
> --
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> ___
> 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
>
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
Nagios-users mailing list
Nagios-users@lists.sourceforg

[Nagios-users] service inheritance contacts defined in host

2012-10-29 Thread Nicolás Valera
hi!
i have a problem with contacts inheritance.
when i defined one group (it) with two contacts (user1,user2) and a host 
with two services.
when i put "contact_groups it" in the definition of host, services 
inherit the contact group.

i would like the group to see the host and the contacts see only one 
service like this:

define host{
   host_name sw1
   alias SW1
   address x.x.x.x
   parents sw0
   use generic-host
   contact_groups it
}
define service {
   service_description   f0/1
   host_name sw1
   check_commandcheck_snmp_int_v2!FastEthernet0.1$
   use   generic-service
   contacts user1
}
define service {
   service_description   f0/2
   host_name sw1
   check_commandcheck_snmp_int_v2!FastEthernet0.2$
   use   generic-service
   contacts user2
}

sorry about my english.

Thanks in advance!
Nicolás.

--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
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 Graph Issue

2012-10-29 Thread Claudio Kuenzler
Sorry, don't really know pnp4nagios, but from other message mails the
graphs seem to be handled by templates.
You might want to check the pnp4nagios template documentation
http://docs.pnp4nagios.org/pnp-0.6/tpl

Also take a look at
http://www.monitoring-portal.org/wbb/index.php?page=Board&boardID=58 . The
pnp4nagios developer is often in that bulletin board.


On Mon, Oct 29, 2012 at 11:44 AM, Amit Anjarlekar  wrote:

> Hi ,
>
> I am using pnp4nagios. Could you please let me know as which exactly file
> i need to check as i am new to nagios.. Also if you have any url where i
> will get exact idea on which files are called from collecting data till
> graph creation, it will be gr8 help for m to understand nagios architecture.
>
> Thanks
> Amit
>
>
> On Mon, Oct 29, 2012 at 1:11 PM, Claudio Kuenzler 
> wrote:
>
>> What Nagios Graphing solution do you use?
>> In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check
>> your map file, you might have to adjust some of the entries to match
>> special plugins/perfdata.
>>
>> On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar <
>> amit.anjarle...@gmail.com> wrote:
>>
>>>  Dear All,
>>>
>>> Nagios graphs scale is improper. Also i added few remote servers for
>>> monitoring. For them weekly or monthly data reflecting properly. But not
>>> for last 4 hours or 24 hours?
>>>
>>> Any body have idea on this then plz suggest.
>>>
>>> Thanks & Regards
>>> Amit
>>> Linux Admin, TCS.
>>>
>>>
>>> --
>>> The Windows 8 Center - In partnership with Sourceforge
>>> Your idea - your app - 30 days.
>>> Get started!
>>> http://windows8center.sourceforge.net/
>>>
>>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>>> ___
>>> 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
>>>
>>
>>
>>
>> --
>> The Windows 8 Center - In partnership with Sourceforge
>> Your idea - your app - 30 days.
>> Get started!
>> http://windows8center.sourceforge.net/
>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>> ___
>> 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
>>
>
>
>
> --
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> ___
> 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
>
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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] R: send SMS to BlackBerry

2012-10-29 Thread Steven Carr
I think it's more of a co-incidence than actually a problem with the
Blackberry. SMS is a cell provider service, not a Blackberry specific
service, so it wouldn't make any difference what contract you are on
as it isn't dependant in any way on Blackberry.

What is the actual error message that you are getting back from the
GSM modem? (you're probably going to have to turn on full debugs to
get the raw commands/responses)

Steve


On 29 October 2012 10:15, Marco Borsani  wrote:
> HI Steve
>
> I wrote what I see ;-)
> When we used other kind of mobile we never had these problems.
> I make some test...shut my BB, send some SMS..at the beginning no 
> problem...after some time (I don't know exactly) the problems start.
>
> Could depend on our BB contract ? We have BlackBerry Internet Service, NOT 
> BlackBerry Enterprise Server
>
> Marco

--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
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 Graph Issue

2012-10-29 Thread Amit Anjarlekar
Hi ,

I am using pnp4nagios. Could you please let me know as which exactly file i
need to check as i am new to nagios.. Also if you have any url where i will
get exact idea on which files are called from collecting data till graph
creation, it will be gr8 help for m to understand nagios architecture.

Thanks
Amit

On Mon, Oct 29, 2012 at 1:11 PM, Claudio Kuenzler 
wrote:

> What Nagios Graphing solution do you use?
> In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check
> your map file, you might have to adjust some of the entries to match
> special plugins/perfdata.
>
> On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar <
> amit.anjarle...@gmail.com> wrote:
>
>> Dear All,
>>
>> Nagios graphs scale is improper. Also i added few remote servers for
>> monitoring. For them weekly or monthly data reflecting properly. But not
>> for last 4 hours or 24 hours?
>>
>> Any body have idea on this then plz suggest.
>>
>> Thanks & Regards
>> Amit
>> Linux Admin, TCS.
>>
>>
>> --
>> The Windows 8 Center - In partnership with Sourceforge
>> Your idea - your app - 30 days.
>> Get started!
>> http://windows8center.sourceforge.net/
>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>> ___
>> 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
>>
>
>
>
> --
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> ___
> 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
>
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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] NGRT4N 2.1.0 is Now Available for Beta Testing

2012-10-29 Thread Roch Akanor









Hi,We are happy to announce that  2.1.0 is now available for beta testing. 
Codenamed M-Sylvie, this release brings new features in many areas and 
stabilizes previous versions: better performance thanks to optimized network 
communications, more robustness in message exchanges, bug fixes, tested on the 
latest Windows 7 and Windows 8 operating systems. See Release notes or jump to 
the Download page. 
NGRT4N also named RealOpInsight is an open source engine enabling advanced 
dashboard management capabilities on top of Nagios®. The Solution brings Novel 
Concepts along with a Powerful Technology that allow operators to be effective 
in challenging operating environments such as Network Operations Centers (NOC) 
and large data centers. For more info: http://ngrt4n.com, 
http://RealOpInsight.com.
NGRT4N is also listed in Nagios Exchange (Addons -> Maps and Diagram, ). 
Enjoy!--Roch AkanorSenior Contributor | http://ngrt4n.com



  --
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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] R: send SMS to BlackBerry

2012-10-29 Thread Marco Borsani
HI Steve

I wrote what I see ;-)
When we used other kind of mobile we never had these problems.
I make some test...shut my BB, send some SMS..at the beginning no 
problem...after some time (I don't know exactly) the problems start.

Could depend on our BB contract ? We have BlackBerry Internet Service, NOT 
BlackBerry Enterprise Server

Marco

-Messaggio originale-
Da: Steven Carr [mailto:sjc...@gmail.com] 
Inviato: lunedì 29 ottobre 2012 10:54
A: Nagios Users List
Oggetto: Re: [Nagios-users] send SMS to BlackBerry

A user switching off their Blackberry should not have any impact to your GSM 
modem sending SMS messages to the phone which is switched off, the messages 
will be stored by their cell provider and then forwarded to the Blackberry when 
it's powered back on.

Steve


On 29 October 2012 09:12, Marco Borsani  wrote:
> Hi all !
>
>
>
> From six months , all our technicians used BB phone.
>
>
>
> I noticed that if someone of them shut the phone, the radiomodem used 
> by Nagios to send SMS receive an error signal.
>
> I develop some procedure to be sure than all SMS are sent (verify the 
> GSM network , radiomodem on, etc.), but this BB behaviour can hang my 
> radiomodem   did you meet same problems in your environments?
>
>
>
> regards
>
>
>
> Marco Borsani
>
> Unix and Monitoring Sysadmin
>
> Technical Operations Dpt.
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Societ  con socio unico
>
> Direzione e Coordinamento di Libero S.r.l.
>
>
>
>
> --
>  The Windows 8 Center - In partnership with Sourceforge Your 
> idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-a
> pps/ ___
> 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

--
The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 
30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
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


--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
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 Graph Issue

2012-10-29 Thread Claudio Kuenzler
What Nagios Graphing solution do you use?
In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check your
map file, you might have to adjust some of the entries to match special
plugins/perfdata.

On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar  wrote:

> Dear All,
>
> Nagios graphs scale is improper. Also i added few remote servers for
> monitoring. For them weekly or monthly data reflecting properly. But not
> for last 4 hours or 24 hours?
>
> Any body have idea on this then plz suggest.
>
> Thanks & Regards
> Amit
> Linux Admin, TCS.
>
>
> --
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> ___
> 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
>
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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 Graph Issue

2012-10-29 Thread Amit Anjarlekar
Dear All,

Nagios graphs scale is improper. Also i added few remote servers for
monitoring. For them weekly or monthly data reflecting properly. But not
for last 4 hours or 24 hours?

Any body have idea on this then plz suggest.

Thanks & Regards
Amit
Linux Admin, TCS.
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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] send SMS to BlackBerry

2012-10-29 Thread Steven Carr
A user switching off their Blackberry should not have any impact to
your GSM modem sending SMS messages to the phone which is switched
off, the messages will be stored by their cell provider and then
forwarded to the Blackberry when it's powered back on.

Steve


On 29 October 2012 09:12, Marco Borsani  wrote:
> Hi all !
>
>
>
> From six months , all our technicians used BB phone.
>
>
>
> I noticed that if someone of them shut the phone, the radiomodem used by
> Nagios to send SMS receive an error signal.
>
> I develop some procedure to be sure than all SMS are sent (verify the GSM
> network , radiomodem on, etc.), but this BB behaviour can hang my radiomodem
> … did you meet same problems in your environments?
>
>
>
> regards
>
>
>
> Marco Borsani
>
> Unix and Monitoring Sysadmin
>
> Technical Operations Dpt.
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di Libero S.r.l.
>
>
>
>
> --
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> ___
> 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

--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
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] send SMS to BlackBerry

2012-10-29 Thread Marco Borsani
Hi all !

 

>From six months , all our technicians used BB phone.

 

I noticed that if someone of them shut the phone, the radiomodem used by
Nagios to send SMS receive an error signal. 

I develop some procedure to be sure than all SMS are sent (verify the GSM
network , radiomodem on, etc.), but this BB behaviour can hang my radiomodem
… did you meet same problems in your environments? 

 

regards

 

Marco Borsani

Unix and Monitoring Sysadmin

Technical Operations Dpt.

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet Srl

Società con socio unico

Direzione e Coordinamento di Libero S.r.l.

 

--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
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] Plugin check_oracle_health

2012-10-29 Thread Claudio Kuenzler
You didn't correctly install the DBD::Oracle or your env variables are not
correct, as your error message shows it:

Can't locate DBD/Oracle.pm in @INC (@INC contains:
/usr/local/nagios/libexec /etc/perl /usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at
(eval 13) line 3.

You said that you have set the paths in .bashrc:

I also set in .bashrc the enviroment variables:
export ORACLE_HOME=/usr/lib/oracle/11.2/client
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

You probably set this as root. Don't forget that Nagios runs under its own
user! (by default: nagios).



On Mon, Oct 29, 2012 at 9:50 AM, Cosmin Neagu wrote:

>  Hi Nagios Users,
> Can someone help me or give a hint on why check_oracle_health does not
> work (as describe below) ?
>
>  On 10/23/2012 04:59 PM, Cosmin Neagu wrote:
>
> Hi all,
>
> I manage to install the oracle client on nagios machine after all (google
> is the best) and making all the necesary setting so that
> check_oracle_health is working from command line as nagios user:
>
> nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect
> IGAS --username abc --password abc --mode=tnsping
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 4163.
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 6167.
> OK - connection established to IGAS.
> nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect
> IGAS --username abc --password abc --mode=connection-time
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 4163.
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 6167.
> OK - 0.10 seconds to connect as iapc_etl | connection_time=0.0968;1;5
> nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect
> IGAS --username abc --password abc --mode=connected-users
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 4163.
> Use of qw(...) as parentheses is deprecated at ./check_oracle_health line
> 6167.
> OK - 31 connected users | connected_users=31;50;100
>
>
> The command is defined like this:
> define command{
> command_name check_oracle_health
> command_line $USER1$/check_oracle_health $ARG1$
> }
>
> And the services:
> define service {
> use generic-service
> host_name   DBIGASDS
> service_description Reachability via tnsping
> check_command   check_oracle_health! --connect IGAS
> --username abc --password abc --mode=tnsping
> contactscosmin
> }
>
> define service {
> use generic-service
> host_name   DBIGASDS
> service_description Connection time to DB
> check_command   check_oracle_health!--connect IGAS
> --username abc --password abc mode=connection-time
> contactscosmin
> }
> define service {
> use generic-service
> host_name   DBIGASDS
> service_description Connected users to DB
> check_command   check_oracle_health!--connect IGAS
> --username abc --password abc mode=connected-users
> contactscosmin
>
>
> I also set in .bashrc the enviroment variables:
> export ORACLE_HOME=/usr/lib/oracle/11.2/client
> export PATH=$PATH:$ORACLE_HOME/bin
> export LD_LIBRARY_PATH=$ORACLE_HOME/lib
>
>
> But, in Nagios 3.4.1, i do not receive the corect status for those
> services:
> For all 3 services i receive:
> CRITICAL - cannot connect to IGAS. install_driver(Oracle) failed: Can't
> locate DBD/Oracle.pm in @INC (@INC contains: /usr/local/nagios/libexec
> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at (eval 13) line 3.
>
>
> I realy don't know what to check anymore and why does it say that, so any
> help would be apreciated.
>
> More info:
> nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health -V
> check_oracle_health (1.7.3)
> nagios@monitor:/usr/local/nagios/etc$ uname -a
> Linux monitor 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC
> 2012 i686 i686 i386 GNU/Linux
> nagios@monitor:/usr/local/nagios/etc$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:Ubuntu 12.04.1 LTS
> Release:12.04
> Codename:   precise
>
>  Cosmin Neagu
>  NOC Team Leader
>  Str. I. G. Duca nr. 36
>  Otopeni, Judetul Ilfov, 075100 Romania
>  Tel: 021 303 3159 / 0732 669 193
>  www.omnilogic.ro
>
> On 10/03/2012 09:34 AM, Claudio Kuenzler wrote:
>
> It's not that hard and a lot of things are written in the documentation of
> check_oracle_health.
> I even wrote an article about this in September 2011 e

Re: [Nagios-users] Plugin check_oracle_health

2012-10-29 Thread Cosmin Neagu

Hi Nagios Users,
Can someone help me or give a hint on why check_oracle_health does not 
work (as describe below) ?


On 10/23/2012 04:59 PM, Cosmin Neagu wrote:

Hi all,

I manage to install the oracle client on nagios machine after all 
(google is the best) and making all the necesary setting so that 
check_oracle_health is working from command line as nagios user:


nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health 
--connect IGAS --username abc --password abc --mode=tnsping
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 4163.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 6167.

OK - connection established to IGAS.
nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health 
--connect IGAS --username abc --password abc --mode=connection-time
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 4163.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 6167.

OK - 0.10 seconds to connect as iapc_etl | connection_time=0.0968;1;5
nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health 
--connect IGAS --username abc --password abc --mode=connected-users
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 4163.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health 
line 6167.

OK - 31 connected users | connected_users=31;50;100


The command is defined like this:
define command{
command_name check_oracle_health
command_line $USER1$/check_oracle_health $ARG1$
}

And the services:
define service {
use generic-service
host_name   DBIGASDS
service_description Reachability via tnsping
check_command   check_oracle_health! --connect IGAS 
--username abc --password abc --mode=tnsping

contactscosmin
}

define service {
use generic-service
host_name   DBIGASDS
service_description Connection time to DB
check_command   check_oracle_health!--connect IGAS 
--username abc --password abc mode=connection-time

contactscosmin
}
define service {
use generic-service
host_name   DBIGASDS
service_description Connected users to DB
check_command   check_oracle_health!--connect IGAS 
--username abc --password abc mode=connected-users

contactscosmin


I also set in .bashrc the enviroment variables:
export ORACLE_HOME=/usr/lib/oracle/11.2/client
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib


But, in Nagios 3.4.1, i do not receive the corect status for those 
services:

For all 3 services i receive:
CRITICAL - cannot connect to IGAS. install_driver(Oracle) failed: 
Can't locate DBD/Oracle.pm in @INC (@INC contains: 
/usr/local/nagios/libexec /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 
/usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
(eval 13) line 3.



I realy don't know what to check anymore and why does it say that, so 
any help would be apreciated.


More info:
nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health -V
check_oracle_health (1.7.3)
nagios@monitor:/usr/local/nagios/etc$ uname -a
Linux monitor 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 
UTC 2012 i686 i686 i386 GNU/Linux

nagios@monitor:/usr/local/nagios/etc$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 12.04.1 LTS
Release:12.04
Codename:   precise

  Cosmin Neagu
  NOC Team Leader
  Str. I. G. Duca nr. 36
  Otopeni, Judetul Ilfov, 075100 Romania
  Tel: 021 303 3159 / 0732 669 193
  www.omnilogic.ro
On 10/03/2012 09:34 AM, Claudio Kuenzler wrote:
It's not that hard and a lot of things are written in the 
documentation of check_oracle_health.
I even wrote an article about this in September 2011 explaining the 
steps:
http://www.claudiokuenzler.com/blog/192/install-perl-dbd-oracle-DBD::Oracle-on-SuSE-SLES10-without-cpan 



You should do it the way you prefer of course. But in my setup I 
wanted to run check_oracle_health on a standalone Nagios server. That 
way I also see if there's a latency in the remote sql query. Real 
life applications rarely use localhost connections.


On Wed, Oct 3, 2012 at 8:14 AM, Cosmin Neagu 
mailto:cosmin.ne...@omnilogic.ro>> wrote:


Well, thats the hard part for me, installing those ORA files -
didnt find yet how to do that. I think installing the plugin on
DBServer and using NRPE is easier.

  Cosmin Neagu
  NOC Team Leader
  Str. I. G. Duca nr. 36
  Otopeni, Judetul Ilfov, 075100 Romania
  Tel: 021 303 3159 / 0732 669 193
  www.omnilogic.ro  

On 10/02/2012 06:05 PM, Claudio Kuenzler wrote:


The plugin