Re: [Nagios-users] NSCA w/ secondary nagios machine monitoring separate network segment

2010-10-30 Thread Jonathan Angliss
On 10/30/10 13:12, Andy Graybeal wrote:
> I've read this http://nagios.sourceforge.net/docs/3_0/distributed.html a
> few times, but I'm having a hard time understanding it.  I will keep
> reading it until it makes sense.
>
> I'm running Ubuntu 10.04.  I've installed nagios and nsca with the
> package manager.
>
>
> I have most hosts/services on 192.168.2.x network, but there are a few
> on a 10.0.0.x network behind a gateway machine 192.168.2.200<->10.0.0.1.
>
> My nagios box is 192.168.2.201
>
> The nsca daemon is running fine.  I can do a send_nsca from
> 192.168.2.200 and get an Okay Packet sent.  In my syslog it says:
>
> Oct 30 14:04:36 nagios nsca[713]: Connection from 192.168.2.200 port 8853
> Oct 30 14:04:36 nagios nsca[713]: Handling the connection...
> Oct 30 14:04:37 nagios nsca[713]: SERVICE CHECK ->  Host Name: 'monarch',
> Service Description: 'TestMessage', Return Code: '0', Output: 'This is a
> test message'
> Oct 30 14:04:37 nagios nsca[713]: Command file
> '/var/lib/nagios3/rw/nagios.cmd' does not exist, attempting to use
> alternate dump file '/var/run/nagios/nsca.dump' for output
> Oct 30 14:04:37 nagios nsca[713]: Could not open alternate dump file
> '/var/run/nagios/nsca.dump' for appending
> Oct 30 14:04:37 nagios nsca[713]: End of connection...
>
> I wonder why nagios.cmd does not exist, if I touch this manually, the
> error goes away, but it happens again if I restart the nagios service.

Have you checked the nagios.cfg file and ensured the path for 
command_file is the same in both the nagios.cfg and nsca.cfg? Nagios 
should be creating the command file on start up.  If they are the same, 
check that nagios has write permissions to /var/lib/nagios3/rw.  Also, 
the command file is a pipe, not a simple file, so "touch" isn't good 
enough, you'll need to use mkfifo or mknod.

-- 
Jonathan Angliss


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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] Check_http_Multipple_port

2010-10-30 Thread Rajesh Kumar
Hi

  OK,  Let we check and update to you. Thanks for your support.


On Sat, Oct 30, 2010 at 7:26 PM, quanta  wrote:

>  Try to write a wrapper of check_http for yourself:
> http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm
>
>
> On 10/27/2010 05:03 PM, Rajesh Kumar wrote:
>
> Hi Sir
>
>I need to define multiple port in check_http. I defined the command.cfg
> as follows, in my environment different port tomcat are running how can i
> find the tomcat status
>
> define command{
>  command_namecheck_http_args
>  command_line$USER1$/check_http -H $ARG1$ -p $ARG2$
>  }
>  for example
>
> http://testingserver:8082
> http://tomcatserver:8084
>
> Please help me.
>
>
> Thanks & Regards
>
> B.Rajeshkumar
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
>
>
> ___
> Nagios-users mailing 
> listnagios-us...@lists.sourceforge.nethttps://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
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-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
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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

[Nagios-users] NSCA w/ secondary nagios machine monitoring separate network segment

2010-10-30 Thread Andy Graybeal
I've read this http://nagios.sourceforge.net/docs/3_0/distributed.html a 
few times, but I'm having a hard time understanding it.  I will keep 
reading it until it makes sense.

I'm running Ubuntu 10.04.  I've installed nagios and nsca with the 
package manager.


I have most hosts/services on 192.168.2.x network, but there are a few 
on a 10.0.0.x network behind a gateway machine 192.168.2.200<->10.0.0.1.

My nagios box is 192.168.2.201

The nsca daemon is running fine.  I can do a send_nsca from 
192.168.2.200 and get an Okay Packet sent.  In my syslog it says:

Oct 30 14:04:36 nagios nsca[713]: Connection from 192.168.2.200 port 8853
Oct 30 14:04:36 nagios nsca[713]: Handling the connection...
Oct 30 14:04:37 nagios nsca[713]: SERVICE CHECK -> Host Name: 'monarch', 
Service Description: 'TestMessage', Return Code: '0', Output: 'This is a 
test message'
Oct 30 14:04:37 nagios nsca[713]: Command file 
'/var/lib/nagios3/rw/nagios.cmd' does not exist, attempting to use 
alternate dump file '/var/run/nagios/nsca.dump' for output
Oct 30 14:04:37 nagios nsca[713]: Could not open alternate dump file 
'/var/run/nagios/nsca.dump' for appending
Oct 30 14:04:37 nagios nsca[713]: End of connection...

I wonder why nagios.cmd does not exist, if I touch this manually, the 
error goes away, but it happens again if I restart the nagios service.

Does anyone have example config files of a distributed nagios where the 
only reason that it's distributed is because of network topology, not 
for redundancy.

I'm sorry I don't understand the documentation and need a little more 
hand holding.

-Andy

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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


[Nagios-users] Nagios Performance Issue

2010-10-30 Thread trm asn
Dear List ,

I am getting frequent Nagios screen issue. The checks are not updating
properly . Below is my nagios.cfg  file with nagiostats. Please let me know
is there anywhere I can fine tune the Nagios. I am using a Xeon 2.0 GH X 2 ,
4 GB RAM , .



log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/objects/dependencies.cfg
cfg_file=/usr/local/nagios/etc/objects/escalations.cfg
cfg_file=/usr/local/nagios/etc/objects/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/objects/services.cfg
cfg_file=/usr/local/nagios/etc/objects/servicegroups.cfg
object_cache_file=/usr/local/nagios/var/objects.cache
precached_object_file=/usr/local/nagios/var/objects.precache
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.dat
aggregate_status_updates=0
status_update_interval=10
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
external_command_buffer_slots=4096
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/tmp
event_broker_options=-1
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=1
log_external_commands=1
log_passive_checks=1
service_inter_check_delay_method=s
max_service_check_spread=30
service_interleave_factor=s
host_inter_check_delay_method=s
max_host_check_spread=30
max_concurrent_checks=0
check_result_reaper_frequency=5
max_check_result_reaper_time=20
check_result_path=/usr/local/nagios/var/spool/checkresults
max_check_result_file_age=3600
cached_host_check_horizon=15
cached_service_check_horizon=15
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
soft_state_dependencies=0
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
sleep_time=0.25
service_check_timeout=120
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1
retained_host_attribute_mask=0
retained_service_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
interval_length=60
use_aggressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
execute_host_checks=1
accept_passive_host_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=0
obsess_over_services=0
obsess_over_hosts=0
translate_passive_host_checks=0
passive_host_checks_are_soft=0
check_for_orphaned_services=1
check_for_orphaned_hosts=1
check_service_freshness=1
service_freshness_check_interval=60
check_host_freshness=0
host_freshness_check_interval=60
additional_freshness_latency=15
enable_flap_detection=1
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=us
p1_file=/usr/local/nagios/bin/p1.pl
enable_embedded_perl=1
use_embedded_perl_implicitly=1
illegal_object_name_chars=`~!$%^*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
use_regexp_matching=0
use_true_regexp_matching=0
daemon_dumps_core=0
use_large_installation_tweaks=0
enable_environment_macros=1
debug_level=2
debug_verbosity=2
debug_file=/usr/local/nagios/var/nagios.debug
max_debug_file_size=100
broker_module=/usr/local/lib/mk-livestatus/livestatus.o
/usr/local/nagios/var/rw/live
event_broker_options=-1

---

CURRENT STATUS DATA
--
Status File:/usr/local/nagios/var/status.dat
Status File Age:0d 0h 0m 4s
Status File Version:3.0.3

Program Running Time:   0d 0h 10m 55s
Nagios PID: 21581
Used/High/Total Command Buffers:0 / 0 / 4096

Total Services: 6747
Services Checked:   6747
Services Scheduled: 6747
Services Actively Checked:  6747
Services Passively Checked: 0
Total Service State Change: 0.000 / 41.580 / 0.077 %
Active Service Latency: 0.090 / 351.086 / 191.014 sec
Active Service Execution Time:  0.013 / 60.096 / 0.472 sec
Active Service State Change:0.000 / 41.580 / 

Re: [Nagios-users] Reporting add-ons for Nagios

2010-10-30 Thread Joerg Linge
pnp4nagios is based on rrdtool and not mysql

http://docs.pnp4nagios.org/pnp-0.6/about#storage

Joerg

Am 29.10.10 22:20, schrieb Mark Campbell:
>  Have you setup pnp4nagios and used mysql for storing the results.  We
> get thousands of little file left there that are never cleaned up.  Not
> sure if they are left over from the check or it is where pnp4nagios
> stores the resulting performance data so wasn't sure about deleting them.
> 
> I though mysql might solve this problem.
> 
> Mark
> 
> 
> On 10/29/2010 3:56 PM, Rick Munn wrote:
>> Thanks Andrew, I'll check it out.
>>
>> Cheers
>> Rick
>>
>> On Fri, Oct 29, 2010 at 1:37 PM, Kaplan, Andrew H.
>> mailto:ahkap...@partners.org>> wrote:
>>
>> Hi there --
>> I am using pnp4nagios, and it works without any issue.
>>
>>
>> 
>> *From:* Rick Munn [mailto:r...@screenscape.net
>> ]
>> *Sent:* Friday, October 29, 2010 12:23 PM
>> *To:* Nagios Users List
>> *Subject:* [Nagios-users] Reporting add-ons for Nagios
>>
>> Hi,
>>
>> Any recommendation on monitoring and graphing performance
>> tools/addons for Nagios.   Sample services I'd like to collect
>> stats on e.g. network bandwidth, tomcat, mysql, linux(centos and
>> redhat), etc.
>>
>> Thank you,
>> Rick
>>
>>
>> The information in this e-mail is intended only for the person to
>> whom it is
>> addressed. If you believe this e-mail was sent to you in error and
>> the e-mail
>> contains patient information, please contact the Partners
>> Compliance HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to
>> you in error
>> but does not contain patient information, please contact the
>> sender and properly
>> dispose of the e-mail.
>>
>>
>> --
>>
>> Nokia and AT&T present the 2010 Calling All Innovators-North
>> America contest
>> Create new apps & games for the Nokia N8 for consumers in  U.S.
>> and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi
>> Store
>> http://p.sf.net/sfu/nokia-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
>>
>>
>>
>> --
>>
>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> Create new apps&  games for the Nokia N8 for consumers in  U.S. and
>> Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-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
> 
> 
> 
> 
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
> http://p.sf.net/sfu/nokia-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


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please

[Nagios-users] Advanced notifications configuration questions.

2010-10-30 Thread Javier Domingo
Hi everybody:
I'm working hard with Nagios 3.0.4 on Debian Lenny.
I have some questions. I can't find any information about these issues.
I have hosts with a first_notification_delay of 60 minutes.
And I have the whole day a Nagios controlling the same hosts. It's good to
know if the same host is turned on during the night, but my work period
begins at 10:00 am and it finish at 22:00 pm, I'm not a lucky boy [?]  So I
have configured a notification Period to 10:00 am to 22:00 pm.

Question 1: If a host goes into hard state CRITICAL, I know that Nagios
waits 60 minutes to send a notification, but What happens if the host
recovers before the first_notification_delay period ( for example, 30 min
before)?
Does it send the recovery notification or not?
Question 2: If a hard state happens at 21:59. Does Nagios wait until the
10:00 am of the day after to send the notification?
If the host recovers at 9:00 am of the day after is the notification message
cancelled?

Thanks a lot in advantace.

-- 
Xavier Domingo Navarro

javier.domi...@focusonemotions.com
Mov +34 657 522 736
Gtalk: javier.domi...@focusonemotions.com
Tel +34 93 368 99 85  ext 7015
Fax +34 93 415 39 79
Focus on Emotions S.L
Avda. Diagonal 428 - 1ยบ, 08037 Barcelona
<<33D.gif>>--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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