Re: [Nagios-users] Different notification periods for different events?

2008-07-01 Thread Martin Barry
$quoted_author = "CJ Kucera" ;
> 
> Is there a way to configure a service so that notifications for (for
> instance) WARNINGs are sent out for one time period, but notifications
> for CRITICAL events are sent out for a different time period?

Use a custom notification script.

We needed something similar so I hacked up a perl script that does different
things based on the state and notification number:

- WARNINGS = SMS once, email exponentially
- CRITICALS = SMS exponentially, email constantly
- HOST DOWN = SMS and email constantly

cheers
Marty

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Sidebar disappearing in Firefox

2008-07-01 Thread Niall O Broin
I'm running 3.0 on Debian Etch via backports. I occasionally see a  
presentation problem with Firefox (was 2, now 3) on OS-X such that the  
front page loads correctly but when I select any monitoring page from  
the sidebar, that page also loads correctly but without the navigation  
sidebar.

The only way I have found to restore normal behaviour is to restart  
Firefox, which is of course a bit tedious. Do any of you have any  
suggestions?





Kindest regards,



Niall  O Broin



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] add hosts to running nagios through API?

2008-07-01 Thread Christian Schneemann
Hi,
is it possible to add hosts to a running nagios server through an AP (commands 
in command file)?

I want to monitor some kind of special service, hosts starting doing some work 
in their sparetime and if they do this, they should be monitored if anything 
goes wrong.
I can't know which hosts here at work will have the software installed, but 
when they have it insalled they has to be monitored.

It doesn't matter if the hosts are gone after a restart of the nagios server.

Any ideas? 


thanks,
Christian


-- 
Christian Schneemann

-
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail:[EMAIL PROTECTED]
-
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Sidebar disappearing in Firefox

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

Niall O Broin wrote:
| I'm running 3.0 on Debian Etch via backports. I occasionally see a
| presentation problem with Firefox (was 2, now 3) on OS-X such that the
| front page loads correctly but when I select any monitoring page from
| the sidebar, that page also loads correctly but without the navigation
| sidebar.
|
| The only way I have found to restore normal behaviour is to restart
| Firefox, which is of course a bit tedious. Do any of you have any
| suggestions?

It sounds like a bug in the browser. Do you have any odd settings in there?

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)

iD8DBQFIafnNBvzDRVjxmYERAnKRAJ9oWTQ/JDujnKisgQ/1LZc09IK2DQCeOZJr
m1TMj6IL3P9CsqcQ9MX8pK4=
=3bos
-END PGP SIGNATURE-

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Sidebar disappearing in Firefox

2008-07-01 Thread Niall O Broin
On 1 Jul 2008, at 10:33, Hugo van der Kooij wrote:

> | I'm running 3.0 on Debian Etch via backports. I occasionally see a
> | presentation problem with Firefox (was 2, now 3) on OS-X such that  
> the
> | front page loads correctly but when I select any monitoring page  
> from
> | the sidebar, that page also loads correctly but without the  
> navigation
> | sidebar.
> |
> | The only way I have found to restore normal behaviour is to restart
> | Firefox, which is of course a bit tedious. Do any of you have any
> | suggestions?
>
> It sounds like a bug in the browser. Do you have any odd settings in  
> there?

Not that I know of, no. If a browser setting were causing it, surely I  
should see it all the time, and I don't - it's only an occasional  
visitor, and I've only seen it in Firefox, not Safari (though I do  
look at Nagios more with FF than Safari).  I'm quite prepared to  
believe it's a browser issue, but I'm wondering if anybody else has  
seen it.




Kindest regards,



Niall  O Broin



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Sidebar disappearing in Firefox

2008-07-01 Thread Daniel López

> Not that I know of, no. If a browser setting were causing it, surely I
> should see it all the time, and I don't - it's only an occasional
> visitor, and I've only seen it in Firefox, not Safari (though I do
> look at Nagios more with FF than Safari).  I'm quite prepared to
> believe it's a browser issue, but I'm wondering if anybody else has
> seen it.

it seems to me that the side bar is rolled up...

 did you press Av Pag o Re Pag keybord keys??


at least i happens to me all the time.

dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Sidebar disappearing in Firefox

2008-07-01 Thread Niall O Broin
On 1 Jul 2008, at 10:49, Daniel López wrote:

>> Not that I know of, no. If a browser setting were causing it,  
>> surely I
>> should see it all the time, and I don't - it's only an occasional
>> visitor, and I've only seen it in Firefox, not Safari (though I do
>> look at Nagios more with FF than Safari).  I'm quite prepared to
>> believe it's a browser issue, but I'm wondering if anybody else has
>> seen it.
>
> it seems to me that the side bar is rolled up...
>
> did you press Av Pag o Re Pag keybord keys??

Not that I know of. I've just tried pressing PageUp and PageDown (I  
hope that's what Av Pag o Re Pag are) and they had no effect whatsoever.





Kindest regards,



Niall  O Broin



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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_disk question

2008-07-01 Thread Cristiano Ness
Try put the path, this option -p, see below 
/opt/local/libexec/nagios/check_disk -w 20% -c 10% -p /opt/itms_f40v6 
and check help command for more options 




[]´s 
--- 
Cristiano Ness [EMAIL PROTECTED] 
OpServices www.opservices.com.br 
Tel: 51-3275-3588 Cel: 51-8151-8214 

- "Andy Moran" wrote: 
> 

> 
My check_disk seems to be returning negative values for monitoring a netapp 
filer from a Leopard machine: 

> 
[EMAIL PROTECTED] ~$ /opt/local/libexec/nagios/check_disk --version 
check_disk v1793 (nagios-plugins 1.4.10) 

[EMAIL PROTECTED] ~$ df -h /opt/itms_f40v6 
Filesystem Size Used Avail Capacity Mounted on 
nwk-its-filer40:/vol/vol6 11Ti 9.9Ti 906Gi 92% /opt/itms_f40v6 
[EMAIL PROTECTED] ~$ df -k /opt/itms_f40v6 
Filesystem 1024-blocks Used Available Capacity Mounted on 
nwk-its-filer40:/vol/vol6 11597043876 10646964152 950079724 92% /opt/itms_f40v6 
[EMAIL PROTECTED] ~$ /opt/local/libexec/nagios/check_disk -w 20% -c 10% 
/opt/itms_f40v6 
DISK OK - free space: /opt/itms_f40v6 927812 MB (- 1072952184025 % inode=99%);| 
/opt/itms_f40v6=-2147483648MB;671582;755530;0;839478 

> 

> 

> 

> 
If there some obvious flag I'm missing? I haven't tried updating my plugins to 
the latest, but I suppose that is in order. 

> 
--Andy 
> - 
> Check out the new SourceForge.net Marketplace. It's the best place to buy or 
> sell services for just about anything Open Source. 
> http://sourceforge.net/services/buy/index.php 
> ___ 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-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] add hosts to running nagios through API?

2008-07-01 Thread Marc Powell

On Jul 1, 2008, at 4:30 AM, Christian Schneemann wrote:

> Hi,
> is it possible to add hosts to a running nagios server through an AP  
> (commands
> in command file)?

Not currently... Interpret as you will --

checks.c:   /* TODO - add new service definition 
automatically */
checks.c:   /* TODO - add new host definition 
automatically */

I also believe this might be something the event broker could do in  
the future.

> I can't know which hosts here at work will have the software  
> installed, but
> when they have it insalled they has to be monitored.

How would nagios know about them then? My suggestion would be to  
create your own plugin that knows this information and checks them all  
at once. Assign it to a host that always runs the software or a dummy  
host created for this purpose. Alternately, have the service check  
assigned to all possible hosts but exit as OK if the software isn't  
supposed to be running on it at that time.

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Two or more service extended info

2008-07-01 Thread Jesús
Hi!

i need to insert two server extended info icons in a Nagios service. Is
it possible?

Thanks in advance!


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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_disk question

2008-07-01 Thread Andy Moran


Thanks for the response.  I updated to the latest plugins (1.4.12),  
but still seeing negative numbers:


nenc001:~ root# /opt/local/libexec/nagios/check_disk --version
check_disk v1991 (nagios-plugins 1.4.12)
nenc001:~ root# df -h /opt/itms_f40v6
Filesystem  Size   Used  Avail Capacity  Mounted on
nwk-its-filer40:/vol/vol6   11Ti  9.9Ti  900Gi92%/opt/itms_f40v6
nenc001:~ root# /opt/local/libexec/nagios/check_disk -w 20% -c 10% -p / 
opt/itms_f40v6
DISK OK - free space: /opt/itms_f40v6 921477 MB (-1072952184026%  
inode=99%);| /opt/itms_f40v6=-2147483648MB;671582;755530;0;839478

nenc001:~ root#

Is there a workaround?

--Andy

On Jun 30, 2008, at 7:13 PM, Thomas Guyot-Sionnest wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/06/08 08:39 PM, Andy Moran wrote:


My check_disk seems to be returning negative values for monitoring a
netapp filer from a Leopard machine:


This should be fixed in nagios-plugins v1.4.12

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

iD8DBQFIaZLV6dZ+Kt5BchYRAkrMAJ93agZLSC2bt49EgnwtiFLtdfu3mQCgtEW1
ejTr1WwkLVv03SbWBeFap5U=
=uqKw
-END PGP SIGNATURE-


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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] PNP Nagios php-gd error

2008-07-01 Thread Marcel
On Tue, Jul 1, 2008 at 1:20 AM, Joerg Linge <[EMAIL PROTECTED]> wrote:

> Marcel schrieb:
> > Yeah, man, i'm in a situation like yours... Trying to test pnp,
> > nagiosgrapher, and so on...
> >
> > PNP seems to me to be the most scalable solution, as it implements batch
> > mode updates... But I'm still trying to tweak configurations and stuff...
> >
> > The major problem to me is that the documentation I've found googleing,
> > is all in german... :)
> >
> > i've translated with translate.google.com 
> > but it's still confusing to me...
> >
> > At least, my host graph is plotting correctly, but the hostname is
> > showing _HOST_, instead of localhost as I would expect...
> >
> > Well, I'm still trying to understand the templates and such...
>
> Nope, dokumentation is available in english
>
> http://www.pnp4nagios.org/pnp/start


Ok, there is *some* documentation there.

I was looking for some documentation regarding how the
/path/to/nagios/etc/pnp/check_commands/check-host-alive.cfg behaves or
changes the bahavior of pnp.
Isn't quite clear to me what the files in that especific folder does, or
where is the file that tells pnp that the rrd template should change _HOST_
to the actuall hostname.

Well, I'm signin up for the pnp mailling list, will try to get better
results there.

TFYR,
Marcel
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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] Multiple inheritance settings

2008-07-01 Thread Matt White
Hi guys,

 

I am building a nagios setup that is going to be monitoring a number of
different clients who have varying levels of support (all have 9am-6pm
and then others have 8am as well, then there are 4 time periods that
include the evenings and weekends which can be purchased separately.

 

I am centralising my Nagios setup as much as possible and currently each
type of service (exchange 2003, IIS, Active Directory, SQL etc) are all
assigned to a hostgroup and then the hosts are made a member of the
hostgroup and any extra checks are added into the client config files as
necessary. 

 

What I am trying to work out is the best way to assign the relevant time
periods to each host. Am I right in understanding that if I create a
template host and service for each timeperiod that I can't assign these
two templates to the same host/service as one will overwrite the other?

 

Is the best way to approach this to define a template for hosts/servers
for each client and setup the notifications in here? Is it also possible
to have the notification do more than just email/sms - I would
potentially like the notification to log a call in our CMS the first
time it notices the host is down and then after this just send
notifications.

 

All thoughts/comments appreciated.

 

Regards,

 

Matt White

[ [EMAIL PROTECTED] ]

[ http://www.matthewjwhite.co.uk ]

 


WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. Matt White 
accepts no liability for any damage caused by any virus transmitted by this 
email. 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.Matt White 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.

Warning: Although Matt White has taken reasonable precautions to ensure no 
viruses are present in this email, Matt White cannot accept responsibility for 
any loss or damage arising from the use of this email or attachments.


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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] Running Command on Remote hosts

2008-07-01 Thread Jai Rangi
Hello,

We have Nagios setup with Groundworks, doing all sort of checks on our
servers at datacenter. We get the emails for warning and critical
alerts. Everything seems to running pretty good. 

What I want to achieve is build a script/system that can fix problems by
itself. 

For example for our Windows IIS servers the scripts should restart the
application pool if it finds any problem with http port. Cause that's
what we do manually to get it fixed. It seems to be working when I run
from the command line, like this, 

 

./check_nrpe -H server -n -p PORTNUMBE -t 30 -c restartapppool. 

 

restartapppool is the command defined in the NRPE Client. Now I need to
understand is what I need to do to run this command as soon as the
nagios find a problem with the http service. 

 

Has anyone done something like this? I will appreciate if you can share
some thoughts. 

 

Thank you,

 


Jai Rangi


 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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] Running Command on Remote hosts

2008-07-01 Thread Mies, Christian
Hi Jai,
have a look at Nagios Documentation - Eventhandling. This is the
solution you are looking for.
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html
 
Regards
Christian

it-novum GmbH
Ein Unternehmen der Mehler AG
  
Christian Mies
Consultant Systemmanagement
  
Edelzeller Stra?e 44   
36043 Fulda
  
FON:+49 (661) 103-874  (-333)
FAX:+49 (661) 103-17874(-334)
MAIL:   [EMAIL PROTECTED]
WEB:http://www.itnovum.de
  
Handelsregister:  Amtsgericht Fulda, HRB 1934
Geschaftsfuhrer:  Michael Kienle
Sitz der Gesellschaft:Fulda, Deutschland/Germany
UstID-Nr: DE813211784
Steuernr.:018/225/03095
  
Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche 
Empfanger sein sollten, informieren Sie bitte sofort den Absender oder 
vernichten umgehend diese Mail. Jegliche unerlaubte Vervielfaltigung oder 
Weiterleitung dieser Mail ist strengstens verboten.
  
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of material in this e-mail is strictly 
forbidden.


Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Jai
Rangi
Gesendet: Mittwoch, 2. Juli 2008 00:19
An: nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] Running Command on Remote hosts



Hello,

We have Nagios setup with Groundworks, doing all sort of checks on our
servers at datacenter. We get the emails for warning and critical
alerts. Everything seems to running pretty good. 

What I want to achieve is build a script/system that can fix problems by
itself. 

For example for our Windows IIS servers the scripts should restart the
application pool if it finds any problem with http port. Cause that's
what we do manually to get it fixed. It seems to be working when I run
from the command line, like this, 

 

./check_nrpe -H server -n -p PORTNUMBE -t 30 -c restartapppool. 

 

restartapppool is the command defined in the NRPE Client. Now I need to
understand is what I need to do to run this command as soon as the
nagios find a problem with the http service. 

 

Has anyone done something like this? I will appreciate if you can share
some thoughts. 

 

Thank you,

 


Jai Rangi


 


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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