Page 1 of 1

nagios and inventory discovery

Posted: Mon Aug 24, 2015 3:37 pm
by benhank
Hey a question guys.
We have to install nscient++ on a large number of servers.
the problem is we have to figure out which servers are 32 or 64 bit. Is there a way we can get nagiosxi to give us that info?

Re: nagios and inventory discovery

Posted: Mon Aug 24, 2015 10:58 pm
by Box293
Via SNMP:

Code: Select all

Command:
check_snmp -H 10.25.14.3 -o 1.3.6.1.2.1.1.1.0 -C public -P 2c

Output (Windows x86):
SNMP OK - "Hardware: x86 Family 6 Model 63 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)" |

Output (Windows x64):
SNMP OK - "Hardware: Intel64 Family 6 Model 63 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)" |
Another option is not Nagios related, but if you are pushing out via a script, if the "C:\Program Files (x86)\" directory exists you can bet this is a 64 bit OS.

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 10:47 am
by benhank
THANKS MAN! whoo HoooOOO!

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 10:51 am
by benhank
Hey is there a way to have nagios look for that directory?

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 1:47 pm
by jdalrymple
https://exchange.nagios.org/directory/P ... le/details

Are all the hosts already in Nagios? If not it would probably be quicker to do a simple shell script.

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 2:08 pm
by WillemDH
With this Powershell script you can install NSClient++ from Nagios or Reactor with a Windows gateway.

http://outsideit.net/naf-request-install/

And this GitHub project can help towards creating a Bash script which does the Nagios side configuration.

https://github.com/willemdh/naf_add_server_windows

It is designed to work with templates though.

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 3:12 pm
by benhank
thank you kind sirs!

Re: nagios and inventory discovery

Posted: Tue Aug 25, 2015 3:14 pm
by benhank
jdalrymple wrote:https://exchange.nagios.org/directory/P ... le/details

Are all the hosts already in Nagios? If not it would probably be quicker to do a simple shell script.
yes they are already in nagios

Re: nagios and inventory discovery

Posted: Wed Aug 26, 2015 10:42 am
by lmiltchev
benhank, was your question answered? Is it safe to lock this post? Thanks!

Re: nagios and inventory discovery

Posted: Wed Aug 26, 2015 12:30 pm
by benhank
lock it up and thanks to everyone who tried to help!