Can NagiosXI notify me when new unconfigured objects exist?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Can NagiosXI notify me when new unconfigured objects exist?

Post by nagiosadmin42 »

As far as I can tell, the only way to determine that new unconfigured objects exist is to login to the GUI and select the Admin menu's Unconfigured Objects. So, I'm about to begin writing a script to notify me when new unconfigured objects exist, and thought I'd post here first to ask:

1) Does Nagios XI already have a mechanism for this, and I've just missed it? If so, please direct me to the appropriate documentation.
or
2) Has anyone else already implemented something themselves that I could leverage?

Thanks everyone!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can NagiosXI notify me when new unconfigured objects exi

Post by scottwilkerson »

I don't believe so. But I can tell you that the file that is written to when a new object is added is

Code: Select all

/usr/local/nagiosxi/var/corelog.newobjects
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Re: Can NagiosXI notify me when new unconfigured objects exi

Post by nagiosadmin42 »

Thanks, I'll let you know how it goes.
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Re: Can NagiosXI notify me when new unconfigured objects exi

Post by nagiosadmin42 »

I ended up writing a perl script to retrieve and parse the page http://localhost/nagiosxi/admin/missingobjects.php and implemented it as a nagios plugin on our Nagios monitoring server. It simply parses the main <tbody> section of the html page for host entries and sets the returned status to WARNING if any host is found. I did this rather than parsing the raw data file corelog.newobjects, because missingobjects.php already has the logic to detect if a host/service has been added even though it exists in corelog.newobjects.
Locked