Re: [Nagios-users] Passive checks not processing performance data

2013-04-15 Thread Grant Maxwell

On 16/04/2013, at 4:51 AM, Jakob Curdes  wrote:

> 
>>> Hi
>>> 
>>> Im running nagios 3.2.3 and NSCA version 2.9.1
>>> 
>>> Im submitting data via NSCA with performance data. The output/status of the 
>>> data is accepted by Nagios and shows in the service status correctly and 
>>> Nagios also shows the performance data in the service status data screen.
>>> 
>>> However the performance data is not showing up in the nagiosgraphs screens. 
>>> The graphs are all blank with NaN as the values. 
>>> 
> It might be that the performance data part is not correctly transported; if I 
> remember it correctly, older NSCA versions could not handle multi-line 
> output, so that some content might get lost. JC


Thanks for the input JC however the line in the log file seems to indicate the 
correct format. : [1366015455.090021] [016.1] [pid=19425] HOST: Rydlmere, 
SERVICE: 0444, CHECK TYPE: Passive, OPTIONS: 0, SCHEDULED: No, RESCHEDULE: No, 
EXITED OK: Yes, RETURN CODE: 0, OUTPUT: Freezer 3 temperature: -14.25 
OK|Temperature=-14.25 Volts=3.18462890625


> --
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter___
> 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

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
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] Passive checks not processing performance data

2013-04-15 Thread Jakob Curdes



Hi

Im running nagios 3.2.3 and NSCA version 2.9.1

Im submitting data via NSCA with performance data. The output/status 
of the data is accepted by Nagios and shows in the service status 
correctly and Nagios also shows the performance data in the service 
status data screen.


However the performance data is not showing up in the nagiosgraphs 
screens. The graphs are all blank with NaN as the values.


It might be that the performance data part is not correctly transported; 
if I remember it correctly, older NSCA versions could not handle 
multi-line output, so that some content might get lost. JC
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
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] Passive checks not processing performance data

2013-04-15 Thread Grant Maxwell
Hi Andreas and thanks for the input.

I have updated to 3.5.0. The NSCA is already at the current version.

I turned on debugging to the maximum and found the following line in the 
nagios.debug file.
[1366015455.090021] [016.1] [pid=19425] HOST: Rydlmere, SERVICE: 0444, CHECK 
TYPE: Passive, OPTIONS: 0, SCHEDULED: No, RESCHEDULE: No, EXITED OK: Yes, 
RETURN CODE: 0, OUTPUT: Freezer 3 temperature: -14.25 OK|Temperature=-14.25 
Volts=3.18462890625

As you can see the performance data does look ok in the line but there was no 
performance processing of it.
There were no following line with "Perf Data:" for this report.

kind regards
gmax



On 15/04/2013, at 5:45 PM, Andreas Ericsson  wrote:

> On 04/15/2013 03:29 AM, Grant Maxwell wrote:
>> Could anyone please help me out here ?
>> 
> 
> Try upgrading to the latest stable. That's pretty much always the
> first resort, since it's unlikely bugfixes will be backported to
> 3.2.3 anyways. 3.3.1 (I think) was running happily for quite a
> long time and is probably still the most used Nagios version, so
> perhaps you can get it working using that.
> 
> Failing that, try enabling debug logging and see where it goes
> wrong. That usually tilts developer's head in the right direction
> wrt remembering what one's fixed or which areas of code one has
> poked around in.
> 
> -- 
> 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.



[
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
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] Passive checks not processing performance data

2013-04-15 Thread Andreas Ericsson
On 04/15/2013 03:29 AM, Grant Maxwell wrote:
> Could anyone please help me out here ?
>

Try upgrading to the latest stable. That's pretty much always the
first resort, since it's unlikely bugfixes will be backported to
3.2.3 anyways. 3.3.1 (I think) was running happily for quite a
long time and is probably still the most used Nagios version, so
perhaps you can get it working using that.

Failing that, try enabling debug logging and see where it goes
wrong. That usually tilts developer's head in the right direction
wrt remembering what one's fixed or which areas of code one has
poked around in.

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

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
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] Passive checks not processing performance data

2013-04-14 Thread Grant Maxwell
Could anyone please help me out here ?

regards
gmax



> Hi
> 
> Im running nagios 3.2.3 and NSCA version 2.9.1
> 
> Im submitting data via NSCA with performance data. The output/status of the 
> data is accepted by Nagios and shows in the service status correctly and 
> Nagios also shows the performance data in the service status data screen.
> 
> However the performance data is not showing up in the nagiosgraphs screens. 
> The graphs are all blank with NaN as the values. 
> 
> A sample of the passive data received by NSCA (from logs) is:
> 
> Apr 13 08:49:16 srv-nagios nsca[17429]: Handling the connection...
> Apr 13 08:49:16 srv-nagios nsca[17429]: Time difference in packet: 0 seconds 
> for host svcSite
> Apr 13 08:49:16 srv-nagios nsca[17429]: SERVICE CHECK -> Host Name: 
> 'svcSite', Service Description: '0410', Return Code: '0', Output: 'Dispatch 
> Cool Rm temperature: 3.34 OK|Temperature=3.34 Volts=3.65642578125'
> Apr 13 08:49:16 srv-nagios nsca[17429]: Attempting to write to nagios command 
> pipe
> Apr 13 08:49:16 srv-nagios nsca[17429]: End of connection...
> Apr 13 08:49:16 srv-nagios nagios: EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;svcSite;0410;0;Dispatch Cool Rm temperature: 
> 3.34 OK|Temperature=3.34 Volts=3.65642578125
> Apr 13 08:49:16 srv-nagios nagios: EXTERNAL COMMAND: 
> PROCESS_HOST_CHECK_RESULT;svcSite;0;OK
> Apr 13 08:49:23 srv-nagios nagios: PASSIVE SERVICE CHECK: 
> svcSite;0410;0;Dispatch Cool Rm temperature: 3.34 OK
> 
> Our system is collecting perf data from other active checks and these all 
> work ok.
> 
> I can't see why this is not working.
> 
> Any ideas please.
> 
> 
> 

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
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 checks not processing performance data

2013-04-12 Thread Grant Maxwell
Hi

Im running nagios 3.2.3 and NSCA version 2.9.1

Im submitting data via NSCA with performance data. The output/status of the 
data is accepted by Nagios and shows in the service status correctly and Nagios 
also shows the performance data in the service status data screen.

However the performance data is not showing up in the nagiosgraphs screens. The 
graphs are all blank with NaN as the values. 

A sample of the passive data received by NSCA (from logs) is:

Apr 13 08:49:16 srv-nagios nsca[17429]: Handling the connection...
Apr 13 08:49:16 srv-nagios nsca[17429]: Time difference in packet: 0 seconds 
for host svcSite
Apr 13 08:49:16 srv-nagios nsca[17429]: SERVICE CHECK -> Host Name: 'svcSite', 
Service Description: '0410', Return Code: '0', Output: 'Dispatch Cool Rm 
temperature: 3.34 OK|Temperature=3.34 Volts=3.65642578125'
Apr 13 08:49:16 srv-nagios nsca[17429]: Attempting to write to nagios command 
pipe
Apr 13 08:49:16 srv-nagios nsca[17429]: End of connection...
Apr 13 08:49:16 srv-nagios nagios: EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;svcSite;0410;0;Dispatch Cool Rm temperature: 3.34 
OK|Temperature=3.34 Volts=3.65642578125
Apr 13 08:49:16 srv-nagios nagios: EXTERNAL COMMAND: 
PROCESS_HOST_CHECK_RESULT;svcSite;0;OK
Apr 13 08:49:23 srv-nagios nagios: PASSIVE SERVICE CHECK: 
svcSite;0410;0;Dispatch Cool Rm temperature: 3.34 OK

Our system is collecting perf data from other active checks and these all work 
ok.

I can't see why this is not working.

Any ideas please.



--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
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 checks are stalled despite freshness check set

2011-12-06 Thread MAD
Hi list,

I have a small problem with Nagios's service freshness checks. I'm 
probably missing something but I don't see what.

I have created several passive checks, waiting for SNMP traps and 
triggering CRITICAL states on reception. I set freshness threshold to 
15min (900s) to reset the service to an OK state.

Here is my configuration:

define service {
...
check_commandreset_ok_state
max_checks_attempts1
passive_checks_enabled1
active_check_enabled0
freshness_threshold900
check_freshness1
...
}

define command {
command_name reset_ok_state
command line $USER1$/check_dummy 0 "Last alert received at `date -d 
'1970-01-01 UTC + $LASTSERVICESTATECHANGE$ seconds'`"
}

Everything works fine for some days but, after a while, freshness stops 
to be checked and I have to restart Nagios in order to trigger the 
freshness check again. Then I get in the Nagios log that my service is 
stale for several hours and that Nagios is scheduling an immediat check.

I'm running Nagios v3.2.3 on an Ubuntu server 11.04.

Does somebody already see a similar behaviour? Is there some flaw(s) in 
my configuration?

Thanks in advance,

Marc-André

--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
___
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] Passive checks sent with send_nrdp.php not beingprocessed by nagios

2011-09-09 Thread Mclean, Adam
We've been using NRDP here for months now.  No concerns.
 
Try adding a trailing / at the end of your URL.
 
As an FYI I recently posted a perl client that acts as a dropin replacement for 
send_ncsa to make the transition easier for nsca shops, or for shops that don't 
have php on their monitored hosts.  It has some features that we've needed in 
nsca that weren't originally present like sending to multiple hosts, and 
caching failed result sends for retry later.
 
http://exchange.nagios.org/directory/Addons/Passive-Checks/send_nrdp-Perl-Client/details
 


From: Dan Sanville [mailto:dsanvi...@ll.mit.edu] 
Sent: 2011, September, 09 3:22 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Passive checks sent with send_nrdp.php not 
beingprocessed by nagios


Good afternoon,

I am trying to use NRDP, specifically send_nrdp.php from a nagios client 
system, to send passive checks to a nagios core server and no matter what I try 
nagios never receives my passive checks. I was wondering if anyone has 
successfully setup NRDP to send passive checks to nagios and if they can offer 
any suggestions. Also the only real documentation I can find is a four page 
"NRDP - Overview" pdf and I was wondering if someone has or can point me to 
more in depth documentation?

I followed the instructions in the four page pdf and nrdp seemed to setup just 
fine. http://abc.def.ghi.jkl/nrdp brings up the web page exactly as the 
documentation shows. I filled out the webpage, added in my token, hit submit 
and I received the following:


0
OK
−

2 checks processed.




I am not 100% sure this is what I should receive but it looked good. On the 
client I ran the following command:

usr/bin/php /usr/local/nrdp/clients/send_nrdp.php 
--url=http://abc.def.ghi.jkl/nrdp --token=mysecrettoken 
--host=nagios-test-client --service=Check_Passive --state=2 
--output="test1234567890"

via tcpdump looking at port 80 I see the command sends data to my nagios server 
but from here I am at a loss for what happens. My passive checks stays in 
"unknown" status and I see very little in nagios.log. 

I would be grateful for any insight as to what is supposed to happen, what I 
should be looking for in a logfile, or any suggestions/thoughts.

thanks
Dan Sanville




-- 
Dan Sanville
System Administrator
MIT Lincoln Laboratory
244 Wood Street, Lexington, MA 02420
Office: 781-981-1601

___

This email may be privileged and/or confidential, and the
sender does not waive any related rights and obligations.
Any distribution, use or copying of this email or the
information it contains by other than an intended recipient
is unauthorized. If you received this email in error,
please advise the sender (by return email or otherwise)
immediately. You have consented to receive the attached
electronically at the above-noted email address; please retain a
copy of this confirmation for future reference.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce
pas aux droits et obligations qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il
contient par une personne autre que le (les) destinataire(s)
désigné(s) est interdite. Si vous recevez ce courriel par erreur,
veuillez en aviser l’expéditeur immédiatement, par retour de courriel
ou par un autre moyen. Vous avez accepté de recevoir le(s) document(s)
ci-joint(s) par voie électronique à l’adresse courriel indiquée ci-dessus;
veuillez conserver une copie de cette confirmation pour les fins de reference 
future.

--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
___
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 checks sent with send_nrdp.php not being processed by nagios

2011-09-09 Thread Dan Sanville


  
  
Good afternoon,
  
  I am trying to use NRDP, specifically send_nrdp.php from a nagios
  client system, to send passive checks to a nagios core server and
  no matter what I try nagios never receives my passive checks. I
  was wondering if anyone has successfully setup NRDP to send
  passive checks to nagios and if they can offer any suggestions.
  Also the only real documentation I can find is a four page "NRDP -
  Overview" pdf and I was wondering if someone has or can point me
  to more in depth documentation?
  
  I followed the instructions in the four page pdf and nrdp seemed
  to setup just fine. http://abc.def.ghi.jkl/nrdp brings up the web
  page exactly as the documentation shows. I filled out the webpage,
  added in my token, hit submit and I received the following:
  
  
  0
  OK
  −
  
  2 checks processed.
  
  
  
  
  I am not 100% sure this is what I should receive but it looked
  good. On the client I ran the following command:
  
  usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url="" class="moz-txt-link-freetext" href="http://">http://abc.def.ghi.jkl/nrdp --token=mysecrettoken
  --host=nagios-test-client --service=Check_Passive --state=2
  --output="test1234567890"
  
  via tcpdump looking at port 80 I see the command sends data to my
  nagios server but from here I am at a loss for what happens. My
  passive checks stays in "unknown" status and I see very little in
  nagios.log. 
  
  I would be grateful for any insight as to what is supposed to
  happen, what I should be looking for in a logfile, or any
  suggestions/thoughts.
  
  thanks
  Dan Sanville
  
  
  

-- 
Dan Sanville
System Administrator
MIT Lincoln Laboratory
244 Wood Street, Lexington, MA 02420
Office: 781-981-1601

  


--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/___
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 checks vs notifications

2011-06-14 Thread Konstantin Lebedev

Hi All!

FreeBSD-8.1-RELEASE, Nagios Core 3.2.3.
There is a problem with notifications.

I have a distributed system with 4 nodes and master, with 1000 hosts and 
5000 services.
In the system are about 40 contacts.For each set or remove an alert for 
most of them send notification in jabber/mail.When falling off multiple 
servers or services, the system is behaving strangely.Nagios master does 
not respond to a request by node information.Until then, until the turn 
off notifications.


Seeking a solution to the problem.Now the situation resolves manual 
shut-off notices and reread the configuration files.
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-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] Passive checks show "red" in tactical overview

2010-02-16 Thread Jim Avery
On 9 February 2010 18:53, David Krider  wrote:
> I have many services that are passively monitored. They have a
> check_command defined, but, like my SNMP trap catcher service, it only
> fires when it's time to check freshness.
>
> All these services show up as "X Services Disabled" in the "Active
> Checks" area of the tactical overview screen, as though this was a
> problem. However, this is normal, and I don't want to see any "red"
> areas on the overview. (I want _any_ red on that screen to mean,
> "PANIC!")
>
> Can anyone tell me how to make Nagios ignore this? Also, these same
> services have flapping detection disabled, so, same thing for that as
> well.

No, I think this is just how Nagios works.  I agree it would be nice
if the tactical overview would only show those services which are in a
state which is not 'as configured'.

> Or, rather, is the only way to get rid of this to go ahead and enable
> the active_check command, probably on a lengthy interval time?

I suppose you could, so long as the active check actually returned a
correct check result.  Personally I just don't use the tactical
overview screen very often.

I'm sorry I don't suppose that helps a great deal!

Cheers,

Jim

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-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] Passive checks show "red" in tactical overview

2010-02-09 Thread David Krider
I have many services that are passively monitored. They have a
check_command defined, but, like my SNMP trap catcher service, it only
fires when it's time to check freshness.

All these services show up as "X Services Disabled" in the "Active
Checks" area of the tactical overview screen, as though this was a
problem. However, this is normal, and I don't want to see any "red"
areas on the overview. (I want _any_ red on that screen to mean,
"PANIC!")

Can anyone tell me how to make Nagios ignore this? Also, these same
services have flapping detection disabled, so, same thing for that as
well.

Or, rather, is the only way to get rid of this to go ahead and enable
the active_check command, probably on a lengthy interval time?

Thanks,
dk



--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] Passive Checks and state changes

2009-08-14 Thread Jim Avery
2009/8/13 Joseph L. Casale :
> What am I missing, I use some passive checks for backups
> which update only when send_nsca runs on the client.
> After editing the configs and restarting nagios, only
> sometimes do they turn critical, as if it decided to perform
> the freshness check out of hours?
>
> Anyone know why this happens only sometimes and how I can prevent
> it?
>
> Thanks!
> jlc


I have a backup monitoring script which simply sends Nagios (by
send_nsca) the amount of data which has been backed-up in the last 24
hours.  If the script finds nothing, it doesn't send a check to Nagios
at all so I use freshness checking to alert that nothing has been
received from the backup check.  The template I use for the service
checks looks like this:

define service {
  name  nsca-tsm_nightly_vol
  is_volatile   1
  check_freshness   1
  active_checks_enabled 0
  max_check_attempts1
  freshness_threshold   129600  ; 36 hours
  check_command check_nothing-tsm_nightly_vol
  servicegroups backups
  notification_options  n
  notes Volume of data backed-up to TSM
  register  0
}


The command definition for "check_nothing-tsm_nightly_vol" looks like this:

# 'check_nothing-tsm_nightly_vol' command definition
define command{
command_namecheck_nothing-tsm_nightly_vol
command_line$USER1$/passive_timeout.sh

And the /usr/local/nagios/libexec/passive_timeout.sh script looks like this:

  #!/bin/sh
  /bin/echo "CRITICAL: No status has been received recently!
  exit 2


I hope this helps a little.

cheers,

Jim

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 Checks and state changes

2009-08-13 Thread Joseph L. Casale
What am I missing, I use some passive checks for backups
which update only when send_nsca runs on the client.
After editing the configs and restarting nagios, only
sometimes do they turn critical, as if it decided to perform
the freshness check out of hours?

Anyone know why this happens only sometimes and how I can prevent
it?

Thanks!
jlc

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] passive checks and host down alerts

2009-07-24 Thread Terry
On Fri, Jul 24, 2009 at 10:15 AM, Marc Powell wrote:
>
> On Jul 24, 2009, at 8:32 AM, Terry wrote:
>
>> As you can see here, I have active checks disabled.  However, in the
>> web interface, it is showing active checks as enabled.
>>
>> 1. why?
>
> Someone enabled them through the GUI and the status is possibly being
> retained (see the documentation about Retention) _or_ you have
> multiple nagios daemons running, one with an old config with it
> enabled and one with a new config with it disabled.
>
>> 2. If I have a host that has 5 active check services and 1 passive
>> check service and all 5 of the active services goes down, will it
>> consider the host down and suppress those notifications and only send
>> the host down alert?
>
> Only if you have a working host check_command. Active/passive services
> or number of services down makes no difference at all. When any
> service on a host fails, the host's check_command is run. If that
> returns a non-OK result, notifications for services on the host are
> suppressed until the host recovers and a single host notification is
> sent (if specified). If it returns an OK result (or isn't specified),
> notifications are not suppressed for services on that host.
>
> --
> Marc

Oh, I had the host check logic all wrong in my head.  I went ahead and
disabled all active checks in the servicegroup and see where that
takes me.  Thanks for your help!

--
___
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] passive checks and host down alerts

2009-07-24 Thread Marc Powell

On Jul 24, 2009, at 8:32 AM, Terry wrote:

> As you can see here, I have active checks disabled.  However, in the
> web interface, it is showing active checks as enabled.
>
> 1. why?

Someone enabled them through the GUI and the status is possibly being  
retained (see the documentation about Retention) _or_ you have  
multiple nagios daemons running, one with an old config with it  
enabled and one with a new config with it disabled.

> 2. If I have a host that has 5 active check services and 1 passive
> check service and all 5 of the active services goes down, will it
> consider the host down and suppress those notifications and only send
> the host down alert?

Only if you have a working host check_command. Active/passive services  
or number of services down makes no difference at all. When any  
service on a host fails, the host's check_command is run. If that  
returns a non-OK result, notifications for services on the host are  
suppressed until the host recovers and a single host notification is  
sent (if specified). If it returns an OK result (or isn't specified),  
notifications are not suppressed for services on that host.

--
Marc


--
___
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 checks and host down alerts

2009-07-24 Thread Terry
Hello,

I have a service defined like this:

define service{
hostgroup_name hostgroup1
service_description it assistant trap
servicegroups   it assistant trap
is_volatile 1
flap_detection_enabled  0
active_checks_enabled   0
passive_checks_enabled  1
max_check_attempts  1
check_period24x7
check_command   check_none
}

As you can see here, I have active checks disabled.  However, in the
web interface, it is showing active checks as enabled.

1. why?
2. If I have a host that has 5 active check services and 1 passive
check service and all 5 of the active services goes down, will it
consider the host down and suppress those notifications and only send
the host down alert?

Thanks!

--
___
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 checks with business time notification

2009-01-29 Thread Matteo
Hi,

I want to monitor some night batch procedures.

These procedures are executed each night.

When the procedure finish, say to nagios passive service "OK". If an
error occur the procedure catch the error and push it via a critical
passive alert to nagios.

So there have two thing to check every morning:
- the application has been executed that night;
- the application has finished with an OK status;

I don't need "realtime" notification: I want to be notified of the error
only in business time, not at 2 am...:)

I thought about these features... 
- freshness can help me to check if the service status is stale for >
24hours
- notification period will help me to be not notified in the night.
This finally do not resolve the whole problem.

I want to be notified of "this night" error on "this morning" and not
tomorrow morning or tomorrow night.

Do you have ideas?

Thanks

Matteo


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] passive checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Perhaps I should have mentioned that I could not find
the example you referred to, which is why I asked for the
exact link...

But thanks anyway

cheers

Alessandro

Marc Powell ha scritto:
> On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote:
> 
>> Hi Marc
>>
>> Could you send me the exact link in case?
> 
> No. It's not difficult to find browsing the index, through Google or  
> simply using grep on your local copy of the docs. Looking for it  
> yourself will do you far more good than me just giving it to you.
> 
> --
> Marc
> 
> --
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> ___
> 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

-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] passive checks and possible actions in case of stale information

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote:

> Hi Marc
>
> Could you send me the exact link in case?

No. It's not difficult to find browsing the index, through Google or  
simply using grep on your local copy of the docs. Looking for it  
yourself will do you far more good than me just giving it to you.

--
Marc

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] passive checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Hi Marc

Could you send me the exact link in case?

Thanks again

cheers

Alessandro

Marc Powell ha scritto:
> On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote:
> 
>> firewall: is it possible instead to just trigger (email)
>> an alarm when the information is found to be stale?
> 
> Yes, the Example given in the documentation is exactly this solution...
> 
> --
> Marc
> 
> --
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> ___
> 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

-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] passive checks and possible actions in case of stale information

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote:

> firewall: is it possible instead to just trigger (email)
> an alarm when the information is found to be stale?

Yes, the Example given in the documentation is exactly this solution...

--
Marc

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Hi all,


Reading through the docs about passive checks and the
possible actions in case of stale information, it seems
it is possible to turn on a "freshness" functionality
so that after a certain timeout active checks are used
instead.
In my case this may not necessarily be feasible
as the nodes to monitor are remote ones behind a
firewall: is it possible instead to just trigger (email)
an alarm when the information is found to be stale?
I don't need much more as I can then ping the maintainers
of the remote nodes about a possible problem

Thanks in advance for any info you may provide

Cheers

Alessandro


-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] passive checks for non-24x7 hosts going staleoutside check_period

2008-04-16 Thread Gareth Watson
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mark Wagner
> Sent: 15 April 2008 19:06
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] passive checks for non-24x7 hosts 
> going staleoutside check_period
> 
> I have a distributed set-up where the web interface server 
> never does any checks. Freshness checking is enabled on the 
> web interface server with a check command that will alert 
> that the service/host is stale.
> 
> Everything works fine except for those hosts that are not 
> monitored 24x7.
> 
> For example, services/hosts that are monitored 9am-5pm will 
> be reported as stale every morning at 9am. The service/host 
> goes stale on the active monitoring servers too, a 
> service/host check will be forced, and the result will be 
> sent to the web interface server at which point the web 
> interface server is happy again.
> 
> I would think that Nagios would not include time outside of 
> the check_period when calculating how fresh a service/host is 
> but that appears not to be the case. (Please correct me if I 
> am wrong.)
> 
> Does anybody have any tips on how to handle this situation?

How fortuitous, we were just chatting about setting up another Nagios
server using the passive check system at work yesterday.  I would also
be interested in hearing more about this issue if anyone has any further
information or advice.

Thanks,

Gareth.

> 
> I'm using Nagios v2.9.
> 
> --
> Mark Wagner <[EMAIL PROTECTED]>
> System Administrator, UW Medicine IT Services
> 
> --
> ---
> This SF.net email is sponsored by the 2008 JavaOne(SM) 
> Conference Don't miss this year's exciting event. There's 
> still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
.sun.com/javaone
> ___
> 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
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 checks for non-24x7 hosts going stale outside check_period

2008-04-15 Thread Mark Wagner
I have a distributed set-up where the web interface server never
does any checks. Freshness checking is enabled on the web interface
server with a check command that will alert that the service/host
is stale.

Everything works fine except for those hosts that are not monitored
24x7.

For example, services/hosts that are monitored 9am-5pm will be reported as
stale every morning at 9am. The service/host goes stale on the active
monitoring servers too, a service/host check will be forced, and the
result will be sent to the web interface server at which point the web
interface server is happy again.

I would think that Nagios would not include time outside of
the check_period when calculating how fresh a service/host is
but that appears not to be the case. (Please correct me if I
am wrong.)

Does anybody have any tips on how to handle this situation?

I'm using Nagios v2.9.

-- 
Mark Wagner <[EMAIL PROTECTED]>
System Administrator, UW Medicine IT Services

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Passive checks.... Got It

2007-02-15 Thread Kevin DaSilva
When executing the submit_check_result, quotes need to be around the
trap name and plugin output. Like so...

/usr/local/nagios/libexec/eventhandlers/submit_check_result
(servername) "Short term alloc failed" 1 "$3 requests for short term
memory could not be granted on server $1"

Nagios then recognized the command and changed the status and sent a
notification.

Kevin

>>> "Andy Shellam (Mailing Lists)"
<[EMAIL PROTECTED]> 2/15/2007 11:40 AM >>>
Assuming this is Nagios 2.x, you don't have "active_checks_enabled 1"
in 
your service definition (active checks are not enabled.)

Andy.

Kevin DaSilva wrote:
> Hi All...
>
> I seem to have a problem with passive checks. When I look at the
> Services Detail window in Nagios, all my passive checks are pending,
> with a status of Service is not scheduled to be checked. I manually
> submit a trap using the submit_check_result, the event shows in the
log,
> but the status doesn't change.
>
> Here is what I submit :
> /usr/local/nagios/libexec/eventhandlers/submit_check_result
> (servername) Short term alloc failed 1 $3 requests for short term
memory
> could not be granted on server $1
>
>
>
> Below is an example of my service:
>
> define service{
>   host_name   (server name)
>   service_description Short term alloc failed
>   is_volatile 1
>   max_check_attempts  1
>   normal_check_interval   1
>   retry_check_interval1
>   passive_checks_enabled  1
>   check_command   check-host-alive
>   check_periodnone
>   notification_interval   31536000
>   notification_period 24x7
>   notification_optionsw,u,c,r
>   contact_groups  it-dept
>   }
>
>
> Any help would be greatly appreciated.
>
> Thanks,
> Kevin
>
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

> ___
> 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
>
> !DSPAM:37,45d48a7618513788438255!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Passive checks

2007-02-15 Thread Andy Shellam (Mailing Lists)
Assuming this is Nagios 2.x, you don't have "active_checks_enabled 1" in 
your service definition (active checks are not enabled.)

Andy.

Kevin DaSilva wrote:
> Hi All...
>
> I seem to have a problem with passive checks. When I look at the
> Services Detail window in Nagios, all my passive checks are pending,
> with a status of Service is not scheduled to be checked. I manually
> submit a trap using the submit_check_result, the event shows in the log,
> but the status doesn't change.
>
> Here is what I submit :
> /usr/local/nagios/libexec/eventhandlers/submit_check_result
> (servername) Short term alloc failed 1 $3 requests for short term memory
> could not be granted on server $1
>
>
>
> Below is an example of my service:
>
> define service{
>   host_name   (server name)
>   service_description Short term alloc failed
>   is_volatile 1
>   max_check_attempts  1
>   normal_check_interval   1
>   retry_check_interval1
>   passive_checks_enabled  1
>   check_command   check-host-alive
>   check_periodnone
>   notification_interval   31536000
>   notification_period 24x7
>   notification_optionsw,u,c,r
>   contact_groups  it-dept
>   }
>
>
> Any help would be greatly appreciated.
>
> Thanks,
> Kevin
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45d48a7618513788438255!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 checks

2007-02-15 Thread Kevin DaSilva
Hi All...

I seem to have a problem with passive checks. When I look at the
Services Detail window in Nagios, all my passive checks are pending,
with a status of Service is not scheduled to be checked. I manually
submit a trap using the submit_check_result, the event shows in the log,
but the status doesn't change.

Here is what I submit :
/usr/local/nagios/libexec/eventhandlers/submit_check_result
(servername) Short term alloc failed 1 $3 requests for short term memory
could not be granted on server $1



Below is an example of my service:

define service{
host_name   (server name)
service_description Short term alloc failed
is_volatile 1
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
passive_checks_enabled  1
check_command   check-host-alive
check_periodnone
notification_interval   31536000
notification_period 24x7
notification_optionsw,u,c,r
contact_groups  it-dept
}


Any help would be greatly appreciated.

Thanks,
Kevin



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 checks show up as disabled

2007-02-01 Thread Petersen, Mark
Hello,

 

I followed all the advise here -
http://nagios.org/faqs/viewfaq.php?faq_id=271&expand=false&showdesc=fals
e including getting rid of the state retention file, adding
check_freshness, freshness_threshold and defining the check_command as
service-is-stale (which is setup to warn that service hasn't reported
for awhile.)  Yet, for some reason I still show passive checks as
"disabled" services in the tactical overview.  Running Nagios 2.4-1
package on Ubuntu 6.10 on amd64 hardware.

 

Thanks,

mark

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=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 Checks

2006-04-05 Thread Andreaco

Hi,
my central nagios server ignores coming passive checks where hostname
contain spaces inside.
Do you know if it's a known problem and how to solve it ?
Thanks,Andrea

Here my sending script:


#!/bin/sh
# Arguments:
# $1 = host_name (Short name of host that the service is
# associated with)
# $2 = svc_description (Description of the service)
# $3 = state_string (A string representing the status of
# the given service - "OK", "WARNING", "CRITICAL"
# or "UNKNOWN")
# $4 = plugin_output (A text string that should be used
# as the plugin output for the service checks)
#
# Convert the state string to the corresponding return code
return_code=-1
case "$3" in
OK)
return_code=0
;;
WARNING)
return_code=1
;;
CRITICAL)
return_code=2
;;
UNKNOWN)
return_code=-1
;;
esac
# pipe the service check info into the send_nsca program, which
# in turn transmits the data to the nsca daemon on the central
# monitoring server
#/usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
/usr/local/nagios/bin/send_nsca 192.168.25.188 -c
/usr/local/nagios/etc/send_nsca.cfg
/usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
/usr/local/nagios/bin/send_nsca 192.168.27.29 -c
/usr/local/nagios/etc/send_nsca.cfg
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Conto Arancio, il migliore amico dei tuoi risparmi.Prova la differenza!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5040&d=20060405




---
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=lnk&kid0944&bid$1720&dat1642
___
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] passive checks; some work some don't

2005-11-17 Thread Steve Wray

Demetri Mouratis wrote:

On Fri, 18 Nov 2005, Steve Wray wrote:


Demetri Mouratis wrote:


On Fri, 18 Nov 2005, Steve Wray wrote:


Hi there,

I've been using nagios for quite some time, but never used passive 
checks or distributed monitoring.


I've come across a very strange situation.


[big snip]


Any clues would be appreciated!


Ah well, I found what the problem was.

some of the services were using a template with:

notifications_enabled 0

even though these hosts had been configured through the nagios front-end 
on the distributed (ie active) nagios server to send notifications, this 
didn't appear to be sufficient for the obsessive compulsive gadget!


Fixed now
:)

Thanks for the help though!


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
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] passive checks; some work some don't

2005-11-17 Thread Demetri Mouratis

On Fri, 18 Nov 2005, Steve Wray wrote:


Demetri Mouratis wrote:

On Fri, 18 Nov 2005, Steve Wray wrote:


Hi there,

I've been using nagios for quite some time, but never used passive checks 
or distributed monitoring.


I've come across a very strange situation.

[big snip]

Any clues would be appreciated!



Are you running the web interface on the distributed Nagios sites?  If so, 
log into both Distributed and Central web interfaces and look at the 
results side by side.


Yes... I've been pondering over this quite a bit!

Then, try scheduling active checks through the web interface on the 
Distributed side.


Done that...

Are you using nsca to send the results from distributed to central?  Is it 
configured out of inet on Central or running standalone?


Yes, using nsca and configured out of inet.

I've modified the script given in:
http://nagios.sourceforge.net/docs/1_0/distributed.html

so that it logs its actions into a file and found that it never *ever* sends 
a passive alert for anything other than my 'ping' checks, and even then only 
for some of them.


I've been following the documentation quite closely.

So are you certain you have on distributed:

obsess_over_services=1
ocsp_command=obsessive_service_handler

Then, pick a host on distributed and schedule service checks for all 
services on that host.  Watch the logs on distribued and central to see 
what is happening.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
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] passive checks; some work some don't

2005-11-17 Thread Steve Wray

Demetri Mouratis wrote:

On Fri, 18 Nov 2005, Steve Wray wrote:


Hi there,

I've been using nagios for quite some time, but never used passive 
checks or distributed monitoring.


I've come across a very strange situation.

[big snip]

Any clues would be appreciated!



Are you running the web interface on the distributed Nagios sites?  If 
so, log into both Distributed and Central web interfaces and look at the 
results side by side.


Yes... I've been pondering over this quite a bit!

Then, try scheduling active checks through the web interface on the 
Distributed side.


Done that...

Are you using nsca to send the results from distributed to central?  Is 
it configured out of inet on Central or running standalone?


Yes, using nsca and configured out of inet.

I've modified the script given in:
http://nagios.sourceforge.net/docs/1_0/distributed.html

so that it logs its actions into a file and found that it never *ever* 
sends a passive alert for anything other than my 'ping' checks, and even 
then only for some of them.


I've been following the documentation quite closely.


--
There is nothing more important to good government than good education.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
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] passive checks; some work some don't

2005-11-17 Thread Demetri Mouratis

On Fri, 18 Nov 2005, Steve Wray wrote:


Hi there,

I've been using nagios for quite some time, but never used passive checks or 
distributed monitoring.


I've come across a very strange situation.

This may take some explaining and I'm not sure how lucid this is going to 
be...


We have many service checks being run on a central, active, nagios server 
which has been configured with the obsessive compulsive whatsits and a 
passive nagios server, with a web interface, configured for passive checks.


Many of the checks seem to work just fine, but some don't.

I have some services on some hosts with the passive checks working while 
others don't work. And no difference that I can make out between them, there 
seems to be nothing consistent that I can identify between the instances 
which work and those which don't work.


In many cases, a service check on the active nagios server against a host 
group results in some services on some hosts in that group showing up as 
getting through to the passive nagios server, while other services on other 
hosts in the same host group are still showing as 'pending' on the passive 
nagios server.


I've tried manually simulating sending passive alerts for the non-working 
services from the active server to the passive one from the commandline and 
this works fine.


Any clues would be appreciated!


Are you running the web interface on the distributed Nagios sites?  If so, 
log into both Distributed and Central web interfaces and look at the 
results side by side.


Then, try scheduling active checks through the web interface on the 
Distributed side.


Are you using nsca to send the results from distributed to central?  Is it 
configured out of inet on Central or running standalone?





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
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 checks; some work some don't

2005-11-17 Thread Steve Wray

Hi there,

I've been using nagios for quite some time, but never used passive 
checks or distributed monitoring.


I've come across a very strange situation.

This may take some explaining and I'm not sure how lucid this is going 
to be...


We have many service checks being run on a central, active, nagios 
server which has been configured with the obsessive compulsive whatsits 
and a passive nagios server, with a web interface, configured for 
passive checks.


Many of the checks seem to work just fine, but some don't.

I have some services on some hosts with the passive checks working while 
others don't work. And no difference that I can make out between them, 
there seems to be nothing consistent that I can identify between the 
instances which work and those which don't work.


In many cases, a service check on the active nagios server against a 
host group results in some services on some hosts in that group showing 
up as getting through to the passive nagios server, while other services 
on other hosts in the same host group are still showing as 'pending' on 
the passive nagios server.


I've tried manually simulating sending passive alerts for the 
non-working services from the active server to the passive one from the 
commandline and this works fine.


Any clues would be appreciated!



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
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