Re: [Nagios-users] Mass Acknowledge a Service

2011-05-19 Thread Michael Friedrich

steve f wrote:
I have a check that checks the size of multiple partitions and we 
recently added some data that surpassed the threshold value and I have 
over 100 clients alerting.  There is nothing I can do about the space 
issue, it will go back to normal in a few weeks.


Is it possible to acknowledge all 100 at once? 


one of those reasons why we hacked the original cgis for Icinga Classic 
UI allowing multiple commands to be sent. ofc depending on the apache 
get restrictions this can be used for various commands, not only mass 
acknowlegdgements.


consider checking out the demo system: 
http://classic.demo.icinga.org/icinga/



I do have a service group associated with this check but dont see that 
it can be ack'ed all at once.  Is it possible to edit the status.dat 
file with a reference to a host group instead of a host name to 
accomplish this? :


servicecomment {
host_name=str

*host_group = GROUPNAME HERE*

service_description=Legacy Partition Size
entry_type=4
comment_id=129
source=0
persistent=0
entry_time=1305654252
expires=0
expire_time=0
author=Nagios Admin
comment_data=known issue
}


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay___
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] Mass Acknowledge a Service

2011-05-18 Thread mail
If you are happy to use a dirty script instead of the gui you can just
use the external command listener file:
I use a script like this:
I would need updating for your needs but works quite well...

=
#!/bin/bash
nagiosLog=/opt/nagios/var/nagios.log
nagiosCommand=/opt/nagios/var/rw/nagios.cmd

now=`perl -e print time;`
OS=`uname -s`;
ORIG_IFS=$IFS ; IFS=$'\n'

 for check in $(grep CURRENT SERVICE STATE  $nagiosLog |grep
windows_updates | nawk -F:  '{print $2}' |sort -u ) ; do
   echo $check | nawk -F; -v now=$now '{
printf( [%u]
ACKNOWLEDGE_SVC_PROBLEM;$1;$2;2;1;0;admin;Awating Patching\n, now
)
   }'  $nagiosCommand
 done


IFS=$ORIG_IFS
=
--
Ritchie

On Tue, May 17, 2011 at 7:00 PM, steve f a31mod...@hotmail.com wrote:
 I have a check that checks the size of multiple partitions and we recently
 added some data that surpassed the threshold value and I have over 100
 clients alerting.  There is nothing I can do about the space issue, it will
 go back to normal in a few weeks.

 Is it possible to acknowledge all 100 at once?  I do have a service group
 associated with this check but dont see that it can be ack'ed all at once.
 Is it possible to edit the status.dat file with a reference to a host group
 instead of a host name to accomplish this? :

 servicecomment {
     host_name=str

    host_group = GROUPNAME HERE

     service_description=Legacy Partition Size
     entry_type=4
     comment_id=129
     source=0
     persistent=0
     entry_time=1305654252
     expires=0
     expire_time=0
     author=Nagios Admin
     comment_data=known issue
     }


 --
 Achieve unprecedented app performance and reliability
 What every C/C++ and Fortran developer should know.
 Learn how Intel has extended the reach of its next-generation tools
 to help boost performance applications - inlcuding clusters.
 http://p.sf.net/sfu/intel-dev2devmay
 ___
 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


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
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] Mass Acknowledge a Service

2011-05-18 Thread Andreas Ericsson
On 05/17/2011 08:00 PM, steve f wrote:
 
 I have a check that checks the size of multiple partitions and we
 recently added some data that surpassed the threshold value and I
 have over 100 clients alerting.  There is nothing I can do about the
 space issue, it will go back to normal in a few weeks.
 
 Is it possible to acknowledge all 100 at once?

With Ninja, Thruk or Multisite, yes. With vanilla Nagios UI; No.

  I do have a service
 group associated with this check but dont see that it can be ack'ed
 all at once.  Is it possible to edit the status.dat file with a
 reference to a host group instead of a host name to accomplish this?

No. status.dat can only be read in flattened format, as is proper for
an autogenerated file. Sorry.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
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] Mass Acknowledge a Service

2011-05-17 Thread steve f

I have a check that checks the size of multiple partitions and we recently 
added some data that surpassed the threshold value and I have over 100 clients 
alerting.  There is nothing I can do about the space issue, it will go back to 
normal in a few weeks.

Is it possible to acknowledge all 100 at once?  I do have a service group 
associated with this check but dont see that it can be ack'ed all at once.  Is 
it possible to edit the status.dat file with a reference to a host group 
instead of a host name to accomplish this? :

servicecomment {
host_name=str

   host_group = GROUPNAME HERE

service_description=Legacy Partition Size
entry_type=4
comment_id=129
source=0
persistent=0
entry_time=1305654252
expires=0
expire_time=0
author=Nagios Admin
comment_data=known issue
}

  --
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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] Mass Acknowledge a Service

2011-05-17 Thread Daniel Wittenberg
If you are using multisite for your interface you can filter the view to only 
show those and then ack them all at once.

Dan

From: steve f [mailto:a31mod...@hotmail.com]
Sent: Tuesday, May 17, 2011 1:00 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Mass Acknowledge a Service

I have a check that checks the size of multiple partitions and we recently 
added some data that surpassed the threshold value and I have over 100 clients 
alerting.  There is nothing I can do about the space issue, it will go back to 
normal in a few weeks.

Is it possible to acknowledge all 100 at once?  I do have a service group 
associated with this check but dont see that it can be ack'ed all at once.  Is 
it possible to edit the status.dat file with a reference to a host group 
instead of a host name to accomplish this? :

servicecomment {
host_name=str

   host_group = GROUPNAME HERE

service_description=Legacy Partition Size
entry_type=4
comment_id=129
source=0
persistent=0
entry_time=1305654252
expires=0
expire_time=0
author=Nagios Admin
comment_data=known issue
}
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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] Mass Acknowledge a Service

2011-05-17 Thread steve f

Hey Dan,

Thanks for the heads up on multisite.  Gonna dig into it and maybe install it 
or something like it.

Thanks,

Steve

From: daniel.wittenberg.r...@statefarm.com
To: nagios-users@lists.sourceforge.net
Date: Tue, 17 May 2011 18:06:40 +
Subject: Re: [Nagios-users] Mass Acknowledge a Service











If you are using multisite for your interface you can filter the view to only 
show those and then ack them all at once.
 
Dan
 


From: steve f [mailto:a31mod...@hotmail.com]


Sent: Tuesday, May 17, 2011 1:00 PM

To: nagios-users@lists.sourceforge.net

Subject: [Nagios-users] Mass Acknowledge a Service


 
I have a check that checks the size of multiple partitions and we recently 
added some data that surpassed the threshold value and I have over
 100 clients alerting.  There is nothing I can do about the space issue, it 
will go back to normal in a few weeks.



Is it possible to acknowledge all 100 at once?  I do have a service group 
associated with this check but dont see that it can be ack'ed all at once.  Is 
it possible to edit the status.dat file with a reference to a host group 
instead of a host name to accomplish
 this? :



servicecomment {

host_name=str



   host_group = GROUPNAME HERE



service_description=Legacy Partition Size

entry_type=4

comment_id=129

source=0

persistent=0

entry_time=1305654252

expires=0

expire_time=0

author=Nagios Admin

comment_data=known issue

}




--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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  
  --
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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