Re: [Nagios-users] Distributed nagios system

2006-09-27 Thread John Longland
Title: RE: [Nagios-users] Distributed nagios system







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bryan
Loniewski
Sent: 27 September 2006 21:39
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Distributed nagios system



> Message: 3
> Date: Wed, 27 Sep 2006 11:11:23 +0200
> From: John Longland <[EMAIL PROTECTED]>
> Subject: [Nagios-users] Distributed nagios system
> To: "'nagios-users@lists.sourceforge.net'"
>   
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all !!
>
> I've had to implement a distributed systemand I have gone through some docs
> I found on sourceforge.
>
> I'll briefly mention what I have done:
>
> slave nagios
> 1. Installed the nsca pack
> 2. put send_nsca.cfg  -> /etc
> 3. modified entry for ocsp_sommand in nagios,cfg
> 4. enabled obesess over services
> 5. enable_notifications set to 0
> 6. Defined a command called submit_check_result in my minimal.cfg
> 7. Written submit_check_result script and placed it in ../libexec
>
> server side:
> 1. Installed nsca pack
> 2. nsca,cfg -> /usr/local/nagios/etc
> 3. active service checks 1 for services checked from main nagios
>  set to 0 for service checked from slave nagios
> 4. externetl commands checks enabled
> 5. passive service checks enabled
> 6. nsca -> /usr/local/nagios/bin
> 7. check existance of  /usr/local/nagios/var/rw/nagios.cmd
> 8. wrote nsca script in  /etc/xinetd.d
> 9. added entry in /etc/services  called NSCA
> 10. restarted xinetd
>
>
> Problem.
> When I send info from slave to main nagios by hand, it is sent and
> reported by the main nagios, correctly.
> When I remove /usr/local/nagios/libexec/submit_check_result, I get an error
> indicating that the slave
>    nagios is trying to execute a non-existing script.
> When I re-instate the submit_check_result script, nothing happens. No error
> in any log.
> I do not see any attempt on the network ( tcpdump) that the slave is trying
> to contact the main
> nagios.
> I have also added a little echo statement in the submit_check_result script
> that writes to a file.


A few questions:


What version of nagios are you running? 
When you added the echo statement was IT the only thing in the script?
or did you leave the rest of the script intact? 
What are the permissions of the directories, files of where your 
submit_check_result script is? 
Did you try running the script by hand as the user nagios runs under?


PS: Give an example of what your submit_check_result script looks like.


Hi Bryan !!!


Thanks for your mail. 


I have since dicovered that the problem was the permissions of
my send_nsca.cfg file !! For completeness:
Version of nagios is 2.4
The echo statement was simply added with all other statements intact
The permissions of the script files are readable and executable
by anyone. It is owned by nagios:nagios.
As I said above, I slipped up with not checking the send_nsca.cfg file !!!


Thanks for your time, Bryan. Much appreciated 
John



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Time of HTTP request

2006-09-27 Thread Hugo van der Kooij
On Thu, 28 Sep 2006, Luc MAIGNAN wrote:

> Thanks for answer. Is there a way to check this in the apache log (via a
> plugin) instead testing the request ? because I don't know what request
> will be sent by the client, I just want to see "after" all slow requests.

Check your apache manual for apache questions.

But apache will not record timing issues untill you run fresh out and then 
you get error log events.

So the only way to test it is by being the client.

Hugo.

-- 
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Time of HTTP request

2006-09-27 Thread Luc MAIGNAN
Thanks for answer. Is there a way to check this in the apache log (via a
plugin) instead testing the request ? because I don't know what request
will be sent by the client, I just want to see "after" all slow requests.

BR

Patrick Morris a écrit :
> On Wed, 27 Sep 2006, Luc MAIGNAN wrote:
>
>   
>> Hi list,
>>
>> I need to have an alert if a HTTP request takes more than a certain time
>> to be executed. Is there a standard plugin which be able to do that ?
>> 
>
> check_http will do that.  Set a timeout on it with the -t parameter.
>
>
>
>   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Time of HTTP request

2006-09-27 Thread Patrick Morris
On Wed, 27 Sep 2006, Luc MAIGNAN wrote:

> Hi list,
> 
> I need to have an alert if a HTTP request takes more than a certain time
> to be executed. Is there a standard plugin which be able to do that ?

check_http will do that.  Set a timeout on it with the -t parameter.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Tom Tran
hihihihi     Please send a check to Tom Tran.. at ...     One Nagios Plaza.  City of No Name, State with No Road     :-)  Any time Saul,  tt.Saul Gonzalez <[EMAIL PROTECTED]> wrote:Tom, you hit the nail on the head.  That worked!!  And best of all no errors!!!       Thanks everyone for your help!            
   From: Tom Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:43 PMTo: Saul Gonzalez; nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Nagios 2.5   I think i know the problem.. the nagios binary that you ran is not from/usr/local/nagios/bin... please do the following...1. cd /usr/local/nagios/bin2. ./nagios -v
 /usr/local/nagios/etc/nagios.cfg if you run...nagios -v ..., it will pick up the nagios binary from /etc/init.d i think..and that binary only allow you to stop/start/restart/reload. I will not allow you to do pre-flight check.. Hope it solve the problem.. Tom Tranwww.eesimed.comSaul Gonzalez <[EMAIL PROTECTED]>
 wrote:  Hello; I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the instructions on the site.  Everything seemed fine but when I try to run the following command I get a –bash: nagios: command not found. nagios -v /usr/local/nagios/etc/nagios.cfg Any ideas? Thanks   -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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       Get your email and more, right on the new Yahoo.com -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics
 through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Time of HTTP request

2006-09-27 Thread Luc MAIGNAN
Hi list,

I need to have an alert if a HTTP request takes more than a certain time
to be executed. Is there a standard plugin which be able to do that ?

Thanks for any answer

Best regards

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Saul Gonzalez








Tom, you hit the nail on the head.  That
worked!!  And best of all no errors!!!  

 

Thanks everyone for your help!

 

 

 









From: Tom Tran
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27,
2006 2:43 PM
To: Saul Gonzalez;
nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios
2.5



 



I think i know the problem..





 





the nagios binary that you ran is not from





/usr/local/nagios/bin...





 





please do the following...





1. cd /usr/local/nagios/bin





2. ./nagios -v /usr/local/nagios/etc/nagios.cfg





 





if you run...





nagios -v ..., it will pick up the nagios binary from /etc/init.d i
think..





and that binary only allow you to stop/start/restart/reload.





 





I will not allow you to do pre-flight check..





 





Hope it solve the problem..





 





Tom Tran





www.eesimed.com


Saul Gonzalez
<[EMAIL PROTECTED]> wrote:







Hello;





 





I am attempting to install Nagios 2.5 on SUSE 10.1 and
followed the instructions on the site.  Everything seemed fine but when I
try to run the following command I get a –bash: nagios: command not
found.





 





nagios -v
/usr/local/nagios/etc/nagios.cfg





 





Any ideas?





 





Thanks





 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null



 

  







Get your email and more, right on the new
Yahoo.com 






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Saul Gonzalez
I followed Rainer Brunold's instructions at
http://www.novell.com/coolsolutions/feature/16723.html

Thanks

-Original Message-
From: Patrick Morris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 2:37 PM
To: Saul Gonzalez
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 2.5

Which instructions did you follow?
Is the place you installed Nagios in your path?

On Wed, 27 Sep 2006, Saul Gonzalez wrote:

> Hello;
> 
>  
> 
> I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the
> instructions on the site.  Everything seemed fine but when I try to
run
> the following command I get a -bash: nagios: command not found.
> 
>  
> 
> nagios -v /usr/local/nagios/etc/nagios.cfg
> 
>  
> 
> Any ideas?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Saul Gonzalez
Sorry I should have mentioned that I am running it within the
/usr/local/nagios/bin directory.

Thanks
Saul

-Original Message-
From: Tim Pushor [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 2:37 PM
To: Saul Gonzalez
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 2.5

Saul Gonzalez wrote:
>
> Hello;
>
> I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the 
> instructions on the site. Everything seemed fine but when I try to run

> the following command I get a -bash: nagios: command not found.
>
> nagios -v /usr/local/nagios/etc/nagios.cfg
>
> Any ideas?
>
> Thanks
>

Perhaps its not in your path? try /usr/local/nagios/bin/nagios -v 
/usr/local/nagios/etc/nagios.cfg


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Tom Tran
I think i know the problem..     the nagios binary that you ran is not from  /usr/local/nagios/bin...     please do the following...  1. cd /usr/local/nagios/bin  2. ./nagios -v /usr/local/nagios/etc/nagios.cfg     if you run...  nagios -v ..., it will pick up the nagios binary from /etc/init.d i think..  and that binary only allow you to stop/start/restart/reload.     I will not allow you to do pre-flight check..     Hope it solve the problem..     Tom Tran  www.eesimed.comSaul Gonzalez <[EMAIL PROTECTED]> wrote:Hello;     I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the instructions on the site.  Everything seemed fine but when I try to run the following command I get a –bash: nagios: command not found.     nagios -v /usr/local/nagios/etc/nagios.cfg     Any ideas?     Thanks   -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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 
		Get your email and more, right on the  new Yahoo.com 
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Tim Pushor
Saul Gonzalez wrote:
>
> Hello;
>
> I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the 
> instructions on the site. Everything seemed fine but when I try to run 
> the following command I get a –bash: nagios: command not found.
>
> nagios -v /usr/local/nagios/etc/nagios.cfg
>
> Any ideas?
>
> Thanks
>

Perhaps its not in your path? try /usr/local/nagios/bin/nagios -v 
/usr/local/nagios/etc/nagios.cfg


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 2.5

2006-09-27 Thread Patrick Morris
Which instructions did you follow?
Is the place you installed Nagios in your path?

On Wed, 27 Sep 2006, Saul Gonzalez wrote:

> Hello;
> 
>  
> 
> I am attempting to install Nagios 2.5 on SUSE 10.1 and followed the
> instructions on the site.  Everything seemed fine but when I try to run
> the following command I get a -bash: nagios: command not found.
> 
>  
> 
> nagios -v /usr/local/nagios/etc/nagios.cfg
> 
>  
> 
> Any ideas?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios 2.5

2006-09-27 Thread Saul Gonzalez








Hello;

 

I am attempting to install Nagios 2.5 on SUSE 10.1 and
followed the instructions on the site.  Everything seemed fine but when I try
to run the following command I get a –bash: nagios: command not found.

 

nagios -v
/usr/local/nagios/etc/nagios.cfg

 

Any ideas?

 

Thanks

 






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] how to loop event-handlers

2006-09-27 Thread Patrick Morris
On Wed, 27 Sep 2006, orzeh wrote:

> It is possible to call event handlers infinitely by nagios? I mean if 
> the host goes to 'down' sate the event handler is executing correctly 
> but how do i can enable to execute handler after $max_check_attempts 
> times or if host in state 'down' during the restart nagios daemon (eg 
> via external command).

Just make sure you pass any info you need as parameters to your
eventhandler script, and handle them there.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] how to loop event-handlers

2006-09-27 Thread orzeh
Hello

It is possible to call event handlers infinitely by nagios? I mean if 
the host goes to 'down' sate the event handler is executing correctly 
but how do i can enable to execute handler after $max_check_attempts 
times or if host in state 'down' during the restart nagios daemon (eg 
via external command).

regards
orzeh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Distributed nagios system

2006-09-27 Thread Bryan Loniewski
> Message: 3
> Date: Wed, 27 Sep 2006 11:11:23 +0200
> From: John Longland <[EMAIL PROTECTED]>
> Subject: [Nagios-users] Distributed nagios system
> To: "'nagios-users@lists.sourceforge.net'"
>   
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all !!
>
> I've had to implement a distributed systemand I have gone through some docs
> I found on sourceforge.
>
> I'll briefly mention what I have done:
>
> slave nagios
> 1. Installed the nsca pack
> 2. put send_nsca.cfg  -> /etc
> 3. modified entry for ocsp_sommand in nagios,cfg
> 4. enabled obesess over services
> 5. enable_notifications set to 0
> 6. Defined a command called submit_check_result in my minimal.cfg
> 7. Written submit_check_result script and placed it in ../libexec
>
> server side:
> 1. Installed nsca pack
> 2. nsca,cfg -> /usr/local/nagios/etc
> 3. active service checks 1 for services checked from main nagios
>  set to 0 for service checked from slave nagios
> 4. externetl commands checks enabled
> 5. passive service checks enabled
> 6. nsca -> /usr/local/nagios/bin
> 7. check existance of  /usr/local/nagios/var/rw/nagios.cmd
> 8. wrote nsca script in  /etc/xinetd.d
> 9. added entry in /etc/services  called NSCA
> 10. restarted xinetd
>
>
> Problem.
> When I send info from slave to main nagios by hand, it is sent and
> reported by the main nagios, correctly.
> When I remove /usr/local/nagios/libexec/submit_check_result, I get an error
> indicating that the slave
>nagios is trying to execute a non-existing script.
> When I re-instate the submit_check_result script, nothing happens. No error
> in any log.
> I do not see any attempt on the network ( tcpdump) that the slave is trying
> to contact the main
> nagios.
> I have also added a little echo statement in the submit_check_result script
> that writes to a file.

A few questions:

What version of nagios are you running? 
When you added the echo statement was IT the only thing in the script?
or did you leave the rest of the script intact? 
What are the permissions of the directories, files of where your 
submit_check_result script is? 
Did you try running the script by hand as the user nagios runs under?

PS: Give an example of what your submit_check_result script looks like.

> This way I can see that the script was executed. This does not happen which
> means the
> submit_check_result script is not executed.
>
> Can someone help , please ??
>
> John

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] EPN/DB plugin question

2006-09-27 Thread Tal Cohen



I am creating 
plugins that interface with a mysql database. I know that in mod_perl there 
is a way to maintain and share database connections (thereby avoiding the 
connect/disconnect overhead). Is there a similar method using 
epn?
 
Thanks,
Tal
 
 
 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 9/26/2006
 
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] NSClient++ DNS name instead of IP address

2006-09-27 Thread narendran.neelamegam



Hi,
Is it 
possible to provide hostname instead of the IP address of the Nagios server in 
allowed hosts and use DNS to resolve?
 
allowed_hosts=FQDN
 
How 
can we achieve this?
 
Thanks 
and Regards,
 
Narendran Neelamegam
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios - VMWare

2006-09-27 Thread Danilo
Hello Tom,

Wednesday, September 27, 2006, 10:26:34 AM, you wrote:

TB> Hi

TB> Are there any plugins for nagios to to be able to check ESX servers? 
TB> Something like checking that the vmware servers is running as expected
TB> etc that sort of thing.

TB> This would be on nagios-2.5

just talking about Nagios on VmWare (Free server edition), I am trying to 
install and use
it, but I am not getting result when using snmp calls ("no output" as
a result).

The configuration is the same of a working (non Vmware) nagios server,
so I think the problem is in VmWare but I don't know where to look?

Anybody have an hint for me?

Thank you in advance


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios - VMWare

2006-09-27 Thread Tom Brown

> check_esx on Nagios Exchange might suit your requirements.
> 
> http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=148

excellent - looks very promising

thanks


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Error: Template 'passive-check-template'

2006-09-27 Thread Arno Lehmann
Hi,

first, I don't think it'S necessary to cc the list owner with your mail...

Then...

On 9/27/2006 8:15 AM, Hariharan Sankararaman wrote:
> Dear all,
...
> when i execute nagios it says error message as given below
> 
> Error: Template 'passive-check-template' specified in service definition 
> could not be not found (config file '/etc/nagios/minimal.cfg', starting 
> on line 307)

Well, this sounds like you don't have the passive-check-template 
anywhere in your config.

> Error: Invalid max_attempts, check_interval, retry_interval, or 
> notification_interval value for service 'snmp_trap_handling_Critical' on 
> host 'router1'
> Error: Could not register service (config file 
> '/etc/nagios/minimal.cfg', starting on line 330)
> how to integrate SNMP traps in nagios web browser

Better get a working set up of Nagios first.

> 
> Pls find my configuration files with this . Pls help me in this regard

Simply start with empty configuration files and work through the manual.

Arno

> With Regards
> Hariharan
> 
> All-new Yahoo! Mail 
> -
>  
> Fire up a more powerful email and get things done faster.
> 
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> 
> 
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios - VMWare

2006-09-27 Thread Az

> Are there any plugins for nagios to to be able to check ESX servers? 
> Something like checking that the vmware servers is running as expected 
> etc that sort of thing.
>
> This would be on nagios-2.
check_esx on Nagios Exchange might suit your requirements.

http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=148


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios performance info for cluster?

2006-09-27 Thread Fabalabs Mailing-Lists
Title: Nagios performance info for cluster?






Hello!

I’m looking for a possibility to view the performance info of a Nagios worker process in a clustered environment. (Because otherwise I will not see the statistics of the active checks, if all my checks are passively sent to the master)



The default behaviour of the extinfo.cgi?type=4 page is to display the Nagios process performance data of the local running master server.

Is there any parameter to tell Nagios (this CGI page) to display the performance data of another Nagios cluster node?

(The nagiostats utility can access those data by defining the configuration file of the worker process (e.g. –c /etc/nagios-worker/nagios.cfg))


By the way, is there any documentation of all possible Nagios CGI-parameters (for example for extinfo.cgi or cmd.cgi) that are allowed?



Kind regards,

    Klaus Pesendorfer.


Klaus Pesendorfer

Research & Development

Fabalabs Software GmbH

Honauerstraße 4

A-4020 Linz

Tel.: [+43] (70) 60 61 62

Fax: [+43] (70) 60 61 62-609

E-Mail: [EMAIL PROTECTED]

Web: http://www.fabalabs.org


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] How many host to monitor

2006-09-27 Thread tom.welsh



Hi,
 
Take a look at the propaganda page on the nagios site for 
some customer 
 
http://www.nagios.org/userprofiles/viewprofile.php?profile_id=1700
 
http://www.nagios.org/userprofiles/viewprofile.php?profile_id=1457
 
http://www.nagios.org/userprofiles/viewprofile.php?profile_id=1602
 
http://www.nagios.org/userprofiles/viewprofile.php?profile_id=1715
 
Nagios 
is very flexible and can be used in a variety of ways to do exactly what u 
want.
 
Regards
 
Tom 
Welsh



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Carlos 
Mauricio Reyes SanmiguelSent: 27 September 2006 00:15To: 
nagios-users@lists.sourceforge.net; 
[EMAIL PROTECTED]Subject: [Nagios-users] How 
many host to monitor
Hi.. Just a simple question, What would be the hardware 
requirements to be able to monitor 1500 hosts with nagios? What kind of server do you recommend?, does nagios 
support the monitoring of all of this hosts? Thanks in advance. Creyes
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Distributed nagios system

2006-09-27 Thread John Longland
Title: Distributed nagios system





Hi all !!


I've had to implement a distributed systemand I have gone through some docs
I found on sourceforge. 


I'll briefly mention what I have done:


slave nagios
1. Installed the nsca pack
2. put send_nsca.cfg  -> /etc
3. modified entry for ocsp_sommand in nagios,cfg
4. enabled obesess over services
5. enable_notifications set to 0
6. Defined a command called submit_check_result in my minimal.cfg
7. Written submit_check_result script and placed it in ../libexec


server side:
1. Installed nsca pack
2. nsca,cfg -> /usr/local/nagios/etc
3. active service checks 1 for services checked from main nagios
  set to 0 for service checked from slave nagios
4. externetl commands checks enabled
5. passive service checks enabled
6. nsca -> /usr/local/nagios/bin
7. check existance of  /usr/local/nagios/var/rw/nagios.cmd
8. wrote nsca script in  /etc/xinetd.d
9. added entry in /etc/services  called NSCA
10. restarted xinetd



Problem.
When I send info from slave to main nagios by hand, it is sent and
reported by the main nagios, correctly.
When I remove /usr/local/nagios/libexec/submit_check_result, I get an error indicating that the slave
    nagios is trying to execute a non-existing script.
When I re-instate the submit_check_result script, nothing happens. No error in any log.
I do not see any attempt on the network ( tcpdump) that the slave is trying to contact the main
nagios.
I have also added a little echo statement in the submit_check_result script that writes to a file.
This way I can see that the script was executed. This does not happen which means the 
submit_check_result script is not executed.


Can someone help , please ??


John



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Nagios - VMWare

2006-09-27 Thread Tom Brown
Hi

Are there any plugins for nagios to to be able to check ESX servers? 
Something like checking that the vmware servers is running as expected 
etc that sort of thing.

This would be on nagios-2.5

thanks

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null