Re: [Nagios-users-br] Res: Trends Error

2007-01-17 Thread Shine
Entendi. Isso no Trends para Services ou Trends para Hosts ou vc vê isso em ambos os casos? Essas datas e horas q ele mostra q houve troca não seriam os momentos de rotacionar o log? São em horários distintos? O q aparece nos logs relacionados com essas datas e horas? Vc pode verificar olhando

Re: [Nagios-users] Patch for NRPE

2007-01-17 Thread Andreas Ericsson
Aaron Segura wrote: While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG option today I think I found a small error in the code and have included a patch to fix it. This is for nrpe.c 1053,1056c1053,1056 fp=fopen(/tmp/packet,w); if(fp){

Re: [Nagios-users] NRPE: static linked libraries?

2007-01-17 Thread Andreas Ericsson
[EMAIL PROTECTED] wrote: Hi list, Is there any possiblity to compile NRPE with static linked libs? Yes. The man-page for your linker (or possibly your compiler) will tell you how to do this. I´ve the problem, that NRPE ist missing (ssl-)libs when running it under inetd/user root, the

Re: [Nagios-users] Defining different notification behavior for the same service on different hosts

2007-01-17 Thread Andreas Ericsson
Scott Greenman wrote: I can't any way to have the same service on two hosts have different notification rules. Am I missing anything? Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on both hosts. If 'S' goes down on 'A', I want notifications sent. If

Re: [Nagios-users] Defining different notification behavior for the same service on different hosts

2007-01-17 Thread Rob Blake
On 1/16/07, Scott Greenman [EMAIL PROTECTED] wrote: I can't any way to have the same service on two hosts have different notification rules. Am I missing anything? Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on both hosts. If 'S' goes down on 'A', I want

Re: [Nagios-users] NRPE: static linked libraries? (solved)

2007-01-17 Thread Thomas.Zimmer
The prob was solved, while typing this mail (as often ;) ): Meanwhile, I managed it to link the ssl-libs statically (I have no root-access to our machines, so I can´t simply install libs) Perhaps my config will help to solve the prob: NRPE-Version used: 2.0 Solaris-Compile-System: SunOS ###

Re: [Nagios-users] Defining different notification behavior for the same service on different hosts

2007-01-17 Thread Andy Shellam (Mailing Lists)
As part of the hackery I would have the first (live) service have all options set, and the second (test-bed) service simply use the first service as a template, and override the notifications_enabled setting (and obviously the host too.) That way you really only have one service to change

[Nagios-users] Adding buttons

2007-01-17 Thread John Longland
Hi all !!! a Hearty 2007 to all !!! My Nagios system is standing in our call-center and I have a few servers spread out over a few venues. At one of the distant locations, I have a DNS server and at certain times I need to have an operator trigger some scripts on this DNS server. What I was

Re: [Nagios-users] Adding buttons

2007-01-17 Thread Hugo van der Kooij
On Wed, 17 Jan 2007, John Longland wrote: My Nagios system is standing in our call-center and I have a few servers spread out over a few venues. At one of the distant locations, I have a DNS server and at certain times I need to have an operator trigger some scripts on this DNS server. What I

Re: [Nagios-users] Adding buttons

2007-01-17 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Longland Sent: Wednesday, January 17, 2007 7:09 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Adding buttons Hi all !!! a Hearty 2007 to all !!! My

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
There are event handlers which, according to the docs, will run a command to try and recover the service before sending a notification, but I haven't (yet) implemented them, so you'd have to have a look at the manual. You'd need to write the script yourself, it's impossible for Nagios

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
OK I tried to set up my first one today - testing the local host http from the sample provided on the page. Here is what I did. check_command check_ntp } Well here is my error - however what would be the check_command for this event_handler? This e-mail and any

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Rob Blake
If you are checking for http to be running, then I would have thought that the check_command would be something like check_http, assuming you have it defined in your object configuration file. What you have currently is checking for NTP and is therefore giving you an alert even though, as you

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
If you are checking for http to be running, then I would have thought that the check_command would be something like check_http, assuming you have it defined in your object configuration file. What you have currently is checking for NTP and is therefore giving you an alert even though,

Re: [Nagios-users] Patch for NRPE

2007-01-17 Thread Aaron Segura
No, I just like to rename variables so I can say that I submit patches to popular open source projects... :/ Near the top of the source there is already: #ifdef DEBUG FILE *errfp #endif But no: FILE *fp The *errfp var is used in other '#ifdef DEBUG/#endif' blocks, but not the particular one

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
OK I will try to give it the check_http check and see if it works when I bring down the httpd. Here is what I have now: (I added the event handler to http) # http define service{ usegeneric-service host_name

[Nagios-users] APAN and Nagios 2.6

2007-01-17 Thread Kaplan, Andrew H.
Does APAN work with Nagios 2.6? THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Formoso, Travis Sent: Wednesday, January 17, 2007 9:59 AM To: nagios-users Subject: Re: [Nagios-users] Monitoring question OK I will try to give it the check_http check and see if

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote: OK I will try to give it the check_http check and see if it works when I bring down the httpd. Here is what I have now: (I added the event handler to http) # http define service{ usegeneric-service host_name

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Andy Shellam (Mailing Lists) Sent: Wednesday, January 17, 2007 11:30 AM To: Formoso, Travis Cc: nagios-users Subject: Re: [Nagios-users] Monitoring question Formoso, Travis wrote:

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
The event handler _is_ being called (SERVICE EVENT HANDLER). If you're using the example handler as is, it won't work. I'll bet you a free beer that the nagios user does not have permission to restart httpd via the init script. In cases such as this I use visudo to grant nagios passwordless

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Always a good suggestion. I never was able to run anything as the

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Marc Powell wrote: the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Always a good suggestion. Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, and it

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote: I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Always a good suggestion.

[Nagios-users] nagios status map

2007-01-17 Thread trevor obba
I installed Nagios 2.5 and I would like to set the 2-D Status Map or 3-D Status Map. I am monitoring 200 hosts and 1000 services but when I try to set the co-ordinate the images overlap each other images. Has any one successfully set the status map for 200 or more host? If so can you

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
-Original Message- From: Formoso, Travis [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 11:58 AM To: Marc Powell Cc: nagios-users Subject: RE: [Nagios-users] Monitoring question The event handler _is_ being called (SERVICE EVENT HANDLER). If you're using the

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
You will need to add sudo at the beginning of your command in Nagios - e.g. sudo /usr/local/nagios/libexec/eventhandler.. I ran ./check-httpd as root and when I typed that in - nothing happened. I was trying to run the check-httpd script in the /eventhandler folder. If I run ./check_http

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
-Original Message- From: Formoso, Travis [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 12:22 PM To: Marc Powell Cc: nagios-users Subject: RE: [Nagios-users] Monitoring question I shut down the httpd - however the service did not restart auto - so the handler

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
This really speaks of such a basic misunderstanding of how nagios interacts with plugins that I'd suggest re-reading the documentation, specifically the object configuration documentation and plugin theory. Use the sample config files as a reference until you understand how they're related

[Nagios-users] log rotation - how many files are kept?

2007-01-17 Thread Stijn Gruwier
Hello, I'm aware that nagios is able to copy the nagios.log file to the archives directory on an hourly/daily/weekly/monthly basis. It seems that nagios keeps that files forever since I've got 11 archived weekly logs. But the word 'rotation' suggests that at some time the old ones are removed