Re: [Nagios-users] distributed nagios ?

2010-12-15 Thread Andreas Ericsson
On 12/14/2010 08:39 PM, Frost, Mark {PBC} wrote:
> 
>> -Original Message-
>> From: Andreas Ericsson [mailto:a...@op5.se]
>> Sent: Tuesday, December 14, 2010 4:49 AM
>> To: nagios List; doc...@yahoo.com
>> Subject: Re: [Nagios-users] distributed nagios ?
>>
>>> Any pointers to docs on how to set it up?
>>>
>>
>> http://git.op5.org/git/?p=nagios/merlin.git;a=blob;f=HOWTO;hb=master
>> http://git.op5.org/git/?p=nagios/merlin.git;a=blob;f=README;hb=master
>> https://wiki.op5.org/merlin:start#guides
>>
>> If I were you, I'd wait til tomorrow with installing it though, when 1.0.0
>> is released as stable. Reading up on the docs and whatnot beforehand is
>> still a good idea though.
>>
>> -- 
>> Andreas Ericsson   andreas.erics...@op5.se
>> OP5 AB www.op5.se
>> Tel: +46 8-230225  Fax: +46 8-230231
> 
> Hooray!
> 
> Actually, I wanted to point out a few things I found when building the
> most recent version of merlin recently.  At the heart of my issues
> is that our team is not allowed root access on these servers (long boring
> corporate story...) so I'm installing everything in an alternate tree.
> 
> 1) There are a couple of hard-coded paths in ipc.c and node.c for
> the socket and the binlogs.  I'm assuming that's intentional, but it
> does mean one has to manually edit the source files to point to different
> paths rather than specifying anything like that during the build process.
> 

The socket location can be configured. Binlogs cannot. I'll amend that in
the next release though. The core functionality is there, but there's no
option to set it in the config files, which is kinda stupid.

> 2) Because we're trying to put all the files into an alternate tree, the
> installation of 'mon' from install-merlin.sh didn't really work right.  In
> our case, it made a lot more sense to change
> 
>   cp apps/mon.py $root_path/usr/bin/mon
> 
> to
> 
>   cp apps/mon.py $bindir/mon
> 
> otherwise it would put 'mon' in a really weird spot.
> 
> I'm guessing these are design decisions on your part, but in case they're
> not, I thought I'd point them out.
> 

Yes. The install-merlin.sh script is designed to be usable from the
rpm spec file, and it's meant to aid people who want to install
everything in its default location. Would $root_path/$bindir/mon
work for you? Since you can set $root_path to whatever you want,
I suppose it should.

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

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Nagiosgraper

2010-12-15 Thread Rikard Dahlberg

Right, pnp4nagioS  seems slicker.

However, after i've installed it, i got this error , did you get that also? If 
so, how did you work around it? :
"
PNP Error
Please check the Kohana documentation for information about the following error.
application/models/data.php [104]:
perfdata directory "/usr/local/pnp4nagios/var/perfdata/" is empty. Please check 
your Nagios config. Read FAQ online"
/Rik

From: pwilliam...@twgi.net
To: ej_...@hotmail.com
Subject: RE: [Nagios-users] Nagiosgraper
Date: Tue, 14 Dec 2010 14:56:05 +



Just the normal documentation.  I just need to “turn off” nagiosgrapher now.  
Setup on pnp4n is much nicer. From: Rikard Dahlberg [mailto:ej_...@hotmail.com] 
Sent: Tuesday, December 14, 2010 9:51 AM
To: Paul Williamson
Subject: RE: [Nagios-users] Nagiosgraper 
Thanks paul, i might just look into that.
Did you follow a specific guide or just the normal documentations?

/RikFrom: pwilliam...@twgi.net
To: ej_...@hotmail.com
Subject: RE: [Nagios-users] Nagiosgraper
Date: Tue, 14 Dec 2010 14:52:04 +I just went down the same road, and I 
think you’d be better served to go with pnp4nagios.  It’s what the “official” 
Nagios commercial distribution uses, so there’s more hope for longer term 
support.  Plus, setting up nagiosgrapher, while not bad, is way more involved 
than pnp4nagios. Paul From: Rikard Dahlberg [mailto:ej_...@hotmail.com] 
Sent: Tuesday, December 14, 2010 9:42 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagiosgraper Heya!

im currently trying to get a decent graphicsystem online to somewhat replace 
our Cacti. I know nagiosgraph doesn't really do that but it does fit our needs 
:)
Im trying to re-write this config file to create nice shiney graphs for my 
monitored services, but so far no luck. 

This is the template for ping, but if i would change it for maybe checking CPU 
Load, how would I do so? What are the variables i need to change, this is what 
i cant figure out.
Worth knowing is that our more or less whole system is built on passive checks 
that now (Thanks alot to Greg on this mailing list) works flawless.

I have also edited nagios.cfg to enable performance graphing, so that is OK 
:)#---
#NagiosGrapherTemplateforcheck_ping
#Author:MariusHein
#---

define ngraph{
   service_namePING
   graph_log_regexloss = (\d+)
   graph_valueLoss
   graph_units%
   graph_legendLoss
   graph_legend_eolnone
   page2 Loss
   rrd_plottypeLINE2
   rrd_colorff
}

#PingDEFRTA
define ngraph{
   service_namePING
   graph_log_regexrta = (\d+[,\.]\d+)
   graph_valueRTA
   graph_unitsms
   graph_legendRTA
   page1 RTA
   rrd_plottypeAREA
   rrd_color00a000
}

#PingVDEF,AverageRTA
define ngraph{
   service_namePING
   typeVDEF
   graph_valuevdef_ping_average
   graph_units
   graph_legendRTA Average
   graph_calcRTA,AVERAGE
   graph_legend_eolLEFT
   page1 RTA
   rrd_plottypeLINE1
   rrd_colorff
   hideno
} --
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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] Return code of 127 is out of bounds - only on high cpu load though

2010-12-15 Thread Andreas Ericsson
On 12/14/2010 06:39 PM, Daniel Wittenberg wrote:
> I ran a full strace of nagios daemon and children and it looks like it
> was the enable_environment_macros that was causing:
> 
> [pid 20478] execve("/bin/sh", ["sh", "-c",  . . . . . ] = -1 E2BIG
> (Argument list too long)<0.000337>
> [pid 20478] exit_group(127) = ?
> 
> I turned them off and that fixes things, but potentially breaks some
> other things in our setup, but for right now it's working.  Still odd
> that as I change the number hosts the env changes enough to push over
> the edge.  I ran same tests with only 300 hosts and it worked fine, just
> looks like at about 500 or so something changes in env.
> 

Ah. One of the environment macros contains a list of all hostgroups the
host is a member of, and unless I'm mistaken, a list of all member hosts
of the "first hostgroup" that the host is a member of. Those lists can be
huge so they can quickly fill up the environment variables. My guess is
that you pushed it over the limit when you added more services.

It's the same with 'servicegroups' and 'servicegroup members' for services
btw.

In short; Don't enable environment variables. In fact, I think I'll add a
deprecation notice for it in the code and warn people that it'll be removed
in early 2012, or at least modified so that the superhuge lists are no
longer created as environment variables no matter if they're enabled or not.
That should alleviate problems like this, which are quite frustrating to
track down.

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

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Cisco Monitoring Problem - Interface Down state not recognize

2010-12-15 Thread Jim Avery
On 14 December 2010 15:01, Matias Damian  wrote:
> Hi, i have a problem when i want to monitoring a Cisco device (Switch 2960).
> Qhen i configured Nagios, never show the CRITICAL state, when the port /
> interface is down, because always receibe a message for SNMP, that it´s Ok.
>
> Doing a research, i see this. When i use the terminal of Linux Server the
> command with the string that use Nagios "hardcoded" vía snmp the devide send
> me this message, and nagios don´t know how understand this.
>
> r...@nagios:# /usr/local/nagios/libexec/check_snmp -C COMUNIDAD -o
> ifOperStatus.10001 -r 1 -m RFC1213-MIB -H IP_HOST
>
> If the interface it´s Ok:
> SNMP OK - 1 | RFC1213-MIB::ifOperStatus.10001=1
>
> But if the interface is down:
> SNMP OK - 2 | RFC1213-MIB::ifOperStatus.10002=2
>
> So, i understand the 1 is "Ok" and the 2 id "down", how evener, nagios
> understand "ok" in both cases.
>
> Thanks in advance for the help, and sorry for my english.
> Matias (matlnx)


You need to specify the warning and critical ranges when you run the
check_snmp plugin.

For example, I guess the following might do what you want:

/usr/local/nagios/libexec/check_snmp -C COMUNIDAD -o
ifOperStatus.10001 -r 1 -m RFC1213-MIB -H IP_HOST -c 0:1

I don't have Cisco equipment here though so I can't test it for sure.

See: http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
for information on how to specify the warning and critical threshold
ranges.  The syntax is a bit weird, but quite powerful, allowing you
to be very specific about what ranges of values you will alert on.


For monitoring a specific interface, you might find the check_snmp_int
plugin more useful. You will find it at http://nagios.manubulon.com/

Whenever you run a plugin from the command line, be careful to run it
as the same user which runs the Nagios daemon (usually the user
'nagios').  If you forget this then you will sometimes have problems
with permissions when Nagios runs the plugin, and sometimes you will
find the plugin creates a temporary file which then can't be written
to (or overwritten) when you come to run the plugin under Nagios.  I
don't think this is too much of a problem with check_snmp, but it can
be a real problem with check_snmp_int and various other plugins.

hth,

Jim

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] distributed nagios ?

2010-12-15 Thread Frost, Mark {PBC}
> -Original Message-
> From: Andreas Ericsson [mailto:a...@op5.se] 
> Sent: Wednesday, December 15, 2010 4:46 AM
> 
> On 12/14/2010 08:39 PM, Frost, Mark {PBC} wrote:
>> 
>> Hooray!
>> 
>> Actually, I wanted to point out a few things I found when building the
>> most recent version of merlin recently.  At the heart of my issues
>> is that our team is not allowed root access on these servers (long boring
>> corporate story...) so I'm installing everything in an alternate tree.
>> 
>> 1) There are a couple of hard-coded paths in ipc.c and node.c for
>> the socket and the binlogs.  I'm assuming that's intentional, but it
>> does mean one has to manually edit the source files to point to different
>> paths rather than specifying anything like that during the build process.
>> 
>
> The socket location can be configured. Binlogs cannot. I'll amend that in
> the next release though. The core functionality is there, but there's no
> option to set it in the config files, which is kinda stupid.

"Binlogs cannot" meaning it can't be moved without modifying the code
directly, right?  Because that's what I did :-).

>> 2) Because we're trying to put all the files into an alternate tree, the
>> installation of 'mon' from install-merlin.sh didn't really work right.

> Yes. The install-merlin.sh script is designed to be usable from the
> rpm spec file, and it's meant to aid people who want to install
> everything in its default location. Would $root_path/$bindir/mon
> work for you? Since you can set $root_path to whatever you want,
> I suppose it should.

Yes, I believe that would work for me.  I'm not setting $root_path at all.

Thanks, Andreas.

Mark


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] distributed nagios ?

2010-12-15 Thread Allan Clark
On Wed, Dec 15, 2010 at 03:46, Andreas Ericsson  wrote:
> On 12/14/2010 08:39 PM, Frost, Mark {PBC} wrote:
>> 2) Because we're trying to put all the files into an alternate tree, the
>> installation of 'mon' from install-merlin.sh didn't really work right.  In
>> our case, it made a lot more sense to change
>>
>>       cp apps/mon.py $root_path/usr/bin/mon
>>
>> to
>>
>>       cp apps/mon.py $bindir/mon
>>
>> otherwise it would put 'mon' in a really weird spot.
>>
>> I'm guessing these are design decisions on your part, but in case they're
>> not, I thought I'd point them out.
>>
>
> Yes. The install-merlin.sh script is designed to be usable from the
> rpm spec file, and it's meant to aid people who want to install
> everything in its default location. Would $root_path/$bindir/mon
> work for you? Since you can set $root_path to whatever you want,
> I suppose it should.

I thought the convention was $DESTDIR , which is also used by
autotools, which is a fairly common tool in that domain.  I'd strongly
recommend marching to the same drummer when possible.

Allan
-- 
all...@chickenandporn.com  "金鱼" http://linkedin.com/in/goldfish

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] distributed nagios ?

2010-12-15 Thread Andreas Ericsson
On 12/15/2010 03:25 PM, Frost, Mark {PBC} wrote:
>> -Original Message-
>> From: Andreas Ericsson [mailto:a...@op5.se]
>> Sent: Wednesday, December 15, 2010 4:46 AM
>>
>> On 12/14/2010 08:39 PM, Frost, Mark {PBC} wrote:
>>>
>>> Hooray!
>>>
>>> Actually, I wanted to point out a few things I found when building the
>>> most recent version of merlin recently.  At the heart of my issues
>>> is that our team is not allowed root access on these servers (long boring
>>> corporate story...) so I'm installing everything in an alternate tree.
>>>
>>> 1) There are a couple of hard-coded paths in ipc.c and node.c for
>>> the socket and the binlogs.  I'm assuming that's intentional, but it
>>> does mean one has to manually edit the source files to point to different
>>> paths rather than specifying anything like that during the build process.
>>>
>>
>> The socket location can be configured. Binlogs cannot. I'll amend that in
>> the next release though. The core functionality is there, but there's no
>> option to set it in the config files, which is kinda stupid.
> 
> "Binlogs cannot" meaning it can't be moved without modifying the code
> directly, right?  Because that's what I did :-).
> 

That's correct.

>>> 2) Because we're trying to put all the files into an alternate tree, the
>>> installation of 'mon' from install-merlin.sh didn't really work right.
> 
>> Yes. The install-merlin.sh script is designed to be usable from the
>> rpm spec file, and it's meant to aid people who want to install
>> everything in its default location. Would $root_path/$bindir/mon
>> work for you? Since you can set $root_path to whatever you want,
>> I suppose it should.
> 
> Yes, I believe that would work for me.  I'm not setting $root_path at all.
> 

Sweet. I'll add something to that effect then. For us, it won't make a
difference, but if it makes life easier for you, then that's just all
the better.

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

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] converting distributed Nagios setup to Nagios+Merlin

2010-12-15 Thread Frost, Mark {PBC}
Our site currently uses a somewhat traditional distributed Nagios setup.  I'm 
setting up merlin on some new Nagios servers and am looking at what 
configurations I'm going to want to change.  As part of that, I realize that 
there are some Nagios config directives that I wanted some clarification on 
before I started changing things.  I haven't seen these documented elsewhere 
(at least not that I could find).

I was looking for clarification on the following:

1) Obsessive (ocsp/ochp) configuration directives get turned off.  Merlin does 
all that.  Plus ocsp/ochp is deemed detrimental to performance making that 
another reason to turn it off.

2) Freshness checking.  Nagios would probably still try to do this if I left it 
in, but there's no point since Merlin will also do this.

3) Passive/Active checks.  If I understand things correctly under Merlin 
everything is an active check.  Or rather, anything that Nagios is supposed to 
run on some host or another is an active check.  Things that are truly sent via 
NSCA from some monitored host out there would still be passive, but otherwise 
everything's configured to run actively Merlin takes care of where it runs.

4) In a load balanced/redundant configuration (such as 'yoda' and 'obi' in the 
HOWTO doc), which of 'yoda' or 'obi1' sends out notifications?  Or do they both 
send them out but Merlin somehow only has one of them send it?  I'm guessing 
that this is handled in the more traditional way where notifications are 
enabled on say, 'yoda' but disabled on 'obi1'.  If 'yoda' crashes, you manually 
enable the alerts via the command file on 'obi1'?  It would of course be 
super-cool if Merlin handled all that :-).

5) Other parameters such as
process_perf_data - still probably only on the master(s), but that's really up 
to how crazy we'd want be.
event handler settings - unchanged by this configuration
retain status information - unchanged by this configuration

Thanks

Mark



--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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] distributed nagios ?

2010-12-15 Thread Andreas Ericsson
On 12/15/2010 03:32 PM, Allan Clark wrote:
> On Wed, Dec 15, 2010 at 03:46, Andreas Ericsson  wrote:
>> On 12/14/2010 08:39 PM, Frost, Mark {PBC} wrote:
>>> 2) Because we're trying to put all the files into an alternate tree, the
>>> installation of 'mon' from install-merlin.sh didn't really work right.  In
>>> our case, it made a lot more sense to change
>>>
>>>cp apps/mon.py $root_path/usr/bin/mon
>>>
>>> to
>>>
>>>cp apps/mon.py $bindir/mon
>>>
>>> otherwise it would put 'mon' in a really weird spot.
>>>
>>> I'm guessing these are design decisions on your part, but in case they're
>>> not, I thought I'd point them out.
>>>
>>
>> Yes. The install-merlin.sh script is designed to be usable from the
>> rpm spec file, and it's meant to aid people who want to install
>> everything in its default location. Would $root_path/$bindir/mon
>> work for you? Since you can set $root_path to whatever you want,
>> I suppose it should.
> 
> I thought the convention was $DESTDIR , which is also used by
> autotools, which is a fairly common tool in that domain.  I'd strongly
> recommend marching to the same drummer when possible.
> 

It is when you're using make, but internally the install-merlin
script uses $root_path. So

  "make install DESTDIR=/some/random/path"

will install everything to the root path /some/random/path.
The autotools default path is called --dest-dir, which is what
install-merlin.sh uses, even though I detest the autotools with
an unsurpassed passion.

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

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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_logs.pl doesn't return output on RHEL 6 - RESOLVED

2010-12-15 Thread Bret Goodfellow
Temporary SOLUTION!


FYI - when I installed Nagios on RHEL6 I brought down 
nagios-3.2.3-3.el6.rf.x86_64.rpm.  This package included the check_logs.pl 
(1-2-2007).



I replaced check_logs.pl (1-2-2007) with a backlevel version check_logs.pl 
(6-7-2005).  This version works on RHEL6!  I am getting output now [messages 
==> OK].  At this point in time I'm just going to use the older version of 
check_logs.pl (6-7-2005).



Thanks to all that responded.



Bret Goodfellow

Questar Gas

S.L.C., UT


From: Bret Goodfellow [mailto:bret.goodfel...@questar.com]
Sent: Tuesday, December 14, 2010 2:57 PM
To: Nagios Users List
Subject: Re: [Nagios-users] check_logs.pl doesn't return output on RHEL 6

Yes, my servers are x64.  The perl release on RHEL4 is v5.8.5, and the perl 
release on RHEL5 is v5.8.8, and the perl release on RHEL6 is v5.10.1.

From: Hugo van der Kooij [mailto:hvdko...@vanderkooij.org]
Sent: Tuesday, December 14, 2010 8:47 AM
To: Nagios Users List
Subject: Re: [Nagios-users] check_logs.pl doesn't return output on RHEL 6


On Tue, 14 Dec 2010 15:12:24 +, Bret Goodfellow 
 wrote:
[r...@server ~]# cd /usr/lib64/nagios/plugins/
[r...@server plugins]# ./check_logs.pl   -c /etc/nagios/check_logs_linux.cfg

[r...@server plugins]#

I strongly suspect that this is a perl issue as RHEL 6 is using a newer perl 
version that is not entirely identical or compatible to the one used by RHEL 4 
and RHEL 5.



Are you sure the other servers are x64 as well BTW?



Hugo.



--

hvdko...@vanderkooij.org   http://hugo.vanderkooij.org/

PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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] Make a Host Group not visible on web interface?

2010-12-15 Thread Mark A. Lappin
Good Morning All -

Is there anyway to define a host group, assign hosts to that host group but not 
have the membership or the host group show up on under "Host Groups" on the web 
interface?

I have several things which run like services and several that don't, for the 
purposes of defining service checks, I would much rather set the services up to 
look at host groups instead of hosts but I'm ending up with so many host groups 
that the host groups become almost meaningless in the web interface.

Example - I'm watching about 65 printers with Nagios.  Different makes, 
different models.   Each printer has any number of physical trays but 
monitoring them, they are all a bit different.  One of the things I need to 
monitor is paper tray status.   Some printers count manual feed tray as tray 1, 
some as tray 2, some as tray 3.  Some have a tray 2 and tray 3 but not tray 1.  
So on my service checks, I'm applying this to all my network printers and then 
on the different tray checks, exclude certain printers.  A little difficult to 
keep track of.  I would like to put the printers in some host groups such as 
Tray1, Tray2, Tray3, etc, set services to check those host groups rather than 
keep excluding hosts on the services.  But host groups Tray1, Tray2, Tray3 are 
meaningless via the web interface so I would like them not to show.

Nagios Core - 3.2.3

ML


Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine 
Jewelry
Director of Information Technology
11314 Cloverland Ave  | Baton Rouge, LA 70809
Ph: 225.291.9094 ext 245 | Fax: 225.368.3675  | Mobile:  225-362-2770
www.lmfj.com



This communication is privileged and confidential.  If you are not the intended 
recipient, please notify the sender by reply e-mail and destroy all copies of 
this communication .

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Help with check_smb error message

2010-12-15 Thread stan
Let me start off ny saying Windows is something I do not know much about. I
am setting up a new Nagios instance to monitor a mainly Windows subnet, and
I am trying to use the check_disk_smb plugin. I have it working to a Samba
shared on the Linix Nagios host, and I know the machine name, and share
name on the Windows but when I run the plugin by hand, I get:

r...@pm2v40:/etc/nagios3/conf.d# /usr/lib/nagios/plugins/check_disk_smb -H
aw201b -s ia
Result from smbclient not suitable

Any idea, what I am doing wrong here?

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Make a Host Group not visible on web interface?

2010-12-15 Thread olourkin-nagios
If you add "register0" to your hostgroup definition it won't 
show up on the web interface, but you can still assign services to it as per 
normal.  Very useful technique. 

Cheers,
Erik Larkin


- Original Message 
From: Mark A. Lappin 
To: Nagios Users List 
Sent: Wed, December 15, 2010 9:49:04 AM
Subject: [Nagios-users] Make a Host Group not visible on web interface?

Good Morning All -

Is there anyway to define a host group, assign hosts to that host group but not 
have the membership or the host group show up on under "Host Groups" on the web 
interface?

I have several things which run like services and several that don't, for the 
purposes of defining service checks, I would much rather set the services up to 
look at host groups instead of hosts but I'm ending up with so many host groups 
that the host groups become almost meaningless in the web interface.

Example - I'm watching about 65 printers with Nagios.  Different makes, 
different models.   Each printer has any number of physical trays but 
monitoring 
them, they are all a bit different.  One of the things I need to monitor is 
paper tray status.   Some printers count manual feed tray as tray 1, some as 
tray 2, some as tray 3.  Some have a tray 2 and tray 3 but not tray 1.  So on 
my 
service checks, I'm applying this to all my network printers and then on the 
different tray checks, exclude certain printers.  A little difficult to keep 
track of.  I would like to put the printers in some host groups such as Tray1, 
Tray2, Tray3, etc, set services to check those host groups rather than keep 
excluding hosts on the services.  But host groups Tray1, Tray2, Tray3 are 
meaningless via the web interface so I would like them not to show.

Nagios Core - 3.2.3

ML


Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine 
Jewelry
Director of Information Technology
11314 Cloverland Ave  | Baton Rouge, LA 70809
Ph: 225.291.9094 ext 245 | Fax: 225.368.3675  | Mobile:  225-362-2770
www.lmfj.com



This communication is privileged and confidential.  If you are not the intended 
recipient, please notify the sender by reply e-mail and destroy all copies of 
this communication .

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Make a Host Group not visible on web interface?

2010-12-15 Thread Mark A. Lappin
>> Is there anyway to define a host group, assign hosts to that
>> host group but not have the membership or the host group show
>> up on under "Host Groups" on the web interface?

> add "register 0"
> to your hostgroup definition it won't show up on the web interface


Erik -

Great, thank you.  I will give this a shot in a little while.

Mark



Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine 
Jewelry
Director of Information Technology
11314 Cloverland Ave  | Baton Rouge, LA 70809
Ph: 225.291.9094 ext 245 | Fax: 225.368.3675  | Mobile:  225-362-2770
www.lmfj.com



This communication is privileged and confidential.  If you are not the intended 
recipient, please notify the sender by reply e-mail and destroy all copies of 
this communication .

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Help with check_smb error message

2010-12-15 Thread Assaf Flatto
stan wrote:
> Let me start off ny saying Windows is something I do not know much about. I
> am setting up a new Nagios instance to monitor a mainly Windows subnet, and
> I am trying to use the check_disk_smb plugin. I have it working to a Samba
> shared on the Linix Nagios host, and I know the machine name, and share
> name on the Windows but when I run the plugin by hand, I get:
>
> r...@pm2v40:/etc/nagios3/conf.d# /usr/lib/nagios/plugins/check_disk_smb -H
> aw201b -s ia
> Result from smbclient not suitable
>
> Any idea, what I am doing wrong here?
>
>   

If you want to monitor windows boxes , you may want to use the 
nsclient++ addon - which is a " NRPE for windows" so to speak .

http://sourceforge.net/projects/nscplus/

Once you install that - connecting and monitoring the windows box 
filesystems becomes much easier .

Assaf

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] execute_service_checks and distributed monitoring

2010-12-15 Thread stan
We wre trying to set up our first "child" Nagios instnace. I have it
working for checcking some things in the child instance. We have configured
the existing "parent" with some of the new checks. In reading the
documention, it is stated that we need to set execute_service_checks to 0
for the services that are actuaklly monitored by the "child". My problem is
that I do not understand where to put this directive to overide the
default, which is located in nagios.conf, and must be1 as we are continuing
to monitor all the existing services from it. I have tried several places,
but they all seem to give me a syntax error when starting nagios.

If it helps, the configuration for the "parent: was initaly created using
nagiosql.

Thanks.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] execute_service_checks and distributed monitoring

2010-12-15 Thread Assaf Flatto
stan wrote:
> We wre trying to set up our first "child" Nagios instnace. I have it
> working for checcking some things in the child instance. We have configured
> the existing "parent" with some of the new checks. In reading the
> documention, it is stated that we need to set execute_service_checks to 0
> for the services that are actuaklly monitored by the "child". My problem is
> that I do not understand where to put this directive to overide the
> default, which is located in nagios.conf, and must be1 as we are continuing
> to monitor all the existing services from it. I have tried several places,
> but they all seem to give me a syntax error when starting nagios.
>
> If it helps, the configuration for the "parent: was initaly created using
> nagiosql.
>
> Thanks.
>
>   

the definition is in the specific service definition on the Parent nagios
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

That way the service is "passive" and will not be executed , but receive 
the status from the child nagios via the NSCA transfers.


Assaf



--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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 monitor for a single Linux user space process ?

2010-12-15 Thread Bruce Edge
Rookie question here. Trying to determine nagios suitability for an
embedded app.

Can I monitor the CPU utilization for a single user space process on a
Linux box with nagios?
And, can I define an action if it exceeds a threshold?

Thanks

-Bruce

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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 monitor for a single Linux user space process ?

2010-12-15 Thread Frost, Mark {PBC}

> -Original Message-
> From: Bruce Edge [mailto:bruce.e...@gmail.com] 
> Sent: Wednesday, December 15, 2010 8:06 PM
> 
> Rookie question here. Trying to determine nagios suitability for an
> embedded app.
> 
> Can I monitor the CPU utilization for a single user space process on a
> Linux box with nagios?
> And, can I define an action if it exceeds a threshold?
> 
> Thanks
> 
> -Bruce

Bruce,

I'm not sure that there's an existing check plugin that would do this (might 
be).

I can say that "yes" you can do this, it's just a question of what you're 
willing
to do.  If I were to do this for our environment, I'd write a perl script that
used the 'ps' command to look at the process and pull the 'pcpu' field (% cpu
-- see the 'ps' man page) info for that process.  I'd also use the 
Nagios::Plugin
perl module to make the Nagios side easier and probably report the actual pcpu
value as performance data suitable for graphing.

You could then configure the an event on that service check.  That essentially
another script that gets called when the state changes on the check.  This means
it gets called anytime the state changes, including when it goes to an "OK" 
state
so you need to have the script detect when it's called and potentially exit if
it hasn't gone into a hard critical state (depending on what you want, 
actually).
You can read up on events on the Nagios documentation.

Mark

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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] Help with check_smb error message

2010-12-15 Thread stan
On Wed, Dec 15, 2010 at 09:35:35PM +, Assaf Flatto wrote:
> stan wrote:
> > Let me start off ny saying Windows is something I do not know much about. I
> > am setting up a new Nagios instance to monitor a mainly Windows subnet, and
> > I am trying to use the check_disk_smb plugin. I have it working to a Samba
> > shared on the Linix Nagios host, and I know the machine name, and share
> > name on the Windows but when I run the plugin by hand, I get:
> >
> > r...@pm2v40:/etc/nagios3/conf.d# /usr/lib/nagios/plugins/check_disk_smb -H
> > aw201b -s ia
> > Result from smbclient not suitable
> >
> > Any idea, what I am doing wrong here?
> >
> >   
> 
> If you want to monitor windows boxes , you may want to use the 
> nsclient++ addon - which is a " NRPE for windows" so to speak .
> 
> http://sourceforge.net/projects/nscplus/
> 
> Once you install that - connecting and monitoring the windows box 
> filesystems becomes much easier .
> 
Thanks,

I am using this in other locations, but politivly, I cannot install
_anything_ on these boxes, so I am forced to use external tools.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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 monitor for a single Linux user space process ?

2010-12-15 Thread Mike Lindsey
On 12/15/10 5:05 PM, Bruce Edge wrote:
> Rookie question here. Trying to determine nagios suitability for an
> embedded app.
>
> Can I monitor the CPU utilization for a single user space process on a
> Linux box with nagios?
> And, can I define an action if it exceeds a threshold?

Sounds like you need check_snmp_process.pl from here:
http://nagios.manubulon.com/snmp_process.html

I've been using it, it works quite well.  It requires snmpd, but is 
basically the swiss army knife of user-space process monitoring.

To "define an action" you need to set up an event handler.
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

-- 
Mike Lindsey


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
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