Re: [Nagios-users] HTTP and Web Form based Auth

2009-05-28 Thread Petersen, Mark
I use webinject - http://www.webinject.org/plugin.html.

Mark

> -Original Message-
> From: Aaron McKinnon [mailto:mckin...@caltech.edu]
> Sent: Thursday, May 28, 2009 11:22 AM
> To: Nagios Users Mailinglist
> Subject: [Nagios-users] HTTP and Web Form based Auth
> 
> How are folks checking site functionality with sites that use auth
> *other* than basic (apache) auth?
> I didn't find any plugins that support populating forms and posting.
> 
> Thanks.
> 
> -Aaron
> 
>
---
> ---
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity
> professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like
> Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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] Nagios Looking Glass 1.06

2007-08-01 Thread Petersen, Mark
I'm getting the following error.

The checksum I received with the feed is invalid compared to my local
check. Network problems may be causing packet loss.

Hint: Try increasing PHP's 'memory_limit' and/or 'max_execution_time'
settings in php.ini on the polling server, and restarting the web
service.

I'm trying to run nlg on a client and connect to the nagios server.  I
tried to login to artic (bug tracking), but could not get there.  Since
this claims to be a checksum error, I'm not really sure where to begin.
I have no significant network errors in general.  I have set the
memory_limit to 1024MB and max_execution_timeout to 60s.  The error is
returned well before 60s.

Has anyone else run into this?  Nagios 2.5 on Ubuntu 6.10.

mark



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.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] On-Call Rotation

2007-12-21 Thread Petersen, Mark
This pretty useful, I didn't know once could do this and would like to.
However, I run nagios 2 and it appears this is only available on nagios
3, are you using nagios 3?

If so, maybe it's a bug in this new feature?  Also, this looks like it
would only do Dec 24, 25, then Jan 7,8, then Jan 14,15 (what you want?)
but I may be misreading the documentation.



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Robert Ferguson
> Sent: Friday, December 21, 2007 12:57 PM
> To: [EMAIL PROTECTED]; Steve T
> Cc: Nathan Blackham; nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] On-Call Rotation
> 
> Kind of on the same subject, I am trying to setup a rotation and
nagios
> doesn't like the date setup.  I have set it up just as the book says
for
> alternating week rotation for 2 people.  I am coping in a portion of
my
> directives to assist in illustrating.
> 
> # "Robert On-Call" timeperiod definition
> define timeperiod{
>   timeperiod_name robert-on-call
>   alias   Robert On Call
>   2007-12-24 / 14 08:00-2400
>   2007-12-25 / 14 00:00-2400
> 
> }
> 
> Of course this goes on for a week and the second person has a similar
> schedule one week later.  The error I am getting when doing my cfg
check
> is:
>   Error: Invalid timeperiod object directive '2007-12-24'
>   Error: Could not add object property in
> file'/usr/local/nagios/etc/timeperiods.cfg' on line 187
> 
> Line 187 is the first place this time shows up.  Any thoughts?
> 
> 
> Thanks,
> 
> Robert


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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_by_ssh against localhost segfaults?

2008-01-03 Thread Petersen, Mark
I'm trying to run check_by_ssh against my localhost (for consistency
purposes.)  I'm using forced command execution with ssh:

`cat /home/nagios/.ssh/authorized_keys2`
command="/home/nagios/bin/check_by_ssh.sh" ssh-dss B3N
nagios_check_by_ssh

/usr/lib/nagios/plugins/check_by_ssh -i /etc/nagios2/keys/check_by_ssh
-l nagios -H localhost -C 'Disk_Space -m /root -w 15% -c 10%' -t 20

This check works fine (same authorized_keys, same script) on remote
hosts, but segfaults against localhost.

Localhost kernel: [5081242.311916] check_by_ssh[15109]: segfault at
 rip 2b68aaa130f0 rsp 7fff00450888 error 4

As the nagios user I run:
`ssh -v -i /etc/nagios2/keys/check_by_ssh localhost 'Disk_Space -m /root
-w 15% -c 10%'`


debug1: read PEM private key done: type DSA
debug1: Remote: Forced command: /home/nagios/bin/check_by_ssh.sh
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: Disk_Space -m /root -w 15% -c 10%
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1

`ssh -v -i /etc/nagios2/keys/check_by_ssh otherhost 'Disk_Space -m /root
-w 15% -c 10%'`

debug1: read PEM private key done: type DSA
debug1: Remote: Forced command: /home/nagios/bin/check_by_ssh.sh
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: Disk_Space -m /root -w 15% -c 10%
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
DISK OK - free space: / 320 MB (67% inode=96%);| /=159MB;407;431;96;479
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0

The only difference is the output from check_by_ssh.sh on the remote
host (and an exit code.)  Since the check_by_ssh.sh (/home/nagios
actually) was rsynced from localhost to otherhost it seems it should be
ok.  If I export SSH_ORIGINAL_COMMAND and run check_by_ssh.sh on
localhost it works ok, so I don't think it's the script.

Nagios is reporting status as "(Return code of 139 is out of bounds)."
This is on Ubuntu 6.10, all versions of everything (ssh client, server,
nagios-plugins, etc.) are the same.

Any ideas, I'm kind of at a loss...

mark

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Acking an alert by replying to an email

2008-01-03 Thread Petersen, Mark
I believe most people use procmail and submit external commands through
procmail rules.

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Blackham
Sent: Thursday, January 03, 2008 4:22 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Acking an alert by replying to an email

 

We use email to send all our alerts out, whether it goes to our phones
over SMS or to our emails.  Is there a script or an addon, that I can
have nagios monitor the email box that sends out the alerts to watch for
replies and ACK alerts based upon a reply? 

Nathan

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Acking an alert by replying to an email

2008-01-04 Thread Petersen, Mark
I think the easiest solution would be to have Lotus Notes forward mail
for [EMAIL PROTECTED] (or whatever from address you use) to
[EMAIL PROTECTED] and run procmail on the nagios server.

Is this compatible with your setup?  I don't really know much about
Notes, but I assume it's not running it on the nagios box.

mark


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Checking MediaWiki Health?

2008-01-08 Thread Petersen, Mark
I'd just use webinject to login, check whatever (query?) and logout.
http://www.webinject.org/

You could also write a little PHP page/script on that server that puts
the status of everything and do a check_http on that page, looking for
"Everything OK" or similar text on the page.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Brian A. Seklecki
> Sent: Tuesday, January 08, 2008 11:52 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Checking MediaWiki Health?
> 
> All:
> 
> Does anyone have a MW addon or Nagios Check (maybe utilizes the SOAP
XML
> API) that queries the application-level health of MediaWiki.
> 
> Something above & beyond simple check_http.  Validate the backend
> database functionality etc..
> 
> A simple wiki-side addon could use HTTP return codes and relay
> performance data (count the articles, users, etc.)
> 
> Thoughts? Discussion?
> 
> ~BAS
> 
> 
> 
>

-
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
la
> ce
> ___
> 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's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] DISK UNKNOWN

2008-01-10 Thread Petersen, Mark
What if you make it:

 

command[check_disk4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10%
-p /vservers/fred/data

 

I can only get check_disk to work on mounted disks  using -p to point to
LVM disks, but this is mounted, right? 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jake
Solid
Sent: Thursday, January 10, 2008 3:16 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] DISK UNKNOWN

 

Yes, its the real config.

For disk3 I have the following on nrpe.cfg

command[check_disk3]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10%
-p /dev/mapper/VolGroup00-LogVol01

That filesystem is mounted on /var.

/dev/mapper/VolGroup00-LogVol01   16G  957M   14G   7% /var

Nagios is able to monitor /dev/mapper/VolGroup00-LogVol01  with no
problems. 

The one I was having issues with is:
command[check_disk4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10%
-p /dev/mapper/VolGroup01-fredVol00

Which is mounted on 
/dev/mapper/VolGroup01-fredVol00 119G  107G  5.8G  95%
/vservers/fred/data



On Jan 10, 2008 4:04 PM, Marc Powell <[EMAIL PROTECTED]> wrote: 



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jake Solid

> Sent: Thursday, January 10, 2008 2:58 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] DISK UNKNOWN 
>

> sorry for the confusion. I usually change some info on the information
i
> provide via email due to security reasons.
>
> The real mount point is the following: 
>
> /dev/mapper/VolGroup01-fredVol
> 00
>   119G  107G  5.8G  95% /vservers/fred/data
>

Please reply in context. You're already making it difficult enough for 
people to help by masking required information badly.


>
>   command[check_disk3]=/usr/lib64/nagios/plugins/check_disk -w 20%
-c
> 10%
>   -p /dev/mapper/VolGroup00-LogVol01 

Is this made up or is it the real config? It's wrong if it's real as
indicated previously.


--
Marc



- 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
lace
___
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's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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 Looking Glass

2008-01-15 Thread Petersen, Mark
You could run nagios or nagios looking glass on different ports with
different versions of apache.  If you want both services on port 80 I
believe you would have to setup nagios to work with apache2.

 

mark

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mariusz
Stakowski
Sent: Tuesday, January 15, 2008 3:34 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Looking Glass

 


Hello list, 

I have instaled Nagios 2.9 on my Slackware machine with
Apache 1.3. I would like to install Nagios Lookin Glass too. But it
requires Apache 2. Am I forced to  install Apache 2 and reconfigure
Nagios to be able to use Nagios Looking Glass ? 

Thank you for a help. 

Best regards

Mariusz



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Sun Monitoring

2008-01-29 Thread Petersen, Mark
While Sun might have a way to monitor server health, I use
check_logfiles
(http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1%5Bp_view
%5D=538) to monitor the logs for errors more than anything.  I have
checks for power supplies, fans, SAN mounts, memory, cpu and SCSI
errors, etc. setup to monitor the server health.  I also use
check_disksuite (software RAID for Solaris,) and Check Veritas Volume
Manager for Veritas volumes.  

I use active server checks to monitor the services provided as well of
course, almost exclusively with check_by_ssh or check_http.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, January 29, 2008 4:09 PM
> To: 'nagios Users Mailinglist'
> Subject: Re: [Nagios-users] Sun Monitoring
> 
> Hugo van der Kooij wrote:
> > Lars Stavholm wrote:
> >> Edwin Zoeller wrote:
> >>> We are monitoring ~75 Sun Servers via Nagios. What information
> >>> would you like to know.
> >>
> >> Top down...
> >> 1. method used (nsca, nrpe, snmp) and why?
> >> 2. what specific checks are you using?
> >
> > Servers in themselves are useless pieces of junk. What you care
about
> > are the services they provide. So that is what you need to monitor.
If
> > you think about it that way you can choose whatever method allows
you
> > to monitor these services reliably.
> 
> I'd suggest that you do also need to monitor the servers themselves.
> While
> they may just be useless pieces of junk on their own, you do still
need
> them
> to run your services.  Strictly monitoring the services they provide
will
> give you a good up/down view of things but you probably want to know
when
> things are starting to go sideways so you can take corrective action
> before
> you actually reach a down state.  I don't work with Sun hardware, but
I'm
> sure Sun provides some kind of framework for monitoring some of the
> physical
> components of the system, and I'd bet dollars to doughnuts there are
> Nagios
> plugins that can take advantage of that framework  Temperature, fans,
> HD/RAID status, power supply status, etc. etc. are a very good thing
to
> keep
> an eye on if you intend to catch problems early enough to resolve
before
> actually causing downtime.
> 
> Andrew
> 
> 
>

-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] web interface access and authorization

2008-02-07 Thread Petersen, Mark
> I haven't tested 3.x extensively yet but I don't see anything in the
> documentation about contact permissions that's different than 2.x so
> I'll take a stab --

> Set the 'can_submit_commands' parameter to the contact{} definition as
> you like.
> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact

These statements seem to be in conflict because can_submit_commands does
not appear to be available in 2.0.  Argh, I really wanted that too...

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] web interface access and authorization

2008-02-07 Thread Petersen, Mark
Anyone know if that patch can be applied against 2.10 by chance?  I'll
try and investigate on my own as well.

> reading the CGIAuth doccos, but in doing research before sending I saw
a
> patch submitted and applied to 3.x that provided the
can_submit_commands
> functionality to contacts specifically. My response change
appropriately


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 External Command File

2007-01-03 Thread Petersen, Mark
I'm pretty sure the webserver (apache, nobody, www-data, or whatever you
setup) needs write permissions for that file.  It may also need to be a
named pipe.

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kaplan,
Andrew H.
Sent: Wednesday, January 03, 2007 2:29 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Problem with External Command File

 

I am running Nagios 2.6 and whenever I want to "schedule a check of all
services...", I get the following error message:

 

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'
for update.

The permissions on the external command file and/or directory may be
incorrect...

An error occurred while attempting to commit your command for
processing.

 

I first went to the nagios.cfg file and confirmed that external commands
were activated, and that the path of the nagios.cmd file,

/usr/local/nagios/var/rw/nagios.cmd was uncommented and correct.

 

I checked the permissions on the nagios directory and its
subdirectories. The nagios directory is owned by nagios:nagios, and the

permissions on the directory are 777. This is also true for child
directories under the main one. The ../nagios/var/rw directory has the

same owners and permissions, while the nagios.cmd file is owned by
nagios:nagios with the permissions prw-rw.

 

Has anyone seen this, and can tell me what I need to do to correct it?
Thanks. 

THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED
ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN
CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION,
DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON,
THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED
RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR,
PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE
OF THIS INFORMATION. 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] MySQL replication broken status in nagios

2007-01-11 Thread Petersen, Mark
Why can you not use check_mysql -S slave stuff from the standard nagios
plugins?  If this won't work you'll have to write a script/plugin
following the guildelines available here -
http://nagiosplug.sourceforge.net/developer-guidelines.html and/or ask
more specific questions. 

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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 selinux?

2007-01-25 Thread Petersen, Mark
Can you move the cgi's (or possibly hardlink them) to someplace that
apache will let them run (say /var/www/nagios2/cgi-bin)?  Otherwise you
might need some sort of a compile option to just install them there.
Someone more familiar with the build process might be able to help here.

There's also ways to hack apache (may require recompile) to allow this,
but I'm under the impression from these two posts that SELinux would
disallow those changes to take effect?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jiann-Ming Su
Sent: Thursday, January 25, 2007 2:27 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios and selinux?

What's the proper way to configure nagios and selinux to work
together?  I've run into the same problem as described here:

 
http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html

Setting selinux to permissive got my test nagios going.  But, now I
need to migrate to a production system with selinux set to enforcing
and type set to targeted.  Thanks for any tips.

-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.
 If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank.  The election baby has peed in
the bath water.  You got to throw 'em both out."  --Dale Gribble


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
___
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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Passive checks show up as disabled

2007-02-01 Thread Petersen, Mark
Hello,

 

I followed all the advise here -
http://nagios.org/faqs/viewfaq.php?faq_id=271&expand=false&showdesc=fals
e including getting rid of the state retention file, adding
check_freshness, freshness_threshold and defining the check_command as
service-is-stale (which is setup to warn that service hasn't reported
for awhile.)  Yet, for some reason I still show passive checks as
"disabled" services in the tactical overview.  Running Nagios 2.4-1
package on Ubuntu 6.10 on amd64 hardware.

 

Thanks,

mark

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Use service more than once for the same host

2007-02-08 Thread Petersen, Mark
The only way I know to do this is with multiple services for the host.
Something like the proxy server checks below.

 

# 'check_squid' command definition

define command{

command_namecheck_squid

command_line/usr/lib/nagios/plugins/check_http -H
$HOSTADDRESS$ -p $ARG1$  -u $ARG2$  -e 'HTTP/1.0 200 OK'

}

 

define service{

  hostgroup_nameproxy

  service_description   SQUIDS on 8080

  check_command check_squids!8080!/ServerStatus

  use   generic-unix

}

 

define service{

  hostgroup_nameproxy

  service_description   SQUIDS on 8081

  check_command check_squids!8081!/ServerStatus

  use   generic-unix

}

 

define service{

  hostgroup_nameproxy

  service_description   SQUIDS on 8082

  check_command check_squids!8082!/ServerStatus

  use   generic-unix

}

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Mestdagh Tommy
Sent: Thursday, February 08, 2007 9:08 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Use service more than once for the same host

 

Check  -> HTPP_IP_PORT_URL  

 

Command definition:$USER1$/check_http -w $ARG1$ -c $ARG2$ -I
$HOSTADDRESS$ -p $ARG3$ -u $ARG4$ -s $ARG5   

Usage:check_http_anymap_mapping!ARG1!ARG2!ARG3!ARG4!ARG5   

Command line:  ?
check_http_anymap_mapping!10!20!8070!/anymap/servlet/AxisServlet!"And
now..."   

 

Hi all,  

 

I think I found a limitation on nagios, but I hope it's a limitations of
myself..

Basicly I want to run the same service 4 times (or more ion the future )
on the same server.  Offcourse every time with different  parameters.

Like  port -> $ARG3$  and uri -> $ARG4$  will be different.  I use the
groundworkopensource interface wish only allows unique services on one
server.

 

I wand to avoid that I have to copy the HTPP_IP_PORT_URL   to
HTPP_IP_PORT_URL1, and HTPP_IP_PORT_URL  2 and so one

 

Regards 

  Mestdagh Tommy

 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Notification on Stalk

2007-05-08 Thread Petersen, Mark
I've searched high and low for the answer to this.  It seems that
because nagios just checks exit status, its not easy to create a
notification on stalking.  I'm wondering if I can definte additional
exit codes as critical (without modifying the source,) or if there is
another soltuion to this.

For instance, say I'm checking disk space.  Warn at 85%, Crit at 90%.  I
also want a notification at 95,96,97,98,99,100%.  I could easily exit 95
for 95%, 96 for 96%, etc.  I believe this creates an unknown message.
If I exit at 96, since this is a different exit code (but still unknown)
would I get another notification?  I know, I can test this, but it seems
clunky and I don't like the unknown status issue for historical
tracking.

Volatile services with passive checks that only submit on change is
another option, but this presents issues with needing to do freshness
checking and wanting to have active checks as much as possible.

Are there any other solutions to this problem?  I know from a few
archive threads there isn't much demand for this, but it seems like
anytime you turn on stalking this would be a nice option (why wouldn't
you want to be notified as your array degrades as per the example for
stalking.)  Looking at the docs I don't see anything in 3.0 that will
help with this either.

Thanks,
Mark


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Notification on Stalk

2007-05-08 Thread Petersen, Mark
This is an interesting solution I haven't seen suggested before.  I
could have multiple services where criticals are set at different
levels.  

However, this will mess up statistics some and only works disk checks,
or some sort of incremental check.  Consider the RAID for stalking from
the nagios2 manual.

Check #:Service State:  Service Check Output:
x   OK  RAID array optimal
x+1 OK  RAID array optimal
x+2 WARNING RAID array degraded (1 drive bad, 1 hot spare
rebuilding)
x+3 CRITICALRAID array degraded (2 drives bad, 1 hot spare
online, 1 hot spare rebuilding)
x+4 CRIICAL RAID array degraded (3 drives bad, 2 hot spares online)
x+5 CRITICALRAID array failed
x+6 CRITICALRAID array failed
x+7 CRITICALRAID array failed

I want to get notified at x+2,x+3,x+4 and x+5.  I don't want to have a
service that checks specifically for each level of degradation as that
would get to be a ridiculous amount of service checks.

Now conisder this (more like the original question)
Check # State   Output
x   OK  OK - Disk usage less than 85%
x+1,2,3,4   Warning WARNING - Disk is 86% full
x+5,6,7 Warning WARNING - Disk is 87% full
x+8,9,10Warning WARNING - Disk is 88% full

I want to receive a single notification at x+1,x+5,x+8, etc.  I don't
want to have 16 service checks for each mount point (one at
85,86,87,etc.) as that would get out of control quickly.  Still seems
like volatile services and passive checks is the best answer at this
point.

Thanks,
mark



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Notification on Stalk

2007-05-09 Thread Petersen, Mark
> You might get by if you are willing to write your own custom 
> notification script. Nagios should notify every N minutes to 
> the script as long as a warning or critical level exists.
> 
> The scripts should keep progress of the performance data and 
> only send out a real message if the performance data merits it.
> 
> Or if you write a custom check_disk to get rid of some of the 
> details you can use stalking. But with the current level of 
> details it would fire up every round. For exmple "DISK OK - 
> free space: /boot 66 MB (70% inode=99%)"
> 
> The percentages are fine but the more exact counter will be a 
> problem if you enable stalking.

Lots of this disks I'm tracking are Databases that usually allocate disk
space in roughly 1% chunks anyway, but under more normal conditions the
exact count would be a problem.  My custom notification script could be
smart enough to check just the first xxx% with a --percent flag or
something.  Basically I can do a lot of with a custom notification
script, so this seems like a great idea, much better (and easier to
implement) than many of the hacks we've come up with.  A simple
notify-by-epager-with-stalking and notify-by-email-with-stalking script
will out perfectly.

thanks,
mark

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service Groups

2007-06-18 Thread Petersen, Mark
I think this is a feature request, but I just to confirm its not in a
newer version (I'm running 2.5) or I'm missing something else.

I have a number of servicegroups, but users can't view servicegroups
where they only have access to a limited number of the services in the
group.  Other than enabling viewing of all services (not desirable) is
there anyway to show only the services in servicegroups that that user
is a contact for?

As a workaround, can the members field of a servicegroup consist of
multiple servicegroups, documentation doesn't seem to list this as an
option.

thanks,
mark

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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