[Nagios-users] too many lines in archive log

2011-12-12 Thread Marco Borsani
Hi all

Probably I made some errors in the passive checks configuration ..

The main Nagios server has 132 passive hosts and 400 passive services
configured (only 30 active hosts and 60 active services), received from two
remote Nagios systems.

 

In each archive file I have more than 420.000 lines (compared to another
Nagios server with about 20.000, with no passive checks configured).

 

I see many and many rows like :

[1323564139] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT; …

[1323564139] EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT; …

.

And

[1323564137] PASSIVE HOST CHECK: …

[1323564137] PASSIVE SERVICE CHECK: …

 

Is it normal ?

What can I check/modify to reduce the logs ?

 

In this situation it is impossible use the “Event Log” menu (and my HD will
be full soon L )

 

Regards

 

Marco Borsani

Unix and Monitoring Sysadmin

Technical Operations Dpt.

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet Srl

Società con socio unico

Direzione e Coordinamento di …

 

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
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] too many lines in archive log

2011-12-12 Thread Andreas Ericsson
On 12/12/2011 10:35 AM, Marco Borsani wrote:
 Hi all
 
 Probably I made some errors in the passive checks configuration ..
 
 The main Nagios server has 132 passive hosts and 400 passive services
 configured (only 30 active hosts and 60 active services), received from two
 remote Nagios systems.
 
 
 
 In each archive file I have more than 420.000 lines (compared to another
 Nagios server with about 20.000, with no passive checks configured).
 
 
 
 I see many and many rows like :
 
 [1323564139] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT; …
 
 [1323564139] EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT; …
 
 .
 
 And
 
 [1323564137] PASSIVE HOST CHECK: …
 
 [1323564137] PASSIVE SERVICE CHECK: …
 
 
 
 Is it normal ?
 

Yes.

 What can I check/modify to reduce the logs ?
 

Set log_external_commands=0 in your nagios.cfg file. That should cut
your logs in half, roughly. You could also send in the passive checks
less frequently.

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

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] R: too many lines in archive log

2011-12-12 Thread Marco Borsani
I'd like to send in the passive checks less frequently, but I did not find 
where to configure.

marco

-Messaggio originale-
Da: Andreas Ericsson [mailto:a...@op5.se] 
Inviato: lunedì 12 dicembre 2011 11:34
A: Nagios Users List
Cc: Marco Borsani
Oggetto: Re: [Nagios-users] too many lines in archive log

On 12/12/2011 10:35 AM, Marco Borsani wrote:
 Hi all
 
 Probably I made some errors in the passive checks configuration ..
 
 The main Nagios server has 132 passive hosts and 400 passive services 
 configured (only 30 active hosts and 60 active services), received 
 from two remote Nagios systems.
 
 
 
 In each archive file I have more than 420.000 lines (compared to 
 another Nagios server with about 20.000, with no passive checks configured).
 
 
 
 I see many and many rows like :
 
 [1323564139] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;  
 
 [1323564139] EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;  
 
 .
 
 And
 
 [1323564137] PASSIVE HOST CHECK:  
 
 [1323564137] PASSIVE SERVICE CHECK:  
 
 
 
 Is it normal ?
 

Yes.

 What can I check/modify to reduce the logs ?
 

Set log_external_commands=0 in your nagios.cfg file. That should cut your logs 
in half, roughly. You could also send in the passive checks less frequently.

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


--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] AUTO: Chan, Brian is away from the office on Business Travel (Returning 13 Dec 2011) (returning 13/12/2011)

2011-12-12 Thread Brian Chan

I am out of the office until 13/12/2011.

I will respond to your message when I return.
If this is a request for support,  click here to open an ITRequest--:
mailto:itrequ...@shawcor.com
Alternatively, all questions can be directed to the Help Desk at
416-744-5557

Brian Chan


Note: This is an automated response to your message  Nagios-users Digest,
Vol 67, Issue 8 sent on 12/12/2011 5:34:02.

This is the only notification you will receive while this person is away.


--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Windows.cfg missing

2011-12-12 Thread Niels Jende
Hi Folks,

as I am still a newbie with nagios but willing to learn, I hope you
wont mind if my upcoming question might sound silly to you.

I read that to monitor windows servers that I should find a
windows.cfg file in ~/objects/

Well I dont have neither a directory called objects nor such a file.
In /usr/share/doc/nagios3-common/examples/template-object/ I found a
windows.cfg file.

So, is it okay for nagios to simply create a directory ~/objects/ and
copy the windows.cfg file in there? Or what do I have to do?

As said before, I am new to nagios and I am running a debian wheetzy
with nagios 3.2.3

Thanks for your time and help
Niels

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Windows.cfg missing

2011-12-12 Thread Assaf Flatto
Have you installed from source or package ?

if the package , try looking for the file in the /etc/nagios3/ directory 

If you used source , have you done the make install-configs ( or is may be make 
install-samples ) ?

Assaf

- Original Message -
From: Niels Jende nielsje...@googlemail.com
To: Nagios Users List nagios-users@lists.sourceforge.net
Sent: Monday, 12 December, 2011 12:18:40 PM
Subject: [Nagios-users] Windows.cfg missing

Hi Folks,

as I am still a newbie with nagios but willing to learn, I hope you
wont mind if my upcoming question might sound silly to you.

I read that to monitor windows servers that I should find a
windows.cfg file in ~/objects/

Well I dont have neither a directory called objects nor such a file.
In /usr/share/doc/nagios3-common/examples/template-object/ I found a
windows.cfg file.

So, is it okay for nagios to simply create a directory ~/objects/ and
copy the windows.cfg file in there? Or what do I have to do?

As said before, I am new to nagios and I am running a debian wheetzy
with nagios 3.2.3

Thanks for your time and help
Niels

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Windows.cfg missing

2011-12-12 Thread Andreas Ericsson
On 12/12/2011 01:18 PM, Niels Jende wrote:
 Hi Folks,
 
 as I am still a newbie with nagios but willing to learn, I hope you
 wont mind if my upcoming question might sound silly to you.
 
 I read that to monitor windows servers that I should find a
 windows.cfg file in ~/objects/
 
 Well I dont have neither a directory called objects nor such a file.
 In /usr/share/doc/nagios3-common/examples/template-object/ I found a
 windows.cfg file.
 
 So, is it okay for nagios to simply create a directory ~/objects/ and
 copy the windows.cfg file in there? Or what do I have to do?
 
 As said before, I am new to nagios and I am running a debian wheetzy
 with nagios 3.2.3
 

Reading TFM is usually a good idea when you're new to a product and
have no idea what it can do and how it works. Or you could hire a
consultant and get him to RTFM and then tell you about what's in it.

That's the rude way of saying: Your skill-level so far is so low that
you fail to ask the right questions. That makes it very uncompelling
to try to help you, since you'll keep on asking the wrong questions
for a very, very, very long time, until you possess at least most of
the knowledge that BTFM (browsing the friendly manual) would give
you.

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

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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_openmanage spec file fixes for SUSE

2011-12-12 Thread Trond Hasle Amundsen
Daugherity, Andrew W adaugher...@tamu.edu writes:

 First of all, thanks for making this plugin.  It works well and is
 very handy.  As requested in the documentation, I am sending this to
 the nagios-users list rather than directly to the author.

Hello Andrew,

Excellent :) Usually a public forum is better, where everybody can
participate and share their insight.

 With some minor modifications, the package builds properly on SUSE.
 There are two main Nagios packaging differences from RedHat:

 1) All Nagios plugins are installed to /usr/lib/nagios/plugins, even
 on 64-bit (there is no /usr/lib64/nagios directory).  This may not
 make the most sense, but it is what is, and being consistent with
 other Nagios packages is good.

 2) Non-binary plugin RPMs (e.g. Perl scripts only) use noarch, while
 binary plugins use the corresponding arch.  For examples of both,
 browse the build service repo at
 http://download.opensuse.org/repositories/server:/monitoring/SLE_11.1/
 Being a Perl script, check_openmanage falls under the former.

 This is easily solved with an %if block to make a universal RPM spec:
  BEGIN PATCH 
 --- nagios-plugins-openmanage.spec.orig   2011-10-05 10:00:18.0 
 -0500
 +++ nagios-plugins-openmanage.spec2011-12-01 15:02:10.0 -0600
 @@ -5,6 +5,16 @@
 # No binaries here, do not build a debuginfo package
 %global debug_package %{nil}

 +# SUSE installs Nagios plugins under /usr/lib, even on 64-bit
 +# It also uses noarch for non-binary Nagios plugins
 +%if %{defined suse_version}
 +%global nagiospluginsdir /usr/lib/nagios/plugins
 +BuildArch:   noarch
 +%else
 +%global nagiospluginsdir %{_libdir}/nagios/plugins
 +%endif
 +
 +
 Name:  nagios-plugins-openmanage
 Version:   3.7.3
 Release:   1%{?dist}
  END PATCH 

 I also tested building on CentOS 5 to make sure nothing broke there,
 and indeed, nothing changed there.

Thanks for the patch, applied. However, there are some changes to the
spec file lately. Among them is an added Requires to the nagios-plugins
package, which owns the /usr/lib(64)?/nagios/plugins directory.
Hopefully SUSE does the same in this respect. The updated spec file is
available here:

  http://folk.uio.no/trondham/software/tmp/nagios-plugins-openmanage.spec

PS. check_openmanage has been added to Fedora and EPEL, but there are
some SELinux issues. Until these are resolved I'll hold off pushing it
to stable, but it is available in testing.

Cheers,
-- 
Trond H. Amundsen t.h.amund...@usit.uio.no
Center for Information Technology Services, University of Oslo

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Windows.cfg missing

2011-12-12 Thread Andreas Ericsson
On 12/12/2011 01:37 PM, Niels Jende wrote:
 Hi Andreas,
 
 2011/12/12 Andreas Ericssona...@op5.se:
 
 Reading TFM is usually a good idea when you're new to a product and
 have no idea what it can do and how it works. Or you could hire a
 consultant and get him to RTFM and then tell you about what's in it.

 
 guess what? I read it cause otherwise I wouldn't know where the file
 should be at, would I?

Then you should have some basic knowledge about how it works too, but
I guess you just quickskipped to monitoring windows servers since the
other stuff wasn't what you wanted right now.

 If I wouldn't have read the manual I wouldn't know where to edit the
 nagios.cfg either, would I?
 

You'd be amazed how many people know how to figure out that nagios.cfg
is the main configuration file of Nagios and are also capable of locating
a file on their own server.

 That's the rude way of saying: Your skill-level so far is so low that
 you fail to ask the right questions. That makes it very uncompelling
 to try to help you, since you'll keep on asking the wrong questions
 for a very, very, very long time, until you possess at least most of
 the knowledge that BTFM (browsing the friendly manual) would give
 you.

 
 Well, maybe here is another Niels on the list, but as of yet this is
 my 2nd question. And my first one I posted last week. And if that is
 for you already a very,very,very long time, well...
 

It's not, but until you grasp the concept of Nagios not giving a damn
what you name your files and where you put them, so long as you're
consistent with it throughout Nagios, ofcourse, it's impossible to
help you. As such, your question doesn't make sense.

 Thanks for NOT helping!

I don't help. I advise and educate. Which do you think gives you the
greatest benefit in the long run?

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

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Windows.cfg missing

2011-12-12 Thread Jon Adcock


Once you've installed Nagios, locate the directory that contains the main Nagios configuration file (nagios.cfg). In that same directory should be a sub-directory named objects. That's where you'll find (and create) the other config files for Nagios. For example, the list of Nagios contacts (contacts.cfg).

 You can also use 'find' to search for the cfg files on your Nagios server.





Jon Adcock
Network Systems Administrator
Leon County MIS301 S. Monroe St.Tallahassee, FL 32301Office: (850) 606-5518
adco...@leoncountyfl.gov
 On 12/12/2011 at 7:22 AM, Assaf Flatto nag...@flatto.net wrote:




Have you installed from source or package ?if the package , try looking for the file in the /etc/nagios3/ directory If you used source , have you done the make install-configs ( or is may be make install-samples ) ?Assaf- Original Message -From: "Niels Jende" nielsje...@googlemail.comTo: "Nagios Users List" nagios-users@lists.sourceforge.netSent: Monday, 12 December, 2011 12:18:40 PMSubject: [Nagios-users] Windows.cfg missingHi Folks,as I am still a newbie with nagios but willing to learn, I hope youwont mind if my upcoming question might sound silly to you.I read that to monitor windows servers that I should find awindows.cfg file in ~/objects/Well I dont have neither a directory called objects nor such a file.In /usr/share/doc/nagios3-common/examples/template-object/ I found awindows.cfg file.So, is it okay for nagios to simply create a directory ~/objects/ andcopy the windows.cfg file in there? Or what do I have to do?As said before, I am new to nagios and I am running a debian wheetzywith nagios 3.2.3Thanks for your time and helpNiels--Learn Windows Azure Live! Tuesday, Dec 13, 2011Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null--Learn Windows Azure Live! Tuesday, Dec 13, 2011Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
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] R: R: too many lines in archive log

2011-12-12 Thread Marco Borsani
I tried also the other way suggested... Set log_external_commands=0
But nothing changed.

If I set log_passive_checks=0 , I will reduce the log file but :
1) I am not sure passive checks will work correctly
2) check_nsca plugin does not work anymore

Marco

-Messaggio originale-
Da: Marco Borsani [mailto:m.bors...@it.net] 
Inviato: lunedì 12 dicembre 2011 11:57
A: 'Andreas Ericsson'; 'Nagios Users List'
Oggetto: [Nagios-users] R: too many lines in archive log

I'd like to send in the passive checks less frequently, but I did not find 
where to configure.

marco

-Messaggio originale-
Da: Andreas Ericsson [mailto:a...@op5.se]
Inviato: luned  12 dicembre 2011 11:34
A: Nagios Users List
Cc: Marco Borsani
Oggetto: Re: [Nagios-users] too many lines in archive log

On 12/12/2011 10:35 AM, Marco Borsani wrote:
 Hi all
 
 Probably I made some errors in the passive checks configuration ..
 
 The main Nagios server has 132 passive hosts and 400 passive services 
 configured (only 30 active hosts and 60 active services), received 
 from two remote Nagios systems.
 
 
 
 In each archive file I have more than 420.000 lines (compared to 
 another Nagios server with about 20.000, with no passive checks configured).
 
 
 
 I see many and many rows like :
 
 [1323564139] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;
 
 [1323564139] EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;
 
 .
 
 And
 
 [1323564137] PASSIVE HOST CHECK:  
 
 [1323564137] PASSIVE SERVICE CHECK:  
 
 
 
 Is it normal ?
 

Yes.

 What can I check/modify to reduce the logs ?
 

Set log_external_commands=0 in your nagios.cfg file. That should cut your logs 
in half, roughly. You could also send in the passive checks less frequently.

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


--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011 Microsoft is holding a special 
Learn Windows Azure training event for developers. It will provide a great way 
to learn Windows Azure and what it provides. You can attend the event by 
watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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


--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] SELinux and RHEL6.2 preventing disk checks via NRPE

2011-12-12 Thread Dennis Kuhlmeier
Hello Trond,

On 09.12.2011 14:13, Trond Hasle Amundsen wrote:
 
 RHEL6 has the following labels for use with Nagios plugins:
 
   # grep nagios /etc/selinux/targeted/contexts/files/file_contexts | grep 
 plugin_exec | cut -d: -f3 | sort -u
   nagios_admin_plugin_exec_t
   nagios_checkdisk_plugin_exec_t
   nagios_mail_plugin_exec_t
   nagios_services_plugin_exec_t
   nagios_system_plugin_exec_t
   nagios_unconfined_plugin_exec_t
 
 Try setting the confined types first, e.g.:
 
   chcon -t nagios_checkdisk_plugin_exec_t /path/to/check_fs_boot
 
 If none of them works properly, you have nagios_unconfined_plugin_exec_t
 as a last resort.

the last resort in fact worked! Thanks!

 
 When you find one that works, make it permanent with:
 
   semanage fcontext -a -t type '/path/to/check_fs_boot'
 

Geez, there are a lot more contexts set than I thought. I should
probably remove duplicate entries, right?

 You may also have to set proper labels on the path leading up to the
 actual plugin.
 
 Regards,


Thanks again,



-- 


..
Riege Software International GmbH  Phone: +49 2159 91480
Mollsfeld 10   Fax: +49 2159 914811
40670 MeerbuschWeb: www.riege.com
GermanyE-Mail: kuhlme...@riege.com
-- --
Commercial Register:   Managing Directors:
Amtsgericht Neuss HRB-NR 4207  Christian Riege
VAT Reg No.: DE120585842   Gabriele  Riege
   Johannes  Riege
..
   YOU CARE FOR FREIGHT, WE CARE FOR YOU  




--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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