Re: [Nagios-users] Is it possible to recieve a single global notification for all checks?

2013-08-31 Thread Páll Guðjón Sigurðsson
I made something the other day that might help you. check_nagios_services is a plugin that checks the current of other nagios services (via mk-livestatus) and you can set threshold, for example if one of many http checks are critical, return critical as well. Maybe you can use that as a basis

Re: [Nagios-users] how to start nagios with non nagios user

2013-08-02 Thread Páll Guðjón Sigurðsson
Adding these two lines to /etc/sudoers will help you (stolen from the adagios rpm package): # Allow nagios user to restart the nagios service Defaults:nagios!requiretty nagios ALL = (root) NOPASSWD: /etc/init.d/nagios - Original Message - From: Jim Avery

Re: [Nagios-users] service group concurrency limit?

2013-07-16 Thread Páll Guðjón Sigurðsson
We accomplish this at our end with the mod_gearman addon. What we do is the following: * Set all the services that need limiting together in one servicegroup * Get mod_gearman up and running and have at least one mod_gearman_worker node (it may run on the nagios server or on another machine) *

Re: [Nagios-users] Fwd: Re: nagios SIGSEGV on archive rotation

2013-07-09 Thread Páll Guðjón Sigurðsson
I have an rpm with the patch included for epel6/x86_64 right here: http://pall.sigurdsson.is/filez/nagios-3.5.0/ It fixed same problem for me. Can someone please prod the nagios dev team to release a new version that fixes the bug ? Kind regards, Pall Sigurdsson - Original Message

Re: [Nagios-users] Nagios init script not working on Ubuntu 12.04

2013-06-13 Thread Páll Guðjón Sigurðsson
Alternatively, do this to install nagios on ubuntu 12.04: # apt-get install nagios3 nagios-plugins The packages are quite good, and imho there is nothing quick about that quickstart guide. Kind regards, Pall Sigurdsson - Original Message - From: Gavin Grieve [DATACOM]

Re: [Nagios-users] svn - git conversion

2013-05-15 Thread Páll Guðjón Sigurðsson
+like on moving to git. To celebrate i sent you a micro pull request on github. - Palli - Original Message - From: Andreas Ericsson a...@op5.se To: nagios-devel nagios-de...@lists.sourceforge.net, Nagios-users@lists.sourceforge.net Sent: Tuesday, May 14, 2013 1:48:15 PM Subject:

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Páll Guðjón Sigurðsson
Put your ARG in quotes. So it looks like this: $USER1$/check_http -H '$ARG1$' -s '$ARG2$' -w 10 -c 20 Then it will handle spaces. Alternatively, you can use custom variables to a check command that is more complex, but in return your service definitions will become much more readable.

Re: [Nagios-users] Nagios forward Check through Windows Machine

2013-03-07 Thread Páll Guðjón Sigurðsson
Check out mod_gearman for this scenario. You man in the middle machine (which will be linux, not windows) makes an outbound connection to the nagios server and runs all checks that are meant for the far end hosts. - Original Message - From: Michael Lopez mata...@gmail.com To:

Re: [Nagios-users] Mass delete of host/service downtimes.

2013-02-21 Thread Páll Guðjón Sigurðsson
The posts inspired me to write downtime support in pynag command-line utility. Works both via livestatus or more traditional writing directly to nagios command pipe. I dont mean to make this mailing list a pynag announcement one, but considering the questions brought i thought others might

Re: [Nagios-users] Mass delete of host/service downtimes.

2013-02-20 Thread Páll Guðjón Sigurðsson
If you have pynag installed this script might help you along. It will clear all downtimes unless you uncomment some of the filters: #!/usr/bin/python import pynag.Parsers import pynag.Control.Command livestatus = pynag.Parsers.mk_livestatus() downtimes = livestatus.query('GET downtimes')

Re: [Nagios-users] distributable downtime delete commands?

2013-02-11 Thread Páll Guðjón Sigurðsson
To: Nagios Users List nagios-users@lists.sourceforge.net Cc: Páll Guðjón Sigurðsson pa...@ok.is, Nagios Developers List nagios-de...@lists.sourceforge.net Sent: Saturday, February 9, 2013 5:48:29 PM Subject: Re: [Nagios-users] distributable downtime delete commands? On 02/08/2013 04:32 AM, Páll

Re: [Nagios-users] distributable downtime delete commands?

2013-02-07 Thread Páll Guðjón Sigurðsson
Thanks a lot Paul, We have been achieving the same goals with pynag scripts and DEL_SVC_DOWNTIME command. Is there anyone on the list that might take it into their hands to keep documentation up to date, maybe even write a routine in nagios to ask for every supported external command, so that

Re: [Nagios-users] parsing tac.cgi output

2013-01-03 Thread Páll Guðjón Sigurðsson
Hi andy, as for the tac.cgi i think your best bet is to parse the html. Alternatively if you have pynag installed on the nagios server you can use this script: import pynag.Parsers s = pynag.Parsers.status() s.parse() all_services = s.data['servicestatus'] unhandled_problems = [service for

Re: [Nagios-users] Inconsistency of Nagios

2013-01-03 Thread Páll Guðjón Sigurðsson
Slightly off topic, but how best to write nagios check that checks for this specific behavior (multiple instances of nagios running) ? - Original Message - From: Mike Guthrie mguth...@nagios.com To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Wednesday, January 2, 2013

Re: [Nagios-users] how to use logged-in (Apache) user in plugins?

2012-11-20 Thread Páll Guðjón Sigurðsson
Pepe, Nagios design does not allow for this. Plugins are executed without any user being logged in the web interface so a plugin has no idea which user is going to look at the results later on. What you can do instead is define multiple service checks, with secretary only having access to

[Nagios-users] Introducing Adagios - Another web configuration interface to Nagios

2012-10-26 Thread Páll Guðjón Sigurðsson
Hello everyone, This is a call for testers on our new Nagios web configuration utility. We use pynag as our underlying library to configure nagios in-place. We would love feedback from any interested party to help us iron out bugs and ideas on what Nagios tasks currently take to much of your