[Nagios-users] How to refresh the view manually ?

2008-09-08 Thread J. Bakshi
Hi list,

IS there any configuration which can allow to manually refresh the view
to  get the latest  nrpe result by simply refreshing the browser ?

Kindly let me know.
many thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to refresh the view manually ?

2008-09-08 Thread Andreas Ericsson
J. Bakshi wrote:
> Hi list,
> 
> IS there any configuration which can allow to manually refresh the view
> to  get the latest  nrpe result by simply refreshing the browser ?
> 

I think you have gravely misunderstood how the Nagios core and NRPE works.

You may have some luck looking in the documentation for the GUI though.
Pay particular attention to the sections talking about forcing service
checks, rescheduling checks and how to submit external commands.

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

-
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=100&url=/
___
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] Getting rid of ACKNOWLEDGEMENT-Mails?

2008-09-08 Thread Marcus
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks,

I don't want any ACKNOWLEDGEMENT-mails sent out any more. Unfortunately,
after about digging an hour in the current docs, I can't find the
responsible flag, which would have to be set.

I'd be glad, if anybody could help me on this.

Nagios Version 3.03 is running.

Thanks a lot.
 Marcus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIxNyM+qVaNRZYOakRAnVxAKCjxw16WRDMfAOIC+6AEs6cqHDCegCdG6f8
nMwHYcXaD3vASwiIqNVw7+Q=
=FXTv
-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=100&url=/
___
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] Getting rid of ACKNOWLEDGEMENT-Mails?

2008-09-08 Thread Andreas Ericsson
Marcus wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi folks,
> 
> I don't want any ACKNOWLEDGEMENT-mails sent out any more. Unfortunately,
> after about digging an hour in the current docs, I can't find the
> responsible flag, which would have to be set.
> 
> I'd be glad, if anybody could help me on this.
> 

Write a custom notification script. Pass it the proper macro and exit
if it's an acknowledgement.

The details you need can be found in the documentation.

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

-
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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to restart the service of the host

2008-09-08 Thread Hari Sekhon
localyee wrote:
> i using the nagios to monitor the host,and once check that there is 
> service run abnormity,i want to restart it,how to configure the nagios 
> to come true.
> your kind help would be great appreciated.
>  
> 2008-09-06
> 
> localyee
Write an event handler for the service:

http://nagios.sourceforge.net/docs/2_0/eventhandlers.html

-h

-- 
Hari Sekhon


-
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=100&url=/
___
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] Override Service Check Command

2008-09-08 Thread Me McMe
Hi all.

I currently have Nagios 3.0.3 set up and working. However, I have
added a couple of service checks that, due to their importance, I want
to use different notification commands than the other service checks.

The problem is that due to the contact details changing quite
regularly (for one reason or another) I don't want to have to change
anything in the contacts section. Unfortunately this seems to be where
the service check command is defined.

So, is there any way to override the service check command that is
specified in the contact definition so that I can use a specific
notification command for a specific service without having to make any
changes to the contact definition?

Thanks in advance for any help.


Mark Baxter

-
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=100&url=/
___
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 ignores check_nrpe return code

2008-09-08 Thread Andreas Ericsson
Rene Rembarz wrote:
> Dear all,
> 
> I have a problem with my Nagios (v3.0.3) ignoring the return code of 
> check_nrpe (v2.10). An example check_nrpe query looks like this:
> 
> # /usr/lib/nagios/plugins/check_nrpe -H 10.0.1.10 -c check_users ; echo 
> "Return code: $?"
> 

If that's what your check_nrpe requests look like, I'm not surprised
you're having problems.

> USERS WARNING - 1 users currently logged in |users=1;1;2;0 Return code: 1
> 
> Based on the return code, Nagios should (if I am niot mistaken) display the 
> service as status "WARNING". But the Service State Information page in Nagios 
> reads:
> 

Nagios doesn't see the return code of check_nrpe in this case. It sees
the return code of 'echo'. AFAIK, 'echo' always returns 0.

> Current Status: OK  (green color)
> Status Information:   USERS WARNING - 1 users currently logged in
> 
> This happens with all service I monitor via nrpe, the check itself goes ok, 
> the status information is displyed correctly, but Nagios does not show the 
> right status based on the return code. For local services on the nagios 
> machine (e.g., a local check_users) this works just fine, so really seems to 
> be something between nagios and check_nrpe.
> 

Remove the '; echo $?' after the check_nrpe check thing and it
will start working again.

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

-
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=100&url=/
___
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 ignores check_nrpe return code

2008-09-08 Thread Rene Rembarz
Hi Andreas,

Thanks for your reply. The echo $? Was just something I did to show you guys 
that check_nrpe correctly captures the return code of the remote plugin and 
exits with that same return code.

The actual command definition looks like this:

define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ 
}
 
Cheers,
René



> -Original Message-
> From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
> Sent: Montag, 8. September 2008 14:24
> To: Rene Rembarz
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios ignores check_nrpe return code
> 
> Rene Rembarz wrote:
> > Dear all,
> > 
> > I have a problem with my Nagios (v3.0.3) ignoring the 
> return code of check_nrpe (v2.10). An example check_nrpe 
> query looks like this:
> > 
> > # /usr/lib/nagios/plugins/check_nrpe -H 10.0.1.10 -c 
> check_users ; echo "Return code: $?"
> > 
> 
> If that's what your check_nrpe requests look like, I'm not 
> surprised you're having problems.
> 
> > USERS WARNING - 1 users currently logged in |users=1;1;2;0 Return 
> > code: 1
> > 
> > Based on the return code, Nagios should (if I am niot 
> mistaken) display the service as status "WARNING". But the 
> Service State Information page in Nagios reads:
> > 
> 
> Nagios doesn't see the return code of check_nrpe in this 
> case. It sees the return code of 'echo'. AFAIK, 'echo' always 
> returns 0.
> 
> > Current Status: OK  (green color)
> > Status Information: USERS WARNING - 1 users currently logged in
> > 
> > This happens with all service I monitor via nrpe, the check 
> itself goes ok, the status information is displyed correctly, 
> but Nagios does not show the right status based on the return 
> code. For local services on the nagios machine (e.g., a local 
> check_users) this works just fine, so really seems to be 
> something between nagios and check_nrpe.
> > 
> 
> Remove the '; echo $?' after the check_nrpe check thing and 
> it will start working again.
> 
> -- 
> Andreas Ericsson   [EMAIL PROTECTED]
> OP5 AB www.op5.se
> Tel: +46 8-230225  Fax: +46 8-230231
> 

-
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=100&url=/
___
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 ignores check_nrpe return code

2008-09-08 Thread Rene Rembarz
Dear all,

I have a problem with my Nagios (v3.0.3) ignoring the return code of check_nrpe 
(v2.10). An example check_nrpe query looks like this:

# /usr/lib/nagios/plugins/check_nrpe -H 10.0.1.10 -c check_users ; echo "Return 
code: $?"

USERS WARNING - 1 users currently logged in |users=1;1;2;0 Return code: 1

Based on the return code, Nagios should (if I am niot mistaken) display the 
service as status "WARNING". But the Service State Information page in Nagios 
reads:

Current Status: OK  (green color)
Status Information: USERS WARNING - 1 users currently logged in

This happens with all service I monitor via nrpe, the check itself goes ok, the 
status information is displyed correctly, but Nagios does not show the right 
status based on the return code. For local services on the nagios machine 
(e.g., a local check_users) this works just fine, so really seems to be 
something between nagios and check_nrpe.

Any advice or tips for further troubleshooting?

Cheers

René

-
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=100&url=/
___
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] Getting rid of ACKNOWLEDGEMENT-Mails?

2008-09-08 Thread Holger Weiss
* Marcus <[EMAIL PROTECTED]> [2008-09-08 10:04]:
> I don't want any ACKNOWLEDGEMENT-mails sent out any more. Unfortunately,
> after about digging an hour in the current docs, I can't find the
> responsible flag, which would have to be set.

We simply unset the "Send Notification:" check box for ACKs in the web
interface by default, so that notifications will only be sent if the box
was explicitly checked (see the attached diff against cgi/cmd.c).

Holger
Index: cmd.c
===
RCS file: /cvsroot/nagios/nagios/cgi/cmd.c,v
retrieving revision 1.42
diff -u -r1.42 cmd.c
--- cmd.c   19 May 2008 18:42:26 -  1.42
+++ cmd.c   8 Sep 2008 08:31:23 -
@@ -945,7 +945,7 @@
printf("");
printf("\n");
printf("Send 
Notification:");
-   printf("");
+   printf("");
printf("\n");
}
printf("Persistent%s:",(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?"
 Comment":"");
@@ -971,7 +971,7 @@
printf("");
printf("\n");
printf("Send 
Notification:");
-   printf("");
+   printf("");
printf("\n");
}
printf("Persistent%s:",(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?"
 Comment":"");
-
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=100&url=/___
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] Anyone tried Nagios 3.0.3 on FreeBSD yet?

2008-09-08 Thread Proskurin Kirill
Jonathan Call wrote:
> I noticed the port change a few days ago. Anyone tried it?
> 
> Does it behave better than Nagios 2 on FreeBSD 7?

Using it from 3beta till 3.03 now.
No problem at all.

-- 
Best regards,
Proskurin Kirill

-
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=100&url=/
___
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] Anyone tried Nagios 3.0.3 on FreeBSD yet?

2008-09-08 Thread Sean McAfee
Jonathan Call wrote:
> I noticed the port change a few days ago. Anyone tried it?
>
> Does it behave better than Nagios 2 on FreeBSD 7?
>
> Jonathan Call
> Network Engineer - NTT/Verio
> (801) 437-7476

This has long been in the ports tree as nagios-devel - it was just 
pending the repocopy of 2.x to nagios2.  I've been running it since b2 
with no issues outside of the libthr one 
(http://www.freebsd.org/cgi/getmsg.cgi?fetch=662046+0+/usr/local/www/db/text/2008/cvs-ports/20080120.cvs-ports).

I honestly haven't noticed many changes (outside of cfg_dir recursion 
working correctly).  On the completely anecdotal side, it does seem to 
be more efficient overall but I think that's related to general 
improvements on the 3.x branch.

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.






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.



-
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=100&url=/
___
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] Anyone tried Nagios 3.0.3 on FreeBSD yet?

2008-09-08 Thread Jonathan Call
I noticed the port change a few days ago. Anyone tried it?

Does it behave better than Nagios 2 on FreeBSD 7?

Jonathan Call
Network Engineer - NTT/Verio
(801) 437-7476



This email message is intended for the use of the person to whom it has been 
sent, and may contain information that is confidential or legally protected. If 
you are not the intended recipient or have received this message in error, you 
are not authorized to copy, distribute, or otherwise use this message or its 
attachments. Please notify the sender immediately by return e-mail and 
permanently delete this message and any attachments. Verio, Inc. makes no 
warranty that this email is error or virus free.  Thank you.

-
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=100&url=/
___
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 Logrotate

2008-09-08 Thread K-L Reinhard
Hi,

I'm really unexpierenced with nagios but I have the following task. We have
to fire on a script, after the internal logrotating of nagios is done. I
know, it would be a lot simpler if we use lograte, but we don't -.-.

Is there a way to solve this matter with an event handler or is it possible
to define a postscript? Maybe there's a way to call the logrotate function
manually ?

Sorry if this matter has already been posted on this mailing list, but I
googled my fingers bloody. And sorry for the poor english

Thanks
Karl
-
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=100&url=/___
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 Logrotate

2008-09-08 Thread Marc Powell

On Sep 8, 2008, at 9:59 AM, K-L Reinhard wrote:

> Hi,
>
> I'm really unexpierenced with nagios but I have the following task.  
> We have to fire on a script, after the internal logrotating of  
> nagios is done. I know, it would be a lot simpler if we use lograte,  
> but we don't -.-.

... and shouldn't. Using logrotate will break nagios reporting  
capabilities.

> Is there a way to solve this matter with an event handler or is it  
> possible to define a postscript? Maybe there's a way to call the  
> logrotate function manually ?

Yes to the first, but not trivially and not as an event handler, no to  
the second and no to the third (can't be done and it would break  
nagios reporting capabilities). It's an unusual request so there  
aren't any easy-to-use capabilities... Nagios doesn't provide an event  
handler type of action for log rotation but _does_ notify event broker  
modules of the log rotation event (EVENT_LOG_ROTATION, I believe). You  
could write an event broker module that listens for that event and  
takes appropriate action. Alternately, nagios does log the rotation  
event to nagios.log as 'LOG ROTATION:'. You could maintain a  
continuous tail of the file looking for a sudden decrease in the log  
file size, inode change and/or that entry and take appropriate action.

--
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=100&url=/
___
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 Logrotate

2008-09-08 Thread K-L Reinhard
Mark, thanks a lot for this explanation and the hints. I think I'll have a
look at the event broker thing.

thanks!
Karl
On Mon, Sep 8, 2008 at 5:39 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
> On Sep 8, 2008, at 9:59 AM, K-L Reinhard wrote:
>
> > Hi,
> >
> > I'm really unexpierenced with nagios but I have the following task.
> > We have to fire on a script, after the internal logrotating of
> > nagios is done. I know, it would be a lot simpler if we use lograte,
> > but we don't -.-.
>
> ... and shouldn't. Using logrotate will break nagios reporting
> capabilities.
>
> > Is there a way to solve this matter with an event handler or is it
> > possible to define a postscript? Maybe there's a way to call the
> > logrotate function manually ?
>
> Yes to the first, but not trivially and not as an event handler, no to
> the second and no to the third (can't be done and it would break
> nagios reporting capabilities). It's an unusual request so there
> aren't any easy-to-use capabilities... Nagios doesn't provide an event
> handler type of action for log rotation but _does_ notify event broker
> modules of the log rotation event (EVENT_LOG_ROTATION, I believe). You
> could write an event broker module that listens for that event and
> takes appropriate action. Alternately, nagios does log the rotation
> event to nagios.log as 'LOG ROTATION:'. You could maintain a
> continuous tail of the file looking for a sudden decrease in the log
> file size, inode change and/or that entry and take appropriate action.
>
> --
> 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=100&url=/
> ___
> 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=100&url=/___
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] Centreon 2 / Nagios 3 / and Nagvis

2008-09-08 Thread Ronaldo A. Bueno Filho

Hi

I am worndering if I can use the statusmap and nagvis if I am using Nagios 3
with Centreon 2 and Nagios Business Process Addons

Actually, I have an environment with a lot of equipments that are being
monitored, from different customers. I would like to have a hierarchical
map, identifying each customer (for example nagvis). I also want snmp
support and scalability and problem views (centreon).

What do you guys susggest? Is it possible to use it as module in centreon 2?

I know that with nagios 2 it works, but I am using nagios 3.

Thanks,

--
Ronaldo A. Bueno Filho




--
Essa mensagem foi verificada contra vírus e conteúdo malicioso pelo Lisa 
Antivírus.


-
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=100&url=/
___
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] NAGVIS minimal broker options

2008-09-08 Thread Israel Brewster
In trying to implement NAGVIS on my system, I have been running into  
performance issues where the NDO daemon/mysql consume vast amounts of  
processor power, essentially bringing nagios and everything else to a  
halt until they complete. This is a problem (I belive) with mysql, and  
as such can't really be helped directly (except by moving the sql  
server to another machine), however I was thinking it may be possible  
to minimize the impact by telling nagios to broker less than  
everything, on the assumption that nagios is sending some stuff to the  
database that nagvis doesn't actually need. Is this, in fact, the  
case? If so, what are the minimal broker options needed to make nagvis  
happy? Thanks.
---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---



-
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=100&url=/
___
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] yet another Error 127 issue

2008-09-08 Thread Scott Macdonald
So here's the problem..  host checks run without a problem..  but
service checks come back with Status code 127..  the binaries exist and
I have tested them with my nagios user..  even in full debug output, the
expanded command runs when copied and pasted to the cli.

 

The biggest head scratcher is that is worked fine until I started to set
my environment up to be distributed and was having this issue on one of
nsca sender..  so I switched back the configs to make this the poller
and display, but now I cannot get service checks to run at all... 

 

The machine is monitoring ~4500 hosts and ~9000 service checks (you can
see why I wanted to move to a distributed setup)

 

 

Any help is greatly appreciated.

 

 

Scott Macdonald 

Senior UNIX Systems Administrator

[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=100&url=/___
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] yet another Error 127 issue

2008-09-08 Thread Scott Macdonald
Version info:

Nagios 3.0.3

Plugins 1.4.12

Debian 4.0 (etch)

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Macdonald
Sent: Monday, September 08, 2008 4:25 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] yet another Error 127 issue

 

So here's the problem..  host checks run without a problem..  but
service checks come back with Status code 127..  the binaries exist and
I have tested them with my nagios user..  even in full debug output, the
expanded command runs when copied and pasted to the cli.

 

The biggest head scratcher is that is worked fine until I started to set
my environment up to be distributed and was having this issue on one of
nsca sender..  so I switched back the configs to make this the poller
and display, but now I cannot get service checks to run at all... 

 

The machine is monitoring ~4500 hosts and ~9000 service checks (you can
see why I wanted to move to a distributed setup)

 

 

Any help is greatly appreciated.

 

 

Scott Macdonald 

Senior UNIX Systems Administrator

[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=100&url=/___
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] yet another Error 127 issue

2008-09-08 Thread Marc Powell

On Sep 8, 2008, at 3:25 PM, Scott Macdonald wrote:

> So here’s the problem..  host checks run without a problem..  but  
> service checks come back with Status code 127..

All of them or some of them? If all, does $USER1$, if you use it,  
point to the correct plugins location and resource.cfg loaded as a  
resource_file? If only some of the, please provide specific  
information about the service/command definitions and the plugin in  
question (ls -al, etc)...

http://www.waggy.at/nagios/capture_plugin.htm might be useful.

--
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=100&url=/
___
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 Logrotate

2008-09-08 Thread Andreas Ericsson
K-L Reinhard wrote:
> Mark, thanks a lot for this explanation and the hints. I think I'll have a
> look at the event broker thing.
> 

C coding skills are required. For a nudge to get you started, have a look
at modules/helloworld.c in the nagios source distribution.

If you don't do it, I'll use this example as the module-writing exercise
for my Netways presentation. The first to complete it wins a weissbier in
the hotel bar :-)

Keep an eye on www.op5.org for the results of the module-hacking contest.

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

-
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=100&url=/
___
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] help debug

2008-09-08 Thread James
# sudo /etc/init.d/nagios start
-n Starting nagios:
Killed
CONFIG ERROR!  Start aborted.  Check your Nagios configuration.

# sudo ../../bin/nagios -v ../nagios.cfg
Killed



-
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=100&url=/
___
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 check_sip plugin

2008-09-08 Thread Robert McNaught
Hi, I am using Nagios 3 on CentOS 5.

I am not understanding how to set up a service check for SIP (Session
Initiation Protocol).

I can run the check_sip perl script from the command line and get a
valid response, but cannot get it to work under nagios.

[EMAIL PROTECTED] libexec]# /usr/local/nagios/libexec/check_sip -u
sip:[EMAIL PROTECTED] -f sip:[EMAIL PROTECTED]
-H server.hostname.com
SIP/2.0 200 OK, 0.017372 seconds response
time|rtt=0.017372s;0.5s;1s;0:10; code=200


I have added in a command definition in commands.cfg:

#'check_sip' command definition added by RJM
define command{
   command_namecheck_sip
   command_linecheck_sip -u sip:[EMAIL PROTECTED]
-f sip:[EMAIL PROTECTED] -H server.hostname.com

}

I have a host and service definition also of:


define host{
   use generic-switch  ; Inherit default
values from a template
   host_name   server.hostname.com; The name
we're giving to this switch
   alias   server ; A longer name associated with the wtch
   address XXX.XXX.XXX.XXX; IP address of the switch
   hostgroups  core   ; Host groups this switch
is associated with
   }


define service{
   use core-template
   host_name   server.hostname.com
   service_description SIP test
   check_command   check_sip
#contact_groups  voip-admins
   max_check_attempts  4
   normal_check_interval   5
   retry_check_interval1
   notification_interval   240
   check_period24x7
   notification_period 24x7
   notification_optionsc,r
}


I run the configuration check utility and it returns no errors, I
restart nagios, and the host always appears down.

I see some of the other command definitions have something like

command_line$USER1$/check_http -I $HOSTADDRESS$ $ARG1$

but I have no idea what the variables are in this line and what
relevance they have

Can someone explain if I need to have these variables and what they
actually mean?  I believed that if I can run it from the command line,
then I should just be able to use the same command in the command
definition, or does it not work like that?

Thanks in advance

Robert

-
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=100&url=/
___
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 check_sip plugin

2008-09-08 Thread Florian Schaal
>command_linecheck_sip -u sip:[EMAIL PROTECTED]

> command_line$USER1$/check_http -I $HOSTADDRESS$ $ARG1$
  

> but I have no idea what the variables are in this line and what
> relevance they have
> 
> Can someone explain if I need to have these variables and what they
> actually mean?  
User macros can be defined in one or more resource files. Check out your
 resource.cfg for USER1. Instead of $USER1$ you can define the path to
the script, ie something like /usr/local/nagios/libexec/check_sip

-
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=100&url=/
___
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 Server Config

2008-09-08 Thread Nair
Hi Friends 

I have about 500 host checks and 8000 service checks performing in my Nagios 
server. The sever CPU usage goes high some times and there will long service 
check queues.

Nagios version: 2.9
Server config: Two Dual Core 2.4 Ghz Processors and 8GB RAM.

Any performance tuning tips other than those mentioned in Nagios site are 
welcome.

Thank you,
Nair.


-
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=100&url=/___
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