[Nagios-users] Check New Host & Service added into Monitoring

Rick Carter Rick.Carter at umich.edu
Fri Dec 3 20:24:28 UTC 2010


Actually I thought of further things I'd make such a cron job do (this could easily be a simple bash or perl script)...

- if the files have changed, check their times against the time nagios last restarted and warn if they are newer (as the changes aren't being picked up by the running nagios)
and
- run a config check and warn if restarting would fail due to errors.

On Dec 3, 2010, at 3:22 PM, Rick Carter wrote:

> We keep those files under RCS revision control and make people check them out and in to add new information. If we wanted to, I'd probably write an rcsdiff to see if anything's checked out that's not been checked back in.
> 
> Otherwise, two ideas come to mind: 
> - Create a daily cron job to check those files for a date newer than (last-checked-time) and email if they exist
> *or*
> - Create a daily cron job to diff those files against a save version of the files and email any diffs it finds, and when done, copy the current files to the saved versions again.
> 
> On Dec 3, 2010, at 9:28 AM, trm asn wrote:
> 
>> I am looking for a plugin which will check the hosts.cfg, contacts.cfg, command.cfg and if found any new entry has been added into those files , then will be notified to the specific email id .
>> 
>> 
>> 
>> 
>> On Fri, Dec 3, 2010 at 4:23 PM, trm asn <trm.nagios at gmail.com> wrote:
>> Dear List,
>> 
>> Is there any plug-in available for nagios to check the newly added Host/Services/Contacts and notify by email.
>> 
>> 
>> 
>> /\
>> dE  
>> 
>> ------------------------------------------------------------------------------
>> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
>> Tap into the largest installed PC base & get more eyes on your game by
>> optimizing for Intel(R) Graphics Technology. Get started today with the
>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>> http://p.sf.net/sfu/intelisp-dev2dev_______________________________________________
>> 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
> 
> --
> Rick Carter, Unix/Linux SysAdmin
>   University of Michigan, ITS System Support Team
>   "The best way to find out where you are from is find out where you are going and work backwards." - The Doctor
> 
> 
> 
> 

--
Rick Carter, Unix/Linux SysAdmin
  University of Michigan, ITS System Support Team
  "It's worse than you know."
  "It usually is."  (The Operator and Mal, _Serenity_)




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nagios.com/pipermail/nagios-users/attachments/20101203/dca5172c/attachment.html>


More information about the Nagios-users mailing list