[Nagios-users] UTF-8 characters in Nagios UI

2010-05-06 Thread Kumar, Ashish
Hello,

We are currently using Nagios 3.0.6 on RHEL 5.

I have checked Nagios archives already but there is something I found
strange, so I am posting it here.

I was testing UTF-8 support in Nagios with following are the results:

1.  Created 3 filesystems /Индия, /भारत, /インド (thank you Google translate)
Results:
All of them appear as it is in "Service section" in Nagios UI

2.  Defined a NSCA service and sent messages in different languages with
different severity level
Result:
E-mails are sent with UTF-8 characters perfectly fine
The message appears with junk characters in "Status Information" section of
Nagios UI

It's pretty interesting that UTF-8 characters appear perfectly fine in
"Service" section but not in "Status Information" that too in same UI.  Is
there a way to fix this?

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

[Nagios-users] Meaningful subject lines in e-mail alert

2010-05-06 Thread Kumar, Ashish
Greetings,

We are sending e-mail alerts on host/service state change.  I was just
wondering what do you guys use as subject lines; just looking around for
ideas.

Thank you in advance.
--

___
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] check_disk plugin

2010-05-06 Thread Davide Blasi


Aidan Anderson wrote :

>Davide Blasi wrote:
>> with or without quotes give me the same result :(
>>
>>   
>
> Try using single quotes, e.g.
>
> -I '/my/fist/.*' -I '/second/.*'

No, It doesn't works :(
But I don't think that is a quote problem. 
If I invert path order, the check correctly accepts first argument but ignore 
the others.

Dave


--
___
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] check_disk plugin

2010-05-06 Thread Aidan Anderson
Davide Blasi wrote:
> with or without quotes give me the same result :(
>
>   

Try using single quotes, e.g.

-I '/my/fist/.*' -I '/second/.*'



--
___
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.cmd does not seem to work properly

2010-05-06 Thread Morris, Patrick
Cedric Jeanneret wrote:
> Hello,
>
> We'd like to use nagios.cmd pipe to send some signals. According to the 
> examples in documentation, we can do a simple thing like that :
>
> /bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM;host1;1;1;1;Some One;Some 
> Acknowledgement Comment\n" $now > $commandfile
>
> The problem is, it seems it's not taken in account - no log in nagios.log, no 
> message is printed in shell, and more over nagios doesn't seem to do anything.
>
> I tested with an error inside the command, and it seems to be parsed:
> [1273156151] Warning: Unrecognized external command -> 
> SCHEDULE_HOST_SVC_CHECKs;fqdn;1273156151
>
> but nothing else happens.
>
> Is there a way to be sure that nagios do what we ask?
>
> The main thing is:
> - we're using NSCA plugin so that we have about 80 servers with their own 
> nagios, sending results and status to a single host
> - we tried to run this command only on remote hosts - maybe we have to use it 
> on the nsca server ?

You do, of course, have to run this on the Nagios server, since that's 
where the pipe is.  The message in your log seems to indicate you typo'd 
the SCHEDULE_HOST_SVC_CHECK  command.

If you're using NSCA, your pipe works: it submits commands to Nagios the 
same way.

--
___
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] high host latency on nagios master

2010-05-06 Thread shadih rahman
try lowering max_check_result_reaper value  I had good luck playing with
that value.  Thanks

On Tue, May 4, 2010 at 8:13 PM, Trisha Hoang  wrote:

> Hi,
> The nagios *master *got really high host latency and I'm not sure how to
> tweak it. I ran the check_ping plugin on a handful of hosts and the rta
> averaged at 0.2 second so it's not the network.
>
> *Environment:*
> - 565 hosts
> - 6790 passive checks from the slaves
> - not using event broker
> - master server *actively* executes the hosts checks every 5 minutes and 
> *passively
> *processes checks every 1 minute
> - not doing performance data
>
> *Nagiostats*
>
> Nagios Stats 3.2.1
> Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
> Last Modified: 03-09-2010
> License: GPL
>
> CURRENT STATUS DATA
> --
> Status File:/var/log/nagios/status.dat
> Status File Age:0d 0h 0m 23s
> Status File Version:3.2.1
>
> Program Running Time:   0d 1h 32m 19s
> Nagios PID: 28282
> Used/High/Total Command Buffers:1316 / 3066 / 4096
>
> Total Services: 7745
> Services Checked:   7745
> Services Scheduled: 1381
> Services Actively Checked:  955
> Services Passively Checked: 6790
> Total Service State Change: 0.000 / 9.740 / 0.007 %
> Active Service Latency: 18.948 / 205.144 / 165.751 sec
> Active Service Execution Time:  0.007 / 9.051 / 0.055 sec
> Active Service State Change:0.000 / 5.460 / 0.006 %
> Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
> Passive Service Latency:34.359 / 190.247 / 76.739 sec
> Passive Service State Change:   0.000 / 9.740 / 0.008 %
> Passive Services Last 1/5/15/60 min:0 / 3054 / 6774 / 6784
> Services Ok/Warn/Unk/Crit:  7720 / 1 / 0 / 24
> Services Flapping:  27
> Services In Downtime:   0
>
> Total Hosts:566
> Hosts Checked:  566
> Hosts Scheduled:566
> Hosts Actively Checked: 566
> Host Passively Checked: 0
> Total Host State Change:0.000 / 0.000 / 0.000 %
> Active Host Latency:0.000 / 3410.087 / 2413.051 sec
> Active Host Execution Time: 0.007 / 10.010 / 0.063 sec
> Active Host State Change:   0.000 / 0.000 / 0.000 %
> Active Hosts Last 1/5/15/60 min:0 / 8 / 10 / 565
> Passive Host Latency:   0.000 / 0.000 / 0.000 sec
> Passive Host State Change:  0.000 / 0.000 / 0.000 %
> Passive Hosts Last 1/5/15/60 min:   0 / 0 / 0 / 0
> Hosts Up/Down/Unreach:  563 / 3 / 0
> Hosts Flapping: 1
> Hosts In Downtime:  0
>
> Active Host Checks Last 1/5/15 min: 5 / 32 / 75
>Scheduled:   0 / 0 / 0
>On-demand:   5 / 32 / 75
>Parallel:1 / 11 / 23
>Serial:  0 / 0 / 0
>Cached:  4 / 21 / 52
> Passive Host Checks Last 1/5/15 min:0 / 0 / 0
> Active Service Checks Last 1/5/15 min:  0 / 0 / 0
>Scheduled:   0 / 0 / 0
>On-demand:   0 / 0 / 0
>Cached:  0 / 0 / 0
> Passive Service Checks Last 1/5/15 min: 2 / 1455 / 1455
>
> External Commands Last 1/5/15 min:  1302 / 6063 / 20253
>
>
> *Nagios.cfg*
>
> # EXTERNAL COMMAND CHECK INTERVAL
> # This is the interval at which Nagios should check for external commands.
> # This value works of the interval_length you specify later.  If you leave
> # that at its default value of 60 (seconds), a value of 1 here will cause
> # Nagios to check for external commands every minute.  If you specify a
> # number followed by an "s" (i.e. 15s), this will be interpreted to mean
> # actual seconds rather than a multiple of the interval_length variable.
> # Note: In addition to reading the external command file at regularly
> # scheduled intervals, Nagios will also check for external commands after
> # event handlers are executed.
> # NOTE: Setting this value to -1 causes Nagios to check the external
> # command file as often as possible.
>
> #command_check_interval=15s
> command_check_interval=-1
>
> # SERVICE INTER-CHECK DELAY METHOD
> # This is the method that Nagios should use when initially
> # "spreading out" service checks when it starts monitoring.  The
> # default is to use smart delay calculation, which will try to
> # space all service checks out evenly to minimize CPU load.
> # Using the dumb setting will cause all checks to be scheduled
> # at the same time (with no delay between them)!  This is not a
> # good thing for prod

Re: [Nagios-users] nagios.cmd does not seem to work properly

2010-05-06 Thread Assaf Flatto
Cedric Jeanneret wrote:
> Hello,
>
> We'd like to use nagios.cmd pipe to send some signals. According to the 
> examples in documentation, we can do a simple thing like that :
>
> /bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM;host1;1;1;1;Some One;Some 
> Acknowledgement Comment\n" $now > $commandfile
>
> The problem is, it seems it's not taken in account - no log in nagios.log, no 
> message is printed in shell, and more over nagios doesn't seem to do anything.
>
> I tested with an error inside the command, and it seems to be parsed:
> [1273156151] Warning: Unrecognized external command -> 
> SCHEDULE_HOST_SVC_CHECKs;fqdn;1273156151
>
> but nothing else happens.
>
> Is there a way to be sure that nagios do what we ask?
>
> The main thing is:
> - we're using NSCA plugin so that we have about 80 servers with their own 
> nagios, sending results and status to a single host
> - we tried to run this command only on remote hosts - maybe we have to use it 
> on the nsca server ?
>
> Any help is welcome.
>
> Thank you in advance !
>
> Best regards,
>
> C.
>
>   
Enable the nagios debug ( see bottom of nagios.cfg file ) and test again 
what you insert .
Although the nagios debug file fills up and grows quite fast so you need 
to make sure to have sufficient space to have the input you want .

from what I know - external commands are logged in the nagios log - 
again check the option in the nagios.cfg

Assaf

-- 
Never,Ever Cut A Deal With a Dragon 


I am doing a Charity Bike ride On the 27 of June for the
Capital to Coast Charity. Please help by Donating
http://www.justgiving.com/Lovefilm-capital-to-coast



--
___
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.cmd does not seem to work properly

2010-05-06 Thread Cedric Jeanneret
Hello,

We'd like to use nagios.cmd pipe to send some signals. According to the 
examples in documentation, we can do a simple thing like that :

/bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM;host1;1;1;1;Some One;Some 
Acknowledgement Comment\n" $now > $commandfile

The problem is, it seems it's not taken in account - no log in nagios.log, no 
message is printed in shell, and more over nagios doesn't seem to do anything.

I tested with an error inside the command, and it seems to be parsed:
[1273156151] Warning: Unrecognized external command -> 
SCHEDULE_HOST_SVC_CHECKs;fqdn;1273156151

but nothing else happens.

Is there a way to be sure that nagios do what we ask?

The main thing is:
- we're using NSCA plugin so that we have about 80 servers with their own 
nagios, sending results and status to a single host
- we tried to run this command only on remote hosts - maybe we have to use it 
on the nsca server ?

Any help is welcome.

Thank you in advance !

Best regards,

C.

-- 
Cédric Jeanneret |  System Administrator
021 619 10 32|  Camptocamp SA
cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL

--
___
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] Different contacts for services on same host

2010-05-06 Thread Assaf Flatto
Sebastian Gosenheimer wrote:
> Hi everybody,
>
> i'm just having some problems with my contacts and contactgroups.
>
> Let's say, i have a contactgroup xy and a contact ab. I set up a host with 
> the contactgroup xy and some services on this host with the contactgroup xy. 
> But now i have a "special" service on this host, where i only want 
> notifications send to the contact ab. Nagios is also sending the notification 
> e-mails correctly to the contact ab, but it's also sending the notification 
> e-mails to the contactgroup xy.
>
> Can someone tell what i'm missing? Thank you for your help!
>
> Kind regards,
> --sg
>
>   
Is  the service using any templates ?
Does the template have a contactgroup  directive in it ?

you need to override any template or wide definitions that cover the 
service and put in the service specific definitions the directive : 
"contacts ab"

this will tell the service to just send to the specific contact .

Assaf

-- 
Never,Ever Cut A Deal With a Dragon 


I am doing a Charity Bike ride On the 27 of June for the
Capital to Coast Charity. Please help by Donating
http://www.justgiving.com/Lovefilm-capital-to-coast



--
___
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] Check for the IBM ds4000 series totalstorage cabinett - FIX

2010-05-06 Thread Giorgio Zarrelli
Hi,

yes you can. I splitted all the major files in smaller files and nested
directories, so it's easier for me to manage all the services and hosts.

And I assure you, I have an heavy "split" configuration.


> Hi at all,
> I'm newbie on nagios and I'm writing here to ask you for suggestions
> abut how to structure my monitoring situation.
> I've to monitor linux servers for about 15/20 customers, from 1 to 5
> server for each customer.
> We aren't on vpn with customers, so this servers are all behind NAT.
> That isn't a problem because we are the administrator of the firewall
> (other linux server) so we can manage any kind of DNAT and filter
> rule.
>
> I read on official documentation that suggest to use NCSA addon for
> distributed monitoring, but we choose to use NRPE addon for different
> motivations like:
> -customer force us to do that
> -the number of monitored servers for each customer will never grow up
> -the services to monitor for each server are the same (raid hw/sw,
> disk usage etc)
> -we need a completly centralized monitoring structure
>
> For last sentence I thought to use the arguments option on NRPE (yes,
> I read the SECURITY document).
> Besides, to solve the problem of NAT with NRPE I'll do DNAT on
> firewall and the port parameter on check_nrpe plugin (is there
> problems to do that? I did little tests but I prefear a confirm)
>
>
> To manage this structure I need to organized a well-formed config file
> structure on nagios server.
>
> I thinked to structure it like this
>
> obj--|
>   |-->templatelinuxserversgeneral.cfg
>   |
>   |-->customer_1_directory|->templateserver.cfg
>   |   |->server1.cfg
>   |   |->server2.cfg
>   |   |->servern.cfg
>   |
>   |-->customer_2_directory|->templateserver.cfg
>   |->server1.cfg
>   |->servern.cfg
>
>
> Where:
> -templatelinuxserversgeneral.cfg is a very basic template for server
> -customer_1_directory in wich there is 1 file for each customer's server
> -templateserver.cfg will use templatelinuxserversgeneral and will add
> more specific common variabiles for that customer's server like the
> public IPAddress that will be the same for each customer's server.
> -servern.cfg in wich there will be some very specific server variables
> like nrpe port (read up).
>
> What do you think?
> How can I organize that service-server combination?
>
>
> Thank's so much
>
> P.S. sorry for my bad english
>
> --
> Enrico Zimol
>
> --
> ___
> 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] High latency when 15% hosts offline

2010-05-06 Thread kristian
Hi

I'm running Nagios Core 3.2.1

Currently we have a network switch down, meaning all hosts beneath that
switch are unreachable, 42 in number (from a total of 336) . In Nagios I
have the switch set up as the parent. The switch I have set to be in
scheduled downtime until we get a replacement, to prevent notifications
being sent out.

I am finding that the service check latency is enormous and the scheduling
queue is slipping behind in time. For example, it is now 11:04am and the
next check at the top of the scheduling queue should have run at 9:52am.

Here are the service metrics from the Perf. Info page;

Check Execution Time:   0.00 sec30.19 sec   2.170 sec 
Check Latency:  0.00 sec13612.54 sec7025.395 sec
Percent State Change:   0.00%   17.37%  0.50%

Are there any ways I can reduce this latency, other than disabling active
checks on all the unreachable hosts? Or any 'parallel' check tweaks I may
have mis-configured?

I'm happy to provide any other info

Thanks for any help
Kristian

 
--
___
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] Distributed monitoring

2010-05-06 Thread Enrico Zimol
wrong 3d before, sorry

On 6 May 2010 11:55, Enrico Zimol  wrote:
> Hi at all,
> I'm newbie on nagios and I'm writing here to ask you for suggestions
> abut how to structure my monitoring situation.
> I've to monitor linux servers for about 15/20 customers, from 1 to 5
> server for each customer.
> We aren't on vpn with customers, so this servers are all behind NAT.
> That isn't a problem because we are the administrator of the firewall
> (other linux server) so we can manage any kind of DNAT and filter
> rule.
>
> I read on official documentation that suggest to use NCSA addon for
> distributed monitoring, but we choose to use NRPE addon for different
> motivations like:
> -customer force us to do that
> -the number of monitored servers for each customer will never grow up
> -the services to monitor for each server are the same (raid hw/sw,
> disk usage etc)
> -we need a completly centralized monitoring structure
>
> For last sentence I thought to use the arguments option on NRPE (yes,
> I read the SECURITY document).
> Besides, to solve the problem of NAT with NRPE I'll do DNAT on
> firewall and the port parameter on check_nrpe plugin (is there
> problems to do that? I did little tests but I prefear a confirm)
>
>
> To manage this structure I need to organized a well-formed config file
> structure on nagios server.
>
> I thinked to structure it like this
>
> obj--|
>        |-->templatelinuxserversgeneral.cfg
>        |
>        |-->customer_1_directory|->templateserver.cfg
>        |                       |->server1.cfg
>        |                       |->server2.cfg
>        |                       |->servern.cfg
>        |
>        |-->customer_2_directory|->templateserver.cfg
>                                |->server1.cfg
>                                |->servern.cfg
>
>
> Where:
> -templatelinuxserversgeneral.cfg is a very basic template for server
> -customer_1_directory in wich there is 1 file for each customer's server
> -templateserver.cfg will use templatelinuxserversgeneral and will add
> more specific common variabiles for that customer's server like the
> public IPAddress that will be the same for each customer's server.
> -servern.cfg in wich there will be some very specific server variables
> like nrpe port (read up).
>
> What do you think?
> How can I organize that service-server combination?
>
>
> Thank's so much
>
> P.S. sorry for my bad english
>
> --
> Enrico Zimol
>

--
___
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] Check for the IBM ds4000 series totalstorage cabinett - FIX

2010-05-06 Thread Enrico Zimol
Hi at all,
I'm newbie on nagios and I'm writing here to ask you for suggestions
abut how to structure my monitoring situation.
I've to monitor linux servers for about 15/20 customers, from 1 to 5
server for each customer.
We aren't on vpn with customers, so this servers are all behind NAT.
That isn't a problem because we are the administrator of the firewall
(other linux server) so we can manage any kind of DNAT and filter
rule.

I read on official documentation that suggest to use NCSA addon for
distributed monitoring, but we choose to use NRPE addon for different
motivations like:
-customer force us to do that
-the number of monitored servers for each customer will never grow up
-the services to monitor for each server are the same (raid hw/sw,
disk usage etc)
-we need a completly centralized monitoring structure

For last sentence I thought to use the arguments option on NRPE (yes,
I read the SECURITY document).
Besides, to solve the problem of NAT with NRPE I'll do DNAT on
firewall and the port parameter on check_nrpe plugin (is there
problems to do that? I did little tests but I prefear a confirm)


To manage this structure I need to organized a well-formed config file
structure on nagios server.

I thinked to structure it like this

obj--|
|-->templatelinuxserversgeneral.cfg
|
|-->customer_1_directory|->templateserver.cfg
|   |->server1.cfg
|   |->server2.cfg
|   |->servern.cfg
|
|-->customer_2_directory|->templateserver.cfg
|->server1.cfg
|->servern.cfg


Where:
-templatelinuxserversgeneral.cfg is a very basic template for server
-customer_1_directory in wich there is 1 file for each customer's server
-templateserver.cfg will use templatelinuxserversgeneral and will add
more specific common variabiles for that customer's server like the
public IPAddress that will be the same for each customer's server.
-servern.cfg in wich there will be some very specific server variables
like nrpe port (read up).

What do you think?
How can I organize that service-server combination?


Thank's so much

P.S. sorry for my bad english

-- 
Enrico Zimol

--
___
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] check_disk plugin

2010-05-06 Thread Davide Blasi

with or without quotes give me the same result :(

Dave

Date: Wed, 5 May 2010 16:12:49 +0200
From: Richard Lynch 
To: Nagios Users List 
Subject: Re: [Nagios-users] check_disk plugin


I would have wrapped he wlidcard paths in quotes, but I have no idea if
that's right or not...

-I "/my/fist/.*" -I "/second/.*"



On 5/5/10 5:49 AM, "Davide Blasi"  wrote:

> 
> Hi list,
> 
> I have a question about check_disk plugin.
> Running check_disk -h I read :
> 
> [...]
>  -I, --ignore-eregi-path=PATH, --ignore-eregi-partition=PARTITION
> Regular expression to ignore selected path/partition (case insensitive)
> (may be repeated)
> [...]
> 
> Good it working fine :)
> 
> But now I have to add another path to ignore.
> This help say "may be repeated" but if I try to use my check like this " -I
> /my/fist/.* -I /second/.* " only first occurrence works.
> I tried with one -I using coma, colon, semicolon or space to separate paths
> but nothing works :(
> 
> How can I concatenate more than one path to ignore ?
> 
> Thank you in advance and sorry for my bad English ;)
> 
> Dave
> 
> 
> --
> ___
> 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


[Nagios-users] Check for the IBM ds4000 series totalstorage cabinett - FIX

2010-05-06 Thread Giorgio Zarrelli
Hi,

after the latest firmware upgrade to a IBM DS 4700, the "Check for the IBM
ds4000 series totalstorage cabinet" stopped working.

I made a small fix to the perl plugin, just 2 lines. To have the plugin
working with the latest cli, make this substitutions:

Line 164

Change

if($line=~/Array status:\s*([^\s]*)/i) {

with

if(($line=~/Array status:\s*([^\s]*)/i) || ($line=~/Status:\s*([^\s]*)/i)) {


Line 167

Change

if(!defined($array_status) || !($array_status=~/online/i)) {

with

if(!defined($array_status) || !(($array_status=~/online/i) ||
($array_status=~/optimal/i))) {

Done, now it should work. The latest upgrade changes the output of cli
messages, that's why the script doesn't work anymore. The fix traps the
old and new status messages.

Hope it helps

Cheers,

Giorgio Zarrelli


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