Re: [Nagios-users] Hostgroup Members

2011-09-27 Thread Marc Powell
On Sat, Sep 24, 2011 at 9:20 AM, Marc Powell li...@xodus.org wrote:


  My question is, do newer version of nagios remove this limitation?

 They do not.


And I _meant_ to say 'They do not have this limitation...'

--
Marc
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
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 Members

2011-09-24 Thread Marc Powell

On Sep 23, 2011, at 10:51 AM, Brandon Phelps wrote:

 Hello,
 
 We are using a fairly old version of Nagios (1.4.1) which has been running 
 great for years and is in production on 100+ servers so we are a bit hesitant 
 to update.  If it ain't broke don't fix it, right?  Anyway, one minor problem 
 is the fact that in the nagios configuration, the members directive for a 
 hostgroup can only support a certain number of entries, due to the fact that 
 the members directive takes a comma delimited list of members and that list, 
 it seems, can only be a maximum of 2000ish (I think, I don't recall off hand) 
 characters.  Like:

8192 characters, to be exact…

 My question is, do newer version of nagios remove this limitation?

They do not.

  It isn't really a huge deal since we can simply create additional hostgroups 
 when we reach the limit on one, however if this is fixed in a newer version 
 then that, for us, would be a good reason to upgrade.

While I would certainly suggest you consider upgrading, there are many changes 
between 1.4 and 3.x that make it more of a project than a quick fix. In the 
meantime, you could just increase the limit in your current version and 
recompile --

http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg6.html

--
Marc


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
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] A question on nagios group nagcmd

2011-03-10 Thread Marc Powell
On Thu, Mar 10, 2011 at 1:19 PM, steve f a31mod...@hotmail.com wrote:

My question is, the docs say to create the group nagcmd and add nagios 
 wwwrun to the group in order to allow external commands to be submitted thru
 the web interface.

 What external commands are we talking about here?  Are we talking about the
 service commands from the check screen ( disable checks, schedule downtime,
 etc)  .


Yes, you will not be able to use those. It's a straightforward unix
permissions thing.

Is is safe to assume that if wwwrun was not in the nagcmd group baaa
 things will happen in the web console?  Not anywhere near my system so I
 cant try to see what would happen.


I wouldn't say entirely bad. You'll have a complete view-only interface; you
just won't be able to schedule downtime, etc...

Any thoughts before I rewrite the central password system to put both a
 regular user  a daemon user in the same file  ?


Can you manually edit the group file or will that bork your system? You
*could* chmod 777 the command pipe but since it gets removed and recreated
every restart, you'd want to make that part of the init script.

--
Marc
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Determining what is causing a high load reported by check_load plugin

2010-12-06 Thread Marc Powell
On Mon, Dec 6, 2010 at 1:50 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote:

  Hi there --

 We are running Nagios 3.1.2 server, and the client that is the subject of
 this e-mail is running version 2.6 of the nrpe client.

 The check_load plugin, version 1.4, is indicating the past three readings
 are the following:

 load average: 71.00, 71.00, 70.95 CRITICAL

 The critical threshold of the plugin has been set to the 30, 25, 20
 settings.

 When I checked the client in question, the first thing I did was to run the
 top command. The results are shown below:

 CPU0 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
 CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
 CPU2 states:  1.0% user,  4.0% system,  0.0% nice, 93.0% idle
 Mem:  2064324K av, 2032308K used,   32016K free,   0K shrd,  509924K
 buff
 Swap: 2096472K av,   21432K used, 2075040K free 1035592K
 cached

 The one thing that I noticed was the amount of free memory was at
 thirty-two megabytes. I wanted to know if that was
 what was causing the critical status to occur, or if there is something(s)
 else that I should investigate.


Memory is not a factor in the load calculation, only the number of processes
running or waiting to run. For at least 15 minutes you had approximately 71
processes either running or ready to run and waiting on CPU resources.
Running top/ps was the right thing to do but you really need to do it when
the problem is occurring to see what's actually using all the CPU resources.
There are far too many reasons why load could be high but it should be easy
for someone familiar with your system to figure it out (at least generally)
while in-the-act.

--
Marc
--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Historical Data Question

2010-11-15 Thread Marc Powell

On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote:

 Hi, I'm new with Nagios. I have questions.
 
 1.) Can Nagios keeps the historical data ? How?

Yes, it does this by default. Historical data is kept in the archive directory, 
typically /usr/local/nagios/var/archives.

 2.) Now,I'm use flat file to keep the data.Can I get the historical data?

Yes. Nagios only uses flat files for data. No special action is necessary and 
the web interface is used to display that data or you can parse the files and 
use the data on your own.

 3.) Can Nagios work with MySQL? How?

Not directly but there are addons available at http://exchange.nagios.org to 
tie nagios to MySQL for both configuration (i.e. front ends that store their 
data in MySQL, then generate the flat file with configuration data that nagios 
requires) and data retention for parsing/presentation by other third party apps 
(i.e. merlin or other alternative front end.)

--
Marc
 
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
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 Historical Data Question

2010-11-15 Thread Marc Powell

On Nov 15, 2010, at 8:05 AM, Korrawit Yindeeyoungyeon wrote:

 Where can I find the standard database schema of Nagios ? or I need to
 find in source code of 3rd party front-end software?

You'll need to look at the third party software to determine how they get data 
into a database. 

Nagios doesn't use a database so has no standard database schema. Each addon 
either has it's own specific schema or utilizes one of other common event 
broker - database addons (such as ndoutils).

--
Marc
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
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] Another Nagios Historical Data Question

2010-11-15 Thread Marc Powell

On Nov 15, 2010, at 8:12 AM, Ales Rikovsky wrote:

 I know. It's stored in /var/log/nagios/archives/x.log
 
 But I'm not hunger for rewriting the tons of files manually.
 Can anyone help me with the script or something like that, maybe if it 
 could ask for old and new names and rewrites all occurences in the log 
 liles correctly.
 __
 
 Enter the old name:   blahblahold
 Enter the new name: blahblahnew


It could be something as simple as --

sed -i .bak 's/blahblahold/blahblanew/g' /var/log/nagios/archives/*.log

I leave how to pass the 'blahblahold' and 'blahblahnew' as a rather 
straighforward exercise for you.

--
Marc


--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
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 Historical Data Question

2010-11-15 Thread Marc Powell

On Nov 15, 2010, at 9:33 AM, Paul M. Dubuc wrote:

 Maybe he's looking for this:
 
 http://nagios.sourceforge.net/docs/ndoutils/NDOUtils_DB_Model.pdf
 
 the DB schema used by NDOUtils.

Could be, but I stopped trying to read people's minds about a decade ago. He's 
so far asked about configuration and retention so who knows...

--
Marc


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] No Route to Host error - ssh-key exchange issue even if plugin checks work?

2010-11-11 Thread Marc Powell

On Nov 10, 2010, at 7:36 PM, Jonathan Wiggins wrote:

 I see this in the messages files:
 
 Nov  9 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home 
 Page;CRITICAL;HARD;1;No route to host 
 Nov 10 00:00:00 nagiosbox nagios: CURRENT HOST STATE: 
 monitorednode;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.21 ms 
 Nov 10 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home 
 Page;CRITICAL;HARD;1;No route to host
 
 which looks like there is no packet loss on the PING to the host, but then it 
 shows No Route To Host

'No Route To Host' is not a nagios error message but is coming from your 
operating system. Based on that and the above information, I'd say that the 
'Home Page' check is being told to check a different, invalid, host name or 
address than the ping check.

Please post the host{}, service{} and command{} definition related to the 'Home 
Page' check if that's not enough to get you on the right path so we can take a 
look at it.

--
Marc
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
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] NSCA - Status is changing after 10 seconds to OK

2010-11-04 Thread Marc Powell

On Nov 4, 2010, at 4:38 PM, Brandino Andreas wrote:

 The  message  appearing  in  the  Status Information when service is
 again green and OK is a simple OK !!!

Were you previously testing something that gave that message? Freshness checks 
or active checks perhaps? Do you have multiple nagios daemons running at the 
same time, one running with the old config and one with the new? They'd both 
write to the same status file so you'd see results like this.

--
Marc


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
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] Difference between check_multi output on host and output received by chech_by_ssh

2010-10-27 Thread Marc Powell

On Oct 27, 2010, at 4:04 AM, Tim Edwards wrote:

snip...

 However when I run it from the nagios server I don't see the output from
 our sendmail mailqueue check, which is the last check listed in our
 /usr/local/nagios/checks/systemhealth.cmd file:
 
 td/tdtd/tdtdsystem_mailqueue/tdtd/td/tr/table/div/div|check_multi::check_multi::plugins=11
 time=0.309348 system_load::check_load::load1=0.000;10.000;20.000;0;
 load5=0.000;8.000;16.000;0; load15=0.000;6.000;12.000;0;
 system_rootdisk::check_disk::/=1786MB;9420;9717;0;9916
 system_allpartitions::default::/=1786MB;9420;9717;0;9916
 /diska=150MB;9575;9877;0;10079 system_swap::check_swap::swap=0MB;0;0;0;0
 system_users::check_users::users=2;15;25;0
 system_time::check_ntp_time::offset=-0.002565s;60.00;120.00;
 
 Full commands and output at http://pastebin.com/vEWBa033
 
 Anyone have any ideas what could be causing the difference?

For your local test, you're running check_multi as 'root', which has permission 
to access sendmail's queue, whereas when nagios does it, it's being run as the 
'nagios' user, which does not have access?

Your likely best course of action is change check_mailq to use sudo when 
calling /usr/bin/mailq and configure sudo to permit it. Google has quite a bit 
of info on 'nagios check_mailq permissions' but this page looks useful to you --

http://www.rickwargo.com/category/nagios/

Note also that you'll need to set '!requiretty' in sudoers as well.

--
Marc


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Question on setting up my own check

2010-10-21 Thread Marc Powell

On Oct 20, 2010, at 8:34 AM, Trond Hasle Amundsen wrote:

 Beyond just good programming practice, always use full paths to external 
 programs within your scripts. $PATH may not be what you expect it to be, 
 especially when being run by the nagios daemon which has a more restrictive 
 environment.
 
 # (paths may be different on your system)
 used=`/usr/bin/sudo /usr/bin/rsh $1 /bin/df -v | /bin/grep starlite | 
 /usr/bin/head -1 | /usr/bin/awk '{print $4}'`
 
 Or... set PATH before doing anything else, e.g.
 
  #!/bin/bash
  PATH=/bin:/sbin:/usr/bin:/usr/sbin
  export PATH
  [...rest of script...]
 
 This will enhance readability wrt. using full paths everywhere.

A good start, for sure but I'm a bit more paranoid than that from experience. 
If $badguy manages to create /bin/sudo - /tmp/fakesudo, his will be run due to 
path order and you've just facilitated providing your password to him or doing 
other nasty stuff, potentially as root.

--
Marc
--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Question on setting up my own check

2010-10-20 Thread Marc Powell

On Oct 19, 2010, at 2:20 PM, steve f wrote:

 Hello All,
 
 I have the following script created to check free space on a remote legacy 
 box via rsh. 
 
 used=`sudo rsh $1 df -v |grep starlite6 | head -1 | awk '{print $4}'`
 free=`sudo rsh $1 df -v |grep starlite6 | head -1 | awk '{print $5}'`

Beyond just good programming practice, always use full paths to external 
programs within your scripts. $PATH may not be what you expect it to be, 
especially when being run by the nagios daemon which has a more restrictive 
environment.

# (paths may be different on your system)
used=`/usr/bin/sudo /usr/bin/rsh $1 /bin/df -v | /bin/grep starlite | 
/usr/bin/head -1 | /usr/bin/awk '{print $4}'`

(chop...)

   echo OK. Free Space: `sudo rsh $1 df -v |grep starlite6 |head -1 | awk
 '{print $5}'`B, $percent%

You already have this value as $free; why not just use it instead of rsh'ing 
again?

   echo Warning. Free Space: `sudo rsh $1 df -v |grep starlite6 | head -1 
 |
 awk '{print $5}'`B, $percent%

Same...

   echo Critical. Free Space: `sudo rsh $1 df -v |grep starlite6 | head 
 -1 |
  awk '{print $5}'`B, $percent%

Same...

  If I run this from the command line, I get the following response:
 
 /usr/local/nagios/libexec # ./check_starlite_size LEGACYBOX 70 80
 Critical. Free Space: 51090B, 2%

Bad test. Never test the functionality of a plugin as root. root can rsh into 
the box but can the nagios user? Depending on how your command{} definition is 
set up, you probably want to make sure that the value 'LEGACYBOX' is exactly 
the same as what you have defined as the 'address' in the host{} definition.

 if nagios runs the script , I keep getting an unknown result on the central 
 server ( distributed environment btw) 
 from nagios.log on central server:
 [1287511053] PASSIVE SERVICE CHECK: strsa;Starlite Size;3;Unknown
 
 I assume that the issue is an incorrect format for the send_nsca file but 
 cant figure out how to set it up correctly.

nsca has nothing to do with it since you aren't using it. Verify that the 
nagios user can rsh into the box and test your plugin as the nagios user, not 
root.


--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
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] Deploying Nagios on Windows box

2010-10-13 Thread Marc Powell

On Oct 12, 2010, at 7:20 PM, Yu Watanabe wrote:

 Hello all
 
 Has anyone has a experience for deploying a Nagios 3.x + apache on a windows 
 box using Cygwin?
 Perhaps, Windows Server 2003 (32bit,64bit) or  later?

I don't but searching my archives shows that it's been done successfully before 
(nagios-3) and that there may be a pre-compiled version of the plugins for 
cygwin. Search the archives for the thread problem in installing Nagios with 
cygwin around April 20, 2009.


--
Marc


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] Different Notification command templates for Host Down and Host Up

2010-10-05 Thread Marc Powell

On Oct 5, 2010, at 6:36 AM, Mike Callahan wrote:

 Because I'm sending host up/down notifications to a ticketing system, I have 
 the need to use different verbiage for host down notifications and host up 
 notifications.   Specifically the subject line of the email message needs to 
 be different for host down than for host up.  


 Does anyone have another solution for this, where I would be able to send 
 different notification commands for host down and host recovery?

The notification commands are just references to scripts. The default/example 
one is just a big one-liner script. There's no reason you couldn't create your 
own notification script in your favorite $language that implements your subject 
logic based on status and sends the e-mail just as nagios does.

--
Marc


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] can i change log date format?

2010-10-04 Thread Marc Powell

On Oct 4, 2010, at 9:05 PM, HyunSung Jang wrote:

 hi folks,
 sometimes it is very useful to find some issues from log history.
 but nagios log file shows me unix timestamp i belive.
 is there any way to change it to human readable format??
 version of nagios is 3.2.0 

Hi HyunSung,

No, you cannot change the log date format. Nagios requires that it be a unix 
timestamp in order for the reporting to work.

This FAQ details a little perl script to print out a more human readable format 
--

http://support.nagios.com/knowledgebase/faqs/index.php?option=com_contentview=articleid=52catid=35faq_id=70expand=falseshowdesc=true
 
or you could use a one-liner like --

perl -pe 's/(\d+)/localtime($1)/e' nagios.log

--
Marc


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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.cmd permission issue

2010-10-03 Thread Marc Powell

On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:

 Did not work, probably b/c I'm restarting the service as root?
 
 Is there a way to tell under which user nagios is trying to access the 
 nagios.cmd file?

Your web server is trying to write to the pipe so it's whatever user your web 
server is configured to run as.

--
Marc


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] execute script on event - wol when UPS status become OK

2010-09-15 Thread Marc Powell

On Sep 15, 2010, at 2:10 AM, Trnka Tomáš wrote:

 Hi,
 I`m searching best way to execute script on event but only when status become 
 OK, not when HARD or CRITICAL,
 as described in event handlers 
 http://nagios.sourceforge.net/docs/3_0/eventhandlers.html
 script should be executed only when status HARD or CRITICAL is reached.
 I would like to run wake on lan script when UPS status become OK – to wake up 
 servers.

An event handler is exactly what you want. You've misread the documentation. 
Event handlers run under three different conditions -

• Is in a SOFT problem state
i.e. when performing retry checks leading to a WARNING or 
CRITICAL status.
• Initially goes into a HARD problem state
i.e. has reached max_attempts and is in a WARNING or CRITICAL 
status
• Initially recovers from a SOFT or HARD problem state
i.e. returns to an OK state from WARNING or CRITICAL status. 
This is what you appear to be looking for.

Using the example event handler script on that page, you just need to look at 
the OK state and do something, not the CRITICAL state.

--
Marc


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] SNMP showing Unknown

2010-09-09 Thread Marc Powell

On Sep 9, 2010, at 4:36 AM, IT Toonz wrote:


 below is the config settings for windows servers
  
 # Create a service for monitoring SNMP
  
 define service{
 use generic-service
 host_name   taipl-domsrv
 host_name   tai3dserver
 host_name   tai3dstorage-02
 host_name   tai3d-avsrv
 service_description SNMP
 check_command   
 check_snmp!.1.3.6.1.2.1.25.2.3.1.6.2!1!Cachebuffers!5!2000
 }
  
 Please advicewhat else is there to configure, please be specific, we just 
 started in Fully Automated Nagios, with a lot of help we have reached this 
 far J


  define command{
  command_namecheck_snmp
  command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
  }

Based on the check_command that you have above, the command_line you've told 
nagios to run is --

/path/to/plugins/check_snmp -H address from host{} 
.1.3.6.1.2.1.25.1.3.1.6.2

As you can see, this is far from complete or formatted properly. I'm not sure 
what the parameters you are trying to pass are but way you have the 
command_line set up requires that you pass them as part of the check_command 
like so --

  define service {
  ...
  check_command check_snmp!-o .1.3.6.1.2.1.25.2.3.1.6.2 -C 
communitystring -l Cachebuffers -(... whatever other paramenters you are 
trying to pass to check_snmp)

You probably want to read the documentation on using arguments in commands, 
specifically the $ARGx$ macros and check_snmp documenation (man check_snmp) to 
fully understand why what you tried didn't work.

--
Marc


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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_load gone crazy

2010-09-08 Thread Marc Powell

On Sep 7, 2010, at 7:39 PM, Mike Chesnut wrote:

 I'm wondering if this is a known bug, and/or if anybody else has seen 
 similar behavior...
 
 We're using Nagios 3.2.1 on Linux, monitoring several Linux systems.  We 
 run the check_load probe against every system.  Occasionally (at 
 non-regular intervals), Nagios will freak out and alert on the load 
 average of many (sometimes *all*) systems.  When this occurs, it reports 
 the *same* load averages for each system, and the weirdest part is that 
 these load averages are completely bogus.

 Any ideas for what I can do to get to the bottom of why this happens?

What transport mechanism are you using to run check_load on the remote systems? 
It is not 'network aware' and so the check_load binary must be installed on 
each remote machine and run on that machine via some transport (check_nrpe, 
check_by_ssh, etc). It seems to me that you are not running it on the remote 
machines but are instead monitoring the load of your nagios machine multiple 
times. Can you show a couple example service{} and corresponding command{} 
definitions if you are unsure?

--
Marc
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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 plain files vs database storage

2010-09-07 Thread Marc Powell

On Sep 7, 2010, at 7:03 AM, yuris wrote:

 Hello,
 
 I'm using Nagios for several months with plain files setup, and 
 nagiosgrapher. It works pretty nice and I have no problem monitoring ~50 
 hosts; ~10 service_checks per host.
 
 Now I'm thinking about migration of other hosts from Zabbix to Nagios 
 and totally it is going to be ~350 hosts. Since the number of hosts is 
 significant plain test configs does not seem to be a good option, and

This is not an unreasonable number. Just be sure to look through the Large 
Installation section of the documentation. I've had distributed nagios systems 
with the pollers checking 2-3000 services each, all reporting back to a central 
nagios server totaling about 10, services. No major issues seen and I 
didn't feel I was approaching a limit on the  pollers yet.

No matter what you do, nagios will still use plain text config files. nodutils 
is just for storing the output-ish things in a database for use by other addons 
or your own reporting. Any front end that you use to edit hosts/services will 
always dump them out to plain text config files, same as you're using now, for 
nagios' consumption.

--
Marc


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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] Having single or double quotes in a custom variable

2010-09-06 Thread Marc Powell

On Sep 6, 2010, at 6:57 AM, Jelle Smet wrote:

 _blah   one two three four a b c d
 
 I want to use this custom variable in a command to execute like this:
 
 define command{
 
 command_namecheck_linux_nrpe_all_disks
 
 command_line/bin/echo $_HOSTBLAH$  /tmp/fubar.txt
 
 }
 
 
 In /tmp/fubar.txt I have this line of text without the quotes:
 one two three fou a b c d

That's what 'echo one two three four a b c d  /tmp/fubar.txt' does on the 
command line --

$ echo one two three four a b c d  /tmp/fubar.txt
$ cat /tmp/fubar.txt 
one two three four a b c d

 How can I keep the quotes?  They can be single or double quotes it doesn't 
 matter.

command_line/bin/echo '$_HOSTBLAH$'  /tmp/fubar.txt

$ echo 'one two three four a b c d'  /tmp/fubar.txt
$ cat /tmp/fubar.txt 
one two three four a b c d

--
Marc


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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 script output issue

2010-08-30 Thread Marc Powell

On Aug 29, 2010, at 8:12 PM, newme me wrote:

 ./check_http -H xyz.com -p  -u /abc -t 3
 OK
 
 Result from Nagios Interface - 
 nodename nor servname provided, or not known
 HTTP CRITICAL - Unable to open TCP socket
 
 I am thinking that this has something to do with Nagios as the box is 
 behaving just fine based on the commandline result(and verified on the URL 
 through the browser).

It seems like you may have multiple nagios daemons running at the same time; 
one that's using a previously bad config, and one with a good new config.

Stop nagios, verify that all nagios processes are dead and restart.

--
Marc


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] The output of $SERVICEOUTPUT$ macro is blank ?

2010-08-24 Thread Marc Powell

On Aug 24, 2010, at 3:40 PM, Mirza Dedic wrote:

 The strange thing is..
  
 I replaced “/usr/bin/printf %b * Nagios *\”
  
 With “/bin/echo –e  Nagios *” and now my alerts include the missing 
 $SERVICEOUTPUT$ information that was not there previously.
  
 I wonder why printf was causing this?

Did the actual output contain characters that printf might think are macros for 
itself?

--
Marc


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios help

2010-08-20 Thread Marc Powell
Hey newme me,

On Aug 20, 2010, at 1:15 AM, newme me wrote:

 Here is what I need - 
 
 Want to create a wrapper script which returns a cumulative summary. I need a 
 step by step instructions on how to hook a script like this into nagios?

It's pretty easy...

- create your script to perform the check. Pay particular attention to the 
Output and Return Code requirements of 
http://nagiosplug.sourceforge.net/developer-guidelines.html
- create a command{} definition that calls your script.
- create one or more service definitions that reference your new command{} 
definition
- reload nagios
- ...
- PROFIT!

 What I desire - 
 
 Instead of a cumulative result, can I display the result in Nagios on a per 
 application basis using this one script (and a wrapper script on top of it)?

Seems straightforward to me. Accept a command line argument referencing what 
you want to look for and search the output for that status. Print out the 
status and exit with a corresponding exit code.

 If you can also provide me with a wrapper script for reference in relation to 
 how the result can be presented to Nagios that would be great.

Look at pretty much any of the plugins at http://exchange.nagios.org. I'd bet 
that the majority of them call some external program, parse it's output and 
return results.

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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 echo monitoring

2010-08-14 Thread Marc Powell

On Aug 12, 2010, at 4:11 PM, Shane Killian wrote:

 Hi,
 
 I would like to monitor email delivery.
 
 I'm using microsoft exchange and I want to automate a message to 
 e...@esat.net - this is an autoresponding address with an ISP.
 
 
 Does anyone have a method for this?

check_email_loop would probably work fine for this.

http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/check_email_loop/details

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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] [Nagiosplug-help] Not Detecting the services properly

2010-08-12 Thread Marc Powell

On Aug 12, 2010, at 7:16 AM, R, Naveen wrote:

  
 Dear All,
 I have configure Nagios XI to monitor some websites and if these services are 
 UP/DOWN/UNREACHABLE, then it will send a notification through mail.

Hi William. We don't provide support for Nagios XI here, only the open source 
version. They have an online support forum at http://support.nagios.com/forum.

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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 avail.cgi

2010-08-09 Thread Marc Powell

On Aug 9, 2010, at 4:17 AM, Assaf Flatto wrote:

 but in the summery table :
 
 Service Log Entries:
 [ View full log entries ]
 Event Start Time  Event End Time  Event Duration  Event/State Type
 Event/State Information
 28-07-2010 00:00:00   28-07-2010 09:45:29 0d 9h 45m 29s   SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.020 second response 
 time
 29-07-2010 00:00:00   29-07-2010 10:20:56 0d 10h 20m 56s  SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.022 second response 
 time
 30-07-2010 00:00:00   31-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.016 second response 
 time
 31-07-2010 00:00:00   01-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.030 second response 
 time
 01-08-2010 00:00:00   02-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response 
 time
 02-08-2010 00:00:00   02-08-2010 14:38:47 0d 14h 38m 47s  SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.027 second response 
 time
 03-08-2010 00:00:00   03-08-2010 11:51:23 0d 11h 51m 23s  SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response 
 time
 04-08-2010 00:00:00   04-08-2010 08:41:24 0d 8h 41m 24s   SERVICE OK 
 (HARD)   HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.031 second response 
 time
 
 As you can see the report does not provide the details i asked for and  it 
 claims to provide and that subverts my statistics .
 
 Any one encountred this before ? can you recommend a way to fix this ? 

I suspect this is because you've specified 4 backtracked archives when running 
the report (4 days if you have daily log rotation set up). Try specifying 0.

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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] question about notifications

2010-08-09 Thread Marc Powell

On Aug 9, 2010, at 1:24 PM, gregborbo...@gmail.com wrote:

 Are the command arguments passed in a scope?
 
 Such as check_groovy!WARN!CRIT
 
 If so, you could do arg1 and arg2

These would only be available to the check_command, not the notification 
command.

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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] Calculations of RRD data

2010-08-08 Thread Marc Powell

On Aug 8, 2010, at 1:47 PM, Stephen H. Dawson wrote:

 We really do not want to put the monitored data into a SQL database.  How 
 (hopefully) does one do arithmetic calculations of data in an RRD database, 
 please?

You can do it directly with through rrdtool (i.e. 'rrdtool graph...'). CDEF's 
and VDEF's can have an arbitrary RPN calculation performed on them.  This might 
help --

http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html#CDEF

--
Marc


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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 did not send notification to some contacts

2010-08-04 Thread Marc Powell

On Aug 3, 2010, at 11:21 AM, Frater, Greg J wrote:

 There was a routing issue on our WAN that caused this event, the SMTP server 
 we use is across the WAN.  Could the routing issue have prevented some of the 
 SMTP notifications from being sent, wouldn't they just queue up and go once 
 the problem was resolved?

They would be queued by the SMTP server running on your nagios machine. 
Redelivery attempts would occur based on the configuration there.

  I have seen messages that did not arrive at the recipients phone but I've 
 never seen Nagios not generate notifications for contacts that are configured 
 for that host or service.  Has anyone else seen this, any suggestions on a 
 cause or how to troubleshoot?

- Check nagios.log for a HOST NOTIFICATION event for that group. Make sure 
there were no errors logged. 
- Check your local SMTP server logs to see if the messages were received there 
and no errors were reported.
- Make sure that nagios has been restarted since adding this group and contacts.
- Make sure you don't have multiple nagios daemons running at the same time.

--
Marc
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
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] Only Nagios doesn't works with sendmail?

2010-07-25 Thread Marc Powell

On Jul 25, 2010, at 12:11 AM, quanta wrote:

 Hi,
 
 I am using sendmail 8.13.8-8 with Gmail SMTP. 
 sendmail works fine with OSSEC or test from command line, but it has problem 
 with Nagios:
 
 sendmail[9026]: NOQUEUE: SYSERR(nagios): can not 
 chdir(/var/spool/clientmqueue/): Permission denied 
 
 Add the smmsp user to nagios group, I get the another error:

If you were going to try this, it would be the other way around (nagios in the 
smmsp group), but that's the wrong thing to do either way.

 sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue directory 
 /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied 
   
 The permissions of related files:
 
  
 -rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail

You appear to have a broken sendmail on this machine. What's different between 
the two? Shouldn't this be group 'smmsp'? Is sendmail's confRunAsUser the same 
on both machines?


--
Marc


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] High latency on small installation

2010-07-21 Thread Marc Powell

On Jul 20, 2010, at 11:36 AM, Assaf Flatto wrote:

 Hello All
 
 
 I am having a problem with very high latency on my main nagios server 
 (3.2.0 from source on SLES 10.3 x64).
 I recompiled the core with the  embedded perl and that helped for a 
 while to lower the latency but it keeps growing to times that are not 
 reasonable for this size of a nagios installation .

 event_broker_options=-1
 broker_module=/usr/local/nagios/bin/ndomod-3x.o 

Is it better if you disable the event broker? If so, search the archives for 
information about it and database tuning. There has been somewhat recent 
discussion about higher latency as the database grows in size.

 process_performance_data=1
 host_perfdata_command=process-host-perfdata
 service_perfdata_command=process-service-perfdata

Is it better if you disable this? If so, see if there's any performance tuning 
information for the addon you are using.

 enable_environment_macros=1

Disable this if you are not explicitly using it. Chances are very high that you 
are not.

--
Marc
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Cannot open command file for update

2010-07-14 Thread Marc Powell

On Jul 14, 2010, at 6:50 AM, Brian O'Mahony wrote:

 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. Read the FAQs on how to setup proper permissions.
 An error occurred while attempting to commit your command for processing.

 [r...@nagios servers]# ls -al /usr/local/nagios/var/r*
  
 /usr/local/nagios/var/rw:
 total 2
 drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 .
 drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 ..
 prw-rw 1 nagios nagios0 Jul 14 12:40 nagios.cmd

Stop nagios and run 'make install-commandmode' from the original tarball you 
installed from or --

chmod 775 /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
make sure that the user your web server runs as is a member of the nagcmd group

restart apache, restart nagios.

HTH

--
Marc


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Download nagios tar file.

2010-07-14 Thread Marc Powell

On Jul 14, 2010, at 7:50 PM, Goke Ade wrote:

 Hello all,
 
 Can someone send me the link to download nagios tar files?

http://www.nagios.org, of course.

--
Marc

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Nagiosgrapher problem with building graph for particular check_service

2010-07-09 Thread Marc Powell

On Jul 9, 2010, at 7:51 AM, yuris wrote:

 
 And the problem is that graphs for Milter are not shown, Nagiosgrapher 
 complains that some error occured:
 
 RRD Error: No DS called 'sec' in 
 '/var/lib/nagiosgrapher/rrd/hostname/457eb765jjf8905k567849c.rrd'

It seems you may have been modifying the definition at least once. Try deleting 
the rrd file and allowing it to be recreated based on your current definition.

--
Marc
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] [Q] Service config, go critical:HARD; Alert every 5 minutes until non-critical

2010-06-15 Thread Marc Powell

On Jun 14, 2010, at 10:03 AM, Roderick A. Anderson wrote:

 My Nagios foo must leave a lot to be desired.  8-(
 
 I have not been able to figure out the correct combination of service 
 definition settings to get a check to go CRITICAL:HARD on the first try 
 (no SOFT alerts), and keep sending alerts (every five minutes) until the 
 check/alert clears.

It sounds like you want to set 'is_volatile' for the service.

--
Marc


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Query on check_http timeout option

2010-06-10 Thread Marc Powell

On Jun 10, 2010, at 3:55 AM, Sharad Ganapathy wrote:

 Yes. Sometimes the total time ( time to connect + download the content) 
 goes upto 1 minute.

It can go as long as you want as long as you also increase 
service_check_timeout in nagios.cfg.

--
Marc


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 - Retention period for logrotate

2010-06-06 Thread Marc Powell

On Jun 5, 2010, at 10:52 AM, James Corteciano wrote:

 Hi Marc,
 
 Thanks for your response. What can you suggest for this kind of scenario as 
 my boss requirement is to have the nagios logs remain within 6 months only?

The same as I suggested before; using find to remove log files older than 6 
months in the archive directory.

--
Marc


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 - Retention period for logrotate

2010-06-05 Thread Marc Powell

On Jun 5, 2010, at 3:57 AM, James Corteciano wrote:

 Dear List,
 
 I am running Nagios version 3.2.0 and the archive logs are located in 
 /var/log/nagios/archive which doing log rotation everyday. How can I 
 configure nagios that the archive logs retention period is six (6) months?

There isn't a configuration option for this. Nagios will keep the log files 
indefinitely for reporting (you can go back 2+ years through the web interface).

You can cron a simple find -exec rm to do that but be aware that you won't have 
any reporting capability beyond what you keep.

Also, because you specifically mention it, using logrotate will break reporting 
in nagios. The file naming convention must be exact for nagios to find the 
files.

--
Marc


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Sending NAGIOS alerts to Gmail addresses can get your mail server listed as suspect.

2010-05-28 Thread Marc Powell

On May 27, 2010, at 4:09 PM, Drew Weaver wrote:

 Hi there,
  
 I noticed that a lot of our mail was ending up in users' junk/spam folder at 
 GMail and it seems that if you send Nagios warning messages to Gmail they 
 somehow assume that your server is malicious and spamming. Is it SOP to use a 
 different SMTP server to deliver Nagios messages

Does your nagios server send the messages to gmail directly, and not through an 
SMTP relay? If so, are you following all the rules and expectations for it to 
be a mail server because to gmail, that's exactly what it is.

- Is the SMTP server on the machine configured to HELO as a valid fully 
qualified domain name (hostname.yourdomain.com)?
- Does hostname.yourdomain.com exist in the DNS and point to the 
outgoing public IP that gmail sees your message originate from?
- Does that IP address have a reverse DNS entry of 
hostname.yourdomain.com?

You can answer most of this by looking at the Received: line in any of the 
messages where your system hands the message off to Google. 

At the very least a RDNS lookup of the IP should show hostname.yourdomain.com 
and a lookup of hostname.yourdomain.com should result in that same IP.

--
Marc


--

___
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] apache22 problem installing from ports

2010-05-27 Thread Marc Powell

On May 27, 2010, at 5:01 AM, felix farcas wrote:

 Hello
 
 have a problem installing apache 22 from ports. The installation stops with 
 the following message:

Sent to the wrong list?

--
Marc


--

___
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 - To capture apache process list before restarting

2010-05-27 Thread Marc Powell

On May 27, 2010, at 1:46 AM, James Corteciano wrote:

 I just wanted to know how do you get the apache process list before 
 triggering to restart which will helpful during diagnostic operation. Do you 
 used any special plugins or personal script that could insert to 
 restart-httpd file?


Couldn't it be as straightforward as modifying the restart script on the client 
to capture it to a file? --

/usr/lib/nagios/plugins/eventhandlers/restart-httpd --
/bin/ps -efwww | grep https  /path/to/apachelist.log
   /usr/bin/sudo /sbin/service httpd restart

--
Marc
--

___
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] localhost DOWN messages, return code 127 is out of bounds

2010-05-19 Thread Marc Powell

On May 19, 2010, at 12:08 PM, Michael Maxwell wrote:

 Well, I didn't exactly leave this out.  Remember I mentioned that it's a
 clean install from the Quickstart document.  I've changed nothing in it
 other than the admin contact in contacts.cfg.  So whatever's there is there
 in the default localhost checks out of the box.

It's not *exactly* standard because it's not installed in /usr/local/nagios. ;) 
 Does $USER1$ in resource.cfg point to '/opt/nagios-3.2.1/libexec'?

--
Marc


--

___
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] 403 forbidden error

2010-05-14 Thread Marc Powell

On May 14, 2010, at 4:52 AM, prasanth katakam wrote:

 Dear team,
 
 i was new to nagios, after installing when i try to open through browser
 
 i got an error like 403 forbidden
 you dont have permission to access /nagios/ on this server
 
 httpd error log
 
 
 [r...@localhost conf]#  cat /var/log/httpd/error_log
 
 [Fri May 14 14:15:12 2010] [error] [client 127.0.0.1] Directory index 
 forbidden by Options directive: /var/www/html/
 [Fri May 14 14:18:20 2010] [error] [client 127.0.0.1] Directory index 
 forbidden by Options directive: /usr/local/nagios/share/

Do you have PHP installed? If you needed to install it, did you restart Apache?

--
Marc
--

___
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] How to override a command definition?

2010-05-13 Thread Marc Powell

On May 13, 2010, at 2:50 PM, Scot Wilcoxon wrote:

 I'm trying to override the existing definition, because I'd rather not
 alter the configuration which is part of the installation package.

Just comment out the original if you want to keep it there as a reference.

--
Marc

--

___
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] snmpwalk works but check_snmp doesn't

2010-04-28 Thread Marc Powell

On Apr 28, 2010, at 4:58 AM, Athiqur Rahman wrote:

 I am trying to monitor the status of my BGP connections on a cisco box.

[snip]

 But when I execute using the nagios snmp plugin i get the following
 
 [r...@watcher libexec]# ./check_snmp -H 172.16.0.1 -P 2c -C public -o 
 .1.3.6.1.2.1.15.3.1.2
 SNMP OK - No Such Instance currently exists at this OID |

check_snmp doesn't do a walk. You must be very specific to the exact OID you 
want to check. You'll also need to specify failure criteria if you want to get 
any kind of alert.

 What is the best way to go about monitoring the state of the bgp connection?

I used the following combination --

define command {
command_name   check_bgp_peer_state
command_line   $USER1$/check_snmp -H $HOSTADDRESS$ -o 
.1.3.6.1.2.1.15.3.1.2.$ARG1$ -s 6 -C $USER3$ -l 'BGP Peer $ARG1$ State'
}

define service{
use generic-service
host_name   myhost
service_description iBGP-to-othernet
retry_check_interval3
contact_groups  nateng-oncall-network
check_command   check_bgp_peer_state!212.12.10.11
}

--
Marc
--
___
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 unreachable what's nagios do.

2010-04-23 Thread Marc Powell

On Apr 23, 2010, at 6:36 AM, Albert Shih wrote:

 My problem is : 
 
   I've lot of services/hosts under nagios (~1500) and when some
   building is out of power (so lots of host/services going down), the
   nagios go wrong because of the charge on the server. 

What do you mean by 'nagios go wrong?'

 The first thing I think about is the parents/children but as you say that's
 not going to change anything.

This is the monitoring solution to this kind of outage. Nagios will continue to 
try to check all hosts at the site but will report all devices behind the 
blocking device (top switch in your case it seems) in an unreachable state. You 
can choose to receive (or not) notifications about 'unreachable' devices 
separately from the 'down' switch.

 The second idea is to : 
 
   Use dependencies and put a set (like all servers in a building) of
   host/servers in dependence of top of switch. 

Dependencies are not a good solution to this problem as you've stated it. What 
benefit do you believe there is with dependencies v.s. parents?


   And when the power come out, I put manually the top of the switch
   to down.

If nagios were monitoring this switch it would just override whatever you did 
here unless you also disabled monitoring of the switch.

   What's do you think ? 

I think that you should set parents for the hosts at this site such that every 
host - parent relationship eventually leads to the top-level switch. If the 
top-level switch goes out, it will be shown as down and anything behind it will 
be shown as unreachable.

host -- (parents) -- top-level switchor
host -- (parents) - some mid-level switch -- (parents) -- top-level switch

--
Marc


--
___
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 unreachable what's nagios do.

2010-04-23 Thread Marc Powell

On Apr 23, 2010, at 6:36 AM, Albert Shih wrote:

 My problem is : 
 
   I've lot of services/hosts under nagios (~1500) and when some
   building is out of power (so lots of host/services going down), the
   nagios go wrong because of the charge on the server. 

What do you mean by 'nagios go wrong?'

 The first thing I think about is the parents/children but as you say that's
 not going to change anything.

This is the monitoring solution to this kind of outage. Nagios will continue to 
try to check all hosts at the site but will report all devices behind the 
blocking device (top switch in your case it seems) in an unreachable state. You 
can choose to receive (or not) notifications about 'unreachable' devices 
separately from the 'down' switch.

 The second idea is to : 
 
   Use dependencies and put a set (like all servers in a building) of
   host/servers in dependence of top of switch. 

Dependencies are not a good solution to this problem as you've stated it. What 
benefit do you believe there is with dependencies v.s. parents?


   And when the power come out, I put manually the top of the switch
   to down.

If nagios were monitoring this switch it would just override whatever you did 
here unless you also disabled monitoring of the switch.

   What's do you think ? 

I think that you should set parents for the hosts at this site such that every 
host - parent relationship eventually leads to the top-level switch. If the 
top-level switch goes out, it will be shown as down and anything behind it will 
be shown as unreachable.

host -- (parents) -- top-level switchor
host -- (parents) - some mid-level switch -- (parents) -- top-level switch

--
Marc


--
___
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 unreachable what's nagios do.

2010-04-23 Thread Marc Powell
On Fri, Apr 23, 2010 at 8:34 AM, Flyinvap flyin...@orange.fr wrote:


 Does nagios sent notifications for NOK service on unreachable hosts ? If
 it does, I would check HOSTSTATEID in services notification command.


No. Notifications for services on DOWN or UNREACHABLE hosts are entirely
suppressed.

--
Marc
--
___
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] $SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

2010-04-20 Thread Marc Powell

On Apr 19, 2010, at 10:34 PM, Peter Kranz wrote:

 It's the default that comes with the .tar:
 
 # 'notify-by-email' command definition
 define command{
command_namenotify-by-email
command_line/usr/bin/printf %b * Nagios
 *\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$
}

Make sure the contact is using 'notify-by-email' as their service notification 
command. There have been no reports of this as a bug so I'd greatly lean toward 
it being a configuration issue.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] $SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

2010-04-20 Thread Marc Powell

On Apr 20, 2010, at 12:43 PM, Peter Kranz wrote:

 Confirmed:
 
 service_notification_commands   notify-by-email
 
 Apparently some reported similar issues in the past under the 2.0 chain..
 
 http://osdir.com/ml/network.nagios.devel/2005-11/msg4.html

I don't see anything obviously wrong with what you're doing but I also don't 
think that a 5 year old, *possible* bug report for a beta version of a previous 
major release is relevant ;)

There are no known bugs related to macros and haven't been for a long time. The 
code for macro processing hasn't needed to be touched for about 2 years; it's 
widely used and stable.

Can you just try retyping that entire $MACRO$ in the notification command in 
the event that some hidden character has been introduced while editing the file?

--
Marc


--
___
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 (bogus) setup

2010-04-15 Thread Marc Powell

On Apr 15, 2010, at 3:50 AM, Gerard Petersen wrote:

 Hi All,
 
 I've been testing with the check_http service. I always was under the 
 assumption that the setup below would check www.example.com

Why did you make this assumption? It's not documented to work like this.

 check_command   check_http!www.example.com!/

 With this service definition (as often installed out of the box):
 
 define command{
 command_namecheck_http
 command_line   /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$'
 }

It's not been like this in a long time I believe. Perhaps you've installed from 
a distribution specific package and they've deviated from current nagios? If 
so, there's nothing that we can do about that. This is what the official 
package uses --

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}

Note that your assumed configuration still wouldn't work here but the official 
documentation expects this definition. See 'Monitoring HTTP' at 
http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html.

 Wrong! It would check for a webserver on myhost1. Since there's nothing 
 running at myhost1:80 i got a TCP error. Somewhat baffled I've been tailing 
 the access.log of www.example.com to see when I actually got a hit.


 The funny thing is this (with no additional parms) even returns ok, would 
 you have a webserver listening on myhost1:80
 
 check_command   check_http

This is because your command_line doesn't use any of the params you think 
you're passing it ($ARG1$, $ARG2$).

 So, you would be wise to turn the command syntax into this:
 
 command_line/usr/lib/nagios/plugins/check_http -H '$ARG1$' -u '$ARG2$'

Or follow the example documented use of the plugin. In general, you can't make 
assumptions about how a plugin works without looking at, and understanding, the 
defined command_line for that plugin. Every one is different.

 Then this will actually test www.example.com:
 
  check_command   check_http!www.example.com!/
 
 Is it me or is this check_http setup misleading? (ubuntu 9.10 in this case)

No, but that would depend on the documentation you're referencing to use the 
plugin. If the ubuntu documentation says that your format works with their 
packaged version of the check_http command definition, then that is misleading 
and they should correct that. Otherwise it looks like you made an incorrect 
assumption about how something worked without understanding it. If I buy a car 
from a dealer and they tell me it runs on diesel, fill it up with diesel and it 
doesn't, then that's their fault. If they don't tell me anything about it and I 
assume it does without reading the manual, that's my fault.

For a new admin, the simplest use case is just to check that a web server is 
listening on a host. That's what your definition does and what the official 
definition does if no additional parameters are passed. As an admin becomes 
more familiar with the plugin and more sophisticated in what they want to do 
they need to edit either one or both of the command_line and check_command in 
your case but only the check_command in the official case. I think the official 
way provides the most flexibility all around, IMHO.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 checks from multiple Nagios hosts

2010-04-14 Thread Marc Powell

On Apr 14, 2010, at 6:32 AM, Burton Simonds wrote:

 I was more worried about 2 instances using the same port at the same
 time.  

This is how pretty much all client/server software works. Think SMTP server, 
HTTP server, etc. I'd consider any server software that didn't do this as 
broken.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Fw: nagios web only show 400 node?

2010-04-12 Thread Marc Powell

On Apr 12, 2010, at 7:12 PM, wwanghongrui wrote:

 发件人: wwanghongrui
 发送时间: 2010-04-12 18:33:07
 收件人: nagios-users
 抄送:
 主题: nagios web only show 400 node?
  
 Hi, guys~
  
 We install Nagios® Core™ 3.2.0 on SUSE 10 SP2 X86_64. We have added more than 
 440 nodes in nagios server, but only 400 nodes showed in nagios web. The 
 nodes added after 400, are not showed. Could you give me some suggestion for 
 resolve this problem? 
  

There are a few possibilities that come to mind --

- You haven't reloaded or restarted nagios since adding them
- The file you're adding them to isn't parsed by nagios (i.e. a cfg_file or in 
a cfg_dir in nagios.cfg). (run /path/to/nagios -v /path/to/nagios.cfg and see 
if the numbers presented are reasonable).
- If you have authentication enabled, the user you log in as is not a contact 
for the hosts in question.
- You have multiple nagios daemons running at the same time and there is 
contention over the status file.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] General Question..

2010-04-08 Thread Marc Powell

On Apr 8, 2010, at 7:35 AM, Lacayo, Luis F wrote:

 Hello and good to all,
  
 I was wondering if there is possibility to have Nagios submit a script when a 
 certain value is exceeded.   I heard that this is possible and would 
 appreciate any guidance  on how to achieve this.

These are Event Handlers.

==
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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.1 - browser refresh

2010-03-31 Thread Marc Powell

On Mar 31, 2010, at 6:36 AM, Max Hetrick wrote:

 Trisha Hoang wrote:
 I have tried both and restarted apache.
 1) rename file $prefix/share/index.php to index.html, and
 2) placing this line ?php header(Cache-Control: max-age=7200, 
 public); ? on the first line of index.php.
 
 Same here, neither changing the filename to .html or adding the php line 
 in the first line work for me either. CentOS 5.4 and Nagios 3.2.1.

Looking at CVS, there have been no changes to index.php in 14 months (several 
releases). Whatever's changed. it's not this.

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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.1 - browser refresh

2010-03-30 Thread Marc Powell

On Mar 30, 2010, at 2:13 AM, Paul Vaes wrote:

 Hello,
 
 I have just upgraded a test Nagios environment from 3.0.5 to 3.2.1 and when I 
 hit thr refresh button in the browser I always go back to the Home page 
 instead of  refreshing the current page I am on. 
 Is this because of the change to PHP for the ( index, main and side ) HTML 
 pages?  What can I do to get back the behaviour we were used to?

See this recent thread for a couple of suggestions --

http://thread.gmane.org/gmane.network.nagios.user/66432/focus=66435

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Antwort: Bandwidth Usage on a linux Box

2010-03-30 Thread Marc Powell

On Mar 30, 2010, at 5:47 AM, Jatin Davey wrote:

 As you can see the output has the following: 
 eth0_in_Bps=12506;102400;204800;0;125
 
 Could you explain what they indicate , i know of only in Bytes per second , 
 what are the other 4 values ?
 Is it something like in Discards , in Errors  Etc.

It's performance data. If the author has followed the plugin guidelines, and it 
looks like they have, it's current value;warning threshold;critical 
threshold;minimum possible value;maximum possible value.

http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Appender

2010-03-29 Thread Marc Powell

On Mar 29, 2010, at 7:17 AM, Raymond Setchfield wrote:


 Mar 29 07:18:37 centos-64bit nsca[14735]: SERVICE CHECK - Host Name: 
 'centos-64bit', Service Description: 'HelloWorldApplication', Return Code: 
 '0', Output: 'server: centos-64bit: Application Errors Cleared '

 Mar 29 07:18:37 centos-64bit nagios: EXTERNAL COMMAND: 
 PROCESS_SERVICE_CHECK_RESULT;centos-64bit;HelloWorldApplication;0;server: 
 centos-64bit: Application Errors Cleared
 Mar 29 07:18:37 centos-64bit nagios: Warning:  Passive check result was 
 received for service 'HelloWorldApplication' on host 'centos-64bit', but the 
 host could not be found!

 My question is the host not set issue. Is jboss complaining or nagios? Should 
 I be looking at jboss or nagios for the miss-configuration issue?

It's nagios complaining. For every passive result host/service combination 
you're going to be using, you must have a matching host and service definition 
within nagios. You need a host{} definition for host_name 'centos-64-bit' and a 
service{} definition for service_description 'HelloWorldApplicatin' for 
host_name 'centos-64bit' for this check result to be handled.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] ampersand in email address

2010-03-24 Thread Marc Powell

On Mar 23, 2010, at 9:00 PM, Kyle O'Donnell wrote:

 Trying to figure out how to escape an ampersand () in one of the email
 addresses I need to send notifications to (yes it is RFC compliant).  Short
 of writing a script with the address hard coded and creating a custom
 command what can be done?

Are you sure it needs escaping and not being removed on purpose? check the 
value of illegal_macro_output_chars in nagios.cfg.  is specified there by 
default I believe.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Monitoring mysql with nagios on centos

2010-03-19 Thread Marc Powell

On Mar 19, 2010, at 6:22 AM, Puran Rai wrote:

 Hello
 I have install nagios core 3.0 using yum in my centos 5.4 system. I have 
 few configuration and modification to monitor some of the services like 
 http, pop, imap etc. Now I am facing the problem of configuring nagios 
 to monitor mysql services. Can you please help me?

The standard plugins include check_mysql. Is that what you're looking for?

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 and HTTP Basic Authentication

2010-03-18 Thread Marc Powell

On Mar 18, 2010, at 8:29 AM, Marc-André Doll wrote:

 Hi all,
 
 
 I'm trying to reach a website hosted on a IIS webserver and supervise it
 with check_http (from the nagios-plugins v1.4.13 bundle). This website
 asks for a Basic HTTP authentication, so I tried
 
 check_http -H 'my.server' -a 'domain\user:pass' -f follow

Are you *sure* you're using basic authentication. This looks more like NTLM 
authentication to me.

 and got :
 
 HTTP WARNING - 401 Unauthorized

check_http does not support NTLM authentication. I expect that your server log 
files will have more detail but all things being equal, I'd say that the server 
isn't accepting basic authentication.

 So i tried this to check if the username/password was correct :
 
 wget http://my.server/ --http-user='domain\user' --http-passwd='pass'

Modern versions of wget supports 3 authentication types: basic, digest and 
NTLM. It tries to figure out which one to use on-the-fly based on server 
responses.

 and got :
 
 HTTP request sent, waiting response ... 401 Unauthorized

Failed attempt using basic authentication (?)

 Reusing existing connection to my.server:80
 HTTP request sent, waiting response ... 401 Unauthorized

Failed fallback attempt using digest authentication (?)

 Reusing existing connection to my.server:80
 HTTP request sent, waiting response ... 200 OK

Fallback success using NTLM authentication (?).

 What am I supposed to understand ? Is that a flawn in check_http Basic
 Authentication implementation or a IIS configuration issue ?

I'd say that your IIS server isn't using basic authentication. If you're not 
able to specify Basic authentication on the server side, you might want to look 
at http://exchange.nagios.org. I believe there are a number of check_http'ish 
plugins there that support NTLM (by way of curl or other external program).

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 check timing

2010-03-18 Thread Marc Powell

On Mar 18, 2010, at 9:53 AM, David Dyer-Bennet wrote:

 I'm monitoring some far-away remote hosts, that we connect to via the
 public internet (well, there's an encrypted VPN involved).  I'm trying not
 to send notifications until an outage persists for a while.
 
 In an example I looked at this morning, I see that it was repeating the
 host check every 10 seconds until it hit the retry count.

With nagios-2, when a host enters a non-OK state, nagios switches to a serial 
mode where the host check is retried until max_check_attempts is reached. The 
fact that it's 10 seconds has more to do with the check that you are performing 
than any nagios timing. That's apparently about how long it takes each check 
run to complete (are you issuing 10 pings perhaps?).

 Where does that 10 seconds time come from?  The manual is remarkably vague
 about host check scheduling; about all it says is that it does them on
 demand,

With nagios-2, host checks are only run when a service on the host fails. 
Nagios will then run the host's check_command, up to max_check_attempts, to 
determine if the host is down or just the service.

 and If the first host check returns a non-OK state, Nagios will
 keep pounding out checks of the host until either (a) the maximum number
 of host checks (specified by the max_attempts option in the host
 definition) is reached or (b) a host check results in an OK state.

Yup, the host check_command is run, one immediately after the previous, until 
max_check_attempts is reached. During this time nagios is doing *nothing* else 
besides checking this host.

 Does this mean I have no control over the timing?  

Depends on your version of nagios. With nagios-2, yes, you have no control over 
the timing.

 Can I treat the 10 second observed delay as real (and then control total time 
 delay by
 setting max_attempts high)?

Setting max_attempts is a way to deal with that but if you're using nagios-2, 
you're stopping *all* other checks and processing until max_attempts is 
reached. If you set it so that it's 6 then for about the next 60 seconds nagios 
is doing nothing besides checking this single host. This may be important to 
you if you have lots of other checks you are doing.

If you need to have more control over that then I'd suggest upgrading to 
nagios-3. Host check logic was greatly improved and more in line with how 
service checks are done.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 and proxy

2010-03-17 Thread Marc Powell
On Wed, Mar 17, 2010 at 8:16 AM, Marc-André Doll m...@b-care.net wrote:

 Hi list,

 I'm trying to check some web applications through a proxy with
 check_http (version 1.4.13).

 I googled it and found that, with version 1.4.8, it might be possible to
 try this
 (
 http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11186.html) 
 :

 check_http -H my.proxy -p my_proxy_port -u http://my.website

 Unfortunately, I have to access my application through HTTPS. So I tried
 with


I do not believe you can do this with check_http. From my recollection and
looking at the code, it does not support the CONNECT method required to
tunnel the https traffic through the proxy.

-- 
Marc
formerly marc /at/ ena.com
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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: Adjusting fields which appear in the default nagios log

2010-03-17 Thread Marc Powell

On Mar 17, 2010, at 5:29 AM, Traiano Welcome wrote:

 Hi All
 
 I’m sending nagios logs to a 3rd party application (Netcool) for processing, 
 and there is a requirement for the IP address of the monitored device to 
 appear in the ALERT and NOTIFY log lines for host and service statuses. Where 
 would I adjust which fields appear in the nagios log lines?
 
 A typical host ALERT log line on my installation looks like this:
 
 ---
 Mar 17 11:51:42 nagserver nagios: HOST ALERT: hostname-x;UP;SOFT;2;PING OK 
 - Packet loss = 0%, RTA = 260.81 ms

There are many components of nagios that rely on the format of these log lines. 
You'll need to touch all of them if you intend to keep them working. A simple 
grep to get you started --

$ grep -rl HOST ALERT *
base/logging.c
cgi/summary.c
cgi/avail.c
cgi/history.c
cgi/showlog.c
cgi/histogram.c
cgi/trends.c

Perhaps a better/more flexible/more scalable solution would be to write your 
own event broker module that creates it's own log file (or other integration 
with netcool) in the format you need.

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Whos Disabling Notifications

2010-03-15 Thread Marc Powell

On Mar 15, 2010, at 8:38 AM, Mark Elsen wrote:

 Somehow our notifications are getting disabled. I assume a user is doing
 this via the Process Info page.
 
 What and where can I grep to find out who is running this command from the
 Web interface.
 
 
 
  - Check .../var/nagios.log , configure proper authentication
 setup(s) for NAGIOS

This is all he'll find there... Not very useful for his purposes --

[1268660255] EXTERNAL COMMAND: DISABLE_NOTIFICATIONS;1268660255

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Whos Disabling Notifications

2010-03-15 Thread Marc Powell

On Mar 15, 2010, at 8:27 AM, Charles Breite wrote:

 Somehow our notifications are getting disabled. I assume a user is doing this 
 via the Process Info page.
 What and where can I grep to find out who is running this command from the 
 Web interface.

In your web server log files --

ip redacted - mpowell [15/Mar/2010:08:37:33 -0500] POST /cgi-bin/cmd.cgi 
HTTP/1.1 200 1282 http://nagios/cgi-bin/cmd.cgi?cmd_typ=11; redacted

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] switch off send a notification for acknowledgement

2010-03-13 Thread Marc Powell
On Fri, Mar 12, 2010 at 10:24 PM, Asrai khn asrai...@gmail.com wrote:

 Sorry for hijacking the original post.

 Is it possible to completely disable the 'Send Notification' check box ?

 I thinks i have edit the source code for this purpose but do not know which
 file?


cgi/cmd.c

I'd recommend changing it to a hidden input type with a value of '0' if you
never want to send them.

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] switch off send a notification for acknowledgement

2010-03-12 Thread Marc Powell

On Mar 12, 2010, at 1:21 AM, Brent Clark wrote:

 Hiya
 
 I tried googling. Would anyone know how to switch off send a notification 
 when there is an acknowledgement.

When submitting the notification, there is a 'Send Notification' checkbox; 
deselect it before submitting.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 creatin hostgroup

2010-03-11 Thread Marc Powell

On Mar 11, 2010, at 8:41 AM, Gezina Dekker wrote:

 Hi all,
  
 When I restart after adding this host-group using split.cfg I get the 
 following.
 Running configuration check. CONFIG ERROR!  Restart aborted.  Check your 
 Nagios configuration
 
 I have server a definition for it. if I comment the lines out, the resatrt is 
 successful.
  
 I am just missing something???

Did you follow the suggestion from Assaf in the response your original post 
yesterday? That's how you'll know what you need to fix.

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] If any one know how to send mail alerts from nagios to yahoomail please help me by sending configuration steps

2010-03-10 Thread Marc Powell

On Mar 9, 2010, at 11:20 PM, Pavan kumar wrote:

 Hi Everyone,
 I configured nagios on my linux server and nrpe on my linux clients all the 
 thing is fine i can able to monitor all the clients from my server and 
 locally in my network i can able to receive mail alerts when any service is 
 down. But i need to get all the mail alerts to my yahoomail id but i can't 
 able to configure it. If any one know how to send mail alerts to yahoomail 
 please help me 

As far as nagios is concerned, it's no different than sending an e-mail to any 
other address. Just specify that address as the email parameter for a contact 
that's being notified.

Because you're sending mail to the Internet though, you need to follow all of 
the common rules for sending mail on the Internet. Typically the easiest way to 
do so is to configure the MTA on your nagios box (sendmail, postfix, exim, 
qmail, whateveritis) to smarthost mail to your current SMTP server.

If you want to send to Yahoo directly from your nagios box, at a minimum you 
need to ensure that -
- the sending mail address is from a valid @domain.com
- The public IP seen by Yahoo has valid reverse DNS
- The name presented by reverse DNS resolves back to that same IP 
(FCRDNS)
- The public IP seen by Yahoo is not on any blacklists
- The hostname or HELO name presented by the MTA on your nagios server 
is a valid hostname.domain.com in the public DNS

Consult the documentation for the MTA you have installed on your nagios box for 
information on how to configure it for Internet delivery.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] event handler script not executing

2010-03-10 Thread Marc Powell

On Mar 10, 2010, at 10:34 AM, Rick Garland wrote:

 Hi Mark:
 
 I have included the entry from the nagios.log file
 The entry in the nagios.log
 [1268099555] SERVICE_EVENT_HANDLER: my_host;NFS
 CHECK;CRITCAL;SOFT;3;remount-nfs!CRITCAL!SOFT!3
 
 Within nagios the event handler is being launched. But the executable is not 
 getting touched.
 When viewing the Event Log from the GUI, it has that little graphic for the 
 Event Handler as well.
 
 But still, the bash script (perms 755 and owned by nagios) is not being 
 touched.

How do you know this?

Look back at the suggestions from yesterday.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] event handler script not executing

2010-03-10 Thread Marc Powell

On Mar 10, 2010, at 11:29 AM, Rick Garland wrote:

 Hi Marc:
 
 In the script I have it doing a couple of arcane things for testing.
 I have it touch a file called 'test' and I have it echo the macro values
 to a file as well.
 These are successful.

 When trying to launch from nagios these files are not present.

Are the paths hard-coded in your script? Is the directory writable by nagios? 
Is the script executable? Is the magic line present and well-formed?

Also try changing the event_handler parameter in the service definition from

event_handler   remount-nfs!$SERVICESTATE$!$SERVICESTATETYPE$!$SERVICEATTEMPT$

to

event_handler remount-nfs

The other parameters aren't being used in your command{} definition.

 I am unable to find any post from yesterday that would contain any
 suggestions that were provided.

Ok, so I meant to say 'the other day when you posted originally' - 
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31297.html

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-09 Thread Marc Powell

On Mar 9, 2010, at 1:50 AM, Jatin Davey wrote:

 Please let me know what needs to be done , i am kind of receving 1000 
 notifications per day for the same hosts.

 2. Given below is the output from one of the host as found in the 
 object.cache file:
 
 define host {

This has no relevance since you're asking about service notifications. Look for 
the service definition in question in objects.cache. Verify that retry_interval 
is what you expect it to be. If it is, you have multiple nagios daemons 
running, escalations defined or some problem with your MTA not removing 
messages from queue after delivery.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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_by_ssh from a different username

2010-03-09 Thread Marc Powell

On Mar 9, 2010, at 12:46 AM, Morris, Patrick wrote:

 How can I use check_by_ssh to monitor remote servers, when the 
 username on the remote box is different from the Nagios user name?
 
 Install the private keys of the remote users on the Nagios machine under 
 the nagios user.  You've already determined they work, so now copy them 
 over.

Actually, it's the opposite. He needs to add the nagios user's public key to 
the authorized_keys file for each user on the remote machines.

Moving private keys around is a security no-no.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Restrict user only to enable/disable checks

2010-03-09 Thread Marc Powell

On Mar 9, 2010, at 3:01 AM, Jelle Smet wrote:

 Hi list,
 
 
 I'm looking for a way to allow users do pretty much everything of the host 
 and service commands except enabling  disabling them.
 
 I believe these are
 
 cmd_typ=16 (for all services on the host)
 cmd_typ=4 (for the host check)
 cmd_typ=6 (for a service check)
 
 There are a couple of things which come to my mind such as mod_security, or 
 some other apache level restricting stuff.

I expect that you could use htaccess to do this. Completely off the top of my 
head and untested but try something like this in the .htaccess file in the sbin 
directory --

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(cmd_type=16|cmd_type=4|cmd_type=6) [OR] 
RewriteRule ^(.*)$ /not_allowed.html [R,L] 

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] NSClient - ERROR: Failed to get PDH value.

2010-03-09 Thread Marc Powell

On Mar 9, 2010, at 3:15 AM, Jatin Davey wrote:

 Hi
 
 I am getting this error when i monitor my windows box using NSClient++
 
 NSClient - ERROR: Failed to get PDH value.

Google says it may be this --

http://www.techadre.com/content/error-nsclient-counter-errors

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] how many hosts or services can hold in one nagios?

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 9:17 AM, HyunSung Jang wrote:

 hello.
 I am think about setting up distributed monitoring but i just wanna know 
 about how many
 hosts or services  can hold in one nagios server.

There's no simple answer to this question because there are too many variables. 
An equivalent question is 'How far will a car go on a liter of gas?

 I have about 1000 hosts in my environment, and 3-5 services for each hosts.
 this makes maximum 5000 services check which i need to setup.

Are these simple checks or complex checks? Are you performing them once a 
second or once every 24 hours? Are you checking things on a fast LAN or slow 
WAN? Answering these questions won't get you a definitive answer but does 
illustrate some of the factors that can affect how many things you can check in 
a given interval.

 can I make one nagios server to check all this hosts and services? 
 and do you guys think that it is possible?

I expect that if you have a mix of simple (like ping) and complex (like 
check_http) checks, performed every 5 minutes or so on modern hardware and a 
decent network, you should be fine. I have single machines checking ~4000 
services with 5 minute interval (complex and simple checks) and I appear to 
have plenty of room to grow.

 if not, how many hosts or services should hold in one nagios servers?
 
 at this moment i adjusted interval_length to 1 in nagios.cfg and i am using
 10 sec to check_interval in objects.cfg.

I'd be surprised if you could run 5000 checks every 10 seconds, even if they 
were just ping (unless just a single ping). It may be possible but you'll have 
several thousand processes running concurrently all the time.

 Any comments or recommends are appreciated.

I think the best answer anyone can give you is Try And Find Out, given your 
environment, the checks you want to perform and the frequency you want to 
perform them.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] You do not have permission to access /nagios on this server

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 12:16 PM, Gezina Dekker wrote:

 Hi all,
 

 The contents of my /share is the following:
 drwxrwxr-x   9 nagios nagcmd  4096 mrt  8 11:39 .
 drwx--  12 nagios nagcmd  4096 mrt  8 11:39 ..

Permissions on this directory are not allowing your web server 'rx' access. 
Looks like this is /usr/local/nagios. chmod 755 /usr/local/nagios or chmod g+rx 
/usr/local/nagios if your httpd run-as user is in the nagcmd group.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Want to Install nagios

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 12:29 PM, ravishankar.gundlap...@wipro.com 
ravishankar.gundlap...@wipro.com wrote:

 Hi,
 
 I have given the command ' yum install httpd php ' to install the
 packages initially but the below error occurred.
 
 Please suggest.

Ask the forum that supports your OS/package manager? It seems you have outdated 
repository data for it.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] You do not have permission to access /nagios on this server

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 12:53 PM, Gezina Dekker wrote:

 This is the messages I am getting:
  
 [Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL ERROR: Can't 
 connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 [Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL user 
 nagiosadmin not found: /nagios
 What does MySql have to do with the bak of patatoes?

That's the question only you can answer. Do you have some special/unique Apache 
authentication module installed and enabled for your web server that is 
overriding the standard mod_auth module? mod_auth_mysql maybe? Default apache 
authentication uses text files, not MySQL. You've installed something 
special/unusual/unique/non-default. What is it?

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 chance that the list owner can delete these users???

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 2:52 PM, Gezina Dekker wrote:

 Any chance that the list owner can delete these users???

No, none.

 2010/3/8 Mail Delivery Subsystem mailer-dae...@ihemail4.lucent.com
 The original message was received at Mon, 8 Mar 2010 14:47:47 -0600 (CST)
 from h135-1-218-53.lucent.com [135.1.218.53]
 
   - The following addresses had permanent fatal errors -
 j.sher...@hp.com
(reason: 554 5.7.1 gezin...@gmail.com: Sender address rejected: This 
 gmail.com mail didn't really arrive via a gmail.com mail server)

If you don't send to them directly, which you shouldn't be doing anyway, or you 
send your message through Google's servers, like you should be, then this 
wouldn't be an issue.

If there is a problem with the listserv sending messages to them, they will be 
removed automatically. It looks like the problem is yours alone though because 
of the way you are responding.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] event handler command not executing

2010-03-08 Thread Marc Powell

On Mar 8, 2010, at 7:58 PM, Rick Garland wrote:

 define command{
 command_nameremount-nfs
 command_line   $USER1$/eventhandlers/remount-nfs 
 $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
 }
  
 enable_event_handlers=1 in the nagios.cfg file
  
 The script itself is very simple. At CRITICAL/SOFT/3 and CRITCAL/HARD/4 the 
 script will execute. Running at command line as UID=nagios it runs fine.
 sudo is configured and nagios can mount NFS.
  
  
 The entry in the nagios.log
 [1268099555] SERVICE_EVENT_HANDLER: my_host;NFS 
 CHECK;CRITCAL;SOFT;3;remount-nfs!CRITCAL!SOFT!3

Nagios is running it. This is good.

 I have followed the process through and it will not execute the remount-nfs 
 event handler command.

  
 What is missing?

First guess: you have REQUIRETTY enabled in your sudoers file (run visudo and 
check).
Second guess: $USER1$ doesn't point to the location of 
{?}/eventhandlers/remount_nfs.
Third guess: you do not use hard-coded paths to programs used within 
remount-nfs. The working environment for scripts executed by nagios is very 
minimal. Don't depend on $PATH being as complete as it is during an interactive 
session. Hard code paths to everything. That should be a BCP anyway.

Try adding a bit at the top of the script to touch a file or something to see 
if it really ran and is maybe failing further into the script (i.e. because of 
a potential sudo restriction).

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Apache HTTP Server mod_deflate Remote Denial Of Service Vulnerability

2010-03-06 Thread Marc Powell

On Mar 6, 2010, at 8:33 AM, ravishankar.gundlap...@wipro.com 
ravishankar.gundlap...@wipro.com wrote:

 Hi ,
 
 I have below mentioned action items on me which my security team identified .
 
 Please let me know whether the solution you have provided earlier is same for 
 these?
 
 Can anyone let me know the procedure for this...
 
 
 1)Apache mod_proxy_ftp Module NULL Pointer Dereference Denial Of Service 
 Vulnerability
 
 2)Apache HTTP Server mod_proxy stream_reqbody_cl Function Denial of Service 
 Vulnerability
 
 3)Apache HTTP Server mod_deflate Remote Denial Of Service Vulnerability
 
 4)Apache APR and APR-util Multiple Integer Overflow Vulnerabilities

Hi Ravishankar,

I don't know what your 'action items' are related to these but they don't seem 
to have anything to do with Nagios. If there is some relation to Nagios, you 
probably want to clarify that connection if you want better help. 

It seems to me that you should be using Google to find out how to correct these 
vulnerabilities or asking on the Apache users support listserv. It almost 
certainly involves upgrading Apache or the modules in question or disabling 
them entirely if you don't use them. While many of us may use Apache, it's not 
appropriate to ask here for Apache support unrelated to Nagios and you'll 
definitely get more relevant/accurate/timely answers from a forum that provides 
that support.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-05 Thread Marc Powell

On Mar 5, 2010, at 4:16 AM, Jatin Davey wrote:

 But when i set this to 0 , i am still getting email notifications every 
 10 mins for the service which is in down state for more than one day.
 
 Is this is a bug or am i missing something here , Please let me know.

Make sure that you restarted/reloaded nagios and that you don't have multiple 
nagios daemons running at the same time (one that knows the old config, one 
with the new).

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] [Launching a perl script from nagios ]

2010-03-04 Thread Marc Powell

On Mar 4, 2010, at 6:07 AM, badreddine meherzi wrote:

 Hi,
  
 I'm trying to make nagios execute a perl script as host problem notification 
 instead of sending a mail and this doesn't work. 
 so I've done the following configurations:
 The Perl script is for RT ticket creation.
 The Perl script create_ticket.pl works fine and a ticket is created when 
 executed with the perl command in shell by the nagios user.

Can you post an example run? Is it different than your command_line below in 
any way?

 #'notify-host-by-create-ticket' command definition
 define command {
command_name notify-create-ticket
command_line /home/himilco/perlscript/create_ticket.pl

You don't pass any arguments to this command. How does it know what it's 
supposed to create a ticket for? Does it use environment variables or is it 
hard coded internally for testing? Also, it's very unusual for another user to 
have access to someone else's homedir. Did you modify permissions to grant 
extra access to /home/himilco?

# I tried also to put : command_line /opt/rt3/bin/rt create -t ticket 
 set subject='ticket_from _nagios ' priority=10 queue=General  

This looks like it should work. Is the command 'rt' a perl script as well? I 
haven't used Request Tracker before.

 the nagios log show this line:
 
 Mar  4 12:01:25 localhost nagios: HOST NOTIFICATION: 
 nagiosadmin;pc-yacine;DOWN;notify-create-ticket;CRITICAL - Host Unreachable 
 (172.16.125.140)
 *

Yes, that's a good sign. Nagios is trying to execute your script.

Do you have the embedded perl interpreter enabled? If so, is create_ticket.pl 
written to it's standards? If it's enabled, try disabling it globally or for 
this script in particular. The documentation for Enabling the Embedded Perl 
Interpreter can help you answer these questions.

Additionally, I'd just try adding a couple lines at the top of create_ticket.pl 
to write some text to a file in /tmp. Just something to show that it ran.

Finally, you might try modifying the command_line to capture any output from 
the script to a file for inspection --

command_line /home/himilco/perlscript/create_ticket.pl 
 /tmp/ticket.out 21

--
Marc




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Re-send: Notificaitons after the commit

2010-03-02 Thread Marc Powell

On Mar 2, 2010, at 11:35 AM, Martin Melin wrote:

 2010/3/2 Robert Wolfe rwo...@i-evolve.com
 I am curious here...
 
 If all you are doing is restarting Nagios, why not just use:
 
/etc/init.d/nagios restart
 
 Instead of all the other commands and parameters?
 
 Running nagios -v nagios.cfg haves Nagios verify the configuration, this is 
 best practice because otherwise you risk a typo stopping your monitoring for 
 the time it takes for you to correct the configuration :-)

The init script already does this and doesn't restart if verification fails.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] cgi_base_url - change in latest build?

2010-03-02 Thread Marc Powell

On Mar 2, 2010, at 3:07 PM, Andres L. Figari wrote:

 Hello,
  
 Recently my monitor server crashed and I decided to go with a the latest 
 version of Nagios rather than backups.   I did not really notice the 
 automatic update feature - though I may have opted for it anyhow.  Suddenly 
 my cgis are not working:
  
 The requested URL /nagios/cgi-bin/status.cgi was not found on this server.
  
 I had my cgi.cnf set up like this... 
  
 url_html_path=/
 Anyone know what it was that changed that I cannot configure this anymore via 
 the cgi.cnf


It's a compile-time option --

$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

{snip}

--with-cgiurl=local-url sets URL for cgi programs (do not use a trailing 
slash)
--with-htmurl=local-url sets URL for public html


I expect you previously used  '--with-htmurl= --with-cgiurl=/cgi-bin' for your 
old install.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] A bit OT Apache- nagios refresh issue

2010-03-01 Thread Marc Powell

On Mar 1, 2010, at 7:29 AM, Frost, Mark {PBG} wrote:

 
 I too have encountered this issue and also find it quite annoying.  I did 
 refreshes a lot with 3.0.6 and find them useless now that I'm redirected to 
 the home page.  (I was just going to post something about this).
 
 Did the backend web code change with 3.2.0?

A bit. index.html is now index.php. Because there's no actual PHP in there yet, 
you can rename share/index.php to share/index.html to regain the old behavior. 
You can do this now but you may not be able to in future releases.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 plugins fail when pass arguments

2010-02-25 Thread Marc Powell

On Feb 25, 2010, at 1:56 PM, Joao Ferreira gmail wrote:

 bellow a log with details; the only difference between the 1st and the
 second is that the 2nd receives args from the client nagios station

 Feb 25 15:17:55 ebox nrpe[10779]: Running
 command: /usr/lib/nagios/libexec/check_tcp -H localhost -p 22
 Feb 25 15:17:55 ebox nrpe[10779]: Command completed with return code 0

 Feb 25 15:18:49 ebox nrpe[10827]: Running
 command: /usr/lib/nagios/plugins/check_tcp -H localhost -p 22
 Feb 25 15:18:49 ebox nrpe[10827]: Command completed with return code 3

You're also changing the path to the plugin in the command definition. I'm 
guessing it isn't valid any longer.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 MRTG does not deliver data from switch

2010-02-24 Thread Marc Powell

On Feb 24, 2010, at 1:39 PM, Rainhard wrote:

 Hey,
  
 I want to get informations about the traffic of the port 1 from my cisco 
 switch which understands SNMP. So I installed Nagios, the nagios plugins, 
 snmpd, snmp and mrtg. I use the check_mrtgtraf command in my switch.cfg to do 
 this.
 After installing mrtg like described at 
 http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html I also used cfgmaker 
 to get my mrtg.cfg file.

 As the WorkDir says, the log-Files created from mrtg should be in the 
 directory /etc/mrtg but the only files I find there are three pictures from 
 mrtg.
  
 My Nagios verion is 3.2.0, my nagios plugins version is 1.4.14 and my mrtg 
 version is 2.16.3.
  
 So what did I do wrong??

This is not an MRTG support list. You'll have better luck asking for support 
there. Did you add the cronjob to actually run MRTG? Is it running successfully?

--
Marc
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Processing External Commands

2010-02-19 Thread Marc Powell

On Feb 19, 2010, at 6:40 AM, g...@addicks.org g...@addicks.org wrote:

 My MRTG stats are showing an average of 3000 external commands being
 processed on the 5 minute average, so its quite busy.

For perspective I do nearly 10,000/5min with no problem (using ndoutils b8).

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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/NSCA replacement thoughts?

2010-02-19 Thread Marc Powell

On Feb 19, 2010, at 5:05 AM, Michael Schwartzkopff wrote:

 Quite secure ? With UDP (spoofing) and a community not encrypted ?
 SNMP : Security Not My Problem ;-)
 
 OK. With ip spoofing you cen send packages. But if you do not the routing 
 back 
 you will never receive the answer. So what.

If the write community is known, that 'So what' can be quite a big deal.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Notifying through sms and call

2010-02-19 Thread Marc Powell

On Feb 19, 2010, at 3:58 PM, Eduardo Barreto wrote:

 Should I create another contact just for the call notifications? Please, 
 someone give a clue.


That's how I'd do it.

--
Marc


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 odd behaviour

2010-02-18 Thread Marc Powell

On Feb 18, 2010, at 5:04 AM, Paul WILLIS PSE 55499 wrote:

 Clearly that whereas bash only needs $ and ` escaping within inverted commas 
 nagios must have a larger list, including I would guess either the ; or the :

Nope, not really. \, ! and $ are the only characters that may need escaping, 
depending on where they are used. With the exception of $MACRO$ substitutions, 
nagios just takes your raw command_line and passes it to the shell for 
execution. You never posted your command definition but I'd guess that you 
didn't have proper quoting or something like that.

--
Marc
--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Can I run both Nagios V2 and V3 in parallel while I migrate?

2010-02-18 Thread Marc Powell

On Feb 17, 2010, at 8:29 PM, Lylex Ryan wrote:

 In upgrading from nagios (v2) to nagios3, I'd like to do a fresh install of 
 nagios3 and start with a clean sheet of  (config) paper.  But can I do this 
 while V2 is running production?

Yes, I've run instances of all three versions on a single box at once.

 Since the packages have different names, I thought it might work.  But they 
 probably would both have /etc/nagios and other default directories in common. 
  

Clearly if the packages install components to common directories then that 
isn't going to work. Compiling and installing from tarball is not difficult at 
all and you have control over where things get put (by default everything is 
under /usr/local/nagios). You'll need to set up a second http vhost with a 
different name for the second instance and either modify the nagios init script 
to start the second instance or add the startup to rc.local.

Once you're confident in the success of your transition, you could uninstall 
the v2 package, install the v3 package and copy over your etc and var 
directories from your transition install...

--
Marc


--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Processing External Commands

2010-02-18 Thread Marc Powell

On Feb 18, 2010, at 5:17 AM, Glynne Jones wrote:

 This delay can be several minutes and has sometimes been over 10 minutes.
 
 I am running ndoutils as well, and some of the tables are quite big. Could 
 this affect things?

Yes, certainly. If the database is busy, either through action of your own or 
through one of the regular table maintenance tasks then processing of check 
results may be delayed waiting on the database. Should be pretty easy to see 
through top if mysql is busy during those times.

--
Marc


--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Editing the nagios Side bar

2010-02-18 Thread Marc Powell

On Feb 17, 2010, at 5:14 PM, Ron Wilson wrote:

 I have 6 groups set up holding servers being patched on each day. I would 
 like an entry  in the Nagios sidebar that says patching which would then give 
 a web page view of the six patching groups on one page. This makes it easier 
 for admins to disable notifications for a large number of servers with one 
 click.
 Because we have so many groups it would be easier to have the Patching days 
 on one page.
 However while I can create a url for one days Patching in the new page I 
 cannot get all six.
 This is my php code
 lia href=?php echo 
 $cfg[cgi_base_url];?/status.cgi?hostgroup=Patch_Day1amp;style=overview 
 target=?php echo $link_target;?Patch Day1/a/li
  
 This works fine but how can I get the other 5 Patch Groups in that line. I 
 need something like Patch_Day* but such a command does not work with php.
 Anyone got some ideas?

It's not a PHP thing... Nagios does not have functionality to limit (or expand, 
depending on how you look at it), the display of multiple hostgroups that are a 
subset of all hostgroups. The only exception to this is limitation through 
authentication, which wouldn't appear to fit your goals.

--
Marc


--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] service notification when host is down

2010-02-18 Thread Marc Powell

On Feb 18, 2010, at 3:47 AM, Samuel Bancal wrote:

 Thanks for your answer,
 
 In fact it is normal behavior to me also.
 Thing that is not normal behavior to me is that between two checks, Nagios 
 jumps from SOFT 1 to HARD 1 without doing the steps SOFT 1  SOFT 2  
 SOFT 3 and finally HARD 4.

If the host is down, why should nagios go through all that? There's no 
possibility for the service to be up when the host is not.

--
Marc


--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


  1   2   3   4   5   6   7   8   9   10   >