general notifications setup question.

Subhendu Ghosh sghosh at sghosh.org
Fri Apr 11 18:35:37 CEST 2003


On 11 Apr 2003, Jeff McKeon wrote:

> I see so I can use the following to get almost imediate responces..
> 
> check_ups -H localhost -u ups1-1 -v BATTPCT -w 95 -c 90
> 
> is that correct?


Correct - in this case warning will never happen.

-sg

> 
> As for the service being part of the contact_group, do I just put the
> service name in the contact group instead of the hostname?
> 
> On Fri, 2003-04-11 at 12:00, Subhendu Ghosh wrote:
> > Inline 
> > 
> > On 11 Apr 2003, Jeff McKeon wrote:
> > 
> > > Thanks for the info...
> > > 
> > > I'm still a little confused though..
> > > 
> > > What command should I use (if any) if I wanted check_ups to go critical
> > > as soon as the ups was on battery power?
> > 
> > You can't at the moment. Only WARNING if "On Battery".
> > 
> > You can use "-v BATTPCT -w 40 -c 20" to WARN if battery percent remaining 
> > fell below 40% and CRIT if percent remaining fell below 20%
> > 
> > Assuming you know your load and runtimes, and BATTPCT is retrievable, you 
> > can adjust the warning and critical levels.
> > 
> > 
> > > 
> > > As for the notifications.. I should have something like this...
> > > 
> > > contact = ups_alert with options w,c,u,r
> > > contactgroup = UPS
> > > make ups_alert a member of UPS
> > > set notify by pager for contact ups_alert.
> > 
> > use UPS as contact group for the check_ups services only - not the host or 
> > other services on the host.
> > 
> > For the other services/hosts maitain the existing contact definition that 
> > doesn't send out pages on warning.
> > 
> > 
> > > 
> > > Hostgroup = UPS_01 with contact_group set to UPS
> > > Host= MIS01 (the pc that is connected to all the ups')
> > > MIS01 is a member of UPS
> > > 
> > > Wouldn't this send a page to ups_alert for every warning that occured on
> > > MIS01?
> > > 
> > > MIS01 is also a meber of Hostgroup "CK_servers"
> > > 
> > > is this ok?
> > 
> > 
> > -- 
> > 
> > -sg
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
> > for complex code. Debugging C/C++ programs can leave you feeling lost and 
> > disoriented. TotalView can help you find your way. Available on major UNIX 
> > and Linux platforms. Try it free. www.etnus.com
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at 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: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list