Page 2 of 3

Re: Reporting

Posted: Thu Sep 25, 2014 3:27 pm
by ancovington
I apologize. We are running version 2.05.

Re: Reporting

Posted: Thu Sep 25, 2014 4:06 pm
by lmiltchev
No problem. Can you run the following command and show us the output:

Code: Select all

ll /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs
Also, can you try running the Auto Discovery wizard against a single IP address for testing purposes? Does the scan complete successfully?

Re: Reporting

Posted: Thu Sep 25, 2014 7:10 pm
by rseiwert
I have several tools to do this. I like nmap for telling me about things I don't know about and don't normally monitor on my network. This does OS detection. But, I also have "Current OS" as a check in Nagios. This is done using check_wmi_plus with a "-m info" and a "-s OS". That's mode info and submode OS. This check is assigned to my "windows-servers" hostgroup so everything get this check. Not sure if the check WMI wizard set this automatically. Also it only checks windows.

Re: Reporting

Posted: Fri Sep 26, 2014 10:49 am
by lmiltchev
@ancovington

Any updates? Did you try running the Auto Discovery wizard against a single IP? What's in "/usr/local/nagiosxi/html/includes/components/autodiscovery/jobs" directory?

Re: Reporting

Posted: Wed Oct 01, 2014 10:55 am
by rseiwert
I think you might be missing the OPs point which was a report of the OSes for the systems they monitor. The autodiscovery is best guess at OS detection. It works from the outside in without the benefit of credentials or system access.

On a whim I tried this myself. The number of incorrect OS reports was huge. I have Server 2012 machines reported as Windows 7, Server 2008 R2 machines reported as Windows Vista, and VMware 5.1 was reported as VMware 4.x by XI Autodiscovery. I feel that this information must be taken with a grain of salt. I am running XI 2014 1.4 with Autodiscovery Wizard 1.3.1 and Auto-Discovery Component 2.05.

For example, DC2, a Server 2012 domain controller, is reported by Autodiscovery as running Windows 7.
NMap comes up mixed results as well for OS detection: Microsoft Windows 7, Windows Server 2012, or Windows 8.1 Update 1.
When using check_wmi_plus's OS check I get "Windows Server 2012 R2 Standard" which is the most complete result with the full name and edition. This check is applied to all my windows servers who our members of the Windows-Servers hostgroup. This check is not part of the XI Windows WMI wizard but very easy to add. Of course this only helps if they are a Windows shop.

Re: Reporting

Posted: Wed Oct 01, 2014 11:04 am
by tmcdonald
rseiwert wrote:NMap comes up mixed results as well for OS detection
nmap is what Autodiscover uses on the backend, so that makes sense.

In a scenario like this, if the OS is not known it is somewhat unlikely that login credentials would be known for that system, so trying to log in and get accurate OS information is a bit of a catch-22. Additionally, unless every system has the same password it would take quite a while to input the credentials on a per-system basis (unless they were in a CSV or other parseable format).

Quite simply the solution if you need 100% accuracy is to manually log in and check each system, and keep this information in a file. We're just working with what we have and what is feasible.

Re: Reporting

Posted: Wed Oct 01, 2014 3:37 pm
by rseiwert
I just have to say just in case the original poster comes back
Quite simply the solution if you need 100% accuracy is to manually log in and check each system, and keep this information in a file. We're just working with what we have and what is feasible.
If you are directly logging into 1000 servers to manually record their OS you are doing it wrong.
The original question
Is there a way to pull a list or report of the different OS versions of servers that we monitor with Nagios?
I think that since we are already monitoring these systems we should have WMI or NRPE functioning so credentials is not an issue.

I use the standard XI check_wmi_plus with $ARG1$=info and $ARG2$=os and I get a nice list of OS for my WMI machines which includes service packs installed. This is agentless and painless. For Linux it was simple enough to add check_os to nrpe with a simple shell script 'cat /proc/version' then add that to my linux system's checks.

Re: Reporting

Posted: Wed Oct 01, 2014 3:46 pm
by tmcdonald
I do agree with you that manually logging in to 1,000 machines is a waste of time, however the WMI solution is making a lot of assumptions that were not in the original post. WMI is a Windows-only agent, and it does require some configuration at one point or another. If the host is not set up for WMI then there is the requirement of logging in and setting it up. Same goes for NRPE, sans the Windows-only part. If the question truly is "Can Nagios XI tell me the exact OS of all hosts I am monitoring?" then the answer is no. There are certainly ways to do so with varying degrees of difficulty and results, but there is no one-click solution.

Re: Reporting

Posted: Fri Oct 03, 2014 8:51 am
by rseiwert
agreed

Re: Reporting

Posted: Fri Oct 03, 2014 9:46 am
by lmiltchev
@ancovington,
Is there a way to pull a list or report of the different OS versions of servers that we monitor with Nagios?
Did tmcdonald answer your question?
If the question truly is "Can Nagios XI tell me the exact OS of all hosts I am monitoring?" then the answer is no. There are certainly ways to do so with varying degrees of difficulty and results, but there is no one-click solution.
Can we lock this thread?