Re: [Nagios-users] Nagiosgraph problem

2006-03-01 Thread Alberto
if I define command in this way

 define command{
 command_name process-service-perfdata

command_line
/usr/share/nagios/nagiosgraph/insert.pl
$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$

command_line echo -e
$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
 /tmp/graph.log
 }

I get data on /tmp/graph.log

1141211466||c-220||FILESYSTEM||DISK OK - free
space:||/=1386MB;3426;3829;0;4031 /aplicaciones=2447MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1122MB;3426
;3829;0;4031 /log=379MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1698MB;3426;3829;0;4031 /rinstall=9258MB;12850;14362;0;15118
1141211467||c-221||FILESYSTEM||DISK OK - free
space:||/=1391MB;3426;3829;0;4031 /aplicaciones=2374MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1106MB;3426
;3829;0;4031 /log=367MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1707MB;3426;3829;0;4031 /rinstall=800MB;12850;14362;0;15118

If try to execute insert with this lines I dont get anything inside rrd and nagiosgraph.log:

Wed Mar 1 12:14:12 2006 INSERT info: Input
perfdata:/=2763MB;3426;3829;0;4031 /var=1102MB;3426;3829;0;4031
/var/run=0MB;8813;9850;0;10369 /tmp=1MB;8814;9851;0;10370
/aplicaciones=1870MB;16055;17944;0;18889
/datos=6200MB;16055;17944;0;18889 /log=1358MB;16055;17944;0;18889
Wed Mar 1 12:14:12 2006 INSERT info: Input servicedescr:FILESYSTEM
Wed Mar 1 12:14:12 2006 INSERT info: Input output:DISK OK - free space:
Wed Mar 1 12:14:12 2006 INSERT warn: perfdata not recognized
Wed Mar 1 12:14:12 2006 INSERT debug: nagiosgraph exited

If replace the echo in command and use insert.pl I dont get anything inside rrd folder neither any error in nagiosgraph.log

On 2/28/06, Alberto [EMAIL PROTECTED] wrote:
Yes. It's called because if I rename it I get error 127 not found on nagios.log.

nagios doesnt generate any file inside rrd/ but if I manually run insert.pl with user nagios I get files inside rrd/.

I get this in nagiosgraph.log:

Tue Feb 28 08:09:42 2006 CGI debug: @db=
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3024000 -w 350 -h 100 -l 0 -u 100
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents
Tue Feb 28 08:09:42 2006 CGI debug: Config debug:5
Tue Feb 28 08:09:42 2006 CGI debug: Config logfile:/var/log/nagios/nagiosgraph.log
Tue Feb 28 08:09:42 2006 CGI debug: Config rrddir:/usr/share/nagios/nagiosgraph/rrd/
Tue Feb 28 08:09:42 2006 CGI debug: Config mapfile:/usr/share/nagios/nagiosgraph/map
Tue Feb 28 08:09:42 2006 CGI debug: Config colorscheme:1
Tue Feb 28 08:09:42 2006 CGI debug: Config heartbeat:10
Tue Feb 28 08:09:42 2006 CGI debug: Config perflog:/var/log/nagios/perfdata.log
Tue Feb 28 08:09:42 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool
Tue Feb 28 08:09:42 2006 CGI debug: @db=
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3456 -w 350 -h 100 -l 0 -u 100
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents

I have this in nagios.cfg:

process_performance_data=1
service_perfdata_file=/var/log/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata

and this in command.cfg

 define command{
 command_name process-service-perfdata
 command_line /usr/local/nagios/nagiosgraph/insert.pl
 }


On 2/27/06, Hugo van der Kooij [EMAIL PROTECTED]
 wrote:
On Mon, 27 Feb 2006, Alberto wrote: I get this in nagiosgraph.log: CGI error: RRDs::graph ERR can't make a graph without contents I get the blue screen of nagiosgraph but no images on it... what is the
 probleam? I have no data on rrd/ folder but if I execute insert.pl manually as nagios user I get date in the folder but if I delete it and run nagios it doesnt generate rrd files.So what does your log tell you about storing the data? Does it attempt to
create the RRD files? (Should it?)How did you add the insert.pl in your config? Is it called at all?Hugo.--I hate duplicates. Just reply to the relevant mailinglist.

[EMAIL PROTECTED]http://hvdkooij.xs4all.nl/Don't
meddle in the affairs of magicians,for
they are subtle and quick to anger.---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net


Re: [Nagios-users] Nagiosgraph problem

2006-03-01 Thread Alberto
I get rrd files generated setting this command with perl path

 define command{
 command_name process-service-perfdata
 command_line /usr/bin/perl /usr/share/nagios/nagiosgraph/insert.pl
 }

now I get the bluescreen from showcgi but with empty images.

On 3/1/06, Alberto [EMAIL PROTECTED] wrote:
if I define command in this way

 define command{
 command_name process-service-perfdata

command_line
/usr/share/nagios/nagiosgraph/insert.pl
$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$

command_line echo -e
$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
 /tmp/graph.log
 }

I get data on /tmp/graph.log

1141211466||c-220||FILESYSTEM||DISK OK - free
space:||/=1386MB;3426;3829;0;4031 /aplicaciones=2447MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1122MB;3426
;3829;0;4031 /log=379MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1698MB;3426;3829;0;4031 /rinstall=9258MB;12850;14362;0;15118
1141211467||c-221||FILESYSTEM||DISK OK - free
space:||/=1391MB;3426;3829;0;4031 /aplicaciones=2374MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1106MB;3426
;3829;0;4031 /log=367MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1707MB;3426;3829;0;4031 /rinstall=800MB;12850;14362;0;15118

If try to execute insert with this lines I dont get anything inside rrd and nagiosgraph.log:

Wed Mar 1 12:14:12 2006 INSERT info: Input
perfdata:/=2763MB;3426;3829;0;4031 /var=1102MB;3426;3829;0;4031
/var/run=0MB;8813;9850;0;10369 /tmp=1MB;8814;9851;0;10370
/aplicaciones=1870MB;16055;17944;0;18889
/datos=6200MB;16055;17944;0;18889 /log=1358MB;16055;17944;0;18889
Wed Mar 1 12:14:12 2006 INSERT info: Input servicedescr:FILESYSTEM
Wed Mar 1 12:14:12 2006 INSERT info: Input output:DISK OK - free space:
Wed Mar 1 12:14:12 2006 INSERT warn: perfdata not recognized
Wed Mar 1 12:14:12 2006 INSERT debug: nagiosgraph exited

If replace the echo in command and use insert.pl I dont get anything inside rrd folder neither any error in nagiosgraph.log

On 2/28/06, Alberto [EMAIL PROTECTED]
 wrote:
Yes. It's called because if I rename it I get error 127 not found on nagios.log.

nagios doesnt generate any file inside rrd/ but if I manually run insert.pl with user nagios I get files inside rrd/.

I get this in nagiosgraph.log:

Tue Feb 28 08:09:42 2006 CGI debug: @db=
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3024000 -w 350 -h 100 -l 0 -u 100
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents
Tue Feb 28 08:09:42 2006 CGI debug: Config debug:5
Tue Feb 28 08:09:42 2006 CGI debug: Config logfile:/var/log/nagios/nagiosgraph.log
Tue Feb 28 08:09:42 2006 CGI debug: Config rrddir:/usr/share/nagios/nagiosgraph/rrd/
Tue Feb 28 08:09:42 2006 CGI debug: Config mapfile:/usr/share/nagios/nagiosgraph/map
Tue Feb 28 08:09:42 2006 CGI debug: Config colorscheme:1
Tue Feb 28 08:09:42 2006 CGI debug: Config heartbeat:10
Tue Feb 28 08:09:42 2006 CGI debug: Config perflog:/var/log/nagios/perfdata.log
Tue Feb 28 08:09:42 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool
Tue Feb 28 08:09:42 2006 CGI debug: @db=
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3456 -w 350 -h 100 -l 0 -u 100
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents

I have this in nagios.cfg:

process_performance_data=1
service_perfdata_file=/var/log/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata

and this in command.cfg

 define command{
 command_name process-service-perfdata
 command_line /usr/local/nagios/nagiosgraph/insert.pl
 }


On 2/27/06, Hugo van der Kooij [EMAIL PROTECTED]
 wrote:
On Mon, 27 Feb 2006, Alberto wrote: I get this in nagiosgraph.log: CGI error: RRDs::graph ERR can't make a graph without contents I get the blue screen of nagiosgraph but no images on it... what is the
 probleam? I have no data on rrd/ folder but if I execute insert.pl manually as nagios user I get date in the folder but if I delete it and run nagios it doesnt generate rrd files.So what does your log tell you about storing the data? Does it attempt to
create the RRD files? (Should it?)How did you add the insert.pl in your config? Is it called at all?Hugo.--I hate duplicates. Just reply to the relevant mailinglist.


[EMAIL PROTECTED]http://hvdkooij.xs4all.nl/Don't
meddle in the affairs of magicians,for
they are subtle and quick to anger.---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web 

[Nagios-users] Configuring nagios to monitor remote host through snmp

2006-03-01 Thread Mrutyunjaya Dash
Title: Configuring nagios to monitor remote host  through snmp  






Hi Friends,

Any body has configured nagios to monitor remote host through snmp. In my environment, I have certain number of servers on which I cannot install any plugins on it. But at the same time I have the requirement monitor the servers through nagios. I believe, monitoring through snmp does not require getting any plugins on the monitored hosts. 

If anybody had ever the requirement of this kind and come out of it with some solution. I would appreciate if you could share the information.


Regards,

Mrutyunjaya Dash






Re: [Nagios-users] Configuring nagios to monitor remote host through snmp

2006-03-01 Thread Mrutyunjaya Dash
Hi Marc,

First of all thank you very much for replipying and providing certain 
information. I have still doubt what exactly I have to do on the monitored host 
side for snmp and on nagios server side. If you could explain me little 
elaboratly, I would really appreciate it.

Regards,
Dash

--
Sent from my BlackBerry Wireless Handheld


-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
Sent: Wed Mar 01 08:10:31 2006
Subject: RE: [Nagios-users] Configuring nagios to monitor remote host  through 
snmp



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Mrutyunjaya Dash
 Sent: Wednesday, March 01, 2006 9:45 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Configuring nagios to monitor remote host
through
 snmp
 
 Hi Friends,
 
 Any body has configured nagios to monitor remote host through snmp. In
my
 environment, I have certain number of servers on which I cannot
install
 any plugins on it. But at the same time I have the requirement monitor
the
 servers through nagios. I believe, monitoring through snmp does not
 require getting any plugins on the monitored hosts.
 
 If anybody had ever the requirement of this kind and come out of it
with
 some solution. I would appreciate if you could share the information.

Yes certainly. There are a number of SNMP aware plugins included in the
plugins distribution --

check_snmp - highly flexible; you provide OID's, pattern matches, etc

other more specific plugins that utilize SNMP are --

check_hpjd
check_breeze
check_ifoperstatus
check_ifstatus.pl
check_wave.pl
check_snmp_procs.pl
check_temp_cpq
check_snmp_process_monitor.pl
check_snmp_printer.pl
check_netapp.pl
and others...

There are also SNMP plugins here --

http://www.nagiosexchange.org/SNMP.51.0.html

and of course, everyone's first go-to point for any question Google has
lots to say as well --

http://www.google.com/search?hs=hznhl=enlr=client=firefox-arls=org.m
ozilla%3Aen-US%3Aofficialq=nagios+snmp+pluginsbtnG=Search

--
Marc 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
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
N�HS^�隊X���'���u���ڂ�.���y���*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�v��קv�^�+j�Z{az^��h��஋�n���)��{h�����ا�׫�+h�(m�Z��jY�w��ǥrg

Re: [Nagios-users] retry_check_interval issue/confusion

2006-03-01 Thread prosolutions
  
  retry_check_interval:   This directive is used to define the number of
  time units to wait before scheduling a re-check of the service.
  Services are rescheduled at the retry interval when the have changed


Thanks for clarifing this for me.  I think the wording above is a bit
ambiguous and might be clearer if it simply said the number of time units to 
wait before re-checking the service.  Although I understand that, from an 
internal point of view in terms of how nagios is actually operating, the 
current way it is stated might more accurately reflect what is actually 
happening.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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] Passive Service Notifications

2006-03-01 Thread Scott, Casey
I am attempting to configure Nagios to work with SNMP traps. As of now,
I can write events to the Nagios external command file
(/var/log/nagios/rw/nagio.cmd). Nagios notices these events, and logs
them to the nagios.log.


e.g.
/var/log/nagios/rw/nagios.log contains:
[1141242013] EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;10.12.3.118;2;w32_time;W32Time Event


I can't get Nagios to send out notifications as a result though. My
service definition is like this:

define service {
name   generic-service  ; The 'name' of this
service template, referenced in other service definitions
active_checks_enabled  1; Active service checks are
enabled
passive_checks_enabled 1; Passive service checks are
enabled/accepted
parallelize_check  1; Active service checks should
be parallelized (disabling this can lead to major performance problems)
obsess_over_service1; We should obsess over this
service (if necessary)
check_freshness0; Default is to NOT check
service 'freshness'
notifications_enabled  1; Service notifications are
enabled
event_handler_enabled  1; Service event handler is
enabled
flap_detection_enabled 1; Flap detection is enabled
process_perf_data  1; Process performance data
retain_status_information  1; Retain status information
across program restarts
retain_nonstatus_information   1; Retain non-status information
across program restarts
register   0; DONT REGISTER THIS DEFINITION
- ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}

define service{
  use generic-service
  host_name   *
  service_description TRAP
  is_volatile 1
  check_period24x7
  contact_groups  linux-admins
  passive_checks_enabled  1
  active_checks_enabled   0
  max_check_attempts  1
  normal_check_interval   5
  retry_check_interval1
  notification_interval   5
  notification_period 24x7
  notification_optionsw,u,c,r
  notifications_enabled   1
  check_command   check-host-alive
}


I am unclear on what the check_command needs to do in this case. It
seems that it doesn't matter as long as it returns OK.  Can someone help
fill in the gaps here? What do I need to do to get Nagios to finish the
task, and actually send a SERVICE ALERT out?

Regards,
Casey


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Need help with service failure recheck interval

2006-03-01 Thread prosolutions

Using nagios 2.0b3 and have the following host and related service
defined:

define host{
 usevip.template
 host_name  ProdSystem
 alias  Prod
 hostgroups Production
 check_command  check-dummy!0!See Service Detail for Status 
Information
 address172.16.1.10
}

define service{
use vip.template
host_name   ProdSystem
service_description test_client
is_volatile 0
check_periodOff_Peak
max_check_attempts  3
normal_check_interval   1500
retry_check_interval20
notification_interval   0
check_command   test_client!111.111.111.111!!35
}

test_client is a simple script that tests the connectivity of the custom
service that at listening at 172.16.0.50.  It is set to timeout and fail
at 35 seconds.  

interval_length is set to 1, therefore normal_check_interval=1500 should
be 1500s=25m and retry_check_interval=20 should be 20s.  However last
night test_client failed and gave initial notification of state CRITICAL
at 00:37:21.  Manually testing by me immediately after receiving this
notification showed that the service was indeed back up therefore I am
almost 100% certain that subsequent test_client checks by nagios would
have succeeded.  However, I did not receive an RECOVERY alert until
01:26:46, which is almost exactly 50 minutes after the initial CRITICAL
alert.


Also, I have another test for a similar service with identical
parameters, and in that case it didn't send a RECOVERY alert until
almost exactly 75 minutes after the CRITICAL alert.





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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] Can templates be cascaded together?

2006-03-01 Thread Ron Gage
Can we cascade a template as in the following:

define service{
name blah
...
register 0
}
define service{
name info
use blah
...
register 0
}
define service{
name checkit
use info
...
}

Why would I want to use such an arrangement?  Simple: the blah service defines
generic values I want for ALL service checks (enable_notifications, etc...). 
The info service defines generic values for each check type - check_ping for
example (check_command, service description, etc...).  Of course, checkit is
where I define which service to check on which host.

Would this work?


-- 
Ron Gage
(LPIC1 MCP A+ Net+)
Westland, Michigan


This message was sent using IMP, the Internet Messaging Program.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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] Can templates be cascaded together?

2006-03-01 Thread Jim Perrin

 Why would I want to use such an arrangement?  Simple: the blah service 
 defines
 generic values I want for ALL service checks (enable_notifications, etc...).
 The info service defines generic values for each check type - check_ping for
 example (check_command, service description, etc...).  Of course, checkit is
 where I define which service to check on which host.

 Would this work?



Sure. See inheritance chaining in the documentation
http://nagios.sourceforge.net/docs/2_0/templaterecursion.html
you did read them right? :-P




--
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Need help with service failure recheck interval

2006-03-01 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Wednesday, March 01, 2006 3:02 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help with service failure recheck
interval
 
 
 Using nagios 2.0b3 and have the following host and related service
 defined:
 

[removed host and service definitions. Thanks!]
 
 test_client is a simple script that tests the connectivity of the
custom
 service that at listening at 172.16.0.50.  It is set to timeout and
fail
 at 35 seconds.
 
 interval_length is set to 1, therefore normal_check_interval=1500
should
 be 1500s=25m and retry_check_interval=20 should be 20s.  However last
 night test_client failed and gave initial notification of state
CRITICAL
 at 00:37:21.  Manually testing by me immediately after receiving this
 notification showed that the service was indeed back up therefore I am
 almost 100% certain that subsequent test_client checks by nagios would
 have succeeded.  However, I did not receive an RECOVERY alert until
 01:26:46, which is almost exactly 50 minutes after the initial
CRITICAL
 alert.

I would expect this to have been ~25 minutes.

 Also, I have another test for a similar service with identical
 parameters, and in that case it didn't send a RECOVERY alert until
 almost exactly 75 minutes after the CRITICAL alert.

Have you checked nagios.log to verify that your assumptions about the
check results in both cases are accurate? We'd need those and related
entries to know what's really going on, else we're just speculating. If
you're not seeing sufficient log entries, make sure you've enabled log_
options in nagios.cfg. You may also want to consider enabling debug
options at compile time for additional logging. As noted in nagios.cfg,
using an interval_length other than 60 isn't common and isn't thoroughly
tested.

I for one have not experienced notification issues such as this using
many versions of Netsaint/Nagios.

Also, you should be using the 2.0 release now to make sure you're not
hitting a bug that's already been fixed.

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Syslog - Nagios?

2006-03-01 Thread Mike Koponick








I would like to send Syslog information from a remote Nagios
sensor to the Central Server via NSCA, since its already in place.



Im trying to see if there is a feasible way to parse
out the information I need, using something like SWATCH and send it to the
Central Server, who should be able to send it to a MySQL server. 



I was thinking that I might be able to write the parsed out
information to the Nagios command file, but I dont think that would
work. My thinking is that if it was written to the Nagios command file that I
would be able to send it the parsed out information via the Nagios process, but
I might be WAY off base.



Has anyone ever done anything like this before?



Thanks in advance,



Mike