Re: [Nagios-users] [Nagios-devel] Bug in 3.0.2 with service escalation contact groups

2008-05-27 Thread Mathieu Gagné
Hi Andy, Andy Shellam wrote: I'm more inclined to think that the service escalation is wrong in its behaviour, but then I could be wrong? HostEscalation differs from ServiceEscalation as you can see in the source code: File: xdata/xodtemplate.c For ServiceEscalation Line: 10251 (for

Re: [Nagios-users] [Nagios-devel] Bug in 3.0.2 with service escalation contact groups

2008-05-27 Thread Mathieu Gagné
the same behavior applies everywhere. Also, by removing the white-space separator, will this still work? (note the white-space) define hostescalation { contact_groupscontactgroup1, contactgroup2 } -- Mathieu Gagné

Re: [Nagios-users] check_icmp issues warning and does not run

2008-05-29 Thread Mathieu Gagné
Nguyen, Tham wrote: I also checked under /usr/local/nagios/libexec folder and check_icmp is running under user root. I changed root to nagios user and it produced the same error. -rwxrwxrwx 1 root root 85170 May 15 16:26 check_icmp This file is OWNED by root, not RUN as root. Your

Re: [Nagios-users] check_icmp issues warning and does not run

2008-05-29 Thread Mathieu Gagné
The setuid bit works though; just the config file is not set properly. The error message (Warning: This plugin must be either run as root or setuid root ) is ambiguous!!! check_nrpe means it will be run on the remote host, not the local host. Please make sure the setuid bit is also set

Re: [Nagios-users] check_ldap: Please specify the host name

2008-06-09 Thread Mathieu Gagné
check_ldap is executed on the remote host via NRPE, not the local host. Your command definition check_ldap in commands.cfg is therefore not used. You should include -H $ARG1$ somewhere in your command definition in nrpe.cfg on your remote host or hardcode it. Mathieu Mangesh Dhamale wrote:

Re: [Nagios-users] action_url issues

2008-06-19 Thread Mathieu Gagné
Nagios User wrote: Hugo, Thanks for checking into this. I rolled back to version 3.0.1 and everything is working fine. For some reason the new code is reading the slashes on urls differently. See the lines on URL to Acknowledge. A bugfix has been applied in Nagios 3.0.2. In fact, the behavior

Re: [Nagios-users] action_url issues

2008-06-19 Thread Mathieu Gagné
Hi, Mathieu Gagné wrote: A bugfix has been applied in Nagios 3.0.2. In fact, the behavior in Nagios 3.0.1 was the wrong one I guess. This bugfix was introduced here: http://thread.gmane.org/gmane.network.nagios.devel/5219/focus=5225 Some characters don't get encoded and the list

Re: [Nagios-users] How do we report a possible bug (in check_ping)?

2008-06-20 Thread Mathieu Gagné
Eddie F wrote: See the two examples below, running check_ping on our system. Firstly using the domain name, then using IP address... # /usr/local/nagios/libexec/check_ping -H nagios.org -w 300,10% -c 1000,50% -p 5 CRITICAL - Plugin timed out after 10 seconds #

Re: [Nagios-users] Problem scheduling downtime externally

2008-06-25 Thread Mathieu Gagné
You can't open nagios.cmd in append mode, otherwise it will cause a seek. You should use the function nagios_cmd declared in Nagios::Cmd: http://search.cpan.org/src/TOBEYA/Nagios-Cmd-0.05/lib/Nagios/Cmd.pm It's working fine for me. -- Mathieu

Re: [Nagios-users] Custom Cfg files?

2008-06-25 Thread Mathieu Gagné
You should look in the manual for the configuration variable cfg_file: http://nagios.sourceforge.net/docs/3_0/configmain.html Mathieu Shoaibi wrote: What if i create my config files and want to use them instead of the default files? Like suppose: Default files are: contact.cfg

Re: [Nagios-users] Nagios can works with help desk software?

2008-07-23 Thread Mathieu Gagné
Luis Gardea wrote: I need that my helpdesk create a ticket when alarm is detected by Nagios. Some ideas to do it? Nagios 3.0.3 helpdesk wonderdesk 4.0 with Microsoft sql server data base ubuntu server 7.10 Just send the first alert notification to your helpdesk. It should create a

Re: [Nagios-users] external command to enable all active service checks

2008-08-25 Thread Mathieu Gagné
This should be the answer: START_EXECUTING_SVC_CHECKS http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=41 Mathieu Robert Anderson wrote: I am setting up a failover nagios instance as described here.

Re: [Nagios-users] OpMon.org

2008-10-31 Thread Mathieu Gagné
I can't load OpCfg's interface. I'm getting those PHP errors: Fatal error: Call to a member function isSideBarIncluded() on a non-object in /usr/local/nagios/share/opcfg/output/output.php on line 535 Fatal error: Call to a member function isSideBarIncluded() on a non-object in

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi Jeremiah, jeremiah wrote: On my monitored hosts, I've specified the corellary command in /etc/nagios/nrpe.cfg, then restarted the service. # command[loadscript_check_error_log]=python /home/username/script.py Am I missing something? Is there really a # at the beginning of the

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: When I typed python on the command line it drops my into the python interpreter. Regardless, I went ahead and specified it in the command: command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py now when i run the

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: i check the manual and this is what it says about this particular error: On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote: I just chown'd the file for nagios. $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py $ ls -la *.py -rwxr-xr-x 1 nagios jesterj

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: I check the log file and this is all i'm seeing pertaining to this command on the server. Oct 31 22:33:23 serv1 nagios2: SERVICE ALERT: serv2;LOADSCRIPT CHECK ERRORS;WARNING;HARD;3;NRPE: Unable to read output Oct 31 22:33:23 serv1 nagios2: SERVICE NOTIFICATION:

Re: [Nagios-users] nrpe script

2008-11-03 Thread Mathieu Gagné
Hi, jeremiah wrote: *changed the path in the command. command[loadscript_check_error_log]=/usr/bin/sudo /usr/local/bin/python /etc/nagios/report_loadscript_error_log.py Can this command run without sudo? /usr/local/bin/python /etc/nagios/report_loadscript_error_log.py Try to not use

Re: [Nagios-users] nrpe script

2008-11-03 Thread Mathieu Gagné
Hi, jeremiah wrote: Problem resolved! Great! Even though i removed the sudo command from my commands file it was uncommented and active in nrpg.cfg file. Does this make sense to you? Seems like it could output a better error message than NRPE: Unable to read output?!

Re: [Nagios-users] Not sending alerts

2009-01-13 Thread Mathieu Gagné
Hi, Matt Nelson wrote: We seem to be having an issue with our alert notifications. From what I've determined the command 'notify-by-email' isn't even being called from commands.cfg. Is /usr/bin/mail installed? -- Mathieu

[Nagios-users] Acknowledgement Escalations

2009-01-21 Thread Mathieu Gagné
Hi, Here is the situation: Somebody acknowledges a problem and forget about it. How would you implement an acknowledgement escalation? Or how would you detect such situation where a host/service is down/critical for too long while being acknowledged? -- Mathieu

Re: [Nagios-users] Acknowledgement Escalations

2009-01-21 Thread Mathieu Gagné
Hi, First, thanks for your time and input. RijilV wrote: 2009/1/21 Mathieu Gagné mga...@iweb.com mailto:mga...@iweb.com Here is the situation: Somebody acknowledges a problem and forget about it. How would you implement an acknowledgement escalation? Mmmm, there are a couple

Re: [Nagios-users] Expiring acknowledgements

2009-01-23 Thread Mathieu Gagné
Hi, Frank Clements wrote: I'm wondering if there is anyone out there in user-land that has any process of expiring acknowledgements after a certain time period. I've done some searching and came up mostly empty handed. I've seen a mention of using SEC to carry this out, but I'm completely

[Nagios-users] NDOutils and Nagios startup speed

2009-01-26 Thread Mathieu Gagné
Hi all, We are running 5 Nagios instances (4 x Nagios2 and 1 x Nagios3) which are all using NDOutils. (and more without NDOutils) Our instances are restarted frequently as we are constantly adding new hosts and services. (re)starting an instance can take about 3-4 minutes because NDOutils has

Re: [Nagios-users] NDOutils and Nagios startup speed

2009-01-26 Thread Mathieu Gagné
Hi, Marc Powell wrote: On Jan 26, 2009, at 4:46 PM, Mathieu Gagné wrote: Unfortunately, we can't afford this kind of downtime while Nagios/NDOutils is busy exporting to MySQL. Also, host/service status are not available while the reload is occuring. While I can't really speak to the more

Re: [Nagios-users] Ways and tweaks to make nagios more efficient. load average on monitoring host edging up.

2009-01-27 Thread Mathieu Gagné
Hi, Rahul Nabar wrote: I set up my nagios system to monitor 256 odd nodes each with about 6 services (direct and NRPE). It is working fine but my load averages have started edging upwards. Not critical yet but I wanted some tips to make things more efficient and see if there are things I

Re: [Nagios-users] Ways and tweaks to make nagios more efficient. load average on monitoring host edging up.

2009-01-28 Thread Mathieu Gagné
Hi, Rahul Nabar wrote: On Wed, Jan 28, 2009 at 4:34 PM, Marc Powell m...@ena.com mailto:m...@ena.com wrote: On Jan 28, 2009, at 2:21 PM, Rahul Nabar wrote: Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM Its about 5 years old now I think. A minor correction.

Re: [Nagios-users] NDOutils and Nagios startup speed

2009-01-28 Thread Mathieu Gagné
Hi, Marc Powell wrote: Is there a way to speed things up? Any help would be appreciated. Thanks. I'm interested in tips as well. One way to speed up Nagios start when using NDOutils is to tweak event_broker_options. Here is my new configuration, based on constants defined in

Re: [Nagios-users] Contacts and notifications - services

2009-01-29 Thread Mathieu Gagné
Hi, Ugo Bellavance wrote: Hi, We've been using nagios for a long while, but only needed one group. However, we now want to add a DBA contact group, so that the database administrators get notfications by e-mail if something goes wrong, but only on database servers. I've

Re: [Nagios-users] Contacts and notifications - services

2009-01-29 Thread Mathieu Gagné
Hi, Ugo Bellavance wrote: Mathieu Gagné a écrit : Why don't you add the contactgroup dbas and remove sysadmins from the load service definition for all database servers? Because the load service is defined for all my linux servers. If I remove sysadmin from the load service definition

Re: [Nagios-users] Contacts and notifications - services

2009-01-29 Thread Mathieu Gagné
Hi, Ugo Bellavance wrote: But this also leads to a duplication of a service that is currently stated only once. Is there any host left in the first service check which could be member of the hostgroup used in the second service check? -- Mathieu

Re: [Nagios-users] NDOUtils Help!!!

2009-02-17 Thread Mathieu Gagné
NDOutils is a read-only version of Nagios configuration and status. Configuration and status are exported to NDOutils at startup and updated by the event broker whenever there's a status change in Nagios. Nagios configuration won't be loaded from NDOutils as it's a one-way communication.

Re: [Nagios-users] Ndoutils MySQL performance problem?

2009-03-03 Thread Mathieu Gagné
Livio Zanol Puppim wrote: I'm having huge troubles with Mysql using 100% of CPU at peculiar times. I don't know when this problem starts and I don't know the reason, but when it happends I kill nagios, ndoutils and Mysql, and try to restart Mysql, ndoutils and Nagios at this order. When I

Re: [Nagios-users] migration from nagios2 = nagios3 ; host name definition

2009-03-05 Thread Mathieu Gagné
Hi, Steve Kieu wrote: Hello everyone, The first question is, what is the meaning of directive *name* in host definition? The document says there is no such thing, only *host_name* but if put name there nagios (both 2 and 3 does not complain) name is used to identify a template. You

Re: [Nagios-users] Mobile phone/non-WAP interface

2009-03-10 Thread Mathieu Gagné
Hi, This sure sounds promising. How are status retrieved? Is it done by parsing the HTML output? Mathieu D. Emmanuel Feinsmith wrote: Hi Patrick, I have submitted a native iPhone Nagios App to the iPhone App Store. They say it takes between 30 and 60 days to get on the store. It's

Re: [Nagios-users] Assigning contacts to hosts confusion

2009-05-13 Thread Mathieu Gagné
Hi, On 5/13/09 7:57 PM, Frater, Greg J wrote: Can someone help me understand the best way to assign contacts to hosts en masse? In version 1.x, we would create a hostgroup put the hosts that we needed in it and then assign a contact group to that hostgroup, done deal. Now it appears that

Re: [Nagios-users] Notify via Growl?

2009-05-20 Thread Mathieu Gagné
Hi, On 5/20/09 1:00 PM, Israel Brewster wrote: I have nagios running on an openBSD box, and I would like to use Growl's network notification options to pop-up alert messages on my Mac for certain situations. Does anyone have a script or program that can do this already? I've looked around a

Re: [Nagios-users] Notify via Growl?

2009-05-25 Thread Mathieu Gagné
Hi, On 5/20/09 5:39 PM, Israel Brewster wrote: Which is basically the same thing as hacking the Python script except for a) having to start from scratch, and b) having to work in a language I have little experience with :-) I was sort of hoping someone had already done the above steps and

Re: [Nagios-users] Error Displaying CGI Pages

2009-05-25 Thread Mathieu Gagné
Hi, On 5/25/09 10:24 AM, Chad Files wrote: I am getting the Error: Could not read object configuration data when I view any of the CGI pages in my Nagios installation. This started after I moved my entire OS (Gentoo Linux) installation to a new drive. The nagios daemon is running, there are

Re: [Nagios-users] check_http --ssl

2009-06-11 Thread Mathieu Gagné
On 6/11/09 7:58 PM, p...@fhri.org wrote: My check_http doesn't have SSL support: What am I missing? Try installing libssl-dev: apt-get install libssl-dev And compile with: --with-openssl Working fine for me with Debian. -- Mathieu

Re: [Nagios-users] disable nagios acknowledge notification

2009-07-30 Thread Mathieu Gagné
On 7/30/09 3:23 PM, Wes Rogers wrote: Is it possible to disable notifications for when you ack a service problem via the status.cgi? I don't see any options in the documentation, either globally, per service or contact, etc which lets you disable the sending of a notification when a service

Re: [Nagios-users] hostgroup expansion and regex

2009-08-30 Thread Mathieu Gagné
Terry wrote: The hostgroup alone works fine but the serviceescalation gives this error: Error: Could not expand services specified in service escalation (config file '/etc/nagios/objects/serviceescalations.cfg', starting on line 1) I can replace z-allhosts with the windows host group

Re: [Nagios-users] service dependency problem - config check hangs

2009-09-07 Thread Mathieu Gagné
On 9/7/09 1:19 PM, Terry wrote: Which patch did you tried? Mine is in production at this time and it works perfectly. As for Thomas' one, it simply does not work. Sorry. :) http://marc.info/?l=nagios-develm=125193013621198w=2 [r...@omajelut01 SOURCES]# patch -p0 nagios-patch patching

Re: [Nagios-users] service dependency problem - config check hangs

2009-09-07 Thread Mathieu Gagné
On 9/7/09 12:54 PM, Terry wrote: On Fri, Sep 4, 2009 at 2:51 PM, Marc Powellm...@ena.com wrote: Based on that number, it looks like you're getting all services dependent on the NRPE services on all hosts. I haven't been following this thread but what I think you're trying to do has recently

Re: [Nagios-users] service dependency problem - config check hangs

2009-09-07 Thread Mathieu Gagné
On 9/7/09 1:27 PM, Terry wrote: 2009/9/7 Mathieu Gagnémga...@iweb.com: On 9/7/09 1:19 PM, Terry wrote: I'm not a programmer and haven't spent any time in understanding patching so I probably screwed up. I didn't tried Nagios 3.2.0 yet. I can't tell if the patch would work with this

Re: [Nagios-users] service dependency problem - config check hangs

2009-09-07 Thread Mathieu Gagné
On 9/7/09 2:09 PM, Terry wrote: 2009/9/7 Mathieu Gagnémga...@iweb.com: I turned that off but no luck. What's interesting is this dependency works fine: define servicedependency{ hostgroup_name webmonitor service_description

Re: [Nagios-users] Notifications during network outage

2009-09-28 Thread Mathieu Gagné
On 9/28/09 1:00 PM, John Andrunas wrote: I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when

Re: [Nagios-users] Notification period 0

2009-10-01 Thread Mathieu Gagné
On 10/1/09 3:12 PM, Kurktchiev, Boris wrote: Ok so I set all my notification periods to 0 (in both services and hosts) and now I am getting a whole bunch of errors: Error: Notification period '0' specified for service 'ADVAPPS SSH' on host 'advapps.blah' is not defined anywhere! As far as I

Re: [Nagios-users] Nagios 3.2 verify-config

2010-02-04 Thread Mathieu Gagné
On 2/4/10 1:44 PM, Mike Moritz wrote: I am in the process of upgrading from Nagios 2.9 to 3.2. In 2.9 we would get a waring when running nagios -v nagios.cfg : Warning: Service 'Check_http' on host 'blah.com' has no default contact group(s) defined! 3.2 does not give this warning. Is

Re: [Nagios-users] Security Breach?

2010-04-06 Thread Mathieu Gagné
On 4/6/10 4:24 PM, Martyn wrote: Hi all, hope you can help me out with this question I have just been sent which is as follows: - We have had a security warning from the hosting company, one of the Nagios User processes was using up 90% of the CPU: Did you set a password for the nagios user

Re: [Nagios-users] trying to fix problem with excessive latency

2010-05-18 Thread Mathieu Gagné
On 2010-05-18 21:29, Corey Hickey wrote: Hello, I have inherited maintenance of a medium-sized Nagios installation. We currently have 649 hosts and 5415 services. Our setup works nicely, with one exception: Nagios falls behind on host/service checks. Our usual latency once Nagios has been

Re: [Nagios-users] Service dependency for nrpe on nagios 3.2.3

2010-10-21 Thread Mathieu Gagné
Hi David, I applied the patch to HEAD but did not have the chance to test it. However I'm confident it will work fine. Hopefully this patch will be applied to the HEAD of Nagios as it is really useful to us. :) -- Mathieu

Re: [Nagios-users] Scheduled checks falling far behind

2010-10-23 Thread Mathieu Gagné
On 2010-10-23 18:31, Litwin, Matthew wrote: I have set up MRTG to track nagios performace and it is reporting that latency for host and service checks are next to nothing and service execution time is just under 400 ms, however, host checks are coming back at around 4 seconds. Based on the

Re: [Nagios-users] Scheduled checks falling far behind

2010-10-24 Thread Mathieu Gagné
On 2010-10-24 03:54, Litwin, Matthew wrote: You hit the nail on the head. Changing MaxBytes to a very large number made latency totally dwarf execution time. So now what do I do? Try disabling environment variables in nagios.cfg: enable_environment_macros = 0 Our latency dropped from 20

[Nagios-users] External commands documentation

2010-10-25 Thread Mathieu Gagné
Anyone else getting a 404 on the documentation? http://www.nagios.org/developerinfo/externalcommands/ -- Mathieu -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for

Re: [Nagios-users] Host dependencies on large deployment?

2010-11-08 Thread Mathieu Gagné
On 11/5/10 4:00 PM, RT wrote: For Host A, I'd like for all other notifications on Host A to be disabled when SSH on Host A is critical. I would like to have the same behavior apply for Hosts B-Z, each dependent on their own locally-running SSH. Did you mean that you want to disable all

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-12-17 Thread Mathieu Gagné
On 12/17/10 4:02 PM, Ton Voon wrote: I didn't really follow this thread earlier, so bear with me with the questions: Does this have to be implemented as another variable? Why can't you always allow an empty hostgroup? (In the interests of keeping it simple) I agree with Ton. Why not

Re: [Nagios-users] nagios url checks

2012-01-19 Thread Mathieu Gagné
On 1/19/12 6:28 PM, Tim Dunphy wrote: the check url with check_http results in warning in the web interface: FOO.com Notifications for this service have been disabled UNKNOWN 01-19-2012 17:12:04 0d 0h 0m 9s 1/4 check_http: Warning threshold

Re: [Nagios-users] Defining a service dependency for large number of services

2012-11-27 Thread Mathieu Gagné
Hi, On 12-11-27 2:30 PM, Tech Support wrote: I need to define service dependencies for some services. Pretty straightforward stuff, do not check service B unless service A is running also. For example, I have 100 different service checks that all depend on service A. So my question is