Re: [Nagios-users] R: send passive result without obsess over service

2012-04-19 Thread andrew.ford
Would it work to build the send_nsca call directly into your plugin?

Alternately, perhaps a wrapper to generically add send_nsca to various commands?

Then your command definition could go from

$USER1$/myplug args moreargs

to

$USER1$/my_send_nsca_wrapper  $USER1$/myplug args moreargs

Andy Ford
Network Security Engineer | Wells Fargo Bank - Information Security Technology
314-348-4937
andrew.f...@wellsfargo.com

From: Marco Borsani [mailto:m.bors...@it.net]
Sent: Thursday, April 19, 2012 9:22 AM
To: 'Nagios Users List'
Subject: [Nagios-users] R: send passive result without obsess over service

I am already using nsca with obsess over service.
I supposed I will be use event_handler option …

Any other way to follow ?

Marco

Da: Giorgio Zarrelli [mailto:zarre...@linux.it]
Inviato: giovedì 19 aprile 2012 16:02
A: Nagios Users List
Cc: NAGIOS
Oggetto: Re: [Nagios-users] send passive result without obsess over service

Use nrdp or nsca.

Ciao,

Giorgio

Il giorno 19/apr/2012, alle ore 14:44, Marco Borsani 
m.bors...@it.netmailto:m.bors...@it.net ha scritto:
Hi
I need to send few service results from two Nagios servers, but not for all the 
services configured on the main server.

When I sent all the service results I used obsess over service, but now ?
How can I do ?

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.

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.netmailto: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
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
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] nagiostats failure

2012-04-11 Thread andrew.ford
I'm running two instances of nagios (for distributed monitoring testing) on one 
server and nagiostats works well for the main instance installed under 
/usr/local/nagios. For the polling instance, located under 
/usr/local/nagios-collector, nagiostats fails to deliver.

Is there another way to get the service latency besides nagiostats?

nagios2@96:/usr/local/nagios-collector/etc 
/usr/local/nagios-collector/bin/nagiostats 
--config=/usr/local/nagios-collector/etc/nagios.cfg  
--statsfile=/usr/local/nagios-collector/var/status.dat

Nagios Stats 3.3.1
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 07-25-2011
License: GPL

CURRENT STATUS DATA
--
Status File:
/usr/local/nagios-collector/var/status.dat
Status File Age:0d 0h 0m 14s
Status File Version:(null)

Program Running Time:   0d 0h 20m 21s
Nagios PID: 21596
Used/High/Total Command Buffers:0 / 0 / 4096

Total Services: 0
Services Checked:   0
Services Scheduled: 0
Services Actively Checked:  0
Services Passively Checked: 0
Total Service State Change: 0.000 / 0.000 / 0.000 %
Active Service Latency: 0.000 / 0.000 / 0.000 sec
Active Service Execution Time:  0.000 / 0.000 / 0.000 sec
Active Service State Change:0.000 / 0.000 / 0.000 %
Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
Passive Service Latency:0.000 / 0.000 / 0.000 sec
Passive Service State Change:   0.000 / 0.000 / 0.000 %
Passive Services Last 1/5/15/60 min:0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit:  0 / 0 / 0 / 0
Services Flapping:  0
Services In Downtime:   0

Total Hosts:0
Hosts Checked:  0
Hosts Scheduled:0
Hosts Actively Checked: 0
Host Passively Checked: 0
Total Host State Change:0.000 / 0.000 / 0.000 %
Active Host Latency:0.000 / 0.000 / 0.000 sec
Active Host Execution Time: 0.000 / 0.000 / 0.000 sec
Active Host State Change:   0.000 / 0.000 / 0.000 %
Active Hosts Last 1/5/15/60 min:0 / 0 / 0 / 0
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:  0 / 0 / 0
Hosts Flapping: 0
Hosts In Downtime:  0

Active Host Checks Last 1/5/15 min: 53 / 259 / 770
   Scheduled:   14 / 61 / 171
   On-demand:   39 / 198 / 599
   Parallel:25 / 107 / 329
   Serial:  0 / 0 / 0
   Cached:  27 / 151 / 441
Passive Host Checks Last 1/5/15 min:0 / 0 / 0
Active Service Checks Last 1/5/15 min:  322 / 1204 / 3872
   Scheduled:   322 / 1204 / 3872
   On-demand:   0 / 0 / 0
   Cached:  0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0

External Commands Last 1/5/15 min:  0 / 0 / 0



Andy Ford
Network Security Engineer | Wells Fargo Bank - Information Security Technology
314-348-4937
andrew.f...@wellsfargo.com

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev___
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 reschedule multiple/all services at once

2012-01-09 Thread andrew.ford
I usually combine the classic external command scripts with a smidge of perl to 
grab the members of the hostgroup that I want to trigger something for.

If you give the following script a hostgroup name, it will grab the members 
from objects.cache:

#!/usr/local/nagios/bin/perl
use warnings;
use strict;

my $hostgroup = $ARGV[0];
# here's the spot where I should be checking that $hostgroup is defined...
open my $objects,'','/usr/local/nagios/var/objects.cache' or die Failure 
opening objects file: $!\n;
$/ = '}';
while ($objects) {
if (/hostgroup_name\s+($hostgroup)/gs) {
/members\s+(\S+)/gs;
my $members = $1;
my @members = split /,/,$members;
for my $member (@members) {
print $member\n;
}
}
}
close $objects;

When you run that you get a list that you can feed to your external command 
script.
Here's the idea in shell on the command line:

bash# for x in `get_hostgroup_members big_switches`;do trigger_service_script 
$x;done


Andy Ford
Network Security Engineer | Solutions Design  Automation| Information Security 
Technology
314-348-4937
andrew.f...@wellsfargo.com

From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: Monday, January 09, 2012 2:54 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How to reschedule multiple/all services at once

On 09.01.2012 20:53, Jake Xu wrote:
Hi everyone,

From time to time, I need to restart or reschedule all services to verify that 
some new checks or new hosts are working properly. Is there any easy way to do 
that? I have a large number of hosts and services, so it would be tedious to 
click through a bunch of links via the web interface. Using external command 
is not very feasible as well because I would have to have all host names and 
service names for the command line commands.

I have seen a pretty good idea on Icinga, a Nagios fork, for this purpose. It 
has a checkbox associated with each service check and a select-all checkbox to 
select all checkboxes.

hehe. you just made ricardo and rune proud :-))


It would be useful to have that on the Nagios Core, but AFAIK there isn't any.


for the problem itsself - try OMD. nagios, icinga, shinken as core available 
whilst the gui decision is up to you.

http://omdistro.org



Thanks in advance,
Jake





--

Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex

infrastructure or vast IT resources to deliver seamless, secure access to

virtual desktops. With this all-in-one solution, easily deploy virtual

desktops for less than the cost of PCs and save 60% on VDI infrastructure

costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox





___

Nagios-users mailing list

Nagios-users@lists.sourceforge.netmailto: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




--

DI (FH) Michael Friedrich



Vienna University Computer Center

Universitaetsstrasse 7 A-1010 Vienna, Austria



email: michael.friedr...@univie.ac.atmailto:michael.friedr...@univie.ac.at

phone: +43 1 4277 14359

mobile:+43 664 60277 14359

fax:   +43 1 4277 14338

web:   http://www.univie.ac.at/zid

   http://www.aco.net



Lead Icinga Core Developer

http://www.icinga.org
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
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] scheduled downtime allows host up notification

2011-08-24 Thread andrew.ford
I have a distributed system (Nagios 3.2.1) where most of the service and host 
checks are passively submitted to the central servers that send the 
notifications.
I was surprised to find that when the checks are passive, host up and service 
recovery notifications would get sent even when the host and/or service was in 
scheduled downtime.
Bug or feature?

Andy Ford
Network Security Services, Wells Fargo
314-348-4937
andrew.f...@wellsfargo.com

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
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