[Nagios-users] schedule check problem

2008-07-22 Thread asam30
Hi,

I've got a strange problem with the nagios. Recently, for testing purpose we
did install nagios server on a intel based pc and now we would like to move
the nagios server to an high end machine like HP proliant DL 380.

The nagios server on Intel based pc works fine and it was able to monitor
all the clients using check_nrpe plugin. I have now installed nagios server,
nagios plugins and nrpe on a high end machine and copied all the
configuration files from old server to here and then started nagios service.
All looks ok except for scheduling checks.

The time on nagios server is ahead of the time displayed on the nagios
interface for Next Scheduled Check. The Next Scheduled Check for some
service shows,

Next Scheduled Check:  07-22-2008 09:31:04
Last Check Time:07-22-2008 09:37:53

but the time on nagios server is,
Tue Jul 22 09:40:06 GMT 2008

The time is not sync properly and when I refresh the page maually, it shows
all services are in green which means all are working ok. but after few
seconds when I refresh the same page manually, the services were in red
color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
seconds

then if you refresh later some point, all service will show in green. why
does this difference?

where do i change the settings so the time on the nagios interface will sync
the time with the nagios server?

please help me!!!

Thanks

-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] schedule check problem

2008-07-22 Thread Alex Dehaini
Nagios reads the time on the server, is your server getting time from an ntp
server?

On Tue, Jul 22, 2008 at 10:09 AM, [EMAIL PROTECTED] wrote:

 Hi,

 I've got a strange problem with the nagios. Recently, for testing purpose
 we did install nagios server on a intel based pc and now we would like to
 move the nagios server to an high end machine like HP proliant DL 380.

 The nagios server on Intel based pc works fine and it was able to monitor
 all the clients using check_nrpe plugin. I have now installed nagios server,
 nagios plugins and nrpe on a high end machine and copied all the
 configuration files from old server to here and then started nagios service.
 All looks ok except for scheduling checks.

 The time on nagios server is ahead of the time displayed on the nagios
 interface for Next Scheduled Check. The Next Scheduled Check for some
 service shows,

 Next Scheduled Check:  07-22-2008 09:31:04
 Last Check Time:07-22-2008 09:37:53

 but the time on nagios server is,
 Tue Jul 22 09:40:06 GMT 2008

 The time is not sync properly and when I refresh the page maually, it shows
 all services are in green which means all are working ok. but after few
 seconds when I refresh the same page manually, the services were in red
 color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
 seconds

 then if you refresh later some point, all service will show in green. why
 does this difference?

 where do i change the settings so the time on the nagios interface will
 sync the time with the nagios server?

 please help me!!!

 Thanks

 --
 Shankar Asam

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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




-- 
Alex Dehaini
Developer
Team - www.konolabs.com
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] schedule check problem

2008-07-22 Thread Dennis Hünseler

[EMAIL PROTECTED] schrieb:

Hi,

I've got a strange problem with the nagios. Recently, for testing 
purpose we did install nagios server on a intel based pc and now we 
would like to move the nagios server to an high end machine like HP 
proliant DL 380.


The nagios server on Intel based pc works fine and it was able to 
monitor all the clients using check_nrpe plugin. I have now installed 
nagios server, nagios plugins and nrpe on a high end machine and 
copied all the configuration files from old server to here and then 
started nagios service. All looks ok except for scheduling checks.


The time on nagios server is ahead of the time displayed on the nagios 
interface for Next Scheduled Check. The Next Scheduled Check for some 
service shows,


Next Scheduled Check:  07-22-2008 09:31:04
Last Check Time:07-22-2008 09:37:53

but the time on nagios server is,
Tue Jul 22 09:40:06 GMT 2008

The time is not sync properly and when I refresh the page maually, it 
shows all services are in green which means all are working ok. but 
after few seconds when I refresh the same page manually, the services 
were in red color. tells me the error as , critical CHECK_NRPE: Socket 
timeout after 10 seconds


then if you refresh later some point, all service will show in green. 
why does this difference?


where do i change the settings so the time on the nagios interface 
will sync the time with the nagios server?


please help me!!!

Thanks

--
Shankar Asam


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


___
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

Hi,
you should be sure that all your servers(nagios server and the ones 
being checked) run the same time, for example by using a ntp server to 
synchronise your time. That will avoid any problems like different time 
in checks


Kind regards,
Dennis Hünseler
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] schedule check problem

2008-07-22 Thread asam30
I am not using ntp server. I am thinking of implementing the NTP server. I
will try to do that and get back to you.

Thanks all your help

On Tue, Jul 22, 2008 at 2:46 PM, Dennis Hünseler [EMAIL PROTECTED]
wrote:

  [EMAIL PROTECTED] schrieb:

 Hi,

 I've got a strange problem with the nagios. Recently, for testing purpose
 we did install nagios server on a intel based pc and now we would like to
 move the nagios server to an high end machine like HP proliant DL 380.

 The nagios server on Intel based pc works fine and it was able to monitor
 all the clients using check_nrpe plugin. I have now installed nagios server,
 nagios plugins and nrpe on a high end machine and copied all the
 configuration files from old server to here and then started nagios service.
 All looks ok except for scheduling checks.

 The time on nagios server is ahead of the time displayed on the nagios
 interface for Next Scheduled Check. The Next Scheduled Check for some
 service shows,

 Next Scheduled Check:  07-22-2008 09:31:04
 Last Check Time:07-22-2008 09:37:53

 but the time on nagios server is,
 Tue Jul 22 09:40:06 GMT 2008

 The time is not sync properly and when I refresh the page maually, it shows
 all services are in green which means all are working ok. but after few
 seconds when I refresh the same page manually, the services were in red
 color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
 seconds

 then if you refresh later some point, all service will show in green. why
 does this difference?

 where do i change the settings so the time on the nagios interface will
 sync the time with the nagios server?

 please help me!!!

 Thanks

 --
 Shankar Asam

 --

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the 
 worldhttp://moblin-contest.org/redirect.php?banner_id=100url=/

 --

 ___
 Nagios-users mailing [EMAIL 
 PROTECTED]://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

  Hi,
 you should be sure that all your servers(nagios server and the ones being
 checked) run the same time, for example by using a ntp server to synchronise
 your time. That will avoid any problems like different time in checks

 Kind regards,
 Dennis Hünseler




-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] monitoring the print spool on windows machines

2008-07-22 Thread Assaf Flatto
Hello 

recently a request came to me the check if we can monitor the printer spool on 
a windows machine 
(citrix platform), i googled the topic and the only reference i found so far is 
in 
http://nagios.manubulon.com/index_commands.html


has anyone done print spooling check on windows platform in any other way ?

thanks

Assaf




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] NRPE

2008-07-22 Thread Brent Clark
Hi

I have the nrpe on my LAN. My question is. How many of you guys run NRPE 
on a public interface.

Question really is and and for the Lamen, is it safe. Anyone have any 
hack attempts etc.

Kind Regards
Brent Clark

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] schedule check problem

2008-07-22 Thread Alex Dehaini
Nagios should run without an ntp server, just make sure that the time on the
server is correct.

On Tue, Jul 22, 2008 at 10:27 AM, [EMAIL PROTECTED] wrote:

 I am not using ntp server. I am thinking of implementing the NTP server. I
 will try to do that and get back to you.

 Thanks all your help


 On Tue, Jul 22, 2008 at 2:46 PM, Dennis Hünseler [EMAIL PROTECTED]
 wrote:

  [EMAIL PROTECTED] schrieb:

 Hi,

 I've got a strange problem with the nagios. Recently, for testing purpose
 we did install nagios server on a intel based pc and now we would like to
 move the nagios server to an high end machine like HP proliant DL 380.

 The nagios server on Intel based pc works fine and it was able to monitor
 all the clients using check_nrpe plugin. I have now installed nagios server,
 nagios plugins and nrpe on a high end machine and copied all the
 configuration files from old server to here and then started nagios service.
 All looks ok except for scheduling checks.

 The time on nagios server is ahead of the time displayed on the nagios
 interface for Next Scheduled Check. The Next Scheduled Check for some
 service shows,

 Next Scheduled Check:  07-22-2008 09:31:04
 Last Check Time:07-22-2008 09:37:53

 but the time on nagios server is,
 Tue Jul 22 09:40:06 GMT 2008

 The time is not sync properly and when I refresh the page maually, it
 shows all services are in green which means all are working ok. but after
 few seconds when I refresh the same page manually, the services were in red
 color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
 seconds

 then if you refresh later some point, all service will show in green. why
 does this difference?

 where do i change the settings so the time on the nagios interface will
 sync the time with the nagios server?

 please help me!!!

 Thanks

 --
 Shankar Asam

 --

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the 
 worldhttp://moblin-contest.org/redirect.php?banner_id=100url=/

 --

 ___
 Nagios-users mailing [EMAIL 
 PROTECTED]://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

  Hi,
 you should be sure that all your servers(nagios server and the ones being
 checked) run the same time, for example by using a ntp server to synchronise
 your time. That will avoid any problems like different time in checks

 Kind regards,
 Dennis Hünseler




 --
 Shankar Asam

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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




-- 
Alex Dehaini
Developer
Team - www.konolabs.com
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] check cpu - python process

2008-07-22 Thread Tom Brown
Hi

We have a, badly written, app that runs python and it regularly pins 1 
core to 100% cpu utilization. The utilization may drop for a short 
period but then get pinned again.  Is there any check out there that can 
check for a process consuming 100% of a core, even if overall CPU load 
is low eg in an 8 core box, and alert against that?

thanks


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread Matthew Macdonald-Wallace
On Tue, 22 Jul 2008 11:33:51 +0200
Brent Clark [EMAIL PROTECTED] wrote:

 I have the nrpe on my LAN. My question is. How many of you guys run
 NRPE on a public interface.
 
 Question really is and and for the Lamen, is it safe. Anyone have any 
 hack attempts etc.

We run it on some public-facing IP Addresses, however we use a firewall
such as shorewall to limit connections to port 5666 to only certain IP
addresses.

It's basically a firewall rule that states:

DROP EVERYTHING 
UNLESS:
IP ADDRESS IS AN AUTHORISED IP

Hope this helps,

M.
-- 
Matthew Macdonald-Wallace
[EMAIL PROTECTED]
http://www.truthisfreedom.org.uk

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 cpu - python process

2008-07-22 Thread Alex Dehaini
If the server running the app is a windows app, install nsclient  and you
will be able to monitor the cpu

On Tue, Jul 22, 2008 at 10:46 AM, Tom Brown [EMAIL PROTECTED] wrote:

 Hi

 We have a, badly written, app that runs python and it regularly pins 1
 core to 100% cpu utilization. The utilization may drop for a short
 period but then get pinned again.  Is there any check out there that can
 check for a process consuming 100% of a core, even if overall CPU load
 is low eg in an 8 core box, and alert against that?

 thanks


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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




-- 
Alex Dehaini
Developer
Team - www.konolabs.com
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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

2008-07-22 Thread Andy Shellam

Quoting Brent Clark [EMAIL PROTECTED]:

 Hi

 I have the nrpe on my LAN. My question is. How many of you guys run NRPE
 on a public interface.

 Question really is and and for the Lamen, is it safe. Anyone have any
 hack attempts etc.


Hi,

We run NRPE on 4 public-facing servers.  All unnecessary ports are  
blocked by a firewall, port 5666 is limited to our Nagios server only,  
and NRPE is configured (through its config file) to only accept  
connections from our Nagios server.

Never had any issues.

Regards,

Andy--
Andy Shellam
Business Systems Architect

Network Mail
NetServe Support

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread Brent Clark
Matthew Macdonald-Wallace wrote:
 It's basically a firewall rule that states:

See thats what i didnt want.

Im sure we the same, in that we run very minimalistic (kernel tweaking 
too) software installation / services (namely just http, ssh). But now I 
have to go write a ruleset all for blocking a port. I was hoping that 
the allowed_host (which from what I read is tcpwrapped), was good enough.

Or am I missing something.

Thanks

Brent Clark



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 cpu - python process

2008-07-22 Thread Tom Brown

 If the server running the app is a windows app, install nsclient  and 
 you will be able to monitor the cpu


thanks - nope server running the app is a linux box

thanks for any suggestions


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 cpu - python process

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 4:46 AM, Tom Brown wrote:


 period but then get pinned again.  Is there any check out there that  
 can
 check for a process consuming 100% of a core, even if overall CPU load
 is low eg in an 8 core box, and alert against that?

I believe check_procs will do what you're looking for.

--
Marc


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] dell printer server

2008-07-22 Thread Kermito le kermit
hello all,

I want to know if there are a plugin for check the dell printer spool cartouche



  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Monitor log file for inactivity?

2008-07-22 Thread Sean Carolan
 It all depends on how the application writes to a log file.  Simply
 checking the log file for age or size might not determine if the
 application is running accurately.

I just tested my log file and it updates the time stamp in more or
less real time.  The check_file_age will probably work perfectly for
my needs.  There are in fact instances when logging is still working
but the application is misbehaving, but at least this will take care
of those times when it is completely stuck and not logging at all.

 Otherwise if it is a remote machine you are going to need to run
 the plugins using NRPE ( http://www.nagios.org/download/addons/ ) or
 by SSH ( via plugin check_by_ssh ); for those you are going to need to
 nagios plugins compiled on the remote machine.

I have heard that check_by_ssh can cause a lot of overhead on large
networks where there are many checks going on at the same time.  Can
anyone give some practical numbers here?  I have about 160 machines
that need to be monitored, most of them will simply have the basic
CPU/Disk/Memory monitoring.  I would think that on a small network
like this it should not be a major problem.

 For a local check you could use something like the following in your
 commands.cfg and then add it as a service to your local box:

 # 'check_file_age' command definition
 define command{
 command_namecheck_file_age
 command_line$USER1$/check_file_age -w $ARG1$ -c $ARG2$ -f
 $ARG3$  # $ARG3$ is the full path to the log file.

Nice.  I really appreciate the help.  Nagios will soon be replacing
the feature-challenged monitoring software we are using now for Linux
machines.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Best practice for monitoring virtual machine (OpenVZ)

2008-07-22 Thread howard chen
Hello,

We have servers hosting virtual machines (around 10-20 per real
server), we are using OpenVZ (a kind of container based VM), we are
very satisfied with the VM performance currently.

Now, we are planning to add monitoring to each VM as well as the host
itself, this come to a problem, because if I install each VM with
their own nagios, seems there will be quite a lot of overheads in
total..

So I want to ask if anyone here is using nagios with VM and can share
about some tricks in deployment?

Thanks.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Best practice for monitoring virtual machine (OpenVZ)

2008-07-22 Thread Niall O Broin
On 22 Jul 2008, at 14:32, howard chen wrote:

 We have servers hosting virtual machines (around 10-20 per real
 server), we are using OpenVZ (a kind of container based VM), we are
 very satisfied with the VM performance currently.

 Now, we are planning to add monitoring to each VM as well as the host
 itself, this come to a problem, because if I install each VM with
 their own nagios, seems there will be quite a lot of overheads in
 total..

 So I want to ask if anyone here is using nagios with VM and can share
 about some tricks in deployment?

We use Nagios to monitor a number of servers running Xen, and to  
monitor the Xen VMs. There's no question of installing Nagios in each  
VM, just as you don't need to install Nagios on each real server you  
monitor. Instead, you have to install something which can respond to  
Nagios queries on each VM. We choose to run snmpd on each VM but you  
can use other methods too.

If you instead don't want to run anything on the VMs then you'd be  
restricted to running some scripts on the hos which tell you the  
status of the VMs - perhaps somebody already has a plugin to do that.





Kindest regards,



Niall  O Broin



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Temporarily changing thresholds of an NRPE driven service check

2008-07-22 Thread Jim . Melin

Good morning.

We have a vignette content management server that every night syncs its content 
to a backup volume for nightly 'snapshot' purposes. This runs about 2
hours. The service check that runs is NRPE driven, and we're using simple NRPE 
config where the ok, warn, critical values are coded on the target
systems nrpe.conf file (we intend to change this when we convert to Nagios 
version 3).

Given this structure is there a good way to be able to tell nagios from 20:00 
to 23:00 use a diff service check? I figure it has to be something to do
with a custom time period, but I'm really not sure what all I would need to do 
to make it work correctly.

Any insights appreciated.

-J

Disclaimer: Information in this message or an attachment may be government data 
and thereby subject to the Minnesota Government Data Practices Act, Minnesota 
Statutes, Chapter 13, may be subject to attorney-client or work product 
privilege, may be confidential, privileged, proprietary, or otherwise 
protected, and the unauthorized review, copying, retransmission, or other use 
or disclosure of the information is strictly prohibited. If you are not the 
intended recipient of this message, please immediately notify the sender of the 
transmission error and then promptly delete this message from your computer 
system.   
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] host/service dependencies

2008-07-22 Thread Assaf Flatto
Hello 

I'm trying to figure out a way or logic of service /host dependency .
In today's dependency logic - there is no correlation between host failure and 
the host services , 
even if the host is down - services are still being checked and reported as 
critical .

there is a need to designate a specific dependency check for services and then 
it will only learn 
of the down status .

Is there a way to tell nagios that once a server is down - not to check the 
services assigned to 
this server ? to me it seems like this 

define dependency {
host_name   foo
dependent_service_description *
execution_failure_criteria  d,p,u
notification_failure_criteria   d,u,p
}
So once the host is down/unknown/pending , all the services on the server are 
not checked and do not 
send alerts .

anyone knows on a way to implement it now ? or is such a logic being developed 
for later versions ?

Assaf 




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Temporarily changing thresholds of an NRPE driven service check

2008-07-22 Thread Sean McAfee
I believe you're right - you'd have to schedule two checks, each using a 
custom time period. 

This can simplified by using the exclude and use directives:

define timeperiod{
timeperiod_name vignette_backup
sunday  20:00-23:00
monday  20:00-23:00
tuesday 20:00-23:00
wednesday   20:00-23:00
thursday20:00-23:00
friday  20:00-23:00
saturday20:00-23:00
}

define timeperiod{
timeperiod_name vignette
use 24x7
exclude vignette_backup
}

The standard check would then have check_period as vignette, while the 
one you'd like to run during your backup window would use vignette_backup.

Sean McAfee
System Engineer

Collaborative Fusion, Inc.
 [EMAIL PROTECTED]
 412-422-3463 x 4025

5849 Forbes Avenue
Pittsburgh, PA 15217


IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.




[EMAIL PROTECTED] wrote:
 Good morning.

 We have a vignette content management server that every night syncs its 
 content to a backup volume for nightly 'snapshot' purposes. This runs about 2
 hours. The service check that runs is NRPE driven, and we're using simple 
 NRPE config where the ok, warn, critical values are coded on the target
 systems nrpe.conf file (we intend to change this when we convert to Nagios 
 version 3).

 Given this structure is there a good way to be able to tell nagios from 20:00 
 to 23:00 use a diff service check? I figure it has to be something to do
 with a custom time period, but I'm really not sure what all I would need to 
 do to make it work correctly.

 Any insights appreciated.

 -J

 Disclaimer: Information in this message or an attachment may be government 
 data and thereby subject to the Minnesota Government Data Practices Act, 
 Minnesota Statutes, Chapter 13, may be subject to attorney-client or work 
 product privilege, may be confidential, privileged, proprietary, or otherwise 
 protected, and the unauthorized review, copying, retransmission, or other use 
 or disclosure of the information is strictly prohibited. If you are not the 
 intended recipient of this message, please immediately notify the sender of 
 the transmission error and then promptly delete this message from your 
 computer system.   
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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
   

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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/service dependencies

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 9:17 AM, Assaf Flatto wrote:

 Hello

 I'm trying to figure out a way or logic of service /host dependency .
 In today's dependency logic - there is no correlation between host  
 failure and the host services ,
 even if the host is down - services are still being checked and  
 reported as critical .

They may be displayed as CRITICAL, and they are, but no alerts are  
sent for them.

 there is a need to designate a specific dependency check for  
 services and then it will only learn
 of the down status .

 Is there a way to tell nagios that once a server is down - not to  
 check the services assigned to
 this server ? to me it seems like this

Not really. Nagios is primarily a service monitor and services are  
central to it's check logic. If a service reports a non-OK state,  
Nagios will check the status of the host. If the host reports a non-OK  
state, notifications for services are suppressed but will continue to  
be checked. The service checks are necessary because Nagios uses them  
to determine when the host has recovered. Bear in mind that the normal  
and recommended operation of nagios is without regularly scheduled  
active host checks. In such a configuration, a host recovery would  
never be noticed if service checks were disabled.

 So once the host is down/unknown/pending , all the services on the  
 server are not checked and do not
 send alerts .

Nagios automagically suppresses alerts for services on down/ 
unreachable hosts already. No special configuration is necessary other  
than a host check_command that works correctly.

Pending status means that no services on the host have been checked  
yet. No special action necessary there.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 plugins on 32 bit

2008-07-22 Thread dave stern - e-mail.pluribus.unum
I'm trying to build nagios plugins (1.4.12) on several 32 bit hosts (suse 10.1).
The configs complete but throw a lot of warnings about 32 vs 64 bit. Running the
plug-ins generate segmentation faults. I tried setting LD_LIBRARY_PATH
but that didn't make a difference. Google shows me one potential solution about
making some (fake?) link but this sounds like an ugly hack to me. Is there a
configure switch for 32 bit?

TIA

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 plugins on 32 bit

2008-07-22 Thread Paulus, Jake
If you're following the instructions found here
http://nagios.sourceforge.net/docs/3_0/quickstart-opensuse.html and
having trouble, can you please give specific error messages you're
seeing?

Thanks, -Jake

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dave
stern - e-mail.pluribus.unum
Sent: Tuesday, July 22, 2008 11:04 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios plugins on 32 bit

I'm trying to build nagios plugins (1.4.12) on several 32 bit hosts
(suse 10.1).
The configs complete but throw a lot of warnings about 32 vs 64 bit.
Running the
plug-ins generate segmentation faults. I tried setting LD_LIBRARY_PATH
but that didn't make a difference. Google shows me one potential
solution about
making some (fake?) link but this sounds like an ugly hack to me. Is
there a
configure switch for 32 bit?

TIA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK  win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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/service dependencies

2008-07-22 Thread Assaf Flatto


I know that what you say should work , but when i have a host down i keep 
getting the alerts for 
each of it's associated services .

any idea what i missed and why this is happening ?


On Tuesday 22 July 2008 14:50:28 Marc Powell wrote:
 On Jul 22, 2008, at 9:17 AM, Assaf Flatto wrote:
  Hello
 
  I'm trying to figure out a way or logic of service /host dependency .
  In today's dependency logic - there is no correlation between host
  failure and the host services ,
  even if the host is down - services are still being checked and
  reported as critical .

 They may be displayed as CRITICAL, and they are, but no alerts are
 sent for them.

  there is a need to designate a specific dependency check for
  services and then it will only learn
  of the down status .
 
  Is there a way to tell nagios that once a server is down - not to
  check the services assigned to
  this server ? to me it seems like this

 Not really. Nagios is primarily a service monitor and services are
 central to it's check logic. If a service reports a non-OK state,
 Nagios will check the status of the host. If the host reports a non-OK
 state, notifications for services are suppressed but will continue to
 be checked. The service checks are necessary because Nagios uses them
 to determine when the host has recovered. Bear in mind that the normal
 and recommended operation of nagios is without regularly scheduled
 active host checks. In such a configuration, a host recovery would
 never be noticed if service checks were disabled.

  So once the host is down/unknown/pending , all the services on the
  server are not checked and do not
  send alerts .

 Nagios automagically suppresses alerts for services on down/
 unreachable hosts already. No special configuration is necessary other
 than a host check_command that works correctly.

 Pending status means that no services on the host have been checked
 yet. No special action necessary there.

 --
 Marc

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge Build the coolest Linux based applications with Moblin SDK  win
 great prizes Grand prize is a trip for two to an Open Source event anywhere
 in the world http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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






IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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/service dependencies

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 10:20 AM, Assaf Flatto wrote:



 I know that what you say should work , but when i have a host down i  
 keep getting the alerts for
 each of it's associated services .

 any idea what i missed and why this is happening ?

Please post the host Status Information (click on the host in the GUI)  
when this is happening. Verify that you do not have multiple nagios  
daemons running at the same time. Make sure that you do not have  
is_volatile set for the services.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread Jonathan Williams
I hate bumping my own e-mail post, I just have not heard anything yet.

 

Thanks,

 

Jon

 



From: Jonathan Williams 
Sent: Monday, July 21, 2008 7:47 AM
To: Anthony Montibello; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Help - I am unable to send notifications

 

It was about time I changed the subject line of my e-mail since the
NSClient++ service restart issue is fixed thanks to you guys.  I am
reposting this since my last e-mail on Friday which is at the bottom of
this thread.  I was hoping to verify the syntax of this command:

 

sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

 

It returns this:

 

sed: can't read check_sendmail.pl: No such file or directory

 

Thank you,

 

Jon

 

 

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jonathan Williams
Sent: Friday, July 18, 2008 5:08 PM
To: Anthony Montibello
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++
torestart services

 

 

 

 

From: Anthony Montibello [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 4:21 PM
To: Jonathan Williams
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to
restart services

 

 

Jonathan Williams wrote:
 I did (at least similar).  I ran it and it returned:

 /usr/local/bin/pearl -w


I'm guessing the output was actually
#! /usr/local/bin/perl -w
which is quite different from what you wrote, but I'll have to
assume that the output you gave me is actually correct (who in
their right minds would give false info to someone who's trying
to help them??), so here it goes:

* There's your error right there. To begin with, you probably
don't
have a binary named pearl anywhere on your system.
* There's #! in front of the name of the script interpreter,
so
the kernel has no idea what to do with it.

Run this command and it'll magically start working:

sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

Note that similar hardly ever cuts it, especially if you want
more help and don't paste the similar command you actually
used along with the output it produced. copy-paste is your
friend.

--
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
http://www.op5.se/ 
Tel: +46 8-230225  Fax: +46 8-230231

Got it...as far as the top posting goes...makes sense.  Thanks.
And yes
there was a #! In front as you said.  I did say similar just
because the
OP who was helping me said I would get something similar to
#!/usr/bin/perl args-to-perl.  My output was similar to that,
but not
exact.  Thanks for the response. I ran the following:


sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

return:

sed: can't read check_sendmail.pl: No such file or directory


 

I been following  your Emails on this issue and it looks like this must
be some simple mistake somewhere, for example runtime Libexec is not the
directory your using, FIlemames mispellings, things missing from the
path or some other unkown issue.

 

Try running some normal shell script that just gives a date or pwd to
validate the Libexec directory you are copying files to is the one
nagios is run from.

 

In the above command was it suppose to be sendmail.pl instead of
check_sendmail.pl ? (I am not sure I did not think hard about what the
command does) but most of the prior emails mentioned only sendmail.pl
while check_ is common prefix of most common nagios plugins.

 

Last in prior posts I noticed the -n in the command has a space between
the - and the n is it really there or is it just my email reader? if it
is there should it be there?

 

Tony (Author of NC_net)

(I actually prefer reading Top posted msg - but I understand Andreas
point on Bottom posting or inline posting)

 

 

Good question Tony.  There is no such file called check_sendmail on my
system.  Other scripts are running fine out of
/usr/local/nagios/libexec.  I am not sure if perhaps the send_mail.pl
script is perhaps looking for the pearl binary in the wrong folder
/usr/bin/perl as opposed to /usr/local/bin/perl?  I am not at work now
but will dig in later tonight.  I am a victim of my own lack of Linux
experience here I admit, but I'm learning.  I have a feeling if any of
you were looking at everything I have here it would jump out at you.
I'm going to team up with a colleague of mine here who is a good Linux
guy and get his input as well.  

 

As usual thanks again for your time and expertise.

 

Jon


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread Matthew Macdonald-Wallace
On Mon, 21 Jul 2008 07:47:00 -0700
Jonathan Williams [EMAIL PROTECTED] wrote:

 sed: can't read check_sendmail.pl: No such file or directory

Are you in the correct directory?

Try running the following:

locate check_sendmail.pl

then cd to the directory that it gives you and run the sed command
provided earlier.

M.
-- 
Matthew Macdonald-Wallace
[EMAIL PROTECTED]
http://www.truthisfreedom.org.uk

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 09:08 -0700, Matthew Macdonald-Wallace wrote:
 On Mon, 21 Jul 2008 07:47:00 -0700
 Jonathan Williams [EMAIL PROTECTED] wrote:
 
  sed: can't read check_sendmail.pl: No such file or directory
 
 Are you in the correct directory?
 
 Try running the following:
 
 locate check_sendmail.pl
 
 then cd to the directory that it gives you and run the sed command
 provided earlier.
 
 M.
 --
 Matthew Macdonald-Wallace
 [EMAIL PROTECTED]
 http://www.truthisfreedom.org.uk
 

I ran that command and got nothing.  No response.  See below:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# locate check_sendmail.pl
[EMAIL PROTECTED]:/usr/local/nagios/libexec# 

The libexec directory does have the send_mail.pl file (not sendmail.pl).

jon
 
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 09:08 -0700, Matthew Macdonald-Wallace wrote:
 On Mon, 21 Jul 2008 07:47:00 -0700
 Jonathan Williams [EMAIL PROTECTED] wrote:
 
  sed: can't read check_sendmail.pl: No such file or directory
 
 Are you in the correct directory?
 
 Try running the following:
 
 locate check_sendmail.pl
 
 then cd to the directory that it gives you and run the sed command
 provided earlier.
 
 M.
 --
 Matthew Macdonald-Wallace
 [EMAIL PROTECTED]
 http://www.truthisfreedom.org.uk
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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
 
I am guessing (with all my vast linux experience...that's sarcasm) that
perhaps the send_mail.pl wrapper does not know how to find the actual
senmail file which is located in /usr/lib.  I don't see anything in the
send_mail.pl script that indicates it is looking for it though.  Here is
the send_mail.pl file contents:

#!/usr/bin/pearl -w
#
# Wriiten by Rob Moss, 2005-10-09
# [EMAIL PROTECTED]
#
# A replacement for Nagios's basic mail system which relies
on /bin/mailx and local sendmail config
#
# To use this, just replace the entries in commands.cfg and update your
hosts and services from the default notify-by-email to use the
specific host-notify-by-email or service-notify-by-email
#
# I put this in the plugins directory /usr/local/nagios/libexec but you
can put it anywhere. Just update the path

# commands.cfg
#define command{
#   command_namehost-notify-by-email
#   command_line$USER1$/send_mail.pl -n HOST $NOTIFICATIONTYPE$ -h
$HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$ -d
$LONGDATETIME$ -e $CONTACTEMAIL$
#}
#
#define command{
#   command_nameservice-notify-by-email
#   command_line$USER1$/send_mail.pl -n SERVICE $NOTIFICATIONTYPE$ -h
$HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC$ -
$SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
$CONTACTEMAIL$
#}

# contacts.cfg
#define contact{
#   contact_namenagiosadmin
#   host_notification_commands  host-notify-by-email
#   service_notification_commands   service-notify-by-email
#   email   [EMAIL 
PROTECTED]
#}


use strict;
use Net::SMTP;
use Getopt::Std;

my $mailhost=   192.168.1.9 ;
my $maildomain  =   ems.securicor.com;
my $mailfrom=   [EMAIL PROTECTED];
my $mailto  =   [EMAIL PROTECTED];
my $timeout =   30;
my $mailsubject =   ''; 
#   Leave blank
my $mailbody=   ''; 
#   Leave blank
my $logfile =   '/tmp/mail.log';
#   Put somewhere better
my $debug   =   1;  
#   To enable SMTP session debugging to logfile



# Email for nagios
#
# Subject: Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
#
# * Nagios  *
# Notification Type: $NOTIFICATIONTYPE$
# Host: $HOSTNAME$
# State: $HOSTSTATE$
# Address: $HOSTADDRESS$
# Info: $HOSTOUTPUT$
# Date/Time: $LONGDATETIME$
#
#
#
# Commandline options
#
# -nNOTIFICATIONTYPE
# -hHOSTNAME
# -sHOSTSTATE
# -aHOSTADDRESS
# -iHOSTOUTPUT
# -dLONGDATETIME
# -eCONTACTEMAIL
#
#


if (not open(LOG,$logfile) ) {
$mailsubject = Nagios Monitoring Alert: Can't open $logfile for
append: $!;
print STDERR Nagios Monitoring Alert: Can't open $logfile for append:
$!;
sendmail();
exit 1;
}


our ($opt_n, $opt_h, $opt_s , $opt_a , $opt_i , $opt_d , $opt_e);
# Get the cmdline options
getopt('nhsaide');
print LOG localtime() .  sending mail to $opt_e with host $opt_h state
$opt_s\n;

if (not defined $opt_n or $opt_n eq ) {
print option -n not defined!\n;
$opt_n = UNDEFINED;
}
elsif (not defined $opt_h or $opt_h eq ) {
print option -h not defined!\n;
$opt_h = UNDEFINED;
}
elsif (not defined $opt_s or $opt_s eq ) {
print option -s not defined!\n;
$opt_s = UNDEFINED;
}
elsif (not defined $opt_a or 

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 11:56 AM, jonathan williams wrote:


 I am guessing (with all my vast linux experience...that's sarcasm)  
 that
 perhaps the send_mail.pl wrapper does not know how to find the actual
 senmail file which is located in /usr/lib.  I don't see anything in  
 the
 send_mail.pl script that indicates it is looking for it though.   
 Here is
 the send_mail.pl file contents:

 #!/usr/bin/pearl -w
 #

This is incorrect. It should be 'perl', not 'pearl'. That's what  
they've been trying to get you to correct. Edit the file and fix it.

--
Marc


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 10:11 -0700, Marc Powell wrote:
 
 On Jul 22, 2008, at 11:56 AM, jonathan williams wrote:
 
 
  I am guessing (with all my vast linux experience...that's sarcasm) 
  that
  perhaps the send_mail.pl wrapper does not know how to find the
 actual
  senmail file which is located in /usr/lib.  I don't see anything in 
  the
  send_mail.pl script that indicates it is looking for it though.  
  Here is
  the send_mail.pl file contents:
 
  #!/usr/bin/pearl -w
  #
 
 This is incorrect. It should be 'perl', not 'pearl'. That's what 
 they've been trying to get you to correct. Edit the file and fix it.
 
 --
 Marc
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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
 
 Umm..what can I say?  Wow.  OK.. I fixed that in the send_mail.pl
 file.  Any other steps I need to take once I did that to make it work.
 I did re-run the sed-i command and still get the same error:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed
1q /usr/local/nagios/libexec/send_mail.pl
#!/usr/bin/perl -w 
[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/perl
-w,' check_sendmail.pl
sed: can't read check_sendmail.pl: No such file or directory


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread Andy Shellam
Brent Clark wrote:
 Matthew Macdonald-Wallace wrote:
   
 It's basically a firewall rule that states:
 

 See thats what i didnt want.

 Im sure we the same, in that we run very minimalistic (kernel tweaking 
 too) software installation / services (namely just http, ssh). But now I 
 have to go write a ruleset all for blocking a port. I was hoping that 
 the allowed_host (which from what I read is tcpwrapped), was good enough.

 Or am I missing something.

 Thanks

 Brent Clark

   

Hi Brent,

It doesn't have to be a software firewall.  I assume if you're running 
public-facing services, your servers are firewalled in some way, be it 
hardware, software or router-based?  If not then you've got a bigger 
worry than NRPE being compromised.  And if you are, well where's the 
harm in adding another rule to it?

allowed_host does do the job, but it rejects the connection after it 
hits NRPE (i.e. it's rejected from within NRPE.)  The firewall adds an 
extra layer of security, and prevents connection attempts from even 
reaching NRPE.  I don't believe NRPE is by default tcpwrapped, see here: 
http://www.nagios.org/faqs/viewfaq.php?faq_id=101.

Regards,

Andy

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:


 Umm..what can I say?  Wow.  OK.. I fixed that in the send_mail.pl
 file.  Any other steps I need to take once I did that to make it  
 work.
 I did re-run the sed-i command and still get the same error:


Not unless you experience further errors.

 [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/ 
 perl
 -w,' check_sendmail.pl
 sed: can't read check_sendmail.pl: No such file or directory

Ok. sed 101.

sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

The above is a sed 1-liner. It performs an immediate action and then  
exits. What action? Let's break it down --

sed : this is the command to be executed
-i : this tells sed that it's going to be editing an existing file
1s : the start of the actual sed script. This means we're going to be  
doing 1 substitution
.* : this is what we're going to be looking for, essentially any  
content on the line
#!/usr/bin/perl -w : what the previous match will be replaced with
check_sendmail.pl : The file that sed is going to be editing

The end result is that sed would replace the entire first line of the  
file check_sendmail.pl, located in your current directory, with the  
text '#!/usr/bin/perl -w'.

Your confusion is that the filename should have been check_mail.pl,  
not check_sendmail.pl.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 11:14 -0700, Marc Powell wrote:
 
 On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:
 
 
  Umm..what can I say?  Wow.  OK.. I fixed that in the send_mail.pl
  file.  Any other steps I need to take once I did that to make it 
  work.
  I did re-run the sed-i command and still get the same error:
 
 
 Not unless you experience further errors.
 
  [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/
  perl
  -w,' check_sendmail.pl
  sed: can't read check_sendmail.pl: No such file or directory
 
 Ok. sed 101.
 
 sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
 
 The above is a sed 1-liner. It performs an immediate action and then 
 exits. What action? Let's break it down --
 
 sed : this is the command to be executed
 -i : this tells sed that it's going to be editing an existing file
 1s : the start of the actual sed script. This means we're going to be 
 doing 1 substitution
 .* : this is what we're going to be looking for, essentially any 
 content on the line
 #!/usr/bin/perl -w : what the previous match will be replaced with
 check_sendmail.pl : The file that sed is going to be editing
 
 The end result is that sed would replace the entire first line of the 
 file check_sendmail.pl, located in your current directory, with the 
 text '#!/usr/bin/perl -w'.
 
 Your confusion is that the filename should have been check_mail.pl, 
 not check_sendmail.pl.
 
 --
 Marc
 


Thank you for that breakdown.  

I am still having the same error in my nagios.log:

[1216749581] SERVICE NOTIFICATION:
nagiosadmin;jwilliamspc;PrintSpooler;OK;service-notify-by-email;Spooler:
Started
[1216749581] Warning: Attempting to execute the command
/usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY -h
jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - Spooler:
Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul 22
10:59:41 PDT 2008 -e [EMAIL PROTECTED] resulted in a
return code of 126.  Make sure the script or binary you are trying to
execute actually exists...

The top line in the send_mail.pl script is indeed #!/usr/bin/perl -w.
I am not sure what it does though.  Doesn't the # mean it is remarked?
I guess my confusion is that there is no such file on my system called
check_sendmail.pl or check_mail.pl.  I was unable to locate any of them.
There is only a check_mailq.  That is why when you state:

#!/usr/bin/perl -w : what the previous match will be replaced with
 check_sendmail.pl : The file that sed is going to be editing
 
 The end result is that sed would replace the entire first line of the 
 file check_sendmail.pl, located in your current directory, with the 
 text '#!/usr/bin/perl -w'.
 
 Your confusion is that the filename should have been check_mail.pl, 
 not check_sendmail.pl.

I get lost.  


 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Marc Powell
 Sent: Tuesday, July 22, 2008 1:15 PM
 To: Nagios User list
 Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 


  [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/
  perl
  -w,' check_sendmail.pl
  sed: can't read check_sendmail.pl: No such file or directory
 
 Ok. sed 101.
 
 sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl


 Your confusion is that the filename should have been check_mail.pl,
 not check_sendmail.pl.

Correction. It should have been send_mail.pl, not check_sendmail.pl.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Migrating to v3

2008-07-22 Thread Ciro Iriarte
2008/7/21 Ciro Iriarte [EMAIL PROTECTED]:
 2008/7/21 Andreas Ericsson [EMAIL PROTECTED]:
 Ciro Iriarte wrote:

 Hi,

 I'm migrating our v2.x installation of nagios to 3.0.3 and i'm stuck
 currently, can sameone check if i'm missing something here?:

 Verification reports:
 -
 Error: Service description, host name, or check command is NULL
 Error: Could not register service (config file
 '/etc/nagios/objects/services/filesystems.win.cfg', starting on line
 1)
 -

 First lines of filesystems.win.cfg:

 -
 define service{
use filesystems
hostgroup_name  nrpe_nt
service_description Unidad c:\

 Nagios 3 supports line-continuation in configuration files. Remove the
 backslash
 at the end of this line and you'll be fine.

 --
 Andreas Ericsson   [EMAIL PROTECTED]
 OP5 AB www.op5.se
 Tel: +46 8-230225  Fax: +46 8-230231


 Thanks to both of you, that was the issue, I had to add \\ instead
 and it worked!

 Regards,
 Ciro


Nope, that didn't help, the error desappeared and also this my
services (not seen in the web interface), deletin the \ did it (just
Unidad c: works.

Thanks
Ciro

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Issues with timeperiods

2008-07-22 Thread Fulton, David
I was attempting to setup an on call rotation per the directions on the
website and have run into a little snag that I am not sure really is a
snag. My timeperiods file looks like this:

define timeperiod{
timeperiod_name cbakeroncall
alias   Charles Baker on call weeks
2008-07-21  00:00-24:00
}
# timeperiods.cfg - Config file for Nagios (www.nagios.org)
#
# Written by Nawui 0.1.5-dev. Manually editing this file is a bad idea
since Nawui will
# overwrite it. 
#
# Exported at 11:54:47 - 01 Apr 2004
#


define timeperiod {
timeperiod_name 24x7
alias   24 Hours A Day, 7 Days A Week
sunday  00:00-24:00
monday  00:00-24:00
tuesday 00:00-24:00
wednesday   00:00-24:00
thursday00:00-24:00
friday  00:00-24:00
saturday00:00-24:00
}

define timeperiod {
timeperiod_name workhours
alias   Work hours
monday  08:00-18:00
tuesday 08:00-18:00
wednesday   08:00-18:00
thursday08:00-18:00
friday  08:00-18:00
}

define timeperiod {
timeperiod_name nonworkhours
alias   Non-Work Hours
sunday  00:00-24:00
monday  00:00-09:00,17:00-24:00
tuesday 00:00-09:00,17:00-24:00
wednesday   00:00-09:00,17:00-24:00
thursday00:00-09:00,17:00-24:00
friday  00:00-09:00,17:00-24:00
saturday00:00-24:00
}

define timeperiod {
timeperiod_name none
alias   No Time Is A Good Time
}

# This says some guy named Nawui is gonna overwrite this file if I put
this here.
# Well, I'm just that crazy.
define timeperiod {
timeperiod_name non_netapp_maintenance
alias   Always except NetApp Maintenance cronjobs
sunday  00:00-01:00,05:00-24:00
monday  00:00-01:00,05:00-24:00
tuesday 00:00-01:00,05:00-24:00
wednesday   00:00-01:00,05:00-24:00
thursday00:00-01:00,05:00-24:00
friday  00:00-01:00,05:00-24:00
saturday00:00-01:00,05:00-24:00
}

Now, the problem is at the top of the file, if I look at the timeperiods
config in the CGI it looks like this:

Time Periods

NameAlias/Description   Exclusions  Days/Dates  Times
24x724 Hours A Day, 7 Days A Week   sunday  00:00:00 -
24:00:00 
monday  00:00:00 - 24:00:00 
tuesday 00:00:00 - 24:00:00 
wednesday   00:00:00 - 24:00:00 
thursday00:00:00 - 24:00:00 
friday  00:00:00 - 24:00:00 
saturday00:00:00 - 24:00:00 
cbakeroncallCharles Baker on call weeks 2008-05-21
00:00:00 - 24:00:00
non_netapp_maintenance  Always except NetApp Maintenance cronjobs
sunday  05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
monday  05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
tuesday 05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
wednesday   05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
thursday05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
friday  05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
saturday05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
noneNo Time Is A Good Time  
nonworkhoursNon-Work Hours  sunday  00:00:00 - 24:00:00 
monday  17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
tuesday 17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
wednesday   17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
thursday17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
friday  17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
saturday00:00:00 - 24:00:00 
workhours   Work hours  monday  08:00:00 - 18:00:00 
tuesday 08:00:00 - 18:00:00 
wednesday   08:00:00 - 18:00:00 
thursday08:00:00 - 18:00:00 
friday  08:00:00 - 18:00:00 

Notice the date in the config file is 2008-07-21 and the date the CGI
reports is 2008-05-21. So my question is this, is this just a matter of
the CGI being broken and not being able to correctly interpret the
configuration, or is it nagios itself that is broken. If it is just the
CGI I will be perfectly okay with that. If not, I would like to put it
in as a bug.

Thanks

David Fulton
Systems Administrator
NUVOX
O:407-835-0470
C:321-246-2238


This email and any attachments (Message) may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality 

Re: [Nagios-users] Issues with timeperiods

2008-07-22 Thread Fulton, David
BTW, I am running 3.0.3 on a RHEL 5 box on x86_64

David Fulton
Systems Administrator
NUVOX
O:407-835-0470
C:321-246-2238 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Fulton, David
 Sent: Tuesday, July 22, 2008 4:34 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Issues with timeperiods
 
 I was attempting to setup an on call rotation per the 
 directions on the website and have run into a little snag 
 that I am not sure really is a snag. My timeperiods file 
 looks like this:
 
 define timeperiod{
   timeperiod_name cbakeroncall
   alias   Charles Baker on call weeks
   2008-07-21  00:00-24:00
 }
 # timeperiods.cfg - Config file for Nagios (www.nagios.org) # 
 # Written by Nawui 0.1.5-dev. Manually editing this file is a 
 bad idea since Nawui will # overwrite it. 
 #
 # Exported at 11:54:47 - 01 Apr 2004
 #
 
 
 define timeperiod {
   timeperiod_name 24x7
   alias   24 Hours A Day, 7 Days A Week
   sunday  00:00-24:00
   monday  00:00-24:00
   tuesday 00:00-24:00
   wednesday   00:00-24:00
   thursday00:00-24:00
   friday  00:00-24:00
   saturday00:00-24:00
 }
 
 define timeperiod {
   timeperiod_name workhours
   alias   Work hours
   monday  08:00-18:00
   tuesday 08:00-18:00
   wednesday   08:00-18:00
   thursday08:00-18:00
   friday  08:00-18:00
 }
 
 define timeperiod {
   timeperiod_name nonworkhours
   alias   Non-Work Hours
   sunday  00:00-24:00
   monday  00:00-09:00,17:00-24:00
   tuesday 00:00-09:00,17:00-24:00
   wednesday   00:00-09:00,17:00-24:00
   thursday00:00-09:00,17:00-24:00
   friday  00:00-09:00,17:00-24:00
   saturday00:00-24:00
 }
 
 define timeperiod {
   timeperiod_name none
   alias   No Time Is A Good Time
 }
 
 # This says some guy named Nawui is gonna overwrite this file 
 if I put this here.
 # Well, I'm just that crazy.
 define timeperiod {
   timeperiod_name non_netapp_maintenance
   alias   Always except NetApp Maintenance cronjobs
   sunday  00:00-01:00,05:00-24:00
   monday  00:00-01:00,05:00-24:00
   tuesday 00:00-01:00,05:00-24:00
   wednesday   00:00-01:00,05:00-24:00
   thursday00:00-01:00,05:00-24:00
   friday  00:00-01:00,05:00-24:00
   saturday00:00-01:00,05:00-24:00
 }
 
 Now, the problem is at the top of the file, if I look at the 
 timeperiods config in the CGI it looks like this:
 
 Time Periods
 
 Name  Alias/Description   Exclusions  Days/Dates  Times
 24x7  24 Hours A Day, 7 Days A Week   sunday  00:00:00 -
 24:00:00 
   monday  00:00:00 - 24:00:00 
   tuesday 00:00:00 - 24:00:00 
   wednesday   00:00:00 - 24:00:00 
   thursday00:00:00 - 24:00:00 
   friday  00:00:00 - 24:00:00 
   saturday00:00:00 - 24:00:00 
 cbakeroncall  Charles Baker on call weeks 2008-05-21
 00:00:00 - 24:00:00
 non_netapp_maintenanceAlways except NetApp 
 Maintenance cronjobs
 sunday05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   monday  05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   tuesday 05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   wednesday   05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   thursday05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   friday  05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
   saturday05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
 none  No Time Is A Good Time  
 nonworkhours  Non-Work Hours  sunday  00:00:00 - 24:00:00 
   monday  17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
   tuesday 17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
   wednesday   17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
   thursday17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
   friday  17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
   saturday00:00:00 - 24:00:00 
 workhours Work hours  monday  08:00:00 - 18:00:00 
   tuesday 08:00:00 - 18:00:00 
   wednesday   08:00:00 - 18:00:00 
   thursday08:00:00 - 18:00:00 
   friday  08:00:00 - 18:00:00 
 
 Notice the date in the config file is 2008-07-21 and the date 
 the CGI reports is 2008-05-21. So my question is this, is 
 this just a matter of the CGI being broken and not being able 
 to correctly interpret the configuration, or is it nagios 
 itself that is broken. If it is just the CGI I will be 
 perfectly okay with that. If not, I would like to put it in as a bug.
 
 Thanks
 
 David Fulton
 Systems Administrator
 NUVOX
 O:407-835-0470
 C:321-246-2238
 
 
 This email and any attachments (Message) may contain 
 legally privileged and/or confidential 

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 12:13 -0700, Marc Powell wrote:
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Marc Powell
  Sent: Tuesday, July 22, 2008 1:15 PM
  To: Nagios User list
  Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 
 
 
   [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i
 '1s,.*,#!/usr/bin/
   perl
   -w,' check_sendmail.pl
   sed: can't read check_sendmail.pl: No such file or directory
 
  Ok. sed 101.
 
  sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
 
 
  Your confusion is that the filename should have been check_mail.pl,
  not check_sendmail.pl.
 
 Correction. It should have been send_mail.pl, not check_sendmail.pl.
 
 --
 Marc
 

Bummer.  I made the change and did not get any errors, however I am
still getting the same error in the nagios.log:

[1216757322] Warning: Attempting to execute the command
/usr/local/nagios/libexec/send_mail.pl -n SERVICE PROBLEM -h
jwilliamspc -s CRITICAL -a 10.10.113.51 -i PrintSpooler -
Spooler: Stopped - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue
Jul 22 13:08:42 PDT 2008 -e [EMAIL PROTECTED] resulted in
a return code of 126.  Make sure the script or binary you are trying to
execute actually exists.

I am not sure if it is permissions or not.  The user nagios is the owner
of this file and should have access.  I ran this from the command
prompt, but realize the $wildcards$ will have no meaning from here.

[EMAIL PROTECTED]:/usr/local/nagios/libexec# 
/usr/local/nagios/libexec/send_mail.pl -n HOST $NOTIFICATIONTYPE$ -h 
$HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$ -d 
$LONGDATETIME$ -e $CONTACTEMAIL$
bash: /usr/local/nagios/libexec/send_mail.pl: Permission denied
[EMAIL PROTECTED]:/usr/local/nagios/libexec#
sudo /usr/local/nagios/libexec/send_mail.pl -n HOST $NOTIFICATIONTYPE$
-h $HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$
-d $LONGDATETIME$ -e $CONTACTEMAIL$
sudo: /usr/local/nagios/libexec/send_mail.pl: command not found

The first attempt was run as logged in user (zlocaladmin) which does not
have rights.  Not sure why it still gave permissions error since I ran
sudo - long before in that session and everything else I can run without
the sudo command.  Anyhow when run with root access I get the command
not found error.  I'm stumped.



 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread Fulton, David

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of jonathan williams
 Sent: Tuesday, July 22, 2008 2:36 PM
 To: Marc Powell
 Cc: Nagios User list
 Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 
 On Tue, 2008-07-22 at 11:14 -0700, Marc Powell wrote:
  
  On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:
  
  
   Umm..what can I say?  Wow.  OK.. I fixed that in the 
 send_mail.pl 
   file.  Any other steps I need to take once I did that to make it 
   work.
   I did re-run the sed-i command and still get the same error:
  
  
  Not unless you experience further errors.
  
   [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i 
 '1s,.*,#!/usr/bin/ 
   perl -w,' check_sendmail.pl
   sed: can't read check_sendmail.pl: No such file or directory
  
  Ok. sed 101.
  
  sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
  
  The above is a sed 1-liner. It performs an immediate action 
 and then 
  exits. What action? Let's break it down --
  
  sed : this is the command to be executed -i : this tells 
 sed that it's 
  going to be editing an existing file 1s : the start of the 
 actual sed 
  script. This means we're going to be doing 1 substitution
  .* : this is what we're going to be looking for, essentially any 
  content on the line #!/usr/bin/perl -w : what the previous 
 match will 
  be replaced with check_sendmail.pl : The file that sed is 
 going to be 
  editing
  
  The end result is that sed would replace the entire first 
 line of the 
  file check_sendmail.pl, located in your current directory, with the 
  text '#!/usr/bin/perl -w'.
  
  Your confusion is that the filename should have been check_mail.pl, 
  not check_sendmail.pl.
  
  --
  Marc
  
 
 
 Thank you for that breakdown.  
 
 I am still having the same error in my nagios.log:
 
 [1216749581] SERVICE NOTIFICATION:
 nagiosadmin;jwilliamspc;PrintSpooler;OK;service-notify-by-emai
l;Spooler:
 Started
 [1216749581] Warning: Attempting to execute the command 
 /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY 
-h jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler -  Spooler:
 Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul 22
 10:59:41 PDT 2008 -e [EMAIL PROTECTED] 
 resulted in a return code of 126.  Make sure the script or 
 binary you are trying to execute actually exists...
 
 The top line in the send_mail.pl script is indeed 
 #!/usr/bin/perl -w.
 I am not sure what it does though.  Doesn't the # mean it is remarked?
 I guess my confusion is that there is no such file on my 
 system called check_sendmail.pl or check_mail.pl.  I was 
 unable to locate any of them.
 There is only a check_mailq.  That is why when you state:
 
 #!/usr/bin/perl -w : what the previous match will be replaced with
  check_sendmail.pl : The file that sed is going to be editing
  
  The end result is that sed would replace the entire first 
 line of the 
  file check_sendmail.pl, located in your current directory, with the 
  text '#!/usr/bin/perl -w'.
  
  Your confusion is that the filename should have been check_mail.pl, 
  not check_sendmail.pl.
 
 I get lost.

As Marc broke down the sed line I will break down the line above, the #
character is indeed a comment character, but only to PERL. PERL is not
what tries to load the file initially, the shell tries to load the file
as a compiled program(like /bin/ls is the compiled program that lists
the files in a directory: I ran this on my nagios server as an example):

[EMAIL PROTECTED] nagios]$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
[EMAIL PROTECTED] nagios]$

But since a PERL script is interpretted and not compiled (technically
that isn't true either but it might as well be), the loader normally
doesn't know what to do with it, so the gods of UNIX decided that the
characters #! Would have special signifigance to the loader at the
beginning of the file. They indicate the program that will interpret the
script. So when the loader sees it it then looks for the /usr/bin/perl
program and execs it with the -w command and the script path so that it
will interpret the script. If /usr/bin/perl does not exist you will have
problems. To verify the existence of it just ls /usr/bin/perl. Most
systems have it there, but a few do not, instead they keep it in
/usr/local/bin/ so you might need to change that line to
#!/usr/local/bin/perl -w instead. But only if it is in that location,
if it isn't you will need to find it. Which may not be so hard since
nagios probably found it when you installed it and if you do a file *
in the plugin directory and then type head  and the name of a perl
script you should see where it really is.

Hope this helps.


This email and any attachments (Message) may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to 

Re: [Nagios-users] Monitor log file for inactivity?

2008-07-22 Thread Mark Young

On Jul 22, 2008, at 7:56 AM, Sean Carolan wrote:
 I have heard that check_by_ssh can cause a lot of overhead on large
 networks where there are many checks going on at the same time.  Can
 anyone give some practical numbers here?  I have about 160 machines
 that need to be monitored, most of them will simply have the basic
 CPU/Disk/Memory monitoring.  I would think that on a small network
 like this it should not be a major problem.

You should no problem if you are running on decent hardware since  
don't have that many hosts and only a few services will be checked  
with SSH.  NRPE is definitely the preferred method for running remote  
checks.  With each SSH check you are creating a new tunnel, logging  
onto a remote machine as the user you setup, running the command,  
waiting for output, and closing the connection.  Plus you are normally  
creating a public ssh key that allows for password-less log on.  You  
can see where there are both performance and security concerns.

Check_by_ssh will work fine but I would at least take a took at NRPE.   
The difference in setting it up may be smaller than you think since  
you will have to touch each machine to install the plugins no matter  
what you decide.



 Nice.  I really appreciate the help.  Nagios will soon be replacing
 the feature-challenged monitoring software we are using now for Linux
 machines.

Good to hear and good luck! :-)


Mark Young
___
Nagios Enterprises, LLC
Web:www.nagios.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 14:06 -0700, Fulton, David wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of jonathan williams
  Sent: Tuesday, July 22, 2008 2:36 PM
  To: Marc Powell
  Cc: Nagios User list
  Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 
  On Tue, 2008-07-22 at 11:14 -0700, Marc Powell wrote:
  
   On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:
   
  
Umm..what can I say?  Wow.  OK.. I fixed that in the
  send_mail.pl
file.  Any other steps I need to take once I did that to make
 it
work.
I did re-run the sed-i command and still get the same error:
   
  
   Not unless you experience further errors.
  
[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i
  '1s,.*,#!/usr/bin/
perl -w,' check_sendmail.pl
sed: can't read check_sendmail.pl: No such file or directory
  
   Ok. sed 101.
  
   sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
  
   The above is a sed 1-liner. It performs an immediate action
  and then
   exits. What action? Let's break it down --
  
   sed : this is the command to be executed -i : this tells
  sed that it's
   going to be editing an existing file 1s : the start of the
  actual sed
   script. This means we're going to be doing 1 substitution
   .* : this is what we're going to be looking for, essentially any
   content on the line #!/usr/bin/perl -w : what the previous
  match will
   be replaced with check_sendmail.pl : The file that sed is
  going to be
   editing
  
   The end result is that sed would replace the entire first
  line of the
   file check_sendmail.pl, located in your current directory, with
 the
   text '#!/usr/bin/perl -w'.
  
   Your confusion is that the filename should have been
 check_mail.pl,
   not check_sendmail.pl.
  
   --
   Marc
  
 
 
  Thank you for that breakdown. 
 
  I am still having the same error in my nagios.log:
 
  [1216749581] SERVICE NOTIFICATION:
  nagiosadmin;jwilliamspc;PrintSpooler;OK;service-notify-by-emai
 l;Spooler:
  Started
  [1216749581] Warning: Attempting to execute the command
  /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY
 -h jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - 
 Spooler:
  Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul
 22
  10:59:41 PDT 2008 -e [EMAIL PROTECTED]
  resulted in a return code of 126.  Make sure the script or
  binary you are trying to execute actually exists...
 
  The top line in the send_mail.pl script is indeed
  #!/usr/bin/perl -w.
  I am not sure what it does though.  Doesn't the # mean it is
 remarked?
  I guess my confusion is that there is no such file on my
  system called check_sendmail.pl or check_mail.pl.  I was
  unable to locate any of them.
  There is only a check_mailq.  That is why when you state:
 
  #!/usr/bin/perl -w : what the previous match will be replaced with
   check_sendmail.pl : The file that sed is going to be editing
  
   The end result is that sed would replace the entire first
  line of the
   file check_sendmail.pl, located in your current directory, with
 the
   text '#!/usr/bin/perl -w'.
  
   Your confusion is that the filename should have been
 check_mail.pl,
   not check_sendmail.pl.
 
  I get lost.
 
 As Marc broke down the sed line I will break down the line above, the
 #
 character is indeed a comment character, but only to PERL. PERL is not
 what tries to load the file initially, the shell tries to load the
 file
 as a compiled program(like /bin/ls is the compiled program that lists
 the files in a directory: I ran this on my nagios server as an
 example):
 
 [EMAIL PROTECTED] nagios]$ file /bin/ls
 /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
 GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
 [EMAIL PROTECTED] nagios]$
 
 But since a PERL script is interpretted and not compiled (technically
 that isn't true either but it might as well be), the loader normally
 doesn't know what to do with it, so the gods of UNIX decided that the
 characters #! Would have special signifigance to the loader at the
 beginning of the file. They indicate the program that will interpret
 the
 script. So when the loader sees it it then looks for the /usr/bin/perl
 program and execs it with the -w command and the script path so that
 it
 will interpret the script. If /usr/bin/perl does not exist you will
 have
 problems. To verify the existence of it just ls /usr/bin/perl. Most
 systems have it there, but a few do not, instead they keep it in
 /usr/local/bin/ so you might need to change that line to
 #!/usr/local/bin/perl -w instead. But only if it is in that
 location,
 if it isn't you will need to find it. Which may not be so hard since
 nagios probably found it when you installed it and if you do a file
 *
 in the plugin directory and then type head  and the name of a perl
 script you should see where it really is.
 
 Hope this helps.

That helped a great deal in helping 

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread Sean McAfee
jonathan williams wrote:

 That helped a great deal in helping me understand what it is typing to
 do.  That top line than of #!/usr/bin/perl -w does exist and the perl
 file does exist in /usr/bin so it should all be correct.  Up until you
 pointed out my typo of the spelling of perl as pearl this obviously
 would not work and I was optimistic of this correcting the problem.
 However I fixed the spelling and am still getting the same error.  It is
 just not seeing send_mail.pl as a valid script.  The script of course is
 defined in the commands.cfg file as:

 define command{
   command_nameservice-notify-by-email
   command_line$USER1$/send_mail.pl -n SERVICE $NOTIFICATIONTYPE$ -h
 $HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC$ -
 $SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
 $CONTACTEMAIL$
   }

I have yet to see you confirm that send_mail.pl actually exists.  None 
of my default installs have this script, so I'm assuming that's your 
problem. 

Download it from NagiosExchange 
(http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2217.html;d=1) and put 
it wherever $USER1$ is (this is the default location of check_x 
commands, it's defined in Nagios' resources file).

Sean McAfee
System Engineer

Collaborative Fusion, Inc.
 [EMAIL PROTECTED]
 412-422-3463 x 4025

5849 Forbes Avenue
Pittsburgh, PA 15217


IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Re-Notification

2008-07-22 Thread Wade Peacock

I have been using Nagios since the days of Netsaint. I have never had this 
issue. I have a service that is continuously re-notifying.
It should be notify once. I have reviewed my configuration file. I can not 
figure it out.

Here is the service specific information:

define service {
nametemp
is_volatile 0
check_period24x7
max_check_attempts  1
normal_check_interval   5
retry_check_interval2
active_checks_enabled   1
passive_checks_enabled  1
parallelize_check   1
obsess_over_service 0
check_freshness 0
notifications_enabled   1
notification_interval   0
notification_period 24x7
notification_optionsc,r
event_handler_enabled   1
flap_detection_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  Test
}

define service {
service_description Temperature - CABLE HEADEND
use temp
host_name   Sensatronics E4
check_command   check_temperature!2
}

I have tried Version 3.0rc2, 3.0.1, 3.0.2  3.0.3

Thanks for your help.

Wade Peacock



begin:vcard
fn:Wade Peacock
n:Peacock;Wade
org:Sun Country Cablevision Ltd;Sunwave Internet Department
adr:10 Harbourfront Drive NE;;Box 1360;Salmon Arm;BC;V1E 4P5;Canada
email;internet:[EMAIL PROTECTED]
title:Network Administrator
tel;work:250-832-9711 or 250-546-9667
tel;fax:250-832-2146
x-mozilla-html:FALSE
url:http://www.sunwave.net
version:2.1
end:vcard

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 14:48 -0700, Sean McAfee wrote:
 jonathan williams wrote:
 
  That helped a great deal in helping me understand what it is typing
 to
  do.  That top line than of #!/usr/bin/perl -w does exist and the
 perl
  file does exist in /usr/bin so it should all be correct.  Up until
 you
  pointed out my typo of the spelling of perl as pearl this
 obviously
  would not work and I was optimistic of this correcting the problem.
  However I fixed the spelling and am still getting the same error.
 It is
  just not seeing send_mail.pl as a valid script.  The script of
 course is
  defined in the commands.cfg file as:
 
  define command{
command_nameservice-notify-by-email
command_line$USER1$/send_mail.pl -n SERVICE
 $NOTIFICATIONTYPE$ -h
  $HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC
 $ -
  $SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
  $CONTACTEMAIL$
}
 
 I have yet to see you confirm that send_mail.pl actually exists.  None
 of my default installs have this script, so I'm assuming that's your
 problem.
 
 Download it from NagiosExchange
 (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2217.html;d=1) and
 put
 it wherever $USER1$ is (this is the default location of check_x
 commands, it's defined in Nagios' resources file).
 
 Sean McAfee
 System Engineer
 
 Collaborative Fusion, Inc.
  [EMAIL PROTECTED]
  412-422-3463 x 4025
 
 5849 Forbes Avenue
 Pittsburgh, PA 15217

It does exist and I pasted the text from it in a previous e-mail earlier
today.  I downloaded it from nagiosexchange as an add-on so no default
Nagios install would have this.  It is located
in /usr/local/nagios/libexec.  See below:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# locate send_mail.pl
/home/zlocaladmin/Documents/send_mail.pl
/usr/local/nagios/libexec/send_mail.pl
[EMAIL PROTECTED]:/usr/local/nagios/libexec# 

The /home/zlocaladmin/Documents/send_mail.pl reference is where the file
was downloaded and I copied rather than moved it into
the /usr/local/nagios/libexec folder so that one is not being used.  I
have looked this over and over and can't figure out why it says it does
not exist.  It's there. 



 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] sources Nagios

2008-07-22 Thread Thierry Granier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello!
where can i find the sources of the plugins and the source of Nagios please?
Thanks in advance
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiGdw0ACgkQF0VsK96v2MJ2fwCgq+fRvpVecNhkJZce+dF3Fw0P
nWAAn1ZQUkml5xxnPsUuIsmUCO9aJaq1
=1Bi+
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] check_http

2008-07-22 Thread Thierry Granier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello
i have a WARNING on a check_http command and i don't know why
More, i don't receive a mail nofitication
What happens?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiGfqMACgkQF0VsK96v2MLybwCfdki5mHL78mmu9MOqd2JMwjCQ
dmUAn30f8GVfQ+B0lV9ITOfTA08Oy8T/
=6ceq
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread James Pratt


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Thierry Granier
 Sent: Tuesday, July 22, 2008 8:43 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_http
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hello
 i have a WARNING on a check_http command and i don't know why
 More, i don't receive a mail nofitication
 What happens?

Check your notification options . if the page is password protected,
you can change it from
notification_options  w,u,c,r

To 

Notification_options u,c,r 

(this gets rid of notifications on warnings only such as access denied
etc).

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] schedule check problem

2008-07-22 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 22/07/08 05:09 AM, [EMAIL PROTECTED] wrote:
 Hi,
 
 I've got a strange problem with the nagios. Recently, for testing
 purpose we did install nagios server on a intel based pc and now we
 would like to move the nagios server to an high end machine like HP
 proliant DL 380.
 
 The nagios server on Intel based pc works fine and it was able to
 monitor all the clients using check_nrpe plugin. I have now installed
 nagios server, nagios plugins and nrpe on a high end machine and copied
 all the configuration files from old server to here and then started
 nagios service. All looks ok except for scheduling checks.
 
 The time on nagios server is ahead of the time displayed on the nagios
 interface for Next Scheduled Check. The Next Scheduled Check for some
 service shows,
 
 Next Scheduled Check:  07-22-2008 09:31:04
 Last Check Time:07-22-2008 09:37:53
 
 but the time on nagios server is,
 Tue Jul 22 09:40:06 GMT 2008
 
 The time is not sync properly and when I refresh the page maually, it
 shows all services are in green which means all are working ok. but
 after few seconds when I refresh the same page manually, the services
 were in red color. tells me the error as , critical CHECK_NRPE: Socket
 timeout after 10 seconds
 
 then if you refresh later some point, all service will show in green.
 why does this difference?
 
 where do i change the settings so the time on the nagios interface will
 sync the time with the nagios server?

First of all please do not cross-post. Many people read both lists
anyways, so cross-posting just pollute their inbox.

The time in the web interface it the time of the server. Make sure to
regularly sync the server time or run a properly configured local ntp
daemon to keep time sync.

The issue about having all service ok, than all red is very strange...
Are you sure you don't have an IP conflict on that your old  new
servers, or a DNS record returning the IP of both servers?

The NRPE socket timeout after 10 seconds could be the conlfiguration on
the clients - since there's no authentication in NRPE it could be that
they're only accepting connections from the old server.

Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIhom66dZ+Kt5BchYRAjjjAKCdr0o2lDWM5eXElSOPTf8u9p20sACgt5+l
OsAC6/YZWpuOAHSi3fetaCg=
=b64r
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] sources Nagios

2008-07-22 Thread Kyle O'Donnell
nagiosplugins.org

On Tue, Jul 22, 2008 at 8:10 PM, Thierry Granier [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello!
 where can i find the sources of the plugins and the source of Nagios
 please?
 Thanks in advance
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (GNU/Linux)
 Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

 iEYEARECAAYFAkiGdw0ACgkQF0VsK96v2MJ2fwCgq+fRvpVecNhkJZce+dF3Fw0P
 nWAAn1ZQUkml5xxnPsUuIsmUCO9aJaq1
 =1Bi+
 -END PGP SIGNATURE-

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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 and plugins sources

2008-07-22 Thread Thierry Granier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nagios V 3.0.3
plugins 4.0.12

Hi,
where can i find the sources of Nagios and the sources of plugons?
Thanks in advance
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiGjCcACgkQF0VsK96v2MLptQCdFG07rBWG1vV1Q34mnXRV1J77
4f8An2SvZrjQe42fnInYymJXNyk4gykM
=trgI
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] sources Nagios

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 7:10 PM, Thierry Granier wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello!
 where can i find the sources of the plugins and the source of Nagios  
 please?

http://www.google.com/search?q=nagios+download

http://www.nagios.org



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 7:43 PM, Thierry Granier wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello
 i have a WARNING on a check_http command and i don't know why

Something has exceeded your warning threshold but not your critical  
threshold. That's all we can say based on the information you've  
given. Please post the service{} and command{} definitions as well as  
the plugin output if you need further help.

 More, i don't receive a mail nofitication

Is it configured correctly (i.e. rtfm)? There's much documentation on  
Notifications.


 What happens?

You tell us. That'll help us answer your questions. Posting relevent  
configuration snippets, nagios version, OS, etc is very helpful too.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Services defined !

2008-07-22 Thread Thierry Granier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1




Thierry-Desktop:/usr/local/nagios/etc/objects # cat test
###
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
#
# Last Modified: 05-31-2007
#
# NOTE: This config file is intended to serve as an *extremely* simple
#   example of how you can create configuration entries to monitor
#   the local (Linux) machine.
#
###



Here is my LOCALHOST.CFG file
I have only IServer NAgios and a linux machine
only one service (command) is declared for thr remote host and on my web
page i can see :CPU LOAD ET SWAP USAGE for the remote
host!!!   HOW is it possible!

Many thanks on advance

###
###
#
# HOST DEFINITION
#
###
###

# Define a host for the local machine

define host{
use linux-server; Name of host
template to use
; This host definition 
will inherit all variables that are defined
; in (or inherited by) 
the linux-server host template definition.
host_name   localhost
alias   localhost
address 127.0.0.1
}

define host{
  name  linux-box ; Name of this
template
  use   generic-host  ; Inherit default
values
  check_period  24x7
  check_interval5
  retry_interval1
  max_check_attempts10
  check_command check-host-alive

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiGlzAACgkQF0VsK96v2MJw1ACg1v5ht32yJh2f5fCFreMMdlfY
wwUAn3QgHZqpiyYYavA4e5Gywd+Y0kcz
=OL8w
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] schedule check problem

2008-07-22 Thread Marc Powell

On Jul 22, 2008, at 8:30 PM, Thomas Guyot-Sionnest wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 22/07/08 05:09 AM, [EMAIL PROTECTED] wrote:
 Hi,



 The time is not sync properly and when I refresh the page maually, it
 shows all services are in green which means all are working ok. but
 after few seconds when I refresh the same page manually, the services
 were in red color. tells me the error as , critical CHECK_NRPE:  
 Socket
 timeout after 10 seconds

 then if you refresh later some point, all service will show in green.
 why does this difference?

 where do i change the settings so the time on the nagios interface  
 will
 sync the time with the nagios server?


 The issue about having all service ok, than all red is very strange...

I would suspect multiple nagios daemons running at the same time in a  
case like this. The other symptoms sound consistent with that.

--
Marc

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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

2008-07-22 Thread James Pratt
 -Original Message-
 From: Thierry Granier [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 22, 2008 9:27 PM
 To: James Pratt
 Subject: Re: [Nagios-users] check_http
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
  Many thanks but:

 1) on nagios.org or .com i don't find the sources
 2) where is notification options (in which file?)
 Many thanks
 

On the main page, on the left, there is a link called downloads. Sources
are there.

Notification_options are probably setup either in your nagios
configuration's service template file , or within the service definition
itself. 


These files are usually located in /usr/local/nagios/etc, or
/usr/local/nagios/etc/objects (3.x)

i.e this service definition monitors for the windows service named
VMWare converter service - see notification_options. (or just skip
pulling out your hair and rtfm?) ;)


define service{
use generic-service ; Name
of service template to use
host_name   srv099
service_description VMware Converter Service
check_period24x7
max_check_attempts  5
check_interval  5
contact_groups  me
notification_interval   60
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_snmp_win!VMware Converter
Service
}


http://www.nagios.org/docs/

Regards,
jamie

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 and plugins sources

2008-07-22 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thierry Granier wrote:
| Nagios V 3.0.3
| plugins 4.0.12
|
| Hi,
| where can i find the sources of Nagios and the sources of plugons?
| Thanks in advance

Thierry,

Be aware that you are moving very fast to the annoying type of poster
that is getting ignored in full. I do not think you want to go there.

It seems you have a hard time finding information on your own but
overwelm the mailinglist with questions that do not show the commitment
to take any actions on your own.

Please read the instruction on asking question on mailinglists the smart
way unless it is your intention to be ignored:
http://www.catb.org/%7Eesr/faqs/smart-questions.html

It might also help to see that someone posted their public key to the
public key servers if they insist on signing their messages.

At this point I think some of us might want to be convinced we are not
asked to do your homework but you are in fact a bonafide nagios user and
not a student who is incapable to complete a simple assignment.

It's not that we do not want to help someone but with Nagios it is
mandatory to read the manual at least once cover to cover. Then you
should have seen at least everything and you should be able to ask
specific questions.

I think you are currently unaware of the impression that you leave on
the mailinglist of yourself and how it will impact the way people will
respond to you.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIhr9MBvzDRVjxmYERApagAJ9XbVtI1T4i1zepg0ERADtH+EGIQQCdGViv
nxXqeBElMXtMJk7TwFeZ7B0=
=dHqI
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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