[Nagios-users-br] Diminuir tempo de envio de email no nagios

2011-12-27 Thread Christiano Liberato
Senhores,

gostaria de diminuir o tempo de envio de email quando um serviço ficar down.
Alguem poderia me dizer qual parâmetro alterar?

Obrigado.
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] freshness checks not working

2011-12-27 Thread JM
Jim Avery jim at jimavery.me.uk writes:
 Is the the relevant entry for that service check in
 your objects.cache file correct?

I believe so. Do you see something out of the ordinary:

host_name   xxx
service_description yyy
check_period24x7
check_command   check_dummy!0
contact_groups  cg_xx
notification_period 24x7
initial_state   o
check_interval  1.00
retry_interval  1.00
max_check_attempts  1
is_volatile 1
parallelize_check   1
active_checks_enabled   0
passive_checks_enabled  1
obsess_over_service 1
event_handler_enabled   1
low_flap_threshold  0.00
high_flap_threshold 0.00
flap_detection_enabled  0
flap_detection_options  o,w,u,c
freshness_threshold 600
check_freshness 1
notification_optionsu,w,c
notifications_enabled   1
notification_interval   240.00
first_notification_delay0.00
stalking_optionsn
process_perf_data   1
failure_prediction_enabled  1
retain_status_information   1
retain_nonstatus_information1



--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 on CentOS

2011-12-27 Thread Chris Beattie
On 12/27/2011 9:31 AM, Jatin wrote:
 Fedora. I wanted to know if i can follow the same steps for installing
 Nagios on CentOS assuming that i have a default CentOS installation.

Yes.  I used the Fedora instructions to install Nagios on CentOS myself. 
  It has been a while since I did it, though.  The only snag I remember 
having was forgetting to install some packages like openssl-devel and 
net-snmp-devel before compiling the plug-ins.

 Also let me from which version of CentOS would it be good to install the
 latest Nagios.

I have not installed the latest version of Nagios or CentOS yet.  I am 
still running Nagios 3.2.3 on CentOS 5.x, both of which have been 
working like champs for many versions so far.




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

Thank you.


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread mpedersen
Hello.

I've installed Nagios Core 3.3.1, and can't get it to run very fast at
all.

Machine specs:
OS: CentOS 5.7
Processor: Intel(R) Xeon(R) CPU   E5420  @ 2.50GHz (8 cores)
RAM: 8G
HD: 800G, 22G used

Going by top, the load average of the machine hovers around 1.5-2.0. CPU
usage is around 12% across all cores. Memory usage shows about 7.5G being
used for buffers, so memory is actually pretty unused too.

The reason this seems incredibly underused to me is because we have 6000
hosts we're pinging. Total time for this check is around 6-7 minutes.
Considering the lack of load on this box, I'm pretty sure we can improve
the total time significantly.

We are going to aim for distributed monitoring, we're just not there yet.
I figure that's going to take another week or two for me to be comfortable
implementing.

I'm also attaching the main nagios.cfg file. If there's more information
that's needed, please let me know.


=nagios.cfg=
accept_passive_service_checks=1
admin_email=nagios
admin_pager=pagenagios
broker_module=/usr/local/nagios/bin/ndomod.o
config_file=/usr/local/nagios/etc/ndomod.cfg
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups_auto.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hostgroups_network_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/hosts_nrpe.cfg
cfg_file=/usr/local/nagios/etc/hosts_routers_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts_switches_auto.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/nrpe_auto.cfg
cfg_file=/usr/local/nagios/etc/services_auto.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/services_cisco.cfg
cfg_file=/usr/local/nagios/etc/services_manual.cfg
cfg_file=/usr/local/nagios/etc/services_nrpe.cfg
cfg_file=/usr/local/nagios/etc/services_routers_auto.cfg
cfg_file=/usr/local/nagios/etc/services_switches_auto.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_result_reaper_frequency=2
check_service_freshness=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
date_format=us
enable_embedded_perl=1
enable_event_handlers=1
enable_flap_detection=0
enable_notifications=1
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
event_handler_timeout=30
execute_host_checks=1
execute_service_checks=1
external_command_buffer_slots=4096
freshness_check_interval=60
high_host_flap_threshold=20.0
high_service_flap_threshold=20.0
host_check_timeout=30
host_inter_check_delay_method=n
host_perfdata_command=process-host-perfdata
host_perfdata_file_mode=a
host_perfdata_file_processing_command=process-host-perfdata-file
host_perfdata_file_processing_interval=15
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\
tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
illegal_macro_output_chars=`~$|'
illegal_object_name_chars=`~!$%^*|'?,()=
interval_length=60
lock_file=/usr/local/nagios/var/nagios.lock
log_archive_path=/usr/local/nagios/var/archives
log_event_handlers=1
log_external_commands=1
log_file=/usr/local/nagios/var/nagios.log
log_host_retries=1
log_initial_states=1
log_notifications=1
log_rotation_method=d
log_service_retries=1
low_host_flap_threshold=5.0
low_service_flap_threshold=5.0
max_check_result_reaper_time=10
max_concurrent_checks=0
max_host_check_spread=2
max_service_check_spread=2
nagios_group=nagios
nagios_user=nagios
notification_timeout=30
obsess_over_services=0
ocsp_timeout=5
perfdata_timeout=5
process_performance_data=1
retain_state_information=1
retention_update_interval=60
service_check_timeout=60
service_inter_check_delay_method=n
service_interleave_factor=10
service_perfdata_command=process-service-perfdata
service_perfdata_file_mode=a
service_perfdata_file_processing_command=process-service-perfdata-file
service_perfdata_file_processing_interval=15
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::
$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata
sleep_time=1
state_retention_file=/usr/local/nagios/var/status.sav
status_file=/usr/local/nagios/var/status.log
status_update_interval=15
temp_file=/usr/local/nagios/var/nagios.tmp
use_agressive_host_checking=0
use_large_installation_tweaks=1
use_retained_program_state=0
use_syslog=0



[Nagios-users] Nagios on CentOS

2011-12-27 Thread Jatin
Hi

I have earlier used Nagios on Fedora 13 and was successful in installing 
Nagios without any hiccups using the quick installation guide meant for 
Fedora. I wanted to know if i can follow the same steps for installing 
Nagios on CentOS assuming that i have a default CentOS installation.

Also let me from which version of CentOS would it be good to install the 
latest Nagios.

Appreciate your responses and suggestions in this regard.

Thanks
Jatin

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] Newbie: controlling bad packets.

2011-12-27 Thread Network Operation Center FMC Luxemburg

Hi the List,

I would control if bad packets has been rejected on a given lan for any 
or several machines


A command like this :

check_rejected_packets -L lan address, i.e 192.168.0.0, or a lot of 
addresses, or an intervall -T elapsed times in seconds


Any ideas? A plugin exists for this control?

--
Francois
Network Operation Center FMC Luxembourg
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
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] freshness checks not working

2011-12-27 Thread JM
Jim Avery jim at jimavery.me.uk writes:

  Can someone tell me why some real services derived from the above template
  do not seem to do the freshness checks?
 
 Are you sure they don't do the freshness check?  


Definitely, once a trap was received, the state remains critical...


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 on CentOS

2011-12-27 Thread Alain Williams
On Tue, Dec 27, 2011 at 08:01:49PM +0530, Jatin wrote:
 Hi
 
 I have earlier used Nagios on Fedora 13 and was successful in installing 
 Nagios without any hiccups using the quick installation guide meant for 
 Fedora. I wanted to know if i can follow the same steps for installing 
 Nagios on CentOS assuming that i have a default CentOS installation.
 
 Also let me from which version of CentOS would it be good to install the 
 latest Nagios.

Choose the version of centos for the applications that you run, not for
nagios. If there is no compelling reason - use the latest - centos 6.
I have run nagios on centos for many years, it works well ... the main problem
is that the default config has changed several times, directories changed, etc,
which has broken it several times ... not to hard to get working again, but
a pain.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 on CentOS

2011-12-27 Thread Alain Williams
On Tue, Dec 27, 2011 at 11:02:51AM -0500, Chris Beattie wrote:
 On 12/27/2011 9:31 AM, Jatin wrote:
  Fedora. I wanted to know if i can follow the same steps for installing
  Nagios on CentOS assuming that i have a default CentOS installation.
 
 Yes.  I used the Fedora instructions to install Nagios on CentOS myself. 
   It has been a while since I did it, though.  The only snag I remember 
 having was forgetting to install some packages like openssl-devel and 
 net-snmp-devel before compiling the plug-ins.

Don't bother to compile them, use Dag's archive:

rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 on CentOS

2011-12-27 Thread Daniel Wittenberg
I would second that, use the RPM's and then it's super-simple RPM installs and 
a few tweaks for performance and you should be good.

Dan


-Original Message-
From: Alain Williams [mailto:a...@phcomp.co.uk] 
Sent: Tuesday, December 27, 2011 10:13 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios on CentOS

On Tue, Dec 27, 2011 at 11:02:51AM -0500, Chris Beattie wrote:
 On 12/27/2011 9:31 AM, Jatin wrote:
  Fedora. I wanted to know if i can follow the same steps for installing
  Nagios on CentOS assuming that i have a default CentOS installation.
 
 Yes.  I used the Fedora instructions to install Nagios on CentOS myself. 
   It has been a while since I did it, though.  The only snag I remember 
 having was forgetting to install some packages like openssl-devel and 
 net-snmp-devel before compiling the plug-ins.

Don't bother to compile them, use Dag's archive:

rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] servicedependencies not working

2011-12-27 Thread Daniel Wittenberg
Yeah I've been starting to play with using hostgroups to tie them together 
since I can't really use hosts, but so far just limited on time due to 
holidays, I hope to get more testing done this week but initial testing looks 
like if I can specify the hostgroups in these configs then it works.

Dan

-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se] 
Sent: Friday, December 23, 2011 7:09 AM
To: Nagios Users List
Cc: Daniel Wittenberg
Subject: Re: [Nagios-users] servicedependencies not working

On 12/16/2011 04:38 AM, Daniel Wittenberg wrote:
 I've started playing with making a bunch of dependencies and at first it 
 appeared to be working, right now I've got a pretty basic test setup. I've 
 added one service to be dependent on the other one, but it seems that the 
 freshness might be mucking with it.  Two services below:
 
 
 define service {
   service_description  base_log_checks
   servicegroupsbase_service_group
   hostgroup_name   base_windows_2003
   use  generic-passive-service
   check_freshness  1
   freshness_threshold  3600
   check_commandservice_is_
 }
 
 define service {
   service_description  nagios_cron
   servicegroupsbase_service_group
   hostgroup_name   base_windows_2003
   use  generic-passive-service
   check_freshness  1
   freshness_threshold  3000
   check_commandservice_is_stale
 }
 
 define servicedependency {
  service_description nagios_cron
  dependent_service_description   base_log_checks
  execution_failure_criteria  w,u,c
  notification_failure_criteria   w,u,c
  inherits_parent 1
 }
 
 What appears to happen is that I kill nsclient so nagios_cron starts 
 reporting stale at 3000 seconds,  and the same for base_log_checks shortly 
 after.  Then about every hour I get more stale soft alerts, and then after 
 the third try it goes to a HARD alert and I still get a ticket, though I'm 
 not sure why it's even checking if execution should be disable when 
 nagios_cron is in a warning state.  But not only does the active checks 
 (service_is_stale) get executed but I'm also still getting notifications sent 
 after 3 attempts, so it doesn't really appear to be doing anything.  
 Unfortunately right now these servers are so busy it's hard to put them in 
 debug mode.  Have I missed something obvious with these?

I must say though, with the size of your environment, it's quite possible that
just looking up the dependency takes longer than it does to just execute the
extra check. If you're looking to save time, that might well bite you in the
ass. It's something that will probably be improved til Nagios 4, but it will
require a change in Nagios' object structure, so we can't really do it without
upping the major version number :-/

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

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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread Daniel Wittenberg
Not meaning to toot my own horn, but for larger scales I did a presentation 
that has config examples and stuff, based on RHEL-5, but should apply the same 
to RHEL/CentOS 6 as well.

http://planet.nagios.org/archives/84-nagios-exchange/3850-daniel-wittenberg-scaling-nagios-at-a-giant-insurance-company

I hope to keep building on that based on feedback I've gotten from some other 
people so if you have any other experiences or issues definitely post them here!

Dan


-Original Message-
From: mpeder...@choopa.com [mailto:mpeder...@choopa.com] 
Sent: Tuesday, December 27, 2011 10:09 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Optimization on CentOS

Hello.

I've installed Nagios Core 3.3.1, and can't get it to run very fast at
all.

Machine specs:
OS: CentOS 5.7
Processor: Intel(R) Xeon(R) CPU   E5420  @ 2.50GHz (8 cores)
RAM: 8G
HD: 800G, 22G used

Going by top, the load average of the machine hovers around 1.5-2.0. CPU
usage is around 12% across all cores. Memory usage shows about 7.5G being
used for buffers, so memory is actually pretty unused too.

The reason this seems incredibly underused to me is because we have 6000
hosts we're pinging. Total time for this check is around 6-7 minutes.
Considering the lack of load on this box, I'm pretty sure we can improve
the total time significantly.

We are going to aim for distributed monitoring, we're just not there yet.
I figure that's going to take another week or two for me to be comfortable
implementing.

I'm also attaching the main nagios.cfg file. If there's more information
that's needed, please let me know.


=nagios.cfg=
accept_passive_service_checks=1
admin_email=nagios
admin_pager=pagenagios
broker_module=/usr/local/nagios/bin/ndomod.o
config_file=/usr/local/nagios/etc/ndomod.cfg
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups_auto.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hostgroups_network_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/hosts_nrpe.cfg
cfg_file=/usr/local/nagios/etc/hosts_routers_auto.cfg
cfg_file=/usr/local/nagios/etc/hosts_switches_auto.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/nrpe_auto.cfg
cfg_file=/usr/local/nagios/etc/services_auto.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/services_cisco.cfg
cfg_file=/usr/local/nagios/etc/services_manual.cfg
cfg_file=/usr/local/nagios/etc/services_nrpe.cfg
cfg_file=/usr/local/nagios/etc/services_routers_auto.cfg
cfg_file=/usr/local/nagios/etc/services_switches_auto.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_result_reaper_frequency=2
check_service_freshness=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
date_format=us
enable_embedded_perl=1
enable_event_handlers=1
enable_flap_detection=0
enable_notifications=1
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
event_handler_timeout=30
execute_host_checks=1
execute_service_checks=1
external_command_buffer_slots=4096
freshness_check_interval=60
high_host_flap_threshold=20.0
high_service_flap_threshold=20.0
host_check_timeout=30
host_inter_check_delay_method=n
host_perfdata_command=process-host-perfdata
host_perfdata_file_mode=a
host_perfdata_file_processing_command=process-host-perfdata-file
host_perfdata_file_processing_interval=15
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\
tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
illegal_macro_output_chars=`~$|'
illegal_object_name_chars=`~!$%^*|'?,()=
interval_length=60
lock_file=/usr/local/nagios/var/nagios.lock
log_archive_path=/usr/local/nagios/var/archives
log_event_handlers=1
log_external_commands=1
log_file=/usr/local/nagios/var/nagios.log
log_host_retries=1
log_initial_states=1
log_notifications=1
log_rotation_method=d
log_service_retries=1
low_host_flap_threshold=5.0
low_service_flap_threshold=5.0
max_check_result_reaper_time=10
max_concurrent_checks=0
max_host_check_spread=2
max_service_check_spread=2
nagios_group=nagios
nagios_user=nagios
notification_timeout=30
obsess_over_services=0
ocsp_timeout=5
perfdata_timeout=5
process_performance_data=1
retain_state_information=1
retention_update_interval=60
service_check_timeout=60
service_inter_check_delay_method=n
service_interleave_factor=10
service_perfdata_command=process-service-perfdata
service_perfdata_file_mode=a
service_perfdata_file_processing_command=process-service-perfdata-file

Re: [Nagios-users] freshness checks not working

2011-12-27 Thread Jim Avery
On 27 December 2011 13:32, JM jm+nagios-us...@roth.lu wrote:
 Jim Avery jim at jimavery.me.uk writes:
 Is the the relevant entry for that service check in
 your objects.cache file correct?

 I believe so. Do you see something out of the ordinary:

I can't see anything wrong with that at all, no.

The only difference I can think of between what you have and what I
have is I don't use an event handler.  I'll be back at work on
Thursday so I'll take a closer look then.

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread mpedersen
On Tue, 27 Dec 2011 12:25:07 -0500, mpeder...@choopa.com wrote:
 Please feel free to toot your own horn there. That's the sort of writeup
I
 needed, and I'll be reading it in a lot of detail today.

And now I will sound ungrateful. I've applied the tips in here, and still
others I've found online, but I'm still slower than I should be. From what
I can tell, this system should be able to execute a ping check for all 6000
servers in a minute, two tops. As of right now, I'm getting 4.5 minutes for
the entire check.

I've managed to get my system load to (on occasion) hit 3.3, but that's
it. CPU usage has remained close to constant. Network traffic is minimal
(2Mbit), and disk traffic is minimal (writing out 3Mbytes/second).

Any other ideas I can use?

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread Daniel Wittenberg
Not at all, we're all here to help...

What are you using for your ping check?  
What is the output from 'nagiostats'?

Dan

-Original Message-
From: mpeder...@choopa.com [mailto:mpeder...@choopa.com] 
Sent: Tuesday, December 27, 2011 3:21 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios Optimization on CentOS

On Tue, 27 Dec 2011 12:25:07 -0500, mpeder...@choopa.com wrote:
 Please feel free to toot your own horn there. That's the sort of writeup
I
 needed, and I'll be reading it in a lot of detail today.

And now I will sound ungrateful. I've applied the tips in here, and still
others I've found online, but I'm still slower than I should be. From what
I can tell, this system should be able to execute a ping check for all 6000
servers in a minute, two tops. As of right now, I'm getting 4.5 minutes for
the entire check.

I've managed to get my system load to (on occasion) hit 3.3, but that's
it. CPU usage has remained close to constant. Network traffic is minimal
(2Mbit), and disk traffic is minimal (writing out 3Mbytes/second).

Any other ideas I can use?

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread Gregory Phillips
Are you using fping instead of regular ping? It is a different package from
ping that needs to be installed separately. Here is an excerpt from its man
page:

fping  is a like program which uses the Internet Control Message Proto-
   col (ICMP) echo request to determine if a target  host  is
 responding.
   fping  differs  from ping in that you can specify any number of
targets
   on the command line, or specify a file containing the lists of
 targets
   to  ping.  Instead  of  sending  to  one  target  until it times out
or
   replies, fping will send out a ping packet and move on to the next
tar-
   get in a round-robin fashion.

Good Luck,

Gregg.


On Tue, Dec 27, 2011 at 2:26 PM, Daniel Wittenberg 
daniel.wittenberg.r...@statefarm.com wrote:

 Not at all, we're all here to help...

 What are you using for your ping check?
 What is the output from 'nagiostats'?

 Dan

 -Original Message-
 From: mpeder...@choopa.com [mailto:mpeder...@choopa.com]
 Sent: Tuesday, December 27, 2011 3:21 PM
 To: Nagios Users List
 Subject: Re: [Nagios-users] Nagios Optimization on CentOS

 On Tue, 27 Dec 2011 12:25:07 -0500, mpeder...@choopa.com wrote:
  Please feel free to toot your own horn there. That's the sort of writeup
 I
  needed, and I'll be reading it in a lot of detail today.

 And now I will sound ungrateful. I've applied the tips in here, and still
 others I've found online, but I'm still slower than I should be. From what
 I can tell, this system should be able to execute a ping check for all 6000
 servers in a minute, two tops. As of right now, I'm getting 4.5 minutes for
 the entire check.

 I've managed to get my system load to (on occasion) hit 3.3, but that's
 it. CPU usage has remained close to constant. Network traffic is minimal
 (2Mbit), and disk traffic is minimal (writing out 3Mbytes/second).

 Any other ideas I can use?


 --
 Write once. Port to many.
 Get the SDK and tools to simplify cross-platform app development. Create
 new or port existing apps to sell to consumers worldwide. Explore the
 Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
 http://p.sf.net/sfu/intel-appdev
 ___
 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


 --
 Write once. Port to many.
 Get the SDK and tools to simplify cross-platform app development. Create
 new or port existing apps to sell to consumers worldwide. Explore the
 Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
 http://p.sf.net/sfu/intel-appdev
 ___
 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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
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 Optimization on CentOS

2011-12-27 Thread Max Schubert
I have written a number of blog posts about optimizing and tuning
Nagios performance as well - you might find some of them useful:

http://www.semintelligent.com/blog/

- Max

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread mpedersen
On Tue, 27 Dec 2011 21:26:15 +, Daniel Wittenberg
daniel.wittenberg.r...@statefarm.com wrote:
 Not at all, we're all here to help...
 
 What are you using for your ping check?  
 What is the output from 'nagiostats'?

And now I'm going to admit to feeling like a blooming idiot.

As it turns out, the problem was the performance data gathering. We had
three separate performance gathering pieces going at once, and I didn't
know it (I apologize, I started a week ago, and this was the first project,
been learning what I was handed since then).

NDO, pnp4nagios, and perfdata options in nagios.cfg.

I turned all of them off, and suddenly my system is running the checks
with less than 1s of latency (versus the 90+ I was seeing before, and that
was at best).

I apologize, as I feel like I've wasted a bit of everybody's time. It
wasn't deliberate, and I really did go crazy on doing my research
beforehand. I just didn't catch what this bottleneck was until after I'd
bothered you.

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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 Optimization on CentOS

2011-12-27 Thread Daniel Wittenberg
No prob!  Hopefully learned some more about performance tuning while you were 
at it!

Dan

-Original Message-
From: mpeder...@choopa.com [mailto:mpeder...@choopa.com] 
Sent: Tuesday, December 27, 2011 4:16 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios Optimization on CentOS

On Tue, 27 Dec 2011 21:26:15 +, Daniel Wittenberg
daniel.wittenberg.r...@statefarm.com wrote:
 Not at all, we're all here to help...
 
 What are you using for your ping check?  
 What is the output from 'nagiostats'?

And now I'm going to admit to feeling like a blooming idiot.

As it turns out, the problem was the performance data gathering. We had
three separate performance gathering pieces going at once, and I didn't
know it (I apologize, I started a week ago, and this was the first project,
been learning what I was handed since then).

NDO, pnp4nagios, and perfdata options in nagios.cfg.

I turned all of them off, and suddenly my system is running the checks
with less than 1s of latency (versus the 90+ I was seeing before, and that
was at best).

I apologize, as I feel like I've wasted a bit of everybody's time. It
wasn't deliberate, and I really did go crazy on doing my research
beforehand. I just didn't catch what this bottleneck was until after I'd
bothered you.

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] servicedependencies not working

2011-12-27 Thread Daniel Wittenberg
Adding in the hostgroups seems to get things working as I would expect.  I 
guess this is another case where active checks does not include those 
performed by freshness checking.  Even though I have execution_failure_criteria 
set to not run on warning and critical, it seems freshness checks are still 
performed.  The good thing is this doesn't generate any alerts it just 
clutters up the interface so if you are looking to see what's wrong in the 
web gui you see lots of warnings associated with it when really the agent is 
just down and we were already notified of that.  So it would be nice if you 
could have a setting that would tell it that freshness checks should be treated 
the same way as active checks.

Dan


-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se] 
Sent: Friday, December 23, 2011 7:09 AM
To: Nagios Users List
Cc: Daniel Wittenberg
Subject: Re: [Nagios-users] servicedependencies not working

On 12/16/2011 04:38 AM, Daniel Wittenberg wrote:
 I've started playing with making a bunch of dependencies and at first it 
 appeared to be working, right now I've got a pretty basic test setup. I've 
 added one service to be dependent on the other one, but it seems that the 
 freshness might be mucking with it.  Two services below:
 
 
 define service {
   service_description  base_log_checks
   servicegroupsbase_service_group
   hostgroup_name   base_windows_2003
   use  generic-passive-service
   check_freshness  1
   freshness_threshold  3600
   check_commandservice_is_
 }
 
 define service {
   service_description  nagios_cron
   servicegroupsbase_service_group
   hostgroup_name   base_windows_2003
   use  generic-passive-service
   check_freshness  1
   freshness_threshold  3000
   check_commandservice_is_stale
 }
 
 define servicedependency {
  service_description nagios_cron
  dependent_service_description   base_log_checks
  execution_failure_criteria  w,u,c
  notification_failure_criteria   w,u,c
  inherits_parent 1
 }
 
 What appears to happen is that I kill nsclient so nagios_cron starts 
 reporting stale at 3000 seconds,  and the same for base_log_checks shortly 
 after.  Then about every hour I get more stale soft alerts, and then after 
 the third try it goes to a HARD alert and I still get a ticket, though I'm 
 not sure why it's even checking if execution should be disable when 
 nagios_cron is in a warning state.  But not only does the active checks 
 (service_is_stale) get executed but I'm also still getting notifications sent 
 after 3 attempts, so it doesn't really appear to be doing anything.  
 Unfortunately right now these servers are so busy it's hard to put them in 
 debug mode.  Have I missed something obvious with these?

I must say though, with the size of your environment, it's quite possible that
just looking up the dependency takes longer than it does to just execute the
extra check. If you're looking to save time, that might well bite you in the
ass. It's something that will probably be improved til Nagios 4, but it will
require a change in Nagios' object structure, so we can't really do it without
upping the major version number :-/

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

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

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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