Large updates to Nagios config with NagMIN active?

Skip Montanaro skip at pobox.com
Wed Aug 20 21:26:59 CEST 2003


At the request of my boss I've installed NagMIN and have been playing with
it a bit ("if it doesn't have a web admin interface we'll look elsewhere").
Being a Unix weenie I'm not real found of point-n-click stuff when there's a
lot to do.  Adding a new machine to Nagios generally means adding a host, a
hostgroup (we do things weird here - each machine is in its own group),
multiple contact groups and one or more service entries.

One of my colleagues came to me the other day and asked me to add several
new machines (>10) to the monitor, each with from two to four escalating
contacts and two or three services.  It took me just a few minutes to add
them to our existing monitoring system.  I defined and executed a couple
emacs macros to generate a shell script full of "add(host|service)" commands
for our local system and badda bing, badda boom, everything was in place.

It wouldn't have been any more difficult working directly with Nagios, but
needless to say, with NagMIN running, performing large updates is a more
difficult proposition.  I wrote a couple Python scripts to insert much of
the content directly into MySQL, but I still wound up doing a lot of mousing
around and think I may have confused NagMIN in the process (does it cache
anything or always use the database for info?).  Had I been able to simply
edit the config files and tell NagMIN to refresh itself from them, I think I
would have been much better off.

Is there some way to more efficiently add content to the database in the
presence of NagMIN?

Thanks,

-- 
Skip Montanaro
Got gigs? http://www.musi-cal.com/
Got spam? http://spambayes.sf.net/


-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
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