Configuration option for auto-acknowledge?

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Thu Feb 6 21:36:53 CET 2003


Alright, a couple of ideas:

1) Instead of immediately publishing the new users into the Nagios
hosts.cfg, why not have them dumped into a staging area first, then cron a
job to ping these new users, and as they come online, stuff them into
hosts.cfg...?  The obvious disadvantage is that you have no visibility of
these new users until they are actually pingable.

2) Publish them in two phases.  The first phase, they either reference the
check_dummy plugin, or they reference another home-rolled plugin which
returns a warning instead of a critical.  Once they're pingable, drop in the
proper config.

Food for thought.

jc

> -----Original Message-----
> From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com]
> Sent: Thursday, February 06, 2003 1:22 PM
> To: Carroll, Jim P [Contractor]
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Configuration option for auto-acknowledge?
> 
> 
> Jim,
> 
> Carroll, Jim P [Contractor] wrote:
> > Perhaps some greater detail is required.  Some questions:
> > 
> > - exactly where in Nagios are you automatically adding 
> these users?  Could
> > you provide a sample configuration which has been 
> automatically added?
> 
> I am creating host and service entries in nagios based on information 
> which is in our RADIUS user database:
> 
> Our radius database gives us two values for each user, 
> username and IP 
> address.  It is imported into nagios via a perl script and username 
> becomes host_name and IP address is the same, address for an 
> entry that 
> looks like this for each user in our radius database:
> 
> define host {
>          use                             w7
>          host_name                       harv2459.w7
>          alias                           harv2459
>          address                         216.7.193.244
>          }
> 
> define service {
>          use                             w7
>          host_name                       harv2459.w7
>          service_description             PING
>          contact_groups                  w7.email,w7.pager
>          check_command                   check-host-alive
>          }
> 
> 
> > - where are the users logging into?  Into Nagios?  Into the o/s?
> 
> The users are logging into our DSL network over ppp.  It is a 
> dedicated 
> service but since we provision the users in radius (And thus are 
> inserted into nagios) before the customers recieve the hardware to 
> activate their service (PPP DSL router), as soon as nagios 
> gets it's new 
> config, it tries to monitor the user which isn't up yet.  I'm looking 
> for a way to tell Nagios to not notify us to the fact that 
> harv2459 is 
> unreachable until after the first time he logs in -- in essence, 
> proactive acknowledgment of a service that isn't completely installed.
> 
> > - what changes, as far as Nagios is concerned, after the 
> user logs in for
> > the first time?
> 
> After the user logs in, his router becomes pingable (via ppp) as it 
> recieved the IP address from radius (which is also configured 
> in radius).
> 
> > There might be a much more elegant solution to what you're asking.
> 
> And so I am hoping! :)
> 
> > Having said that, maybe what you're looking for is a way of 
> pushing commands
> > directly into Nagios, via nagios.cmd.  Check the FAQ.
> 
> Perhaps.  Based on what I have said here, what do you suggest?
> 
> > jc
> > 
> > 
> >>-----Original Message-----
> >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com]
> >>Sent: Thursday, February 06, 2003 9:40 AM
> >>To: nagios-users at lists.sourceforge.net
> >>Subject: [Nagios-users] Configuration option for auto-acknowledge?
> >>
> >>
> >>Greetings,
> >>
> >>	At our organization, we pre-provision users and use 
> >>nagios to poll the 
> >>provisioning server and automatically add users to the nagios 
> >>configuration.  The problem with this implementation is that 
> >>the users 
> >>may not be active before they have been provisioned.  This 
> means that 
> >>until they login for the first time, alarms will go off unless we 
> >>manually acknowledge each of the pre-provisioned users.  A 
> >>user may not 
> >>login for a long period of time after they are provisioned, 
> and thus 
> >>added to nagios.  What I'm wondering is if there is a 
> >>configuration hook 
> >>that can be inserted for each user that sets the initial 
> notification 
> >>state to acknowledged so we don't have to manually 
> >>acknowledge each user.
> >>
> >>Thank you in advance.
> >>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.NET email is sponsored by:
> >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> >>http://www.vasoftware.com
> >>_______________________________________________
> >>Nagios-users mailing list
> >>Nagios-users at lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/nagios-users
> >>
> > 
> > 
> > 
> > 
> 
> 


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list