Re: [Nagios-users] Nagios Plugin Log Pattern Notification

2012-09-04 Thread Meyer, Bruce
Which OS ? Linux has a few. Logwatch and Swatch come to mind. I think
there is more than one version of logwatch. I am referring to the one that
sends an email once per (time period) with new event that have been found
in the log files since the last email, that match your predefinded regexes.

On 9/4/12 12:48 PM, Net Warrior netwarrior...@gmail.com wrote:

Hi there guys
Does anyone know if there is a plugin that checks for a pattern in a
log file and if it finds it then sends an alert or would I have to
write it myself?


Thank you very much.
Regards

--

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Error compiling Nagios 3 on CentOS 6.2 minimal

2012-08-20 Thread Meyer, Bruce
Andreas and Sven,
Thank-you for your guidance. Since I am just now starting the install, I
think I will recompile and remove embedded-perl.

I am following the Nagios: System and Network Monitoring 2nd Edition by
Wolfgang Barth.

-= Bruce


On 8/20/12 5:22 AM, Sven Nierlein sven.nierl...@consol.de wrote:

On 8/20/12 9:36, Andreas Ericsson wrote:
 On 08/17/2012 05:16 PM, Meyer, Bruce wrote:
 Using CentOS 6.2 (minimal)
 Nagios-3.4.1.tar.gz
 Running:

 ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios
 --with-command-group=nagcmd --enable-embedded-perl

 You'll want to stop using embedded perl. It's been removed from Nagios
4,
 which still masquerades as Nagios 3.4.1 (although not in the tarball)
and
 shouldn't be used if you want your Nagios installation stable and
without
 memory leaks.


You might want to have a look at Mod-Gearman, which adds embedded perl
again which
is a really huge performance gain when using lots of perl plugins. So
when running into
performance problems, this might be worth a look.

  Sven

--

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Error compiling Nagios 3 on CentOS 6.2 minimal

2012-08-17 Thread Meyer, Bruce
Using CentOS 6.2 (minimal)
Nagios-3.4.1.tar.gz
Running:

./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios
--with-command-group=nagcmd --enable-embedded-perl


...

*** Configuration summary for nagios 3.4.1 05-11-2012 ***:

 General Options:
 -
Nagios executable:  nagios
Nagios user/group:  nagios,nagios
   Command user/group:  nagios,nagcmd
Embedded Perl:  yes, with caching
 Event Broker:  yes
Install ${prefix}:  /usr/local/nagios
Lock file:  /var/nagios/nagios.lock
   Check result directory:  /var/nagios/spool/checkresults
   Init directory:  /etc/rc.d/init.d
  Apache conf.d directory:  /etc/httpd/conf.d
 Mail program:  /bin/mail
  Host OS:  linux-gnu

 Web Interface Options:
 
 HTML URL:  http://localhost/nagios/
  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

make all
cd ./base  make
make[1]: Entering directory `/usr/local/src/nagios/base'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c
In file included from checks.c:41:
../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory
../include/epn_nagios.h:12:18: error: perl.h: No such file or directory

( Inserting locate results:
[root@sonar nagios]# locate EXTERN.h perl.h
/usr/lib64/perl5/CORE/EXTERN.h
/usr/lib64/perl5/CORE/perl.h
)



In file included from checks.c:41:
../include/epn_nagios.h:31: error: expected Œ=¹, Œ,¹, Œ;¹, Œasm¹ or
Œ__attribute__¹ before Œvoid¹
checks.c: In function Œrun_async_service_check¹:
checks.c:355: error: ŒSV¹ undeclared (first use in this function)
checks.c:355: error: (Each undeclared identifier is reported only once
checks.c:355: error: for each function it appears in.)
checks.c:355: error: Œplugin_hndlr_cr¹ undeclared (first use in this
function)
checks.c:361: error: ŒdSP¹ undeclared (first use in this function)
checks.c:557: error: ŒENTER¹ undeclared (first use in this function)
checks.c:558: error: ŒSAVETMPS¹ undeclared (first use in this function)
checks.c:559: warning: implicit declaration of function ŒPUSHMARK¹
checks.c:559: error: ŒSP¹ undeclared (first use in this function)
checks.c:560: warning: implicit declaration of function ŒXPUSHs¹
checks.c:560: warning: implicit declaration of function Œsv_2mortal¹
checks.c:560: warning: implicit declaration of function ŒnewSVpv¹
checks.c:564: error: ŒPUTBACK¹ undeclared (first use in this function)
checks.c:568: warning: implicit declaration of function Œcall_pv¹
checks.c:568: error: ŒG_SCALAR¹ undeclared (first use in this function)
checks.c:568: error: ŒG_EVAL¹ undeclared (first use in this function)
checks.c:570: error: ŒSPAGAIN¹ undeclared (first use in this function)
checks.c:572: warning: implicit declaration of function ŒSvTRUE¹
checks.c:572: error: ŒERRSV¹ undeclared (first use in this function)
checks.c:581: error: ŒPOPs¹ undeclared (first use in this function)
checks.c:584: warning: implicit declaration of function ŒSvPVX¹
checks.c:629: warning: implicit declaration of function ŒnewSVsv¹
checks.c:634: error: ŒFREETMPS¹ undeclared (first use in this function)
checks.c:635: error: ŒLEAVE¹ undeclared (first use in this function)
checks.c:713: error: ŒG_ARRAY¹ undeclared (first use in this function)
checks.c:717: error: ŒPOPpx¹ undeclared (first use in this function)
checks.c:718: error: ŒPOPi¹ undeclared (first use in this function)
make[1]: *** [checks.o] Error 1
make[1]: Leaving directory `/usr/local/src/nagios/base'
make: *** [all] Error 2
[root@sonar nagios]#



Does anyone know what I might do to fix this? I haven't turned up anything
in google 

All help is appreciated.

-= Bruce








--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Error compiling Nagios 3 on CentOS 6.2 minimal

2012-08-17 Thread Meyer, Bruce
My co-worker (Thanks Frank) Recommended I put a symlink to those two
errant files. I did, and it compiled.

For anyone that reads this in the future, in case a better fix isn't
offered, here is what I did:

I switched to:
/usr/lib/
Created /perl5/CORE

So I have the path:
/usr/lib/perl5/CORE

I cd into it, and issue:
 ln -s /usr/lib64/perl5/CORE/perl.h
 ln -s /usr/lib64/perl5/CORE/EXTERN.h

No errors (at least at this point!)

-= Bruce


On 8/17/12 11:16 AM, Meyer, Bruce bdme...@cio.sc.gov wrote:

Using CentOS 6.2 (minimal)
Nagios-3.4.1.tar.gz
Running:

./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios
--with-command-group=nagcmd --enable-embedded-perl


...

*** Configuration summary for nagios 3.4.1 05-11-2012 ***:

 General Options:
 -
Nagios executable:  nagios
Nagios user/group:  nagios,nagios
   Command user/group:  nagios,nagcmd
Embedded Perl:  yes, with caching
 Event Broker:  yes
Install ${prefix}:  /usr/local/nagios
Lock file:  /var/nagios/nagios.lock
   Check result directory:  /var/nagios/spool/checkresults
   Init directory:  /etc/rc.d/init.d
  Apache conf.d directory:  /etc/httpd/conf.d
 Mail program:  /bin/mail
  Host OS:  linux-gnu

 Web Interface Options:
 
 HTML URL:  http://localhost/nagios/
  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

make all
cd ./base  make
make[1]: Entering directory `/usr/local/src/nagios/base'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c
In file included from checks.c:41:
../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory
../include/epn_nagios.h:12:18: error: perl.h: No such file or directory

( Inserting locate results:
[root@sonar nagios]# locate EXTERN.h perl.h
/usr/lib64/perl5/CORE/EXTERN.h
/usr/lib64/perl5/CORE/perl.h
)



In file included from checks.c:41:
../include/epn_nagios.h:31: error: expected Œ=¹, Œ,¹, Œ;¹, Œasm¹ or
Œ__attribute__¹ before Œvoid¹
checks.c: In function Œrun_async_service_check¹:
checks.c:355: error: ŒSV¹ undeclared (first use in this function)
checks.c:355: error: (Each undeclared identifier is reported only once
checks.c:355: error: for each function it appears in.)
checks.c:355: error: Œplugin_hndlr_cr¹ undeclared (first use in this
function)
checks.c:361: error: ŒdSP¹ undeclared (first use in this function)
checks.c:557: error: ŒENTER¹ undeclared (first use in this function)
checks.c:558: error: ŒSAVETMPS¹ undeclared (first use in this function)
checks.c:559: warning: implicit declaration of function ŒPUSHMARK¹
checks.c:559: error: ŒSP¹ undeclared (first use in this function)
checks.c:560: warning: implicit declaration of function ŒXPUSHs¹
checks.c:560: warning: implicit declaration of function Œsv_2mortal¹
checks.c:560: warning: implicit declaration of function ŒnewSVpv¹
checks.c:564: error: ŒPUTBACK¹ undeclared (first use in this function)
checks.c:568: warning: implicit declaration of function Œcall_pv¹
checks.c:568: error: ŒG_SCALAR¹ undeclared (first use in this function)
checks.c:568: error: ŒG_EVAL¹ undeclared (first use in this function)
checks.c:570: error: ŒSPAGAIN¹ undeclared (first use in this function)
checks.c:572: warning: implicit declaration of function ŒSvTRUE¹
checks.c:572: error: ŒERRSV¹ undeclared (first use in this function)
checks.c:581: error: ŒPOPs¹ undeclared (first use in this function)
checks.c:584: warning: implicit declaration of function ŒSvPVX¹
checks.c:629: warning: implicit declaration of function ŒnewSVsv¹
checks.c:634: error: ŒFREETMPS¹ undeclared (first use in this function)
checks.c:635: error: ŒLEAVE¹ undeclared (first use in this function)
checks.c:713: error: ŒG_ARRAY¹ undeclared (first use in this function)
checks.c:717: error: ŒPOPpx¹ undeclared (first use in this function)
checks.c:718: error: ŒPOPi¹ undeclared (first use in this function)
make[1]: *** [checks.o] Error 1
make[1]: Leaving directory `/usr/local/src/nagios/base'
make: *** [all] Error 2
[root@sonar nagios]#



Does anyone know what I might do to fix this? I haven't turned up anything
in google 

All help is appreciated.

-= Bruce








--

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v

Re: [Nagios-users] Confusion on nrpe

2012-05-09 Thread Meyer, Bruce


HiJacking a thread? What are you talking about? If I had maintained
someone's subject but changed the content, that is hijacking a thread.
Merely hitting 'reply' and deleting the subject and replacing it, deleting
the body and writing my own does not seem to me, to qualify as hijacking a
thread. That is creating a new thread, by changing the subject and body.
Or am I completely missing something? I do sort by thread on my machine
and my emails are perfectly sorted. Perhaps you should start sorting my
subject instead of X-header or whatever you are threading on now.

I would love to have learned something about what you are talking about,
but so far, you haven't explained a thing, merely complained.



If I want it further threaded, then it is grouped by the subject.  What on
earth are you threading by (and what amazing email client are you using)
that causes my repurposing an email the way I do to cause a problem,
X-Header attributes?

If you have a problem with a persons actions, You should have taken the
reply immediately offline, and not sent it to the group. You should also
explain why doing what I do causes a problem, and not assume that what I
do is intentional to cause a problem. Maybe I am not born with all
knowledge and experience in all things mailing list known to man, as you
apparently are. 

Some people try to teach and share knowledge. Since you insist, I will
continue here to we can all learn from your complaint and eventual
(hopefully) explanation as to how my process causes problems. BTW, You are
the first person ever to have mentioned that doing it this way is causing
a problem. I'll keep the thread here instead of taking it offline. This
way if anyone else does what I do, we can all learn why this causes a
problem. 

Maybe, we can get the owner of the mailing list to place a link or footer
in each posting that says what address to send emails to. Then people like
I who don't know, could just copy and paste that email address into new
emails instead of hitting reply and changing subject and body and letting
it fly. That is a fairly common thing in newsgroups postings, probably for
this exact reason.

I eagerly await your instructional and helpful reply.


--Bruce D. Meyer


On 5/9/12 6:14 AM, Andreas Ericsson a...@op5.se wrote:

On 05/07/2012 09:06 PM, Meyer, Bruce wrote:
 Using a mac
 

That's beside the point. Don't hijack someone elses thread if you want
your question answered, since threaded view of the mailing list makes
it appear as if you're responding to someone else's question when you
take their mail, hit reply and then replace all text with your own.

Since you're the one who wants something, it's in your interest to
make it easy for the people you want something from to give that to
you. Hijacking a thread means you're off to a bad start, so don't.

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



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Confusion on nrpe

2012-05-08 Thread Meyer, Bruce
Hi Ed,
I don't have a problem getting it running. What I am not grasping is how to 
have it read the stats on the local machine and send it's data to the central 
monitoring server. I finally gave up trying to grasp the documentation and 
bought an e-book on Nagios. It was clear to me then that nrpe isn't for what I 
am trying to do, rather ncsa should be used in passive mode.

I appreciate your response.

Thank-you Sir,
--Bruce


From: Edwin Zoeller 
edwin.zoel...@ama-assn.orgmailto:edwin.zoel...@ama-assn.org
Reply-To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
To: 
'nagios-users@lists.sourceforge.netmailto:'nagios-users@lists.sourceforge.net'
 nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Confusion on nrpe

I run nrpe on both Linux and Solaris clients. Have you run the startup of nrpe 
on the client in debug mode? This should be straight forward, the only caverat 
I have run into is not having two security lib's installed.

Ed

From: Meyer, Bruce [mailto:bdme...@cio.sc.gov]
Sent: Monday, May 07, 2012 02:07 PM
To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Confusion on nrpe

OS is CentOs on both.

From: Meyer, Bruce Meyer bdme...@cio.sc.govmailto:bdme...@cio.sc.gov
Reply-To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Confusion on nrpe

I have been struggling with the documentation on nrpe.
It is very difficult to tell when the text is talking about configuring 
something on the monitoring server, and when the text is describing configuring 
something on the monitored device.

My goal for a group of machines behind a DMZ is to query some plugins, and send 
the reulsts from the Monitored servers TO the centralized Nagios server that 
displays the status of all ncsa, nrpe etc machines.
I thought that the purpose of NRPE was to fill this need.

Now I am starting to think that NRPE has nothing to do with this. Here is what 
I have tried:


I have a group of servers behind a dmz that I do not want Nagios to talk 
directly to.
Rather, I want these servers to send status info to the central nagios server 
outbound through the DMZ firewall.

I have nrpe installed on both the central nagios server, and also on the 
servers behind the DMZ.

I am not using xinetd, or inetd, rather a simple daemon.

To test if everything is working, from the command line on a server behind the 
dmz I enter:

/usr/local/nagios/libexec/check_nrpe -H (central server ip) -c check_users

And I get back the results that apply to the Central Monitoring server, not 
from the host..

If I swap the –H with localhost, I get back the correct info.

Is it possible to send the results from the DMZ machines to the Centralized 
Nagios server?

My goal is to send from servers behind dmz to the nagios server.

Thanks for any help.

--Bruce D. Meyer


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Confusion on nrpe

2012-05-07 Thread Meyer, Bruce
I have been struggling with the documentation on nrpe.
It is very difficult to tell when the text is talking about configuring 
something on the monitoring server, and when the text is describing configuring 
something on the monitored device.

My goal for a group of machines behind a DMZ is to query some plugins, and send 
the reulsts from the Monitored servers TO the centralized Nagios server that 
displays the status of all ncsa, nrpe etc machines.
I thought that the purpose of NRPE was to fill this need.

Now I am starting to think that NRPE has nothing to do with this. Here is what 
I have tried:


I have a group of servers behind a dmz that I do not want Nagios to talk 
directly to.
Rather, I want these servers to send status info to the central nagios server 
outbound through the DMZ firewall.

I have nrpe installed on both the central nagios server, and also on the 
servers behind the DMZ.

I am not using xinetd, or inetd, rather a simple daemon.

To test if everything is working, from the command line on a server behind the 
dmz I enter:

/usr/local/nagios/libexec/check_nrpe -H (central server ip) -c check_users

And I get back the results that apply to the Central Monitoring server, not 
from the host..

If I swap the –H with localhost, I get back the correct info.

Is it possible to send the results from the DMZ machines to the Centralized 
Nagios server?

My goal is to send from servers behind dmz to the nagios server.

Thanks for any help.

--Bruce D. Meyer


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Confusion on nrpe

2012-05-07 Thread Meyer, Bruce
Using a mac

On 5/7/12 1:56 PM, Roger Burton West ro...@firedrake.org wrote:

When starting a new topic, please don't reply to earlier mail. Some of
aren't using Microsoft, and have threading.

On Mon, May 07, 2012 at 01:23:18PM -0400, Meyer, Bruce wrote:

My goal for a group of machines behind a DMZ is to query some plugins,
and send the reulsts from the Monitored servers TO the centralized
Nagios server that displays the status of all ncsa, nrpe etc machines.
I thought that the purpose of NRPE was to fill this need.

NRPE doesn't send. In the standard configuration, Nagios runs
check_nrpe on the central server just as it runs check_http and anything
else; check_nrpe makes a connection to the nrpe-server on a remote
machine; that remote machine runs the check it's configured to run, and
reports the result back over the connection to the central server.

I have a configuration that goes a bit beyond this. Server A is running
Nagios; server B is directly accessible; server C is on a private
network behind server B. In this case, there are several extra checks
associated with server C that actually hit server B's NRPE instance,
then fall through a second NRPE call to server C.


--

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Confusion on nrpe

2012-05-07 Thread Meyer, Bruce
OS is CentOs on both.

From: Meyer, Bruce Meyer bdme...@cio.sc.govmailto:bdme...@cio.sc.gov
Reply-To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
To: Nagios Users List 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Confusion on nrpe

I have been struggling with the documentation on nrpe.
It is very difficult to tell when the text is talking about configuring 
something on the monitoring server, and when the text is describing configuring 
something on the monitored device.

My goal for a group of machines behind a DMZ is to query some plugins, and send 
the reulsts from the Monitored servers TO the centralized Nagios server that 
displays the status of all ncsa, nrpe etc machines.
I thought that the purpose of NRPE was to fill this need.

Now I am starting to think that NRPE has nothing to do with this. Here is what 
I have tried:


I have a group of servers behind a dmz that I do not want Nagios to talk 
directly to.
Rather, I want these servers to send status info to the central nagios server 
outbound through the DMZ firewall.

I have nrpe installed on both the central nagios server, and also on the 
servers behind the DMZ.

I am not using xinetd, or inetd, rather a simple daemon.

To test if everything is working, from the command line on a server behind the 
dmz I enter:

/usr/local/nagios/libexec/check_nrpe -H (central server ip) -c check_users

And I get back the results that apply to the Central Monitoring server, not 
from the host..

If I swap the –H with localhost, I get back the correct info.

Is it possible to send the results from the DMZ machines to the Centralized 
Nagios server?

My goal is to send from servers behind dmz to the nagios server.

Thanks for any help.

--Bruce D. Meyer


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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