Re: [Nagios-users] check_dns issues

2009-09-22 Thread jmoseley
Use check_dig instead.


James Moseley



"G. S. Marzot"  wrote:

In my copy of Nagios w/ plugins , the check_dns plugin relies on
nslookup. There are some unfortunate side-effects when trying to use
this plugin to monitor the DNS response from a specific server. If the
server supplied to the plugin on the commandline fails to respond, the
nslookup cmd will fallback to using servers in the monitoring nodes
/etc/resolv.conf. So a failing server will appear to work if any of
those other servers respond... Anyone thought to move this plugin to use
'dig'?
will risk being sent to /dev/null
<>--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf___
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] Fwd: Contact w/ clue re: AT&T SMS email gateway?

2009-09-18 Thread jmoseley
For what it's worth, I have an iPhone 3G and while the sender has certainly
changed, I'm getting the full messages sent by Nagios...


James Moseley
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf___
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] Nagios 3.2.0 configuration files

2009-09-11 Thread jmoseley
The correct syntax is: retry_check_interval

To get a sense of what is different and new in Nagios 3.x and the process
of upgrading from 2.x, I would read the following official documentation:

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

http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x

That's more than enough to get you started.  As for notifications, yes,
notifications are not sent on SOFT alerts.


James Moseley



Sowmya Dass   wrote:

Hello All,

I already have a setup Nagios 2.0b3 on another server. I have newly setup
Nagios 3.2.0 on RHEL 4. In the process, I have tried re-using the
configuration file. Currently, I have all my hosts,contacts and service
details mentioned in the same configuration file called minimal.cfg. And I
do have a nagios.cfg configuration file, that refers to this as :
cfg_file=/usr/local/nagios/etc/minimal.cfg

Will all the directives as valid in Nagios 2.0b3 hold valid even in Nagios
3.2.0 ? I am bothered about the directive names and the deprecated
directives.

Also, In the official 3.x document, on page 226, I see that there is a
mention of a directive called retry_check_interval.
http://support.nagios.com/knowledgebase/officialdocs

But contradicting to this, I see at
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service which
mentions the directive as retry_interval.

I just happened to figure out this difference just now. I am really not
sure which one to use and get it working.

I had another issue with notifications as mentioned below :

One of the host at my end just went down and did not respond to ping and
http. I saw that this was reported as below in the nagios.log at
/usr/local/nagios/var/nagios.log
[1252662489] HOST ALERT: lon4;DOWN;SOFT;1;CRITICAL - Plugin timed out after
10 seconds
[1252662569] HOST ALERT: lon4;DOWN;SOFT;2;PING CRITICAL - Packet loss =
100%
[1252662639] HOST ALERT: lon4;DOWN;SOFT;3;PING CRITICAL - Packet loss =
100%
[1252662709] HOST ALERT: lon4;UP;SOFT;4;PING OK - Packet loss = 0%, RTA =
0.22 ms
But notifications were not sent out for either of these. Did this happen as
these were in soft state ?

My notifications have been enabled for both the services ping and http but
not for the host. Does the host also have a notification enabled directive
?

Regards
Sowmya Dass

--

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http confusion / problem

2009-08-28 Thread jmoseley
Not sure if regular expressions will work, but here's an example:

[r...@plugins]# ./check_http -H www -e "HTT"
HTTP OK HTTP/1.1 200 OK - 318 bytes in 0.004 seconds
|time=0.004054s;;;0.00 size=318B;;;0

It finds the 'HTT' in the following status line:

STATUS: HTTP/1.1 200 OK

so it returns an 'OK' condition.

However:

[r...@plugins]# ./check_http -H www -e "HTP"
HTTP CRITICAL - Invalid HTTP response received from host

There is no 'HTP' string in the status line, so the plugin returns a
critical condition.



James Moseley




"David Dyer-Bennet"  wrote:

That's where I found --expect= in the first place.  All my tests showed it
not working as I "expected", and I started thrashing around as usual, and
eventually ended up with -e= which is of course wrong (incomplete
editing).

What is the argument?  A regexp?  The other match parameters are, but this
one doesn't say so.  A full-line match?  An initial segment match?  Will
it match anywhere within the line?




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http confusion / problem

2009-08-28 Thread jmoseley
No, it works - you have an '=' character after the '-e' argument.  Leave
that out or use "expect="

For more documentation:

check_http --help


James Moseley




"David Dyer-Bennet"   wrote:

[...@prcapp00 dev]$ /usr/lib/nagios/plugins/check_http
--IP-address=192.168.5.3 -p 8075 --no-body -f critical -v -v -v -e="Bad
Request"




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check_dns Error

2009-08-12 Thread jmoseley
How do you have the check command defined?  How do you have the service
command defined?

It appears you are not supplying an address in either the check command or
service definition...


James Moseley




Dei Bertine   wrote:


Thanks for the reply.
Here's my output:

[r...@terri.csaa.com libexec]# ./check_dns -H terri.csaa.com -v
/usr/bin/nslookup -sil terri.csaa.com
Server: 10.11.109.15
Address:10.11.109.15#53
Name:   terri.csaa.com
Address: 10.11.109.14
DNS OK: 0.005 seconds response time. terri.csaa.com returns 10.11.109.14
|time=0.005352s;;;0.00

[r...@terri.csaa.com libexec]# ./check_dns -H www.yahoo.com -v
/usr/bin/nslookup -sil www.yahoo.com
Server: 10.11.109.15
Address: 10.11.109.15#53
Non-authoritative answer:
www.yahoo.com   canonical name = www.wa1.b.yahoo.com.
www.wa1.b.yahoo.com canonical name = www-real.wa1.b.yahoo.com.
Name:   www-real.wa1.b.yahoo.com
Address: 209.131.36.158
DNS OK: 0.268 seconds response time. www.yahoo.com returns 209.131.36.158
|time=0.267546s;;;0.00

How come nagios still has the error...I'm confused.

Cheers.
DB


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check hardware raid

2009-08-12 Thread jmoseley
In order to check hardware RAID performance on Dell box running Linux, you
need to download (from Dell) and install the appropriate perc agent on each
system - there are at least three different versions - as well as use the
appropriate plugin (basically, all the plugins are the same, just with
different MIB OID's).  Search the archives for:

experience with check_sasraid_megaraid for Dell PERC 4?

In April and May of this year for more details...



James Moseley




Marco Borsani wrote:
>
> Hi all !
>
> I am testing check_raid plug-in in some Dell computer with linux
> (hardware raid 1 or raid 5).
>
> Using “check_raid” or “sudo check_raid” I always receive following
> answer :
>
> *No RAID configuration found.*
>
> Any ideas?
>
> Regards
>
> M.Borsani

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Required RPMs for Nagios 2.5

2009-05-11 Thread jmoseley
If you've installed everything, including Nagios, via RPM/yum/up2date, then
you should get a warning if upgrading some packages will interfere with
Nagios.

Assuming you've installed Nagios via RPM/up2date, then you can do:

rpm -qa | grep nagios

To see what Nagios-related packages you have installed.  Then do a:

rpm -qR 

to see what packages Nagios requires.  That's actually going to show what
libraries and binaries are needed by Nagios, not the actual package names.

If you installed Nagios by source, then you'll need to find a Nagios 2.5.x
RPM, download it (don't install it)t, and do a:

rpm -qpR 

to find out what it requires.  Better yet, go to the package maintainers
website and find the spec file that was used to build the RPM to find out
what packages are required to install the RPM.



James Moseley



Karen Tsai  wrote:

Hi,

We are running Nagios 2.5 on Linux x86. We would like to get a list
of RPMs required for Nagios if there are any. We are trying to get
this information in preparation for the Linux up2date patching, in
order to evaluate if the up2date patching would possibly impact the
Nagios. Does anyone know if there are any required RPMs?




--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_icmp and check_host

2009-05-06 Thread jmoseley
Since this is the first time you've installed Nagios (I assume) and you
probably haven't used it much, I wouldn't expect there is too much benefit
for you by installing Nagios from source.

I would suggest that you take advantage of RH's rpm management and install
Nagios from rpm.  Doing that will automatically satisfy all your
dependencies, install everything, and generate an Apache config and startup
script.  Plus, upgrades will be much simpler.  Plugins will also be a
breeze:

yum install nagios-plugins

Config files are stored in: /etc/nagios
Plugins: /usr/lib/nagios/plugins
CGI: /usr/lib/nagios/cgi
html: /usr/share/nagios


James Moseley



"Meyer Jerome"   wrote:

Hi James

I've install Nagios through source-code : nagios-3.0.6.tar.gz!

Thanks
Jerome








--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_icmp and check_host

2009-05-06 Thread jmoseley
As per Marc, you need the 'devel' packages installed as well.  Did you
install Nagios via RPM or compile from source?  If the latter, I would
suggest you install Nagios from RH's yum repository, thay way, all the
library dependencies will be installed as well.


James Moseley




"Meyer Jerome"   wrote:

Hi Marc-André

Thanks for your answers!
Here are the installed librairies on my RedHat Server :

# rpm -qa|grep libjpeg
libjpeg-6b-37
libjpeg-6b-37
# rpm -qa|grep libpng
libpng-1.2.10-7.1.el5_3.2
libpng-1.2.10-7.1.el5_3.2
# rpm -qa|grep gd
gd-2.0.33-9.4.el5_1.1



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Yep, all the important stuff was commented out.


James Moseley




Bo Gusman  wrote:

Your file is first.

I did 0 configuration on it - so much for trusting things right out of the
box. :)

 Bo

41c41
< com2sec notConfigUser  default   OcwyronAs4
---

> > com2sec notConfigUser  default   public
>
74,75c74,75
< com2sec local   localhost   nagiosofc
< com2sec mynetwork   192.168.1.0/24  nagiosofc
---

> > #com2sec local localhost   COMMUNITY
> > #com2sec mynetwork NETWORK/24  COMMUNITY
>
78,79c78,79
< group   MyRWGroup  v2c local
< group   MyROGroup  v2cmynetwork
---

> > #group MyRWGroup  anylocal
> > #group MyROGroup  anymynetwork
>
85c85
< view allincluded  .1   80
---

> > #view allincluded  .1   80
>
93,94c93,94
< access MyROGroup ""  any   noauthexact  allnone
none
< access MyRWGroup ""  any   noauthexact  allallall
---

> > #access MyROGroup ""  any   noauth0  allnone   none
> > #access MyRWGroup ""  any   noauth0  allallall
>
162,163c162,163
< syslocation Your City
< syscontact  Network Operations
---

> > syslocation Unknown (edit /etc/snmp/snmpd.conf)
> > syscontact Root  (configure /etc/snmp/snmp.local.conf)
>
452,454d451
< # Dell MegaRAID data will be exported on port 161 by the main snmpd
< pass .1.3.6.1.4.1.3582 /usr/sbin/percmain
<

458a456

> > pass .1.3.6.1.4.1.3582 /usr/sbin/percmain




--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
You're welcome.  I'd be interested in the diff output...

James Moseley




Bo Gusman  wrote:

Wow, that changed things big time.

Using snmpwalk locally this time resulted in 221 lines of output along
the lines of

SNMPv2-SMI::enterprises.3582.1.1.14.0 = INTEGER: -1

check_sasraid_megaraid says

Megaraid OK - 2 logical disks, 6 physical drives, 1 controllers found

I think I'll compare the two snmpd.conf files that I've got. Maybe learn
something.

Dude, you rock!






--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
To be honest, I'm stumped.  Have you disabled SELinux to see if that does
the trick?  At this point in time it's a problem with SNMP, the Dell Perc
agent, and/or the controller.  You might open a ticket with Dell to see if
there are any known compatibility issues with the software and your
specific card.


James Moseley




Bo Gusman   wrote:

Yep, percagent is clearly running per ps -ef.

snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582

returns

SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB
View (It is past the end of the MIB tree)



--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Attached is a sample snmpd.conf config.

Just change COMMUNITY-STRING and the 192.168.1.0/24 settings to what works
for you.  If you are still having problems, then it's most likely your RAID
card is not supported by the version of Perc agent you downloaded.

(See attached file: snmpd.conf)

James Moseley



Bo Gusman  wrote:

Well, krikey!

SELinux is disabled so that isn't in play. I will get in touch with
Dell, although their linux-poweredge mailing list (where I also asked
the same question as here) has returned null.

I appreciate all of your help with this, James. Karma points for you!




snmpd.conf
Description: Binary data
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
First, have you verified that the perc agent is actually running on the
remote host?

ps -ef | grep perc

Furthermore, you're certainly not going to be able to connect to your
remote server via SNMP by using the default percsnmpd.conf file.

If you are able to connect to your host using the original snmpd.conf file
with the added perc statements, then you are fine.

Next, are you running SNMP v1 or v2?  That's important as you have to
provide the correct version to the plugin.

Lastly, what happens when you do an snmpwalk from the remote host using the
following?

snmpwalk -c wiband -v 2c localhost .1.3.6.1.4.1.3582

You should get a bunch of valid, snmp output.  If not, try using version 1.
If you do get valid output, then SNMP/percSNMP are setup correctly on that
host.


James Moseley




Bo Gusman  wrote:

Well, if I use the default snmpd.conf, I can connect to the host using
snmpwalk locally and from the nagios host, but I can't see anything
related to the perc array. It is this configuration that causes the perl
substr error when I run check_sasraid_megaraid.

Renaming percsnmpd.conf -> snmpd.conf, I can't connect to the host at
all either using snmpwalk or the script.

Both conf files have a line "pass .1.3.6.1.4.1.3582 /usr/sbin/percmain"
as the last line of the file, but I don't understand enough about snmp
(reading the docs is giving me a headache! :) to be able to connect the
dots.

Would you share relevant snmpd.conf info for me, James?

Much thanks for your patience and advice.





--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Doesn't matter if you're not using the plugin within Nagios yet.  What
matters is if you have all the perl utilities installed.

If you haven't already, install the following:

yum install nagios-plugins

Then rerun the script.  I have a CentOS 5.2 box with Perl, Nagios, and
Nagios-plugins installed via yum and I don't have the problems you do
running the script.


James Moseley



Bo Gusman  wrote:

Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via
yum.)  Perl is default install v 5.8.8. On the Nagios box (actually a
VM) I'm using Groundwork Community Edition 5.3 VM as provided by
groundwork. I've not actually connected the plugin to anything Nagios
yet, I'm just running it from the command line.

I did have to install Net::SNMP for perl from CPAN.

Hmmm, what a puzzle.






--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-04-30 Thread jmoseley
My guess is you have an old version of perl or missing something else...

How did you install perl and Nagios/Nagios plugins?  I just tested this
plugin on a CentOS 5.3 box which had perl and nagios-plugins installed via
yum repository.  Worked just fine.

I'd install nagios-plugins from yum and see if that clears things up.  If
it doesn't you might want to check which version of perl you are running
and upgrade it.


James Moseley




Bo Gusman   wrote:


That said

 ./check_sasraid_megaraid.pl -H bullwinkle -C public -T
megaraid -s 2c

all hell breaks loose:


substr outside of string at ./check_sasraid_megaraid.pl line 461.
Use of uninitialized value in split at ./check_sasraid_megaraid.pl
line 462.






--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-04-30 Thread jmoseley
Since you are getting that error, I don't think the firewall is the
problem.  If it were the firewall, I'd expect a timeout issue.

First, make sure you are passing the proper community string and SNMP
version into the script:

./check_sasraid_megaraid.pl -H bullwinkle -C  -T megaraid
-s <1 or 2c>

If you still are getting that error, try 'perc4' as your -T argument.

Lastly (or firstly, I suppose), check to make sure you actually have a
MegaRAID adapter:

dmesg | grep -i raid

If you do, you should see a line like:

Vendor: MegaRAID  Model: LD 0 RAID5  139G  Rev: 513O


James Moseley



Bo Gusman   wrote:


The second is that when running

./check_sasraid_megaraid.pl -H bullwinkle -T megaraid --debug

it fails:

alert: CRITICAL
snmp error: Requested table is empty or does not exist
Megaraid UNKNOWN - could not retrieve snmp table
.1.3.6.1.4.1.3582.1.1.2.1.3





--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC4?

2009-04-30 Thread jmoseley
This plugin requires that Dell OpenManage be running on the remote servers.
Does Dell make a RHEL version of OpenManage?


James Moseley




"Seth Simmons"   wrote:

I haven't used that specifically, but I do use check_openmanage on all
my dell boxes (perc 3/4/5/6)
It works nicely and checks all hardware components, including
physical/logical drive status.
It will generate alerts if a physical drive fails and the volume becomes
degraded; along with any related errors in the esm log, if you use this
to monitor that also.

http://folk.uio.no/trondham/software/check_openmanage.html






--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-04-30 Thread jmoseley
I use that plugin on a number of Dell servers.  First, you've got to make
sure the RAID controller is either a MegaRAID or AACRAID controller.  More
than likely, it's the former.

The plugin itself is self explanatory - look at the help output.  What you
need is to download the Perc SNMP agent from Dell.  Ultimately, you'll
install the following RPM:

percsnmp-4.09-1.i386.rpm

which will install the percsnmpd daemon...

All you need to do at that point is apply the following line to your
/etc/snmp/snmpd.conf file:

# Dell MegaRAID data will be exported on port 161 by the main snmpd
pass .1.3.6.1.4.1.3582 /usr/sbin/percmain

Then fire up the percsnmpd daemon and restart snmpd.


James Moseley




   
 Bo Gusman 
To 
   Nagios-users@lists.sourceforge.net  
 04/30/2009 01:00   cc 
 PM
   Subject 
   [Nagios-users] experience with  
   check_sasraid_megaraid for Dell 
   PERC  4?
   
   
   
   
   
   




Hi all.

We've got two dell servers with PERC4 controllers running CentOS that
nagios is monitoring quite nicely with the exception of the raid arrays.

Is there anyone that has experience with check_sasraid_megaraid as found
here:

http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1

Advice, an overview, or a recipe would be very helpful!

Thanks!

Bo


--

Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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

Bo Gusman  wrote:

Hi all.

We've got two dell servers with PERC4 controllers running CentOS that
nagios is monitoring quite nicely with the exception of the raid arrays.

Is there anyone that has experience with check_sasraid_megaraid as found
here:

http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1

Advice, an overview, or a recipe would be very helpful!


--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NRPE without xinetd

2009-04-24 Thread jmoseley
Just compile it or install via rpm repository, etc, and run it as a
stand-alone daemon, eg:

/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d


James Moseley



Sergio Ariel   wrote:

I need to install NRPE in a server that do not have installed xinetd. I
can't install xinetd neither. Please help me to configure NRPE
installation in order to use it without xinetd.
--
Sergio Ariel de la Campa Saiz




--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Firewall Rules

2009-04-23 Thread jmoseley
It would seem obvious, but there are no minimum required firewall rules.
You simply need to open a firewall hole for the remote server for every
service you plan to monitor by the HQ machine.

If you are monitoring the remote host via ICMP and SNMP, then you need to
open up those two holes on the remote firewall.  If you are using NRPE on
the remote host, you'll need to open that as well, etc, etc.  By default,
most folks monitor their host-alive states using check_ping (ICMP), so at a
minimum you'll need to open up ICMP on the remote to allow the HQ box to
ping those hosts.

This assumes that all outbound traffic is allowed from each host and that
your HQ box is behind a firewall that performs stateful inspection (which
is helpful for things like DNS, etc)


James Moseley



"Gabriel - IP Guys"   wrote:

Dear all,

I’ve got my Nagios server up and running, and for some reason, I cannot get
the two servers, NagiosHQ, and RemoteServer, to talk to each other.

Each of the boxes have very OTT firewalls, basically, everything is denied,
except expected traffic. I was wondering, if someone can show me the
minimum required firewall rules I should have on my server and also
clients. Thank you

---
Kind Regards,
Mr Gabriel
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Host shows down due to ping block on firewall

2009-04-23 Thread jmoseley
You can also use check_ssh as your check_command argument in your hosts
file.

James Moseley




 wrote:


Hi All,

I have started to do monitoring of some hosts which are behind the firewall
and PING (ICMP) is block on firewall. so I have exculded  ping service in
localhosts.cfg file and as well as check-host-alive option also from host
template but still Nagios web interface shows host as "DOWN" RED Color in
host status web interface.

I think this is happening due to PING block on firewall.

However ssh and nrpe port are opened on firewall to do monitoring of host
resources. other services are showing OK in green color associate to this
host.

Please let me know how can we enforce nagios to shows that   HOST is UP in
host status web interface.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Any firewall gotchas for NRPE?

2009-04-22 Thread jmoseley
It's always possible Selinux is causing some issues if you left it
enabled...

James Moseley




gabr...@impactteachers.com  wrote:


> Some extra information,
>
> Nagios Version  3.0.6
> NRPE Version2.12
> OS  CentOS 5.2




--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] parsing log files on remote hosts

2009-04-17 Thread jmoseley
Write a script to parse the logs on the remote host and have NSCA on that
remote host exectute the script and send those passive results back to the
Nagios server.

There are other solutions you could employ.   For example, using NRPE and
active checks on the remote host.  Ie, the parsing script would actually be
a Nagios plugin which would return OK, critical, etc, alerts

James Moseleyy




kaouther mechri   wrote:

Hello All,

I am seraching a way to parse some  application log files on remote hosts
and grep for specific words, I need to add this as a nagios check.

Can anyone help me
kind regards
kaouther
--


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] APC UPS Monitoring Setup.

2009-04-12 Thread jmoseley
Remember to CC the nagios users' list...  From looking at the script, it
doesn't look like there are any options for setting critical/warning
thresholds for temperature, load, etc.  It appears they are all predefined.

In that case, the command configuration would look something like:

define command {
  command_name check_apcups
  command_line $USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$
}

The service check configuration would look like:

define service{    use
generic-service    host_name  apc-smart-ups
service_description APC_STATUS    check_command
check_apcups!public
    }

Obviously, you would replace 'public' above with whatever SNMP community
string you have setup...

The host group and host defintions you supplied earlier should be fine.
Remember, this script is fairly elementary in that it appears it
predetermines all the critical/warning levels for things like temp, battery
capacity, input/output voltage, etc.  So, there's nothing else you need to
do.  It will either return an 'OK' value or generate a critical or warning
alert with the simple configuration above.  Obviously, you could edit the
script to change any of the thresholds by hardcoding them into the script,
or you could modify it to accept warning/critical threshold limits as
variables.



James Moseley




   
 "David A."
   To 
   jmose...@corp.xanadoo.com   
 04/12/2009 07:19   cc 
 PM
   Subject 
   Re: [Nagios-users] APC UPS  
   Monitoring Setup.   
   
   
   
   
   
   




Thanks again.

The command I issue in the libexec folder is:

./check_snmp_apcups -H xxx.xxx.xxx.xxx -C public (I changed that to
something different)

The reply from the system is:

Status is OK - Symmetra  - BATTERY:(capacity 100%, temperature 38 C,
runtime 40 minutes, 00.00) INPUT:(voltage 120 V, frequency 59 Hz)
OUTPUT:(voltage 119 V, frequency 59 Hz, load 18%) SELF TEST:(Passed on
04/02/2009) LAST EVENT:(UPS self test)

What I am trying to do is display this information in the web interface
under its own device type.


Thank you for any help you can provide.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] APC UPS Monitoring Setup.

2009-04-12 Thread jmoseley
The instructions you are referring to use check_snmp and have nothing to do
with the plugin you are trying to use.  I'm not familiar with that plugin,
but you should be able to get all the status you want with a single service
entry.  If you'll give me an example of the command line call, I'll give
you an example service and command definition.


James Moseley




   
 "David A."
   To 
   nagios-users@lists.sourceforge.net  
 04/12/2009 01:52   cc 
 PM
   Subject 
   [Nagios-users] APC UPS Monitoring   
   Setup.  
   
   
   
   
   
   




Hello,

I have been searching for help in setting up SNMP monitoring of an APC
UPS.  I found a plug-in called check_snmp_apcups and have been trying to
configure it -- with no success.  I am using nagios 3.0.6 and plugins
1.4.13

I placed check_snmp_apcups into the libexec folder and ran it from the
command line.  It worked well, giving me UPS information.  However, I
cannot figure out what to do to make it work in the web interface.

The latest instructions I found (and followed) were from the wiki:
http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups

Now, these instructions refer to the check_snmp command, but this did not
work from the command line for me.  It got no response from the UPS.  So, I
changed the command to check_snmp_apcups.  I added the command definitions
to the command.cfg file and then created a ups.cfg file with the following:

 HOST 
define host{    use generic-host
host_name   apc-smart-ups    alias
apc-smart-ups    address 192.168.1.10
hostgroups  ups    }

 HOST GROUP 
define hostgroup{    hostgoup_name   ups
alias   ups    }

 SERVICES 
define service{    use
generic-service    host_name   apc-smart-ups
service_description Environment-Temperature
check_command   snmp_ups_envtemp!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_stat!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_capa!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_freq!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_volt!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_current!nagmon    }

define service{    use
generic-service    host_name   apc-smart-ups
service_description Battery-Status
check_command   snmp_ups_load!nagmon    }


I then modified the nagios.cfg file to point to to the ups.cfg file.  Next,
I ran the verification command and received a warning of NULL value in the
line that points to my ups.cfg file.  I don't know what is wrong with it,
or what I am missing.

Could anyone give me some pointers as to what I am doing wrong?

Thanks.
--

This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Pleas

Re: [Nagios-users] check_snmp memory leak

2009-04-12 Thread jmoseley
You could have also just disabled the embedded perl interpreter in the
plugin itself.  By disabling the embedded perl function, your load  and
memory usage will certainly be higher.

The real question, though, is since you're using Cent OS, why not use the
Nagios RPM's available via yum repository?  It makes upgrading and keeping
track of dependencies a breeze.

Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
system using the exact options that were found in the RPM spec file.  I
ended up with a nagios binary that was twice as large as the one that came
in the RPM package and the version I compiled myself ran using more memory
and processor resources than the RPM version.  The difference was probably
the compiler flags I was using were not optimized for my (or any RHEL)
system.

Nine times out of ten, using yum rpm's will ultimately end up yielding
better results when factoring in system performce, upgrades, etc - and save
tons of time and headaches.  That's why you're using RHEL, right?  Yes, I
still have to make RPM's via compilation of source RPM's when the yum
repository version doesn't include the feature's I need.  For example, I
have to roll my own Postfix because I need mysql support.


James Moseley




   
 Mark Krenz

To 
 04/12/2009 09:20  nagios-users@lists.sourceforge.net  
 AM cc 
   
   Subject 
   Re: [Nagios-users] check_snmp   
   memory leak 
   
   
   
   
   
   





Nevermind, figured it out.  I just tried recompiling without the
--enable-embedded-perl option and that seems to have fixed it. Now the
memory usage is staying at just a couple MB.

Not sure why check_snmp was the only check that seemed to aggravate it
though.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios and Cacti

2009-04-08 Thread jmoseley
I agree with Daniel's post below.  We have Nagios and Cacti running on the
same system; Nagios monitors 691 hosts and 1800 services while Cacti is
pulling stats for about the same number of hosts, but something like 3200
data sources.  They run on a dual Xeon 2.8 Ghz box with only 2 Gb or RAM
(no swapping going on).  Average load is about 1.5 and peaks at 3 about 3-4
times a day.
The key is that mysql operations are on a dedicated box with 15k SCSI
drives and RAID 10.


James Moseley




   
 Daniel Emmanuel   
 Feinsmith 
   
cc 
 04/08/2009 10:36  Nagios Users
 AM   
   Subject 
   Re: [Nagios-users] Nagios and Cacti 
   
   
   
   
   
   




If you move your mysql instance to another server, you can get much better
performance on a nagios/cacti server. Check top while cacti is running a
large install and you will see that mysql is hoarding CPU and memory
resources not leaving much for nagios.

=
Daniel Feinsmith
=
{sent from iPhone}

On Apr 8, 2009, at 8:03 AM, Andrew Davis  wrote:

  And just an FYI from my own experience... putting Nagios & Cacti on
  the same server has been somewhat problematic for us. We have over
  400 network devices between switches, routers, WAPs, etc. We also
  have about 300 monitored servers. Initially I had Nagios and Cacti
  both on one server with Cacti running via cron every 5 minutes. About
  every 5 minutes, my shells would become unresponsive for roughly 30
  to 90 seconds. Turning off either Nagios or Cacti resolved the issue.
  Running both seems to have hammered the server a bit (4Gb of RAM, 2 x
  dual core 2.x Ghz CPUs). We don't integrate Cacti and Nagios,
  however. Nagios does both trending and alerts of all servers. Cacti
  does trending only of all network devices/ports. Once I moved Cacti
  to its own server, all was fine as far as load/latency went.
A. Davis
Email: ncc...@gmail.com

"There is no limit to what a man can accomplish
 if he doesn't care who gets the credit." - Ronald Reagan



  Marco Tirado wrote:
Hello:

There are a couple of examples in the nagios exchange page of
different approachs for integrating nagios and cacti. You
should check that out.

I believe the synchronization is going to cost you time and
money, a better approach is to use nagios + pnp4naigos (this
generates nice graphs) + check_snmp_int.pl (this for bandwidth
tests). That way you have only one place to place your
configuration.  There are tons of other snmp plugins you can
use for other tests (CPU, Memory, etc),

//Marco

On Wed, Apr 8, 2009 at 11:15 AM, Christopher McAtackney <
crist...@gmail.com> wrote:
  Hi all,

  I've been looking into making use of Cacti to act as an SNMP
  management tool which runs alongside my Nagios instance.

  Ideally, what I would like to do is have Cacti monitor
  various
  SNMP-exposed metrics on my hosts, and then have a service
  check in
  Nagios which parses Cacti's results (which I believe are RRD
  files)
  and send alerts etc.

  Nagios itself will still be used for running directly checks
  for
  services running, errors in log files etc.

  Does this approach make sense?

  One issue that I can think of is the difficulty in keeping
  the config
  files of Nagios and Cacti synchronised.  I was planning on
  using Lilac
  Platform to act as my Nagios config file management tool, but
  how that
  is kept in synch with Cacti is a problem. Has anyone ever set
  up an
  arrangement like this before?

  Cheers,
  Chris

 

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread jmoseley
So, you're stating that you've got other nrpe checks working fine on the
clients and that nrpe is running under xinetd?  If not, try running nrpe as
a standalone daemon.

Next step, open the log files and check_logs.pl script  to the user nobody
so you avoid have to run the script under a sudo call...


James Moseley




   
 Andrew Davis  
   To 
   "nagios-users@lists.sourceforge.net 
 04/02/2009 05:08  "   
 PM   
cc 
 Please respond to 
 ncc...@gmail.com  Subject 
   Re: [Nagios-users] Help please -
   test works fine EXCEPT over NRPE??? 
   
   
   
   
   
   




I've checked /etc/sudoers, /etc/nagios/nrpe.cfg, /etc/xinetd.d/nrpe, and
the script itself (/usr/local/nagios/libexec/check_logs.pl) and none have
any "tty" strings in them for me to comment out.

  A. Davis
  Email: ncc...@gmail.com




--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] configure Nagios to monitor the temperature of the server room

2009-04-02 Thread jmoseley



benamar.moha...@free.fr  wrote:


>Hello,
>
>Thank you for your answer, but is it possible to monitor the temperature
of the
>server room by NRPE not SNMP?
>
>Best regards

As Andreas said, you are unlikely to find a temperature probe that has an
OS capable of installing/compiling/running the NRPE daemon.  Therefore, you
will have to find a device that you can query by SNMP (or some other means)
to obtain the temperature reading.

APC makes environmental monitors capable of this.  I'm sure there are
others...

James







--
___
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] configure Nagios to monitor the temperature of the server room

2009-04-01 Thread jmoseley
That all depends on how the temperature can be obtained from the
temperature probe.  Most likely, the temperature would be obtained via
SNMP.  If that's the case, use check_snmp along with appropriate warning
and critical thresholds.


James Moseley




   
 "ben amar"
To 
  
 PM cc 
   
   Subject 
   [Nagios-users] configure Nagios to  
   monitor the temperature of the  
   server room 
   
   
   
   
   
   




Hello,

How to configure Nagios to monitor the temperature of the server room?
What plugin?

Best regards


Bonjour,

Comment configurer nagios pour superviser la température de la salle
serveur?
Avec quel plugin?

Cordialement



--

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] radius checks

2009-03-04 Thread jmoseley
Fairly busy at the moment, but getting check_radius to work is a bit
tedious.  This plugin actually checks to see if it gets a valid response
from the radius daemon against an actual user, not just if the port is
open.  So, you've got to setup the clients and users files correctly on the
radius server.  You've also got to install a radius client on the nagios
server and configure its conf file as well.  The actual check command looks
something like:

define command {
  command_name check_radius
  command_line $USER1$/check_radius -H $HOSTADDRESS$ -F
/etc/radiusclient/radiusclient.conf -u  -p
 -P 1812
}


James Moseley




   
 Jason Frisvold
 To 
   nagios-users@lists.sourceforge.net  
 03/04/2009 09:09   cc 
 AM
   Subject 
   [Nagios-users] radius checks
   
   
   
   
   
   




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

 I'm at wits end here trying to figure out how to monitor
radius with
nagios.  I have tried multiple plugins, but all to no avail.

 I tried the check_radius plugin that ships with
nagios-plugins, but I
kept getting "Auth failed" and no packets were ever sent to my radius
server.

 I tried radauth from NagiosExchange (both the original and the
updated
radauth.c) and they failed with error in radius about malformed packets.

 I moved on to radius_check_adv and radius_check_ih, both from
NagiosExchange, and they both fail with errors about the secrets not
being correct, though I have checked them multiple times and even tried
configuring them as testing123 and test and nagios and more.  radtest
(from freeradius) can authenticate with no problem using the same secrets.

 What am I missing?  Is there some super-secret config switch I
need to
set or something?

Thanks!

- --
- ---
Jason Frisvold
Network Engineer
frisv...@lafayette.edu
- ---
"What I cannot create, I do not understand"
   - Richard Feynman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFJrpmqO80o6DJ8UvkRAi44AKCIyVxPa8uObJE2hyxB+5UsMd6DKgCfbbfO
SJnLNpdBeqlGDs8NwiTjuAA=
=r8Fh
-END PGP SIGNATURE-

--

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http question

2009-02-27 Thread jmoseley
Yep, great suggestion.


James Moseley




   
 Kevin Keane   
To 
   
 02/27/2009 01:59   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] check_http   
   question
   
   
   
   
   
   




You could write your own plugin - a simple bash script - that calls the
original check_http, tests the result, and then outputs whatever you
need. Should be about five or six lines of code. Don't forget to return
the same exit code as what you got from check_http.

# call the regular plugin here
output=$(./check_http .)
result=$?
# output whatever you need. You can of course also make it conditional with
# if [ $result -eq 0 ] or similar. Get as fancy as you want, just keep
the output to a single line.
echo $url $output
exit $?

Put it into your plugin directory, make it executable, and use that
instead of the original call to check_http.

Don't you love how customizable Nagios is?




--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http question

2009-02-27 Thread jmoseley
Unfortunately, that only displays the commands as they are defined in the
command configuration file object defintions.  You could look at the
service commands being run, though.

Back to the question, though.  Nagios displays what is being returned by
the plugin.  The plugin, by default, doesn't show the port or URL being
monitored in the plugin out.  You could run the plugin with a -v option
(for verbose).  That generates a lot of output.  However, I don't know if
Nagios will be able to parse the verbose output properly.


James Moseley




   
 "Seth Simmons"
   To 
   , 
 02/27/2009 01:35 
cc 
   
   Subject 
   Re: [Nagios-users] check_http   
   question
   
   
   
   
   
   




In nagios, go to view config -> commands
It will show the exact command line being used for the host or service
check


From: Andrew Davis [mailto:ncc...@gmail.com]
Sent: Friday, February 27, 2009 2:28 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_http question

I've enabled check_http for quite a few hosts, including testing for custom
ports, URL's, and sites needing authentication. So far, so good. However,
one issue in the Nagios interface is bothering me. If I drill in on a host,
then the HTTP link for the test, it only shows OK. It DOES NOT show the
full URL that was tested. For example, for one of my hosts, I had to test
for a non-standard port, SSL, a directory structure, and authentication (-I
$HOSTNAME -p 8099 -u /dir/dir/dir/file.php -a user:password. All worked in
the sense that the test returned an OK status, but I have no visual way of
seeing the tested URL within Nagios. In contrast, doing a similar test in
BB (which I'm migrating away from), shows the full URL that was tested. Am
I simply missing something here? Is there a way of seeing the full
URL/string that was tested with the check_http command?

--


  Andrew Davis
--

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


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

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


James Moseley




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




Think that was it James.(bind)

Thanks for your help


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


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

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


James Moseley




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




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

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


There is no other service running on port 5666

netstat -apn | grep 5666


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



















--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


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

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

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


James Moseley




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




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

Still no joy though ...

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







--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


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

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

ps -ef | grep nrpe

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


James Moseley




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




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

Regards,
Dermot

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

Hi Dermot,

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

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

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

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

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


--

Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code
to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_dhcp oddness

2009-01-27 Thread jmoseley

Playing around with check_dhcp (installed via RHEL3 repository -
nagios-plugins-1.4.11, check_dhcp v. 1.7), I noticed that by setting a
timeout, the check result doesn't return until the timeout limit is
reached.  If I use no timeout, successful result is received in about 1
second.  If I use a timeout of 10, the result takes 10 seconds to return,
using 30 takes 30 seconds, etc.

This doesn't seem like the correct behavior.  Anyone else notice this?


James Moseley



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios server connected with multiple connections

2009-01-26 Thread jmoseley



Folkert van Heusden  wrote:

>Hi,
>
>With our nagios server we check webservers. Now we are connected via 2
>connections to the internet. Is it somehow possible to automatically use
>the other connection if the check fails via the first? That in case the
>first one goes down.

This is more of a function of how your local network is designed.  Assuming
the primary internet connection is up and indeed working, but for some
reason you can't reach your webserver via that connection, your Nagios
server must be able to reach the webservers via some alternate IP address.
Then you would have two different service checks and make one the parent of
the other.  That's just one example.  Another example is have your Nagios
server on two different IP addresses, one IP address from the primary
provider and the other from the second provider.  You could setup a second
check_ping service, for example, to use a the secondary IP as the source
address and if your network is setup to allow it, that second check would
route out the second connection.  Or if you have glabally routable IP
addresses and you are connected via each provider using BGP, you could have
a source-based ACL on your router for that second IP address to forcing
routing of it across the second connection.  Of course, you wouldn't have
much of a way to control how that traffic comes back.

In the case the primary internet connection actually goes down (which
should trigger some kind of Nagios alert), hopefully your routers are setup
to automatically fail over to the second connection.

James



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitor Email...

2009-01-21 Thread jmoseley
You're probably going to have to write this yourself.  Sounds like an
excellent opportunity for a perl/expect plugin.  ;-)


James Moseley




   
 Matt Nelson   
To 
   Nagios Users Mailinglist
 01/21/2009 12:51 
cc 
   
   Subject 
   [Nagios-users] Monitor Email... 
   
   
   
   
   
   




We are working on migrating off of Sitescope... ...

Anyways We have almost got all of the services working, but I have not
found one yet to replace:

"External Email Loop Monitor"

Here are the details of this monitor:
"The SiteScope Mail Monitor checks a Mail Server via the network. It
verifies that the mail server is accepting requests, and also verifies that
a message can be sent and retrieved. It does this by sending a standard
mail message using SMTP and then retrieving that same message via a POP
user account. Each message that SiteScope sends includes a unique key which
it checks to insure that it does not retrieve the wrong message and return
a false OK reading. If SiteScope is unable to complete the entire loop it
generates an error message.


Each time the Mail Monitor runs, it returns a status and writes it in the
/SiteScope/logs/SiteScope.log file. It also writes
the total time it takes to send and receive the mail message in the log
file."





Anyone know of a current monitor to replace this?
--






--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Still cannot access nagios page

2009-01-21 Thread jmoseley
If you are using Redhat, I would strongly suggest installing Nagios and
associated plugins via Redhat yum repository.  With that said, did you
actually add a user to the htpasswd.users file?


James Moseley




   
 "Khairuzzamri"
  To 
   "Nagios Users Mailinglist"  
 01/21/2009 09:17 
cc 
   
   Subject 
   [Nagios-users] Still cannot access  
   nagios page 
   
   
   
   
   
   




Hi everyone,

I'm still stuck at the authentication popup. I cannot login as even if I'm
providing the correct username and password the authentication popup will
still reappear.

I have done:
1. 'make install-init'
2. have copy '/etc/httpd/conf.d/nagios.conf' content into
'/etc/httpd/conf/httpd.conf'
   nagios.conf content:

 ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
  
#  SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
 
Alias /nagios "/usr/local/nagios/share"
 
   #  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   #  Order deny,allow
   #  Deny from all
   #  Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
  

3. create 2 .htaccess file in both '/usr/local/nagios/sbin' and
'/usr/local/nagios/share'
   .htaccess content:
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   require valid-user
I'm using Redhat 9 as O/S, nagios 3.0.3.tar.gz and
nagios-plugins-1.4.12.tar.gz.
Please help identify my problem. Any suggestion is highly appreciated.




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hostgroup Issue

2009-01-21 Thread jmoseley
Are '@' symbols allowed in hostnames in Nagios, other than for email
addresses?  I know special characters are invalid for internet hostnames...
If core and DNS1 are showing up, but the other hosts with '@' are not, I
think that's your problem.

May I ask why you are using special characters for hostname aliases in
Nagios?


James Moseley





  From: Alex Dehaini [mailto:alexdeha...@gmail.com]
  Sent: 21 January 2009 11:38
  To: Steve Burton
  Cc: Nagios Users Mailinglist
  Subject: Re: [Nagios-users] Hostgroup Issue

  Yes, I do have a hostgroup.cfg file. The issue is, when I add a new host
  or service - it doesn't show up in the cgi interface but nagios has seen
  it. My entries in hostgroup.cfg file are working, however - since nagios
  do not see these new hosts and services, they can't be displayed under
  the hostgroup.

  I wish there was somewhere I could check investigate this. Here is a
  snippet from my hostgroup.cfg file

  define hostgroup{
  hostgroup_name  CANTOMENTS
  alias   SITE-CANTOMENTS
  members core,s...@procreditadjangote,DNS1,
  ap...@cantoments,s...@cantoments,swi...@cantoments
  }


  define hostgroup{
  hostgroup_name  GIX
  alias   GIX
  members
  core,bhmas...@gix,bhsl...@kokomlemle2gix,rou...@gix
  }


  define hostgroup{
  hostgroup_name  GT
  alias   GT
  members core2gt,bhmas...@koko2gt,bhsl...@gt2koko
  }

  I added new hosts ap...@cantoments,s...@cantoments and swi...@cantoments
  and their corresponding services. However, the cgi web interface does not
  show them - that is the issue.

  Hosts core and DNS1 are old entries and they come up alright under the
  hostgroup but the others I added recently are not showing. Here is an
  image of what I am talking about

  Alex



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios compatibility

2009-01-20 Thread jmoseley
If you're using Redhat, unless there is a specific reason you want to
compile from source, just install Nagios vai yum repository:

yum install nagios
yum install nagios-plugins

That will install everything you need to get going.  It also installs the
/etc/init.d startup script, so you can then run the chkconfig command to
'turn on' the nagios server:

chkconfig --level 2345 nagios on

Using Redhat RPM's via yum package management also makes upgrades a snap.
And if you're using Redhat, CentOS, etc, using yum is one of the major
reasons for running such an operating system.

Unlike a previous poster who stated that repositories are often stale and
do not quickly apply security updates, this is not so for Redhat systems.
Their package maintainers often release package updates for software such
as Nagios within a few days, if not the same day, the software is released.
Security updates are often released the same day.

Yes, if you want to install via yum, delete the Nagios directories you
installed from source.  Might as well delete the user you created as well.
To access the web page, make sure you add a valid user/password to the
password file as defined in /etc/httpd/conf.d/nagios.cnf (assuming you
installed Apache via yum as well).

Good luck!

James Moseley




   
 "Khairuzzamri"
  To 
   "Kevin Keane"   
 01/19/2009 11:48 
 PM cc 
   nagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Nagios   
   compatibility   
   
   
   
   
   
   




Thanks Kevin for the reply,

Kevin Keane wrote:


As your suggestion to remove my existing nagios, is it correct to remove
the
nagios by deleting
every nagios directory in my machine?

(I'm using nagios-3.0.3.tar.gz and  nagios-plugins-1.4.12.tar.gz installer)





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] hi

2009-01-20 Thread jmoseley
If you're using CentOS, unless there is a specific reason you want to
compile from source, just install Nagios vai yum repository:

yum install nagios
yum install nagios-plugins

That will install everything you need to get going.


James Moseley




   
 "Anto Marky"  
  To 
   nagios-users@lists.sourceforge.net  
 01/20/2009 04:34   cc 
 AM
   Subject 
   [Nagios-users] hi   
   
   
   
   
   
   




Hi,

I am planning to monitor my website using nagios, I checked the nagios site
for any centos installation mannual but I was only able to find one for
fc6.I am confiused to whether to use yum install or get the source and
compile it? Is there any manual for installation of nagios on cnetos5?


Thanks and Regards




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-16 Thread jmoseley



Christian Iñiguez   wrote:

>Thank you.
>
>But I have neither firewall nor SELinux enabled. In deed for a moment
worked, but a couple of hours later it didn't work again.
>
>It's really weird.

Have you checked your DHCP logs?  Do you have enough leases available in
the subnet you would expect the Nagios server to be offered an address
from?  If your DHCP server doesn't hand out DHCP addresses to other
machines on that network (the same your Nagios server is on), for the ISC
DHCP daemon to even work, you still must define a subnet on that local
network in the DHCP config, even if you only have one DHCP address
available.

This isn't really a Nagios problem, but a problem with check_dhcp.  It
sounds like the plugin is setup with the appropriate permissions (owned by
root, setuid root, etc) and that there are no inbound/outbound firewalls or
SELinux issues to deal with.

Honestly, unless there is a configuration problem with DHCP, I can't think
of anything else.

James







--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with check_smtp plugin

2009-01-15 Thread jmoseley



"Kaplan, Andrew H."   wrote:

>Hi there --


>I recently installed Kyle O'Donnell's HP-UX plugins onto a system running
HP-UX 11i v1. All plugins that are in use
>appear to be running fine with one exception: check_smtp reports and
invalid hostname/address.


>I checked the arguments associated with the plugin and I manually ran the
following combinations:


>./check_smtp -H 
>./check_smtp -H 
>./check_smtp -H 
>./check_smtp --hostname=
>./check_smtp --hostname=
>./check_smtp --hostname=


>None of the above combinations worked. Does anyone have a solution to this
problem? Thanks.


I personally don't know anything about the plugin package you mention, but
have you tried using/installing the official Nagios plugins available at:
http://www.nagios.org/download/download.php


check_smtp works just fine:  check_smtp -H 

I assume you've tried running the plugin by itself vs. running it through
Nagios?  If the plugin by itself is throwing errors, you might want to
contact Kyle.

James


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley




Holger Weiss   wrote:

* jmose...@corp.xanadoo.com [2009-01-15 14:59]:
>> Holger Weiss   wrote:
>> * jmose...@corp.xanadoo.com [2009-01-15 13:06]:
>> >> 2. Have a DHCP relay statement on the router's interface your Nagios
server
>> >> connects to so it knows to which server to relay the DHCP request to
>>
>> >For such a setup, step (2) isn't necessary, as check_dhcp will mimic a
>> >DHCP relay if the "--unicast" option is specified.
>>
>> What I meant was you'd have to have an ip helper-address configured.

>But that's precisely what you don't need if you use check_dhcp's
>"--unicast" option :-)  If you configure an "ip helper-address" (as
>Cisco calls it), the router will relay local DHCP broadcast packets to
>the specified remote DHCP server.  "check_dhcp --unicast" creates the
>same sort of unicast packets such a relay would generate.

OK, I've got you now.

Back to the orginal topic.  Christian, another thing to check on the Nagios
server is if you have SELinux enabled.  That could definitely cause
problems with plugins that are SUID root.  If SELinux is enabled, disable
it and try the check_dhcp plugin again.

James



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley




Holger Weiss   wrote:


* jmose...@corp.xanadoo.com [2009-01-15 13:06]:

>> 2. Have a DHCP relay statement on the router's interface your Nagios
server
>> connects to so it knows to which server to relay the DHCP request to

>For such a setup, step (2) isn't necessary, as check_dhcp will mimic a
>DHCP relay if the "--unicast" option is specified.

What I meant was you'd have to have an ip helper-address configured.

James


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley




Kevin Keane  wrote:

>Christian, actually, your question prompted me to try it again. Turned
>out that it was the firewall software on my Nagios box that blocked the
>DHCP request. As soon as I turned it off, check_dhcp worked. I'm not yet
>sure which ports to open to make it work with the firewall on. So far, I
>tried ports 67 and 68 for both TCP and UDP, but that seems not to be
enough.

Kevin, that's a really good point.  Christian, do you have iptables running
on either the nagios or DHCP server boxes?

James


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley
   
 Christian Iñiguez 
 To 
   "Morris, Patrick"   
 01/15/2009 01:24  ,
 PMnagios-users@lists.sourceforge.net  
cc 
   
   Subject 
   Re: [Nagios-users] check_dhcp seems 
   not working 
   
   
   
   
   
   






Christian Iñiguez  wrote:

>Thanks but actually the plugin is setuid root, and as user root and user
nagios the outcome is the same =(

Christian, Patrick is correct, and something I forgot about.  The
check_dhcp plugin needs to be setuid, which you've indicated it is.

Can you try running check_dhcp directly from the Nagios server though?
With your setup, it doesn't make sense to use check_nrpe when you can query
the DHCP server directly.  And as I've said, I'm not sure you are going to
be able to run check_dhcp from the DHCP server itself, unless you have
multiple interfaces.


"Morris, Patrick"  wrote:


>>This one's come up a billion times or so on the list, but the most likely
cause of your problem is that the plugin needs to be setuid root.



James


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley


James Moseley




Christian Iñiguez   wrote:

>In deed both servers (the dhcp server and nagios server) are in the same
subnet and there is no firewall between them. From the nagios server I run
>check_nrpe!check_dhcp
>
>And in the side of dhcp server I run the command: check_dhcp -s
ip_dhcp_server -t 30
>
>Actually I'm running other services like check_load, check_procs, etc.
With no problems.
>
>Just check_dhcp is not working
>
>My dhcp server is a RHEL 5 with dhcp-3.0.5-3.el5

In my previous reply, I told you that what you are trying to do above will
*not* work.  Do not try and check your DHCP server from the Nagios server
using check_nrpe and running check_dhcp on the DHCP server itself.

Run check_dhcp directly from the Nagios server.

James





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_dhcp seems not working

2009-01-15 Thread jmoseley




Christian Iñiguez   wrote:

>Hi Everyone
>
>I have a linux server as dhcp server and it's working very well, and I'd
like to monitoring it with nrpe plugin and check_dhcp.>
>
>The problem here is the outcome of check_dhcp is always: CRITICAL: No
DHCPOFFERs were received. But the server is working alright.
>
>The command line is: check_dhcp -s serverip -t 30
>
>What am I doing wrong? Any suggest?
>
>Thanks in advance!

I have no idea which flavor of DHCP you are running (probably ISC's), but I
don't think you are going to be able to run check_dhcp from the DHCP server
itself.  The DHCP server will see an incoming requeset from itself and
probably block it.  Therefore, using the nrpe method of doing these checks
is a moot point.

If your Nagios server is on the same network as the DHCP server, just run
check_dhcp from the Nagios box.  If you're running Nagios on a different
network than the DHCP server and there is a firewall in between, you'll
probably have to do several things:

1. Open up a hole in the firewall to allow the Nagios server to request a
DHCP address from the DHCP server
2. Have a DHCP relay statement on the router's interface your Nagios server
connects to so it knows to which server to relay the DHCP request to
3. Setup a small DHCP subnet on the DHCP server in the same IP range as the
Nagios server so it can offer a valid IP address

There are probably other methods as well.

James





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Please help. Problem using check_nrpe and check_mailq

2009-01-15 Thread jmoseley




Sergio Ariel   wrote:

>I stopped Nagios first, and executed from Nagios Server:
>check_nrpe -H  -t 500 -c check_cola_correo
>
>and the result was the same (NRPE: Command timed out after 60 seconds)
>so, I don't think it's because a nagios.cfg's timeout definition.
>
>Please, what do you think about?

You need to adjust the timeout setting in nagios.cfg on the nagios server
AND adjusting the timeout setting (command_timeout=60) in the nrpe.cfg on
the Postfix server...  Those values will override anything you set in the
command line argument.

James



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Please help. Problem using check_nrpe and check_mailq

2009-01-14 Thread jmoseley




Sergio Ariel   wrote:


>I have installed NRPE to check a Postfix Server's mail queue.
>I have changed timeouts in order to obtain what I want.
>
>In Postfix Server I have declared in nrpe.cfg this:
>
>command[check_cola_correos]=/usr/local/nagios/libexec/check_mailq -w
>5000 -c 7000 -M postfix -t 450
>
>and when I run from Nagios Server this:
>check_nrpe -H  -t 500 -c check_cola_correo
>
>I obtain this error message:
>NRPE: Command timed out after 60 seconds
>
>What can I do?
>I don't know where is this timeout of 60 seconds.
>
>Thanks

Perhaps the 'service_check_timeout' setting in the main nagios.cfg file?

James



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Not sending alerts

2009-01-13 Thread jmoseley
That certainly seems to be a valid configuration.  Have you included all
your configs in the main nagios.cfg file so that they are all being read?
Barring that, do you have any service/host depencies setup?  What about
escalations?

If you have any dependency or escalation configs, I would disable them
first before doing any more troubleshooting.


James Moseley




   
 "Matt Nelson" 
To 
   nagios-users@lists.sourceforge.net  
 01/13/2009 04:11   cc 
 PM
   Subject 
   [Nagios-users] Not sending alerts   
   
   
   
   
   
   




Hello,

We seem to be having an issue with our alert notifications.  From what I've
determined the command 'notify-by-email' isn't even being called from
commands.cfg. I verified this by:
1)replacing the current command with a simple echo "test" > /tmp/test.
2)leaving the mail command in and checking my postfix log - which shows no
attempts being made at all.

I also don't see anything about sending alerts in my nagios.log/syslog
Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP
Availability;CRITICAL;HARD;2;Connection refused

I have the following configuration for this service:

# templates_services.cfg
define service{
namecritical-service
active_checks_enabled   1
passive_checks_enabled  1
parallelize_check   1
obsess_over_service 0
check_freshness 0
notifications_enabled   1
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
is_volatile 0
check_period24x7
max_check_attempts  2
normal_check_interval   2
retry_check_interval1
notification_optionsw,u,c,r
notification_interval   2
notification_period 24x7
register0
}

# services_social.cfg
define service {
use critical-service
host_name   mt-ubuntu
service_description SMTP Availability
contact_groups  individuals_group
check_command   check_smtp
  flap_detection_enabled  0
}

# t_host.cfg
define host {
 use no_icmp
 host_name   mt-ubuntu
 alias   mt-ubuntu
 address 10.2.23.23
 contact_groups  individuals_group
}

# individual_contacts.cfg
define contact{
contact_name  mt
alias   MT
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email   
}

define contactgroup{
contactgroup_name   individuals_group
alias   Individuals
members mt
}

# commands.cfg
# 'notify-by-email' command definition
define command{
  command_name  notify-by-email
  command_line  /usr/bin/printf "%b" "* NOCNAG
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
  }


Any assistance would be appreciated.

Matt
--

This SF.net email is spons

Re: [Nagios-users] Changing diskspace available from kilobytes to megabytes

2009-01-12 Thread jmoseley
The disk space units have nothing to do with Nagios, but with the output of
the particular plugin you are using.  The plugin 'check_disk', which comes
with the Nagios Plugins package, by default displays data in megabytes, but
you change the units with the proper argument.  It appears that plugin only
works with locally mounted filesytems.

There is another plugin called 'check_snmp_storage.pl' which allows you to
check diskspace of remote systems via SNMP.  It's units are in megabytes
only.  You could change this by editing the perl script, of course.

So, it all depends on the plugin you are using and whether or not the disk
space units are configurable.

I would suggest searching Google.  ;-)


James Moseley




   
 "Kaplan, Andrew   
 H."   

 01/12/2009 07:15   cc 
 PM
   Subject 
   [Nagios-users] Changing diskspace   
   available from kilobytes to 
   megabytes   
   
   
   
   
   
   




Hi there --


We currently have several Nagios 2.6, and will eventually deploy version
3.0.6 servers running on our network.
Currently diskspace availability is shown in kilobytes, but I would prefer
to have it displayed in megabytes.


Is it possible to configure either versions of Nagios to have the output in
megabytes? If so, what needs to be
done in order to accomplish this? Thanks.





The information in this e-mail is intended only for the person to whom it
is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.
--

This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Change Nagios email 'from' field

2009-01-12 Thread jmoseley
You'll need to edit the command definition of 'notify-by-email', etc.  The
default mail program used by Nagios, /bin/mail, does not allow one to set a
from address, nor do I believe there is an option to do so in a .mailrc
file, either.

In that case, you'd want to use sendmail, something like:

/usr/lib/sendmail -t -f "supp...@xyz.com"

There are probably 100 different ways to accomplish what you want, so
perhaps folks have some other examples.


James Moseley




   
 ChrisSerafin  
 To 
   nagios-users@lists.sourceforge.net  
 01/12/2009 11:15   cc 
 AM
   Subject 
   [Nagios-users] Change Nagios email  
   'from' field
   
   
   
   
   
   




I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the
'from' field when receiving emails. Currently I get one email from
'nag...@ubuntu-nagios' which is not a real email address at all. I would
like to use 'supp...@xyz.com' so that clients can respond to our support
team with a simple reply-all email. Also, I have multiple emails sent
when one alert goes out and I only see myself as the TO: field, which
means that each alert email is being sent individually and not in one
single email. Is there any way to change that as well? My main concern
is to change the FROM field thoughthanks..

Chris Serafin
ch...@chrisserafin.com




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Elevated alerts

2009-01-12 Thread jmoseley
Grant, you've got me really confused now.  For starters, I would strongly
encourage you to go back and read the documentation on object defitions.
It may be that by default notifications are enabled and that notification
options are also set to something as default.

With that said, since it appears the service definition below doesn't
contain a reference to a global service template,  I don't see where you
have told the 'check remote zombie processes' service who to send alerts
to.  You either need a contacts or contacts_group argument to define who
the service should send alerts to, something like:

contactsglowe1

How are your other service definitions setup?  If somehow email is working
for the 'email' contact, but not for the 'paging' contact, then the contact
macro you have set up as definied by the contact-by-pager definition is
most likely the culprit.  You're going to have to start with a known
working contact macro and edit it until you get it working.  Start by
sending both critical and warning alerts to the working contact., then
create new contacts with different alert options making sure you add those
contacts to the contacts definition of the service definition.

Lastly, have you verified your config?

nagios -v ///nagios.cfg

This will tell you if your config is generally OK.



James Moseley




   
 Grant Lowe
To 
   jmose...@corp.xanadoo.com   
 01/12/2009 10:55   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




James,

I thought I was trying to make this config as simple as possible.  I'm only
monitoring five UNIX boxes right now.  Hopefully going to expand that soon
with Nagios :->


The hosts I'm monitoring didn't have any notification options, but they do
now.  All six.  This is what I have for the zombie processes:

define service{
host_name   blarney,frogmore,katz,dunvegan,redfort
hostgroup_name  solaris-servers
service_description Check Remote Zombie Processes
check_command   check_nrpe!check_zombie_procs
max_check_attempts  5
notification_interval   60
check_period24x7
notification_optionsw,u,c,r,f,s
}

I don't have services disabled or enabled right now in any of the related
service definitions (like the one above).  Do I need to explicitly turn
them on?  I thought they were already on, considering I'm getting
notifications already through email.  Please advise.  Thanks.









--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Elevated alerts

2009-01-12 Thread jmoseley
Also, do you have any escalations or service dependencies that could be
blocking the notification?


James Moseley




   
 James 
 Moseley/BTV/PEGAS 
 US To 
   Grant Lowe 
 01/12/2009 10:06   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   (Document link: James Moseley)  
   
   
   
   
   
   







Grant Lowe  wrote:

>Hi James,
>
>One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:>
>
>[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
>[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
>[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
>[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
>[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
>[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes
>
>Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Elevated alerts

2009-01-12 Thread jmoseley




Grant Lowe  wrote:

>Hi James,
>
>One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:>
>
>[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
>[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
>[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
>[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
>[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
>[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes
>
>Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James




--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-12 Thread jmoseley





Marc Powell  wrote:



>It means "don't apply the service to this host if it's in one of the
>named hostgroups." It's not documented quite like the OP's use but I
>expect it will work.
>
>See 'Excluding Hosts' at
http://nagios.sourceforge.net/docs/3_0/objecttricks.html

Good, I learned something new.  I still think it's a great idea, though, to
simplify the configuration as much as possible when dealing with a single
host that is having problems.  ;-)

James


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-12 Thread jmoseley
I checked the object defintion documentation before replying and didn't
find any such reference that you could exclude hosts out of host or service
group definitions by using a 'bang' symbol.  I thought a bang (!) was used
only to separate arguments in check_commands.

Even if this feature is legitimate, why make the configuration more
complex?  Get rid of the host groups in the service definitions and include
only those hosts you want checked.  Basically, make the configuration as
simple as possible to find and fix the problem with the host that has a
service check stuck in pending.  Then add back in the more complex
configuration options (like service dependencies) one at a time.

My $.02.


James Moseley




   
 Robert Yeo
   
To 
 01/12/2009 09:33 
cc 
   
   Subject 
   Re: [Nagios-users] check_ping stuck 
   on 'PENDING'
   
   
   
   
   
   





The ! is to remove servers that have been included already in the line
above
in the hostgroup_name, that way I do not need to spell them all out
individually or create different groups if you have one server that doesn't
fit with everything.  Basically I do not want to monitor Check CPU Load on
every server in the Nmw_Servers group, so I exclude them on the next line.
I thought this was OK to do this?

I will remove the host_name in case the ! is making things weird and my
service dependencies as well and let you know what happens.

Thanks for the help!





--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-12 Thread jmoseley
First, what's with the '!' preceding many of your hosts names?   Second, in
your service and service dependency configs, why are you defining both
hosts and hostgroups?  For example:

define service{
hostgroup_nameNmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art

_104_014_FilmServer,!Nmw_104_092_Nagios3

service_descriptionCheck CPU Load
usemedium-high-priority-service
check_command  check_nrpe!check_load
}

I'd start with removing the host_name portion of the config and including
'Dgh_Servers' in the hostgroup_name stanza.  Otherwise, you've got a lot of
overkill...

Lastly, get rid of the service dependencies until you have this sorted out
and working.



James Moseley




   
 Robert Yeo
   
To 
 01/12/2009 08:57 
cc 
   
   Subject 
   Re: [Nagios-users] check_ping stuck 
   on 'PENDING'
   
   
   
   
   
   




The operation I am employing is Check CPU Load but the symptoms were the
same as Michiel's check ping.

Hopefully all the information is there now.

Thanks!

Rob Yeo

# Finearts Nagios 2 Server
define host{

host_nameDgh_000_012_FairUse
aliasFinearts Nagios 2 Server
address  155.xxx.xxx.xxx

use  server-high-priority
hostgroups   Dgh_Servers
parents  Dgh_Switch_02
icon_image   mac40.png
statusmap_image  mac40.gd2
}

# '003 DGH Servers' server group definition
define hostgroup{
hostgroup_name   Dgh_Servers
aliasDGH_SERVERS
}

# 'check_nrpe' command definition
define command {
command_name check_nrpe
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u
}'

define service{
hostgroup_nameNmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art


_104_014_FilmServer,!Nmw_104_092_Nagios3

service_descriptionCheck CPU Load
usemedium-high-priority-service
check_command  check_nrpe!check_load
}

define servicedependency{
hostgroup_name  Nmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F

ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3

service_description Check NRPE
dependent_hostgroup_nameNmw_Servers,Wi_Servers
dependent_host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F

ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3
dependent_service_descriptionCheck CPU Load,Check Free
Space,Current
Users,Total Processes,Zombie Processes

execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

define host{
namegeneric-host
notifications_enabled   1
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
register0
}

define host{
nameserver-high-priority
use generic-host
check_period24x7
check_interval  2
max_check_attempts  2
check_command   check-host-alive
notification_period 24x7
notification_interval   120
notification_optionsd,r,f
contact_groups  nagiosadmin
register0
}


define service{
namemedium-hi

Re: [Nagios-users] send warnings to one group and critical to another

2009-01-12 Thread jmoseley
Shai, look in the mailing list archives - as late as yesterday, there is a
thread that already covers your exact scenario.


James Moseley




   
 Shai  
   To 
   nagios-users@lists.sourceforge.net  
 01/12/2009 09:11   cc 
 AM
   Subject 
   Re: [Nagios-users] send warnings to 
   one group and critical to   
   another 
   
   
   
   
   
   




ping

On Mon, Jan 5, 2009 at 9:28 AM, Shai  wrote:
  Hi,

  I have two different user groups.
  I have a service which is currently sending both WARNING and CRITICAL
  notifications to both.
  I would like WARNING and CRITICAL to be sent to group A and CRITICAL only
  to group B.

  How can I accomplish this?

  Shai
--

Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Elevated alerts

2009-01-11 Thread jmoseley
You've got it backwards below.  In the original email, you wanted only
warnings to go to email and warnings and critical alerts to go the 'pager'
address.  Remove the 'c' from the service notification options for the
email config and add a 'w' for the paging config.


James Moseley




   
 Grant Lowe
To 
   jmose...@corp.xanadoo.com   
 01/11/2009 06:21   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Hi James,

I think I understand it a little bit better.  As far as numerical users, do
you mean when a page is sent to a paging service, somehow, the user name is
converted to, a numerical user that the paging service uses?  That makes
sense I guess because you have to have a phone number to call for the page.

As far as the notification tags, do these look correct, with what I'm
trying to do?

define contact{
# Email config
...
host_notification_options d,u,r,f,s
service_notification_options  w,c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
...
}

And the other:

define contact{
# Paging config
...
host_notification_options d,u,r,f,s
service_notification_options  c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commandsnotify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}



Thanks for hanging in there with me!



- Original Message 
From: "jmose...@corp.xanadoo.com" 
To: Grant Lowe 
Cc: nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 5:18:29 PM
Subject: Re: [Nagios-users] Elevated alerts

In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pagergl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the notification is not sent.


James Moseley





 Grant Lowe
To
  jmose...@corp.xanadoo.com
 01/10/2009 03:01   cc
 PMnagios-users@lists.sourceforge.net
   Subject
   Re: [Nagios-users] Elevated alerts












define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
email 

Re: [Nagios-users] Elevated alerts

2009-01-10 Thread jmoseley
In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pager gl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the notification is not sent.


James Moseley




   
 Grant Lowe
To 
   jmose...@corp.xanadoo.com   
 01/10/2009 03:01   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   






define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
email gl...@pager.company.com
can_submit_commands   1
retain_status_information 0
retain_nonstatus_information  0
# Added pager line 01/09/2009
pager gl...@pager.company.com
}






--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-09 Thread jmoseley
I don't see a service definition for 'server-high-priority', nor do I see
where you are employing a check_ping operation, nor have you included the
check_period config for 24x7.


James Moseley




   
 Robert Yeo
   
To 
 01/09/2009 05:13  nagios-users Mailinglist
 PM   
cc 
   
   Subject 
   Re: [Nagios-users] check_ping stuck 
   on 'PENDING'
   
   
   
   
   
   





This is an example config for one of the services.  Please let me know if I
am missing any info.

# Finearts Nagios 2 Server
define host{

host_nameDgh_000_012_FairUse
aliasFinearts Nagios 2 Server (fairuse.music.utah.edu)
address  155.97.55.12

use  server-high-priority
hostgroups   Dgh_Servers
parents  Dgh_Switch_02
icon_image   mac40.png
statusmap_image  mac40.gd2
}

# '003 DGH Servers' server group definition
define hostgroup{
hostgroup_name   Dgh_Servers
aliasDGH_SERVERS
}

# 'check_nrpe' command definition
define command {
command_name check_nrpe
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u
}'

define service{
hostgroup_nameNmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art

_104_014_FilmServer,!Nmw_104_092_Nagios3

service_descriptionCheck CPU Load
usemedium-high-priority-service
check_command  check_nrpe!check_load
}

define service{
namemedium-high-priority-service
use generic-service
check_period24x7
max_check_attempts  5
normal_check_interval   5
retry_check_interval2
 contact_groups nagiosadmin
notification_optionsc,r,f
notification_interval   180
notification_period extendedworkhours
register0
}

define service{
namegeneric-service
active_checks_enabled   1
passive_checks_enabled  1
parallelize_check   1
obsess_over_service 0
check_freshness 0
notifications_enabled   1
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
is_volatile 0
register0
}

# 'extendedworkhours' timeperiod definition
define timeperiod{
timeperiod_nameextendedworkhours
alias   Extended Work Hours
sunday  10:00-22:00
monday  07:00-22:00
tuesday 07:00-22:00
wednesday   07:00-22:00
thursday07:00-22:00
friday  07:00-22:00
saturday10:00-22:00
}

Nagios 3.0.6 on 10.4.11 OSX.

The service check is stuck in pending for the DGH server, and is returning
fine for 2 of the NMW servers, but not all of them.

Thanks,

Rob Yeo

On 1/9/09 4:04 PM, "Marc Powell"  wrote:

>
> On Jan 9, 2009, at 4:48 PM, 
> > wrote:
>
>> As per the subject... Nagios 3.0.6 and it happens both to lan and
>> external servers.
>
>> As ping¹s a very basic check and as far as I can see everything
>> should work normally, right now I¹m stumped. Any idea what's going
>> on here?
>
> Actual config information is necessary otherwise we're just guessing
> in the dark. Nagios doesn't think it's supposed to perform a check. Is
> the timeperiod right?
>
> host definition, service definition (and templates for both if used)
> and timeperiod definition would be a good start.
>
> --
> M

Re: [Nagios-users] Elevated alerts

2009-01-09 Thread jmoseley
If the email address begins with a number, then use $CONTACTPAGER$ string.
I don't know exactly where those variables are defined, but when sending
email to an address that begins with a number (or perhaps contains an
all-numeric string before the @), I've found that the notification is not
sent if using a command definition that uses CONTACTEMAIL.

In the contacts config, use command definitions that have CONTACTEMAIL when
emailing a 'normal' email address.  Use CONTACTPAGER when emailing a phone
or pager email address where the user string is numeric.

I'm sure the difference is explained in the documentation or mailling list
archives.


James Moseley




   
 Grant Lowe
To 
   jmose...@corp.xanadoo.com   
 01/09/2009 11:30   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Ok.  That helps.  I'll replace the @MAIL_PROG@ with /bin/mail.  Then where
is $CONTACTEMAIL$ defined, so I can add a new variable which I think will
be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command
definitions?



--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Elevated alerts

2009-01-09 Thread jmoseley
You wouldn't need to modify the notify-by-pager command you already have
setup.  After all, you are still sending mail to an email address.  I don't
know why your command definitions have @mail_p...@.  That must be defined
someplace else in another config file if it's working.  If that command
isn't working, simply replace that variable string with /bin/mail.


James Moseley




   
 Grant Lowe
To 
   jmose...@corp.xanadoo.com   
 01/09/2009 10:52   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Thank you for the response.  I like your idea.  I think I need to embellish
it some.  A couple of questions about it.

In our environment, I think I only have to make one change.  Here's what
currently happens.  A regular email goes to u...@company.com, but pages go
to u...@pager.company.com.  So I thought I would setup the paging like this
(at least for starters):

The notify-by-email works just fine.  Don't want to mess with this one.

# 'notify-by-email' command definition
define command{
   command_namenotify-by-email
   command_line/usr/bin/printf "%b" "* Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}

Here's a notfiy-by-pager that I would like to use.  Just a clone of the
notify-by-email, but modified for pages.

# 'notify-by-pager' command definition
define command{
   command_namenotify-by-pager
   command_line/usr/bin/printf "%b" "* Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}

How would I modify notify-by-pager to send to the "u...@pager.company.com"
we use?  I'm
asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in
the notify-host-by-email and notify-service-by-email definitions.  I think
I would then use the two different contacts for the same person as you said
in your email.

Does this sound like reasonable?

- Original Message 

From: "jmose...@corp.xanadoo.com" 
To: Grant Lowe 
Cc: nagios-users@lists.sourceforge.net
Sent: Thursday, January 8, 2009 4:33:30 PM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe  wrote:

>Hi All,
>
>I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
>gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

service_notification_optionsw,u,,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

In the *critical* contact entry, you'd have:

service_notification_optionsu,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-epager
host_notification_commands  host-notify-by-epager
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-

Re: [Nagios-users] Elevated alerts

2009-01-08 Thread jmoseley




Grant Lowe  wrote:

>Hi All,
>
>I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
>gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

service_notification_optionsw,u,,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

In the *critical* contact entry, you'd have:

service_notification_optionsu,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-epager
host_notification_commands  host-notify-by-epager
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

Then you'd make both contacts the member of the same contact group.  In the
above example, when a service goes to warning state, the contact would be
sent an email only.  When the service goes to critical, the contact would
get both an email and a pager/phone alert.  In the above scenario, the
contact would get duplicate emails for unreachable and recovery states, so
you may want to adjust that to your needs.


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] install

2009-01-06 Thread jmoseley




nadia kheffache   wrote:

>Hello,
>
>I want to install nagios in /usr/local/nagios/  with command group nagcmd,
but i dont know the real syntax.
>in the document whe have ./configure --with-command-group=nagcm, so wante
to change the $install_dir like:
>
>. / configure - prefix = / usr / local / nagios, but I do not know how i
do
>
>thank you for your help

By default, it installs in /usr/local/nagios - so you shouldn't have to do
anything.  There are other prefix arguments as well.  Look at the configure
file in the source to see what other arguments exists.

But for the above, it would be: ./configure -prefix=/usr/local

James



--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Return code of 141 is out of bounds - SMTP Monitor

2009-01-06 Thread jmoseley




Duane Hill   wrote:


>Thanks for clearing that up. I was getting the commandline parameters
>confused with the way Nagios is configured within.

You're welcome.

James



--
___
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] Email priority

2009-01-06 Thread jmoseley




>Is there a way to define in Nagios to send email alerts with high or
>low priority notification?  Several of our users want to be able to
>set their Blackberries to alert them a different way if a high
>priority email comes in, rather than just a regular email.
>
>Layne Meier

Not that I am aware of, no.

James



--
___
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 141 is out of bounds - SMTP Monitor

2009-01-05 Thread jmoseley
First, the syntax of the check_command should be:

check_smtp!25!60

And for that to work, the entry in your checkcommands.cfg would look like:

# 'check_smtp' command definition
define command{
command_namecheck_smtp
command_line$USER1$/check_smtp -H $HOSTADDRESS$ -p $ARG1$ -t
$ARG2$
}


James Moseley




   
 Duane Hill
 To 
   Nagios-users@lists.sourceforge.net  
 01/05/2009 10:31   cc 
 PM
   Subject 
   [Nagios-users] Return code of 141   
 Please respond to is out of bounds - SMTP Monitor 
 d.h...@yournetplu 
   s.com   
   
   
   
   




Every once in a while I will get a critical alert stating:

 Notification Type: PROBLEM

 Service: SMTP
 Host: Secondary Spam Filter
 Address: 192.168.1.50
 State: CRITICAL

 Date/Time: Tue Jan 6 00:43:01 UTC 2009

 Additional Info:

 (Return code of 141 is out of bounds)

I have the SMTP service defined as such:

 define service {   ; smtp port 25
 useynp-services-duane
 host_name  sec_spam_filt
 service_descriptionSMTP
 check_command  check_smtp!-p 25 -t 60
 }

I've checked list archives and have not found anything that closely
resembles the issue at hand.

What should I be looking for to correct this? Perhaps this is a FreeBSD
port issue that needs to be reported to the port maintainer.

Nagios version is v3.0.5 running on FreeBSD v6.3.

-d

--

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios 3.x spews debug output on configuration verify on RHEL3 systems

2009-01-05 Thread jmoseley
This same issue was posted on the users list back in March, but didn't
generate any interest.  Essentially, the problem doesn't exist on RHEL 4 or
5 systems and shows up only when Nagios is compiled with ePN support.

On RHEL3, when verifying configuration, I get:

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

LEN: 79, END: 77,
BUF=##
BUFNOW:
##
LEN: 2, END: 0, BUF=#
BUFNOW: #
LEN: 51, END: 49, BUF=# NAGIOS.CFG - Sample Main Config File for Nagios
BUFNOW: # NAGIOS.CFG - Sample Main Config File for Nagios
*
*
*

The original poster posted a patch that seemed to fix the issue:

include/epn_nagios.h

   #include 
++ #undef DEBUG
   #undef ctime/* don't need perl's threaded version */
   #undef printf   /* can't use perl's printf until initialized */

Not sure if this works...

Anyone have any insight?

Thanks,


James Moseley



--
___
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] Setting up NRPE on HP UX

2009-01-05 Thread jmoseley
Good documentation can be found at:

http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

Basically, you have to install NRPE on the host you want monitored *and*
any plugins that NRPE daemon on that host will call.  If you want to
monitor things specific to HP UX, then you'll have to write custom plugins.
You will also have to configure nrpe.cfg on the monitored host in order to
define check commands, which Nagios hosts(s) are allowed to talk to the
NRPE daemon, etc.

Then you have to install the check_nrpe plugin on the Nagios host doing the
monitoring.

Next, in the services config on the Nagios host, you have to define that
you are checking a particular service via NRPE.  For example:

check_command   check_nrpe!!check_nagios

That tells Nagios that you want to check host 'host.abc.com' via NRPE and
that the NRPE daemon on remote host.abc.com should call the check_nagios
plugin (in order to see if Nagios is running on the remote host).

This should get you started...


James Moseley




   
 Christian Iñiguez 
 To 
   nagios-users@lists.sourceforge.net  
 01/05/2009 11:13   cc 
 AM
   Subject 
   [Nagios-users] Setting up NRPE on   
   HP UX   
   
   
   
   
   
   




Hi All!

I have 2 machines with Unix HP UX, and I'd like to monitoring
them installing nrpe, but I haven't found documentation or how to's about
it.

On Linux plataform is working very well, but it's a kind of difficult to do
it on UNIX (HP UX)

Does any body know how can perform this?

Thanks in advance


  ¡Todo sobre Amor y Sexo!
La guía completa para tu vida en Mujer de Hoy.
http://mx.mujer.yahoo.com/

--

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map

2009-01-04 Thread jmoseley
FYI, compiled Nagios 3.0.6 from source against the GD libraries that are
available via the RHEL5/CentOS 5 repository.  This is GD releaes 2.0.33.  I
still have the same problem with images being displayed on the status map.
Wondering if this is a problem with GD packages, I complied GD 2.0.35 from
source and then recompiled Nagios against the new GD 2.0.35 libraries.
Still no dice.

There does not appear to be a problem with my Nagios configuration and this
worked flawlessly in Nagios 2.8 and 2.9.  The images also display correctly
when viewing the 3D status map.




James Moseley




   
 Jon Angliss   
  
To 
 01/02/2009 12:03  nagios-users@lists.sourceforge.net  
 AM cc 
   
   Subject 
   Re: [Nagios-users] icons not
   displaying on Nagios 3.0.6 status   
   map 
   
   
   
   
   
   




On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote:

>
>Been using Nagios 2.x for years and never had this problem.  Just upgraded
>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems
>to work fine, except that icons do not display on the status map.  I
>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc.
>The icons display just fine in the host detail, hostgroup overview, etc.
>Yes, per upgrade instructions, this extended host info has been moved into
>the hosts config.  Sample looks like:
>
>icon_image  firewall_router.png
>vrml_image  firewall_router.png
>statusmap_image firewall_router.gd2
>2d_coords   100,200
>
>Attached is screen shot.  Anyone else seen this?

You probably don't have the related GD libraries installed that were
used to build the RPM.  All the other locations are simply links to
the image (html ), whilst the images in the status maps are
imported using the GD libraries if I remember correctly.

--
Jon Angliss




--
___
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] icons not displaying on Nagios 3.0.6 status map

2009-01-02 Thread jmoseley
   
 Jon Angliss   
  
To 
 01/02/2009 01:12  nagios-users@lists.sourceforge.net  
 PM cc 
   
   Subject 
   Re: [Nagios-users] icons not
   displaying on Nagios 3.0.6 status   
   map 
   
   
   
   
   
   








On Fri, 2 Jan 2009 12:10:20 -0600, jmose...@corp.xanadoo.com wrote:

>

> Jon Angliss

> 

>To

> 01/02/2009 12:03  nagios-users@lists.sourceforge.net

> AM cc

>

>   Subject

>   Re: [Nagios-users] icons not

>   displaying on Nagios 3.0.6 status

>   map

>
>On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote:
>
>
>>>Been using Nagios 2.x for years and never had this problem.  Just
upgraded
>>>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything
seems
>>>to work fine, except that icons do not display on the status map.  I
>>>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc.
>>>The icons display just fine in the host detail, hostgroup overview, etc.
>>>Yes, per upgrade instructions, this extended host info has been moved
into
>>>the hosts config.  Sample looks like:
>>>
>>>icon_image  firewall_router.png
>>>vrml_image  firewall_router.png
>>>statusmap_image firewall_router.gd2
>>>2d_coords   100,200
>>>
>>>Attached is screen shot.  Anyone else seen this?

>>You probably don't have the related GD libraries installed that were
>>used to build the RPM.  All the other locations are simply links to
>>the image (html ), whilst the images in the status maps are
>>imported using the GD libraries if I remember correctly.

>I thought of this myself.  The odd thing is that the status map function
in
>the 2.9 Nagios package produced by the same repository maintainer worked
>just fine with the current installed GD library, which is 2.0.33.  That GD
>library was not upgraded prior to the Nagios upgrade.  If no one else has
>seen this same problem, then I'll contact the repository maintainer.

-You could see what's different in the statusmap.cgi file using ldd to
-see what it's mapped against?
-
-  ldd statusmap.cgi
-
-You may find a missing library.  Also, you may not have upgraded your
-GD libraries, but if the package maintainer did for some reason, there
-might be conflicts there.
---
-Jon Angliss

Thank's for the suggestions.  No missing libraries.  At this point, I am
assuming that the GD libraries the maintainer used when building the rpm
conflict with the latest GD library provided by CentOS.

James




--
___
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] icons not displaying on Nagios 3.0.6 status map

2009-01-02 Thread jmoseley
   
 Jon Angliss   
  
To 
 01/02/2009 12:03  nagios-users@lists.sourceforge.net  
 AM cc 
   
   Subject 
   Re: [Nagios-users] icons not
   displaying on Nagios 3.0.6 status   
   map 
   
   
   
   
   
   







On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote:


>>Been using Nagios 2.x for years and never had this problem.  Just
upgraded
>>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything
seems
>>to work fine, except that icons do not display on the status map.  I
>>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc.
>>The icons display just fine in the host detail, hostgroup overview, etc.
>>Yes, per upgrade instructions, this extended host info has been moved
into
>>the hosts config.  Sample looks like:
>>
>>icon_image  firewall_router.png
>>vrml_image  firewall_router.png
>>statusmap_image firewall_router.gd2
>>2d_coords   100,200
>>
>>Attached is screen shot.  Anyone else seen this?

>You probably don't have the related GD libraries installed that were
>used to build the RPM.  All the other locations are simply links to
>the image (html ), whilst the images in the status maps are
>imported using the GD libraries if I remember correctly.
>
>--
>Jon Angliss

I thought of this myself.  The odd thing is that the status map function in
the 2.9 Nagios package produced by the same repository maintainer worked
just fine with the current installed GD library, which is 2.0.33.  That GD
library was not upgraded prior to the Nagios upgrade.  If no one else has
seen this same problem, then I'll contact the repository maintainer.

FYI, this is on a CentOS 5 system using the nagios-3.0.6-1.el5.rf DAG Apt
rpm.

Thanks,

James





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