Re: [Nagios-users] check_iptables and the -S option for iptables; now defunct?

2009-02-12 Thread Rahul Nabar
Found this on the list.

>I had to make one modification within the script: The -S argument is not known
>by the version, 1.3.8, of iptables on the server in question, so I replaced it
>with the -L argument.


[
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23867.html
]

It does seem to work; although I am not really sure what I am doing! :)

-- 
Rahul
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] check_iptables and the -S option for iptables; now defunct?

2009-02-12 Thread Rahul Nabar
I was trying to roll the check_iptables script but ran a hiccup since my
system iptables refuses to accept the -S option that is included in the
script when it invokes iptables.

iptables v1.3.5: Unknown arg `-S'

Any other users of this script? Have you guys done away with the -S option?
Any workarounds? It seems this option was removed in later iptables
versions. But I am not expert enough with iptables to exactly understand its
relevance.

 --
Rahul
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] CPU Critical

2009-02-12 Thread Jon Angliss
On Fri, 13 Feb 2009 00:54:34 -, "Martyn" 
wrote:

>Hi All
>I have noticed whilst monitoring my NT server the CPU load level has been at
>critical status for 3d 8h 29m 32s and sitting at 100%,  this is good news
>from a monitoring point of view as it was spotted, however I need to solve
>it.

>I know I can just jump on to my server and look at the processors I would
>find what was hogging it but is there a plugin/module or add-on that I can
>use to see what processors maxing out.

If you're any good at scripting, you can tinker with the WMI script
from here:


http://www.databasejournal.com/features/mssql/article.php/3560366/Monitor-CPU-Usage-of-All-Running-Processes--Part-I.htm

It's a WMI script that will walk through all the processes, and return
the CPU usage.  With some tweaking, you can probably sort the results,
add the values, and use it as a CPU counter, and return the top
process as part of the check.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] monitor router temperature

2009-02-12 Thread Max
On Thu, Feb 12, 2009 at 6:16 PM, Chris  wrote:
> I was wondering if there is any way to monitor a router's internal
> temperature via Nagios? I get lots of information when I use snmlwalk.
> But most check_snmp_* plugins give me
> "Error: walkoid() returned nothing" error. Thanks for any suggestions.

I wrote and have used this script extensively:

http://www.nagios3book.com/nagios-3-enm/checks/cisco/check_snmp_cisco_temp.pl

If you get errors from scripts, most likely your device does not
support the MIBs the scripts are looking for.

as Marc stated, 7600s, 6000 series, and some 5000 series Ciscos
support temperature sensors, 2x and 3x models do not, the 4000 series
models I have used did not either.

What kind of device are you querying?  If it is a Cisco device, it
will need to support the

CISCO-ENTITY-SENSOR MIB

http://www.oidview.com/mibs/9/CISCO-ENTITY-SENSOR-MIB.html

- Max

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] monitor router temperature

2009-02-12 Thread Marc Powell

On Feb 12, 2009, at 5:16 PM, Chris wrote:

> I was wondering if there is any way to monitor a router's internal
> temperature via Nagios? I get lots of information when I use snmlwalk.
> But most check_snmp_* plugins give me

This will almost certainly depend on the type of router. You should  
check the MIB for your router. For cisco routers (7600's), I use the  
following to measure inlet temperatures --

define command {
 command_name   check_temperature
 command_line   $USER1$/check_snmp -H $HOSTADDRESS 
$ -u 'Degrees Celsius' -o .1.3.6.1.4.1.9.9.13.1.3.1.3.2 -C $USER3$ -w  
37:32 -c 99:38 -l 'Temperature is'
 }

define command {
 command_name   check_temperature_npe-g1
 command_line   $USER1$/check_snmp -H $HOSTADDRESS 
$ -u 'Degrees Celsius' -o .1.3.6.1.4.1.9.9.13.1.3.1.3.1 -C $USER3$ -w  
37:32 -c 99:38 -l 'Temperature is'
 }


--
Marc

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] CPU Critical

2009-02-12 Thread James Pratt


> -Original Message-
> From: Martyn [mailto:mar...@chetnet.co.uk]
> Sent: Thursday, February 12, 2009 7:55 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] CPU Critical
> 
> Hi All
> I have noticed whilst monitoring my NT server the CPU load level has
been at critical
> status for 3d 8h 29m 32s and sitting at 100%,  this is good news from
a monitoring
> point of view as it was spotted, however I need to solve it.
> 
> I know I can just jump on to my server and look at the processors I
would find what
> was hogging it but is there a plugin/module or add-on that I can use
to see what
> processors maxing out.
> 
> Thanks
> 
> Martyn


Hello Martyn,

You would really have to monitor *all* possible processes to do what you
speak of (AFAIK). I would pick the ones that are the most likely to go
awry, and focus on monitors for them.

You can always write bat files to check for process (or lack of one) via
nrpe - the nrpe_nt windows stuff had some good examples last time I
checked - they are not that complicated and quite flexible, you just
have to ensure you send nrpe_nt the proper exit code based on the
problem/symptom... (This is assuming you meant "processes", and not
"processors" , as that would be hardware).. ;)

Cheers,
Jamie

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] CPU Critical

2009-02-12 Thread Martyn
Hi All
I have noticed whilst monitoring my NT server the CPU load level has been at
critical status for 3d 8h 29m 32s and sitting at 100%,  this is good news
from a monitoring point of view as it was spotted, however I need to solve
it.
I know I can just jump on to my server and look at the processors I would
find what was hogging it but is there a plugin/module or add-on that I can
use to see what processors maxing out.

Thanks

Martyn
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] Using a modem with Nagios as backup alert path

2009-02-12 Thread Frater, Greg J
>-Original Message-
>From: Russell Adams [mailto:rlad...@adamsinfoserv.com] 
>Sent: Thursday, February 12, 2009 4:12 PM
>To: nagios-users@lists.sourceforge.net
>Subject: Re: [Nagios-users] Using a modem with Nagios as backup alert
path

>On Thu, Feb 12, 2009 at 03:05:54PM -0800, Frater, Greg J wrote:
>> Greetings All,
>> 
>> We are setting up a new Nagios instance running version 3.  With it
we 
>> are adding a modem so that alerts can be sent via the phone system 
>> even if the data network goes down.  In the testing I've done
messages 
>> sent via the modem take quite a bit longer to be received than alerts

>> sent via SMTP, this is because the modem goes through the dial up 
>> connection process and then sends the messages to each recipient in 
>> separate sessions, so I want to keep SMTP as the primary method and 
>> use the modem as a backup path.  What is the best way to do this, can

>> we do it without a bunch of work to implement?  Suggestions and
advice gladly accepted.
>> 
>> Thanks,
>> 
>> -greg

>What are you sending via modem, SMS, text pages? Are you connecting to
an ISP via PPP to fire off one SMTP message?

The modem is sending sms messages.

>I have successfully used Sendpage with Nagios to send to IXO/TAP text
pagers, and it supports piggybacking to send out multiple pages in a
single phone call. I think it supports sending SMS too.

I guess I need to have a closer look at the sendpage config, there's
probably a way to do that I just did take the time to dig into it.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Using a modem with Nagios as backup alert path

2009-02-12 Thread Frater, Greg J
 > From: Gareth Fletcher [mailto:gareth.fletc...@onenet.co.nz] 
 > Sent: Thursday, February 12, 2009 3:44 PM
 > To: Frater, Greg J
 > Subject: RE: Using a modem with Nagios as backup alert path



 > Hi Greg,

 

 > Just something to get you started before someone with more knowledge
answers - what about monitoring the data network in Nagios, create   an
event handler so if it goes down change bring the modem up and start
sending messages that way. When it comes back up you can keep SMTP
primary. 

 

I'm not sure how to effectively check the "network" to see if SMTP is
available, on one hand it seems straight forward but when I think about
details it does not seem so obvious.  My SMTP path looks something like
this:
 
Nagios -> local sendmail daemon -> smtp smarthost -> corporate smtp
gateway -> corporate internet connection -> internet
 
Maybe it's overkill to worry about all of those pieces but in my
paranoid (i.e. mad boss wanting to know why we didn't know about a major
outage) mind I don't want to leave anything out :-)
 
Honestly I'm not checking all of those things now, but I would like to
be a bit more thorough on the new setup, some of those things I don't
have access to be able to check them.

 

 

 > How come you have to dial up each time to send alerts?   

 

That's a good question, that's just the way it worked when I first set
it up and I did not check for another or better way. 

 

 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] Using a modem with Nagios as backup alert path

2009-02-12 Thread Russell Adams
On Thu, Feb 12, 2009 at 03:05:54PM -0800, Frater, Greg J wrote:
> Greetings All, 
> 
> We are setting up a new Nagios instance running version 3.  With it we
> are adding a modem so that alerts can be sent via the phone system even
> if the data network goes down.  In the testing I've done messages sent
> via the modem take quite a bit longer to be received than alerts sent
> via SMTP, this is because the modem goes through the dial up connection
> process and then sends the messages to each recipient in separate
> sessions, so I want to keep SMTP as the primary method and use the modem
> as a backup path.  What is the best way to do this, can we do it without
> a bunch of work to implement?  Suggestions and advice gladly accepted.
> 
> Thanks, 
> 
> -greg

What are you sending via modem, SMS, text pages? Are you connecting to
an ISP via PPP to fire off one SMTP message?

I have successfully used Sendpage with Nagios to send to IXO/TAP text
pagers, and it supports piggybacking to send out multiple pages in a
single phone call. I think it supports sending SMS too.

Good luck.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Using a modem with Nagios as backup alert path

2009-02-12 Thread Frater, Greg J
Greetings All, 

We are setting up a new Nagios instance running version 3.  With it we
are adding a modem so that alerts can be sent via the phone system even
if the data network goes down.  In the testing I've done messages sent
via the modem take quite a bit longer to be received than alerts sent
via SMTP, this is because the modem goes through the dial up connection
process and then sends the messages to each recipient in separate
sessions, so I want to keep SMTP as the primary method and use the modem
as a backup path.  What is the best way to do this, can we do it without
a bunch of work to implement?  Suggestions and advice gladly accepted.

Thanks, 

-greg
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] monitor router temperature

2009-02-12 Thread Chris
I was wondering if there is any way to monitor a router's internal
temperature via Nagios? I get lotsuse snmlwalk to get information ou

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] monitor router temperature

2009-02-12 Thread Chris
I was wondering if there is any way to monitor a router's internal
temperature via Nagios? I get lots of information when I use snmlwalk.
But most check_snmp_* plugins give me
"Error: walkoid() returned nothing" error. Thanks for any suggestions.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Notification Escalation

2009-02-12 Thread Andrew Bruce
Hi there,

I'm setting up some escalations for the first time.

We have many servers we wish to monitor, with many many services being
monitored.  I want to escalate almost all service notifications, but not
some (and the same is true with the hosts).  What is the best practice to
achieve this?

Also, in the first instance in the service definition, we want a single
notification to go to a email group once the check hits a HARD critical
state, which works fine (notification_interval 0).  The issue here is that
by setting the notification_interval to 0 in the service definition, the
notifications never seem to get escalated to the other contacts.  Setting
this value to anything other than 0 seems to allow the escalations to work,
but sends multiple emails to the email group in the service definition.  Is
this the correct behaviour I'm seeing?

Nagios version is v3.0.3


Thanks,

Andrew


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Rahul Nabar
On Thu, Feb 12, 2009 at 2:06 PM, Lee Azzarello  wrote:

> In Nagios version 3, you click on Reporting->Trends and use the menus
> to generate a picture


Thanks again Lee!

>
> The limitation is you can only see one picture at a time for a
> particular host or service


That is a drawback. The whole idea is to get a picture across *many* hosts
or services. For a given host my PNP already generates better plots than the
inbuilt Nagios trending suite.


PNP does seem very geared for this. Just not sure how to make it plot a
certain time slice instead of a historic time series!

-- 
Rahul
--
___
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] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Max
On Thu, Feb 12, 2009 at 3:06 PM, Lee Azzarello  wrote:
> In Nagios version 3, you click on Reporting->Trends and use the menus
> to generate a picture.
>
> The limitation is you can only see one picture at a time for a
> particular host or service. So you could not, for example have an
> automatically generated "dashboard" of trends for a particular host or
> service group. Though there's nothing stopping you from taking
> screenshots and making your own.

The images are generated by the Nagios CGIs and have URLs that are
pretty easy to generate programatically :), so you actually could do a
custom web-dashboard that calls the nagios CGIs to create host and
service state trends, but they would be just state trends not
performance data trends.

For performance data trends across hosts or services you have to
integrate a graphing package and then use the data sources from that
package to do what you are after.

I think on and off about doing just this kind of a report builder GUI
for PNP, would not be too difficult, just need that ever rare
commodity 'free time' to do it :).

- Max

--
___
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] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Lee Azzarello
In Nagios version 3, you click on Reporting->Trends and use the menus
to generate a picture.

The limitation is you can only see one picture at a time for a
particular host or service. So you could not, for example have an
automatically generated "dashboard" of trends for a particular host or
service group. Though there's nothing stopping you from taking
screenshots and making your own.

-lee

On Thu, Feb 12, 2009 at 2:43 PM, Rahul Nabar  wrote:
>
>
> On Thu, Feb 12, 2009 at 11:46 AM, Lee Azzarello  wrote:
>>
>> Nagios itself does have some trending tools in version 3, though they
>> are not very comprehensive. Are you looking for something beyond their
>> scope?
>
> Thanks Lee. I am not aware of the scope of the inbuilt trending tools. Maybe
> that's a good place to start. How does one use those? Say, how can one
> obtain a graph of ping times across all hosts in a "suitable" format?
>
> That might make it easy to identify problem machines.
>
> --
> Rahul
>

--
___
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] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Rahul Nabar
On Thu, Feb 12, 2009 at 11:46 AM, Lee Azzarello  wrote:

> Nagios itself does have some trending tools in version 3, though they
> are not very comprehensive. Are you looking for something beyond their
> scope?
>

Thanks Lee. I am not aware of the scope of the inbuilt trending tools. Maybe
that's a good place to start. How does one use those? Say, how can one
obtain a graph of ping times across all hosts in a "suitable" format?

That might make it easy to identify problem machines.

-- 
Rahul
--
___
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] Notification on OK-state

2009-02-12 Thread Max
How about setting the notification command in the service to a null
command of some sort and using a service escalation with the
escalation states critical, warning, and ok all set and a
first_notification value of 1 so that you constantly get the
notification regardess of state?

--
___
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] Notification on OK-state

2009-02-12 Thread Israel Brewster
On Feb 12, 2009, at 7:05 AM, sri.lu...@free.fr wrote:

> There is still a small  problem though... With that method, every  
> service with obsess_over_service enabled will execute the command,  
> and every command defined as ocsp_command in nagios.cfg will be  
> executed by services enabling obsess_over_service :s.
>
> Well... don't know if ther is a better way and it works so I keep it  
> for now...

Well, since you are writing the OCSP command script, you should be  
able to have the script itself "Filter" for hosts you want, i.e if  
$HOSTNAME$=hostA or hostB, etc then run script, otherwise, do nothing.  
Course, that isn't exactly how you do it, as I don't know off the top  
of my head how you pass the hostname to the script (although I'm sure  
you can), and that is not valid code anyway, but hopefully you get the  
idea. On the other hand, that might be more trouble than it is worth :)
---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---

>
>
> - Mail Original -
> De: "Marc Powell" 
> À: "Nagios Users" 
> Envoyé: Jeudi 12 Février 2009 16:51:14 GMT +01:00 Amsterdam /  
> Berlin / Berne / Rome / Stockholm / Vienne
> Objet: Re: [Nagios-users] Notification on OK-state
>
>
> On Feb 12, 2009, at 8:45 AM, sri.lu...@free.fr wrote:
>
>> Thank you very much for the lead. It helped me a lot and.
>>
>> I followed your advice and I used the ocsp_command directive from
>> the nagios.cfg with a script printing into the file nagios.cmd the
>> external command SEND_CUSTOM_SVC_NOTIFICATION and it works fine now.
>
> ... and that is an interesting trick as well ;) I wouldn't have
> thought to send the notification that way.
>
> --
> 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 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 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] fork issues and latency

2009-02-12 Thread Jeff Frost
I've got a Nagios-3.0.4 server monitoring 3,290 services on 387
hosts.When the nagios service is initially started, service and host
latency is great.  This usually continues for about 2-3 hours and then
we start seeing fork errors in the log like so:

[1234425582] Warning: The check of service 'ssh' on host 'mail02' could
not be performed due to a fork() error: 'Cannot allocate memory'.  The
check will be rescheduled.

At about the same time, we start seeing lots of orphaned
/tmp/checkXX files and indications that the max concurrent checks
value has been reached:

[1234458853] Max concurrent service checks (500) has been reached. 
Delaying further checks until previous checks are complete...

It should be noted that during this time period, there is 2GB of free
memory and 1.2GB of cache available out of the 4GB on the nagios server,
so I'm thinking it has to be something besides system RAM that's exhausted.

Naturally, when this starts happening, the latencies begin to increase
and seem to settle somewhere around 98seconds and interestingly enough,
this causes the load to drop to nearly nothing.

We have already set the following in nagios.cfg:

service_reaper_frequency=2
use_large_installation_tweaks=1
enable_environment_macros=0

If we enable the embedded perl interpreter, the forking issues happen
much more quickly after restart (minutes instead of hours).

The nagios user's ulimits look like this:
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 65600
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files  (-n) 4096
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 32768
cpu time   (seconds, -t) unlimited
max user processes  (-u) 65600
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited

We'll likely give 3.0.6 a try soon to see if this magically fixes the
issue even though the changelog doesn't indicate anything obviously
relevant.

-- 
Jeff Frost, Owner   
Frost Consulting, LLC   http://www.frostconsultingllc.com/
Phone: 916-647-6411 FAX: 916-405-4032


--
___
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] Ack/Downtime on multiple hosts/services

2009-02-12 Thread Lee Azzarello
I would think of this as more of a policy question than a technical
one. If a large number of hosts and services are going down often
enough for you to need a batch processing script to trigger nagios to
recognize down time, perhaps your monitoring plan could be altered?
You can define a check time period that only watches for critical
states when the hosts are expected to be online. You can also change
which services are checked for the group of hosts that have a high
amount of maintenance periods.

-lee

On Thu, Feb 12, 2009 at 12:30 AM, Thomas Guyot-Sionnest  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 11/02/09 12:11 PM, Jason Frisvold wrote:
>> Greetings,
>>
>>   I'm relatively new to Nagios and still trying to wrap my head around
>> it.  One thing that I have not been able to find is a way to ack or
>> place into downtime multiple items at once.  Is there a way to do this?
>>  If so, how?  If not, is there some other way I'm supposed to handle
>> these sorts of situations?
>
> If you put a host into downtime, it suppress all service notifications.
> You can also use commands like "Disable all notifications for this host"
> There's also a few commands you can run for the whole hostgroup or
> servicegroup.
>
> Other than that I used to write quick and dirty scripts to send
> mass-command to the command pipe in the past - nothing really re-usable
> though, see the libexec/eventhandlers directory if you need some
> inspiration.
>
> - --
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJk7QK6dZ+Kt5BchYRAmYwAJwN25CAfpdu9X+E8PCDA/Rze7mv5ACeKvjq
> pHZXRrErlqflBsM/TeYE5XM=
> =wo4m
> -END PGP SIGNATURE-
>
> --
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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
>

--
___
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] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Lee Azzarello
Nagios itself does have some trending tools in version 3, though they
are not very comprehensive. Are you looking for something beyond their
scope?

-lee

On Thu, Feb 12, 2009 at 3:09 AM, Rahul Nabar  wrote:
> One other thing that I haven't figured out yet with PNP-NAGIOS is this: How
> does one get trending across services or hosts? i.e. It is easy to see time
> series graphs of pingtimes, load averages disk usages etc. but sometimes
> what seems more relevant is a chart across services for a given snapshot in
> time. Say, to identify a hot node, or a node with unusually high load
> averages.
>
> Is there a way to do this? Or am I tinkering with the wrong tool!
>
> --
> Rahul
>
> --
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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
>

--
___
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] "Could not complete SSL handshake"

2009-02-12 Thread Lee Azzarello
Here's a mystery for the books. I was alerted this morning of a socket
timeout while nagios attempted to connect the NRPE server on a remote
host. I go in and manually check that host and sure enough:

Feb 12 16:02:59 conversion-10 nrpe[6886]: Error: Could not complete
SSL handshake. 5
Feb 12 16:36:03 conversion-10 nrpe[7270]: Error: Could not complete
SSL handshake. 5

Weird, but sort of understandable. Just to make sure it's down, from
the host where Nagios is running:

control-1:~# telnet conversion-10.internal 5666
Trying 10.254.163.50...
Connected to conversion-10.internal.
Escape character is '^]'.

Huh? I can connect via telnet. NRPE is not down.

Then I visually check other services on the remote host though the web
interface, two of which are also a NRPE service check. They are not
generating the SSL handshake error, no socket timeout, status OK, same
host. Wacky. Well, last thing to try is to execute the NRPE check
manually from the host where Nagios is running:

control-1:~# /usr/lib/nagios/plugins/check_nrpe -H
conversion-10.internal -c check_tmpdir_links
check_tmpdir_links OK - result:2823  |links$=2823

Woah, dude!? Uhhh, why is this singular service check telling me it's
having a socket timeout ONLY when run from Nagios but not from an
interactive shell? I give up...

2 hours pass, then I am alerted of the following event:

[1234458138] SERVICE ALERT:
conversion-10;tmpdir-links;OK;HARD;1;check_tmpdir_links OK -
result:2846

WTF? It "fixed itself"? Scary. The only trend I can make of this is
that the timed out service is infrequent. I configured it to be
checked every 30 minutes, while the others are far more frequent,
checking every 5 minutes. Maybe I just got unlucky and hit some high
network latency? I don't know.

-lee

--
___
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] NRPE Problem

2009-02-12 Thread Lee Azzarello
You can also try typing your arguments at the far end in the nrpe
command file. I'm not the biggest fan of passing arguments via nrpe.
I've found it simpler to deploy the same nrpe command file to a
cluster and have nagios just execute the check_nrpe_1arg command.

-lee

On Thu, Feb 12, 2009 at 3:39 AM, LEVEAU Stanislas
 wrote:
> hi
>
> in your define command, i think it's
>
> define command{
> command_name check_nrpe_manual_disk
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
> check_manual_disk -a $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
>   }
>
> and not  -a $ARG1$ $ARG2$ $ARG3$
>
> maybe
>
> regards
> Stan
>
> Thomas Guyot-Sionnest a écrit :
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote:
>
>
> Gents,
>
>   I am trying to have Nagios specify which partition to check via
> nrpe... and am getting the following error:
>
> DISK CRITICAL - 10 is not accessible: No such file or directory
>
> Here is my configuration:
>
>
> ###
>
> define command{
> command_name check_nrpe_manual_disk
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
> check_manual_disk -a $ARG1$ $ARG2$ $ARG3$
> }
>
>
>
> command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk
> -w $ARG1$ -c $ARG2$ -p $ARG3$
>
>
>
>
> define service{
> use local-service
> host_name localhost
> service_description Manual Disk /dev/sda1
> check_command check_nrpe_manual_disk!20!10!/
> }
>
>
> It looks like an extra argument is passed somehow, so check_disk ends up
> checking the the path "10" (your warning threshold)", although your
> config looks ok. Are you sure NRPE and Nagios have been started with the
> most recent config, and there's not more than one instance of Nagios and
> NRPE running?
>
> Have you tried running the check trough the command link (check_nrpe)?
>
> - --
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By
> JhACq1XdPD5D2Ay+7IJdzgI=
> =Yglg
> -END PGP SIGNATURE-
>
> --
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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
>
>
>
> --
> LEVEAU Stanislas
> Rectorat de Caen
> SIAC
> 168, rue Caponière
> B.P. 6184
> 14061 CAEN Cedex
>
>
> Service Informatique de l'académie de Caen
> Département Systèmes & Réseaux
>
>
>  Tel : 02.31.30.17.86
>
>
>
>
> --
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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
>

--
___
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] Notification on OK-state

2009-02-12 Thread sri . lumpa
There is still a small  problem though... With that method, every service with 
obsess_over_service enabled will execute the command, and every command defined 
as ocsp_command in nagios.cfg will be executed by services enabling 
obsess_over_service :s.

Well... don't know if ther is a better way and it works so I keep it for now...

- Mail Original -
De: "Marc Powell" 
À: "Nagios Users" 
Envoyé: Jeudi 12 Février 2009 16:51:14 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Notification on OK-state


On Feb 12, 2009, at 8:45 AM, sri.lu...@free.fr wrote:

> Thank you very much for the lead. It helped me a lot and.
>
> I followed your advice and I used the ocsp_command directive from  
> the nagios.cfg with a script printing into the file nagios.cmd the  
> external command SEND_CUSTOM_SVC_NOTIFICATION and it works fine now.

... and that is an interesting trick as well ;) I wouldn't have  
thought to send the notification that way.

--
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 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] having different "view" in nagios interface

2009-02-12 Thread Paul Weaver
> thank u very much
> Does someone have a piece of software that use 
> Nagios::Statuslog to share?

perl -e '
use Nagios::StatusLog;
my $host = "hostname";
my $description = "service description";
my $dataFile = "/usr/local/nagios/var/status.dat";

my $log = Nagios::StatusLog->new( Filename => $dataFile, Version =>
2.0);
my $obj = $log->service( $host, $description );

print "Service $description on $host is in state
".$obj->{last_hard_state}."\n";
print "* This has been acknowleged\n" if
$obj->{problem_has_been_acknowledged};
'

--
___
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] Notification on OK-state

2009-02-12 Thread Marc Powell

On Feb 12, 2009, at 8:45 AM, sri.lu...@free.fr wrote:

> Thank you very much for the lead. It helped me a lot and.
>
> I followed your advice and I used the ocsp_command directive from  
> the nagios.cfg with a script printing into the file nagios.cmd the  
> external command SEND_CUSTOM_SVC_NOTIFICATION and it works fine now.

... and that is an interesting trick as well ;) I wouldn't have  
thought to send the notification that way.

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


Re: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread Grant Lowe
Hey Dermot,

Check the SMF log file /var/svc/log/network-nagios-nrpe\:default.log. 
If things still arent working, execute /lib/svc/method/nagios-nrpe
manually with some bourne debugging. This will show you what the
nagios-nrpe script is trying to do. 
# sh -x /lib/svc/method/nagios-nrpe






From: "dermot.mal...@bt.com" 
To: nagios-users@lists.sourceforge.net
Sent: Thursday, February 12, 2009 2:32:25 AM
Subject: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

 
Hi ,
I’m
having firecr bother getting Nagios working as a client on a T2000 . 
 
Below are the details…
 
uname -a
SunOS 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T2000
 
echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin
 
 
I got the nagios plugin that I want compiled i.e 
 
check_users
check_load
check_disk
check_procs
 
nrpe compiled fine as well…
 
but it returns nothing when you run the following command…
 
/usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg –d
 
dhs0931i-iedrs: svcs -a | grep nrpe
online
Feb_10   svc:/network/nrpe/tcp:default
 
I added
the following entry to /etc/services:
nrpe
5666/tcp # NRPE
 
I added
the following line to the end of /etc/inet/inetd.conf:
nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd  /usr/local/nagios/bin/nrpe
-c /etc/nrpe.cfg –d
 
The following error appears in my log file 
 
Feb 10 15:46:56nrpe[18]: [ID
434846 daemon.error] Network server bind failure (125: Address already in use)
 
 
 
Any help or assistance would be greatly appreciated…
 
Thanks in advance,
Dermot--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Notification on OK-state

2009-02-12 Thread sri . lumpa
Thank you very much for the lead. It helped me a lot and.

I followed your advice and I used the ocsp_command directive from the 
nagios.cfg with a script printing into the file nagios.cmd the external command 
SEND_CUSTOM_SVC_NOTIFICATION and it works fine now.

Thanks for the lead.

- Mail Original -
De: "Marc Powell" 
À: nagios-users@lists.sourceforge.net
Envoyé: Jeudi 12 Février 2009 14:00:20 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Notification on OK-state


On Feb 12, 2009, at 3:11 AM, sri.lu...@free.fr wrote:

> I would like to create a service which will notify me after each  
> check, even if it is an OK-state and if the state hadn't changed.
>
> I've tried by setting the service's initial state to critical and  
> defining the service as volatile but that doesn't work (it's  
> probably because I didn't understand well the role of the  
> initial_state directive...).

is_volatile will only send notifications for OK states if it's a  
recovery.

> Is Nagios-3.0.6 capable to do that and how can I make it work ?

Nagios isn't capable of sending OK alerts every time using the normal  
notification logic. It seems to me that the OSCP functionality fits  
your goal the best. OCSP can be used to send a notification or do  
whatever you want, after every check. It's most often used for  
Distributed Monitoring but can really be used for anything.

http://nagios.sourceforge.net/docs/3_0/distributed.html

--
Marc






--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread jmoseley
You're welcome.


James Moseley




   
  
To 
 02/12/2009 08:20   
 AM cc 
   , 
  
   Subject 
   RE: [Nagios-users] Configuring  
   Nagios on Solaris 10 (Sparc)
   
   
   
   
   
   




Think that was it James.(bind)

Thanks for your help


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread dermot.malone
Think that was it James.(bind)

Thanks for your help 

-Original Message-
From: jmose...@corp.xanadoo.com [mailto:jmose...@corp.xanadoo.com] 
Sent: 12 February 2009 14:09
To: Malone,D,Dermot,ARF435 R
Cc: edgar.matzin...@valid.nl; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

Not sure if you'll get more than the error below, but turn on debug in
the
nrpe config.  Also, try to bind nrpe to one address instead of all them
and
see what you get.


James Moseley




 

 

 
To 
 02/12/2009 05:33  

 AM
cc 
   ,

 


 
Subject 
   RE: [Nagios-users] Configuring

   Nagios on Solaris 10 (Sparc)

 

 

 

 

 

 





Hi James,
 No errors in syslog , just the below error in messages..

Feb 12 11:18:01 dhs0931i-iedrs nrpe[11216]: [ID 434846 daemon.error]
Network server bind failure (125: Address already in use)


There is no other service running on port 5666

netstat -apn | grep 5666


couldn't find any reference to a pid file in my nrpe.cfg file , please
see below...



















--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread jmoseley
Not sure if you'll get more than the error below, but turn on debug in the
nrpe config.  Also, try to bind nrpe to one address instead of all them and
see what you get.


James Moseley




   
  
To 
 02/12/2009 05:33   
 AM cc 
   , 
  
   Subject 
   RE: [Nagios-users] Configuring  
   Nagios on Solaris 10 (Sparc)
   
   
   
   
   
   




Hi James,
 No errors in syslog , just the below error in messages..

Feb 12 11:18:01 dhs0931i-iedrs nrpe[11216]: [ID 434846 daemon.error]
Network server bind failure (125: Address already in use)


There is no other service running on port 5666

netstat -apn | grep 5666


couldn't find any reference to a pid file in my nrpe.cfg file , please
see below...



















--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Notification on OK-state

2009-02-12 Thread Marc Powell

On Feb 12, 2009, at 3:11 AM, sri.lu...@free.fr wrote:

> I would like to create a service which will notify me after each  
> check, even if it is an OK-state and if the state hadn't changed.
>
> I've tried by setting the service's initial state to critical and  
> defining the service as volatile but that doesn't work (it's  
> probably because I didn't understand well the role of the  
> initial_state directive...).

is_volatile will only send notifications for OK states if it's a  
recovery.

> Is Nagios-3.0.6 capable to do that and how can I make it work ?

Nagios isn't capable of sending OK alerts every time using the normal  
notification logic. It seems to me that the OSCP functionality fits  
your goal the best. OCSP can be used to send a notification or do  
whatever you want, after every check. It's most often used for  
Distributed Monitoring but can really be used for anything.

http://nagios.sourceforge.net/docs/3_0/distributed.html

--
Marc






--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread dermot.malone
Hi James,
No errors in syslog , just the below error in messages..

Feb 12 11:18:01 dhs0931i-iedrs nrpe[11216]: [ID 434846 daemon.error]
Network server bind failure (125: Address already in use)


There is no other service running on port 5666

netstat -apn | grep 5666


couldn't find any reference to a pid file in my nrpe.cfg file , please
see below...



dhs0931i-iedrs: more /etc/nrpe.cfg

#
# Sample NRPE Config File 
# Written by: Ethan Galstad (nag...@nagios.org)
# 
# Last Modified: 12-30-2002
#
# NOTES:
# This is a sample configuration file for the NRPE daemon.  It needs to
be
# located on the remote host that is running the NRPE daemon, not the
host
# from which the check_nrpe client is being executed.

#



# PORT NUMBER
# Port number we should wait for connections on.
# NOTE: This must be a non-priviledged port (i.e. > 1024).
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd

server_port=5666



# SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one
interface
# and you do not want nrpe to bind on all interfaces.
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd

#server_address=



# ALLOWED HOST ADDRESSES
# This is a comma-delimited list of IP address of hosts that are allowed
# to talk to the NRPE daemon.
#
# NOTE: The daemon only does rudimentary checking of the client's IP
#   address.  I would highly recommend adding entries in your
#   /etc/hosts.allow file to allow only the specified host to
connect
#   to the port you are running this daemon on.
#
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd

allowed_hosts=127.0.0.1,147.151.42.164



# NRPE USER
# This determines the effective user that the NRPE daemon should run as.

# You can either supply a username or a UID.
# 
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd

nrpe_user=nagios



# NRPE GROUP
# This determines the effective group that the NRPE daemon should run
as.  
# You can either supply a group name or a GID.
# 
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd

nrpe_group=nagios



# DEBUGGING OPTION
# This option determines whether or not debugging messages are logged to
the
# syslog facility.
# Values: 0=debugging off, 1=debugging on

debug=0



# COMMAND TIMEOUT
# This specifies the maximum number of seconds that the NRPE daemon will
# allow plugins to finish executing before killing them off.

command_timeout=60



# COMMAND DEFINITIONS
# Command definitions that this daemon will run.  Definitions
# are in the following format:
#
# command[]=
#
# When the daemon receives a request to return the results of

# it will execute the command specified by the  argument.
#
# Unlike Nagios, the command line cannot contain macros - it must be
# typed exactly as it should be executed.
#
# Note: Any plugins that are used in the command lines must reside
# on the machine that this daemon is running on!  The examples below
# assume that you have plugins installed in a /usr/local/nagios/libexec
# directory.  Also note that you will have to modify the definitions
below
# to match the argument format the plugins expect.  Remember, these are
# examples only!

command[check_users]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_users
 -w 5 -c 10
command[check_load]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/chec
k_load -
w 15,10,5 -c 30,25,20
command[check_disk1]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d10 
command[check_disk2]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d30 
command[check_disk3]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d80
command[check_disk4]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/dd81
command[check_disk5]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d82
command[check_disk6]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d83
command[check_disk7]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d84
command[check_disk8]=/usr/local/nagios/nagios-plugins-1.4.13/plugins/che
ck_disk 
-w 20 -c 10 -p /dev/md/dsk/d85
command[check_zombie_procs]=/usr/local/nagios/nagios-plugins-1.4.13/plug
ins/chec
k_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/nagios-plugins-1.4.13/plugi
ns/check
_procs -w 150 -c 200

-Original Message-
From: jmose...@corp.xanadoo.com [mailto:jmose...@corp.xanadoo.com] 
Sent: 12 February 2009 11:18
To: Malone,D,Dermot,ARF435 R
Cc: edgar.matzin...@valid.nl; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Configurin

Re: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread jmoseley
Yep, check /var/log/syslog and /var/adm/messages, etc.  Next step, check
the nrpe config file to make sure the path the pid file exists.

Thinking about the error message you posted, that would indicate that
another service (unless nrpe is already running) is already listening to
TCP port 5666.


James Moseley




   
  
To 
 02/12/2009 05:09   
 AM cc 
   , 
  
   Subject 
   RE: [Nagios-users] Configuring  
   Nagios on Solaris 10 (Sparc)
   
   
   
   
   
   




I disable the inetd sercice and reran it as a daemon...

Still no joy though ...

dhs0931i-iedrs: ps -ef | grep nrpe
root  3105  5213   0 11:01:28 pts/1   0:00 grep nrpe







--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread dermot.malone
I disable the inetd sercice and reran it as a daemon...

Still no joy though ...

dhs0931i-iedrs: ps -ef | grep nrpe
root  3105  5213   0 11:01:28 pts/1   0:00 grep nrpe

-Original Message-
From: jmose...@corp.xanadoo.com [mailto:jmose...@corp.xanadoo.com] 
Sent: 12 February 2009 11:07
To: Malone,D,Dermot,ARF435 R
Cc: edgar.matzin...@valid.nl; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

Unless an error occurs, I wouldn't expect anything to return when
running
NRPE as a daemon.  Is it running?

ps -ef | grep nrpe

If you're running it has a daemon, as Edgar said, there is no need for
you
to run this out of inetd.


James Moseley




 

 

 
To 
 02/12/2009 05:01  ,

 AM


 
cc 
 

 
Subject 
   Re: [Nagios-users] Configuring

   Nagios on Solaris 10 (Sparc)

 

 

 

 

 

 





HI Edgar,
 There is no error messages showing up in syslog for nrpe..

Regards,
Dermot

-Original Message-
From: Edgar Matzinger [mailto:edgar.matzin...@valid.nl]
Sent: 12 February 2009 10:50
To: Malone,D,Dermot,ARF435 R; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

Hi Dermot,

> but it returns nothing when you run the following command...
>
> /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

  you are running nrpe as a deamon Take a look in the syslog
files for any messages. But:

> I added the following line to the end of /etc/inet/inetd.conf:
> nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd \
>  /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

Here you are trying to setup inetd as well. You'll have to pick one
method: daemon or inetd.

HTH, cu l8r, Edgar.
--
|\  /| :: Addr: Valid Eindhoven B.V.
 /  | \/ | : Edgar R. Matzinger :   t.a.v. E.R.
Matzinger
/   || ::   Paradijslaan 36
\  /|  /\| ::   5611 KN Eindhoven
 \/   /  \ : Valid Eindhoven BV :
  \  /\  / ::
   \/ |\/  ::
  |::
Disclaimer: Any comments, opinions made are mine, etc ...



--

Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code
to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-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



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread jmoseley
Unless an error occurs, I wouldn't expect anything to return when running
NRPE as a daemon.  Is it running?

ps -ef | grep nrpe

If you're running it has a daemon, as Edgar said, there is no need for you
to run this out of inetd.


James Moseley




   
  
To 
 02/12/2009 05:01  , 
 AM   
cc 
   
   Subject 
   Re: [Nagios-users] Configuring  
   Nagios on Solaris 10 (Sparc)
   
   
   
   
   
   




HI Edgar,
 There is no error messages showing up in syslog for nrpe..

Regards,
Dermot

-Original Message-
From: Edgar Matzinger [mailto:edgar.matzin...@valid.nl]
Sent: 12 February 2009 10:50
To: Malone,D,Dermot,ARF435 R; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

Hi Dermot,

> but it returns nothing when you run the following command...
>
> /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

  you are running nrpe as a deamon Take a look in the syslog
files for any messages. But:

> I added the following line to the end of /etc/inet/inetd.conf:
> nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd \
>  /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

Here you are trying to setup inetd as well. You'll have to pick one
method: daemon or inetd.

HTH, cu l8r, Edgar.
--
|\  /| :: Addr: Valid Eindhoven B.V.
 /  | \/ | : Edgar R. Matzinger :   t.a.v. E.R.
Matzinger
/   || ::   Paradijslaan 36
\  /|  /\| ::   5611 KN Eindhoven
 \/   /  \ : Valid Eindhoven BV :
  \  /\  / ::
   \/ |\/  ::
  |::
Disclaimer: Any comments, opinions made are mine, etc ...


--

Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code
to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-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



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread dermot.malone
HI Edgar,
There is no error messages showing up in syslog for nrpe..

Regards,
Dermot

-Original Message-
From: Edgar Matzinger [mailto:edgar.matzin...@valid.nl] 
Sent: 12 February 2009 10:50
To: Malone,D,Dermot,ARF435 R; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

Hi Dermot,

> but it returns nothing when you run the following command...
> 
> /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

  you are running nrpe as a deamon Take a look in the syslog
files for any messages. But:

> I added the following line to the end of /etc/inet/inetd.conf:
> nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd \
>  /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

Here you are trying to setup inetd as well. You'll have to pick one
method: daemon or inetd.

HTH, cu l8r, Edgar.
-- 
|\  /| :: Addr: Valid Eindhoven B.V.
 /  | \/ | : Edgar R. Matzinger :   t.a.v. E.R.
Matzinger
/   || ::   Paradijslaan 36
\  /|  /\| ::   5611 KN Eindhoven
 \/   /  \ : Valid Eindhoven BV :
  \  /\  / ::
   \/ |\/  ::
  |::
Disclaimer: Any comments, opinions made are mine, etc ... 


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread Edgar Matzinger
Hi Dermot,

> but it returns nothing when you run the following command…
> 
> /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg –d

  you are running nrpe as a deamon Take a look in the syslog
files for any messages. But:

> I added the following line to the end of /etc/inet/inetd.conf:
> nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd \
>  /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg –d

Here you are trying to setup inetd as well. You'll have to pick one
method: daemon or inetd.

HTH, cu l8r, Edgar.
-- 
|\  /| :: Addr: Valid Eindhoven B.V.
 /  | \/ | : Edgar R. Matzinger :   t.a.v. E.R. Matzinger
/   || ::   Paradijslaan 36
\  /|  /\| ::   5611 KN Eindhoven
 \/   /  \ : Valid Eindhoven BV :
  \  /\  / ::
   \/ |\/  ::
  |::
Disclaimer: Any comments, opinions made are mine, etc ... 


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


[Nagios-users] Configuring Nagios on Solaris 10 (Sparc)

2009-02-12 Thread dermot.malone
Hi ,

I'm having firecr bother getting Nagios working as a client
on a T2000 . 

 

Below are the details...

 

uname -a

SunOS 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T2000

 

echo $PATH

/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/sfw/bin
:/usr/ccs/bin

 

 

I got the nagios plugin that I want compiled i.e 

 

check_users

check_load

check_disk

check_procs

 

nrpe compiled fine as well...

 

but it returns nothing when you run the following command...

 

/usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

 

dhs0931i-iedrs: svcs -a | grep nrpe

online Feb_10   svc:/network/nrpe/tcp:default

 

I added the following entry to /etc/services:

nrpe 5666/tcp # NRPE

 

I added the following line to the end of /etc/inet/inetd.conf:

nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd
/usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg -d

 

The following error appears in my log file 

 

Feb 10 15:46:56 nrpe[18]: [ID 434846 daemon.error] Network server bind
failure (125: Address already in use)

 

 

 

Any help or assistance would be greatly appreciated...

 

Thanks in advance,

Dermot

 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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

[Nagios-users] Notification on OK-state

2009-02-12 Thread sri . lumpa
Hi,

Sorry if that question had already been answered but I couldn't find any answer 
by searching on the web and on the Nagios-User mailing list.

I would like to create a service which will notify me after each check, even if 
it is an OK-state and if the state hadn't changed.

I've tried by setting the service's initial state to critical and defining the 
service as volatile but that doesn't work (it's probably because I didn't 
understand well the role of the initial_state directive...).

Is Nagios-3.0.6 capable to do that and how can I make it work ?

Thanks for the answer.

Marc-André

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] NRPE Problem

2009-02-12 Thread LEVEAU Stanislas

hi

in your define command, i think it's

define command{
   command_name check_nrpe_manual_disk
   command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
check_manual_disk -a $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ 
	}


and not  -a $ARG1$ $ARG2$ $ARG3$

maybe

regards
Stan

Thomas Guyot-Sionnest a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote:
  

Gents,

  I am trying to have Nagios specify which partition to check via
nrpe... and am getting the following error:

DISK CRITICAL - 10 is not accessible: No such file or directory

Here is my configuration:


###

define command{
command_name check_nrpe_manual_disk
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
check_manual_disk -a $ARG1$ $ARG2$ $ARG3$
}
 
 
 
command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk

-w $ARG1$ -c $ARG2$ -p $ARG3$
 
 
 
 
define service{

use local-service
host_name localhost
service_description Manual Disk /dev/sda1
check_command check_nrpe_manual_disk!20!10!/
}



It looks like an extra argument is passed somehow, so check_disk ends up
checking the the path "10" (your warning threshold)", although your
config looks ok. Are you sure NRPE and Nagios have been started with the
most recent config, and there's not more than one instance of Nagios and
NRPE running?

Have you tried running the check trough the command link (check_nrpe)?

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By
JhACq1XdPD5D2Ay+7IJdzgI=
=Yglg
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


  


--
*LEVEAU Stanislas**
*Rectorat de Caen
SIAC
168, rue Caponière
B.P. 6184
14061 CAEN Cedex
/

Service Informatique de l'académie de Caen
Département Systèmes & Réseaux/


Tel : 02.31.30.17.86



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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

[Nagios-users] graphing trends across hosts or services instead of a timeseries

2009-02-12 Thread Rahul Nabar
One other thing that I haven't figured out yet with PNP-NAGIOS is this: How
does one get trending across services or hosts? i.e. It is easy to see time
series graphs of pingtimes, load averages disk usages etc. but sometimes
what seems more relevant is a chart across services for a given snapshot in
time. Say, to identify a hot node, or a node with unusually high load
averages.

Is there a way to do this? Or am I tinkering with the wrong tool!

-- 
Rahul
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] having different "view" in nagios interface

2009-02-12 Thread Eric Doutreleau
Marc Powell a écrit :
> On Feb 11, 2009, at 6:48 AM, Paul Weaver wrote:
>
>   
>> For our dev system, we use the following link
>> /nagios/cgi-bin/status.cgi? 
>> host=all&servicestatustypes=28&hoststatustype
>> s=3&serviceprops=42&sorttype=1&sortoption=6
>>
>> Which only displays services that aren't acknowleged or in downtime,
>> with the most recent at the top.
>> 
>
> This is a good suggestion and we use this as our normal workflow to  
> identify new issues. Another option is to create different contacts.  
> Using Authentication, nagios will only show the hosts and services  
> associated with that contact.
>
> --
> Marc
>
> --
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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
>   
well thanks for all your answer.
I will try to manage my problem with your answer.

thank u very much
Does someone have a piece of software that use Nagios::Statuslog to share?

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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] check_lm_sensors and the correct sensor names for checking cpu temperatures

2009-02-12 Thread Rahul Nabar
On Thu, Feb 12, 2009 at 1:35 AM, Matteo Corti wrote:

> Hi Rahul,
>
>
> On Feb 11, 2009, at 20:55 , Rahul Nabar wrote:
>
>
>>
>> On Wed, Feb 11, 2009 at 11:15 AM, Matteo Corti 
>> wrote:
>> Dear Rahul,
>>
>>
>>
>> Does the input include the newline between the "Core0 Temp:" and the
>> temperature?
>>
>>
>> Yes, it does! Is that messing up the regexes?
>>
>
> Yes ... :-(
>
> I hoped that the sensors -u output was more standard and that I could rely
> on that. I'll try to see if I can get the sensors information in a way which
> is consistent on several systems ...
>
>
Regexes always have this habit of breaking up when one is sure one covered
all test cases! :) Thanks for helping me figure out what it was! I'll see if
I can quickly hack together something that'll make it work for me!

-- 
Rahul
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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