Nagios for Windows


#1

Hello,

I am wondering if you can install Nagios on a Windows server.

Tommy


#2

I guess you ask if there is nagios installation for Windows? As far as I know, it doesn’t exist

You can install Windows client for monitoring Windows machine but the main Nagios installation is for *nix systems


#3

Also you should not be scared to enter in *nix world. Nagios can be your first application integration for you *nix world.


#4

Actually we have the same problem.
I’ve been a Unix guy (Linux, Sun, AIX, HP-UX, DG/UX, Irix) in financial institutions for the last 15 years and the current environment I find myself in has me being forced to use Win machines for reporting and monitoring. Company policy.

Don’t just assume because someone needs a Win install they are newbies.
The fact is there isn’t really anything like Nagios out there for any platform so for some of us getting it up and running on Win platforms is the way it’s going to have to be.

That said I am also having problems with it.
I’ve decided that in order for this to work I will have to create a portable Cygwin environment that I can distribute to the monitoring machines in the various environments and networks we have. Problem is it chokes on compile even with the --enable-cygwin flag on configure:

make[1]: Entering directory /home/mondragontj/nagios/nagios-3.0.6/module' gcc -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared /cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o: In functionnebmodule_init’:
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:58: undefined reference to _neb_set_module_info' /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:59: undefined reference to_neb_set_module_info’
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:60: undefined reference to _neb_set_module_info' /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:61: undefined reference to_neb_set_module_info’
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:62: undefined reference to _neb_set_module_info' /cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o:/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:63: more undefined references to_neb_set_module_info’ follow
/cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o: In function nebmodule_init': /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:66: undefined reference to_write_to_all_logs’
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:71: undefined reference to _write_to_all_logs' /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:76: undefined reference to_schedule_new_event’
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:79: undefined reference to _neb_register_callback' /cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o: In functionnebmodule_deinit’:
/home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:90: undefined reference to _neb_deregister_callback' /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:95: undefined reference to_write_to_all_logs’
/cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o: In function helloworld_reminder_message': /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:108: undefined reference to_write_to_all_logs’
/cygdrive/c/DOCUME~1/MONDRA~1/LOCALS~1/Temp/ccIWdmnI.o: In function helloworld_handle_data': /home/mondragontj/nagios/nagios-3.0.6/module/helloworld.c:130: undefined reference to_write_to_all_logs’
collect2: ld returned 1 exit status
make[1]: *** [helloworld.o] Error 1
make[1]: Leaving directory `/home/mondragontj/nagios/nagios-3.0.6/module’
make: *** [all] Error 2

It compiles fine up until this point and I have yet to find anything on the Internet talking about this issue.


#5

Got around it, after reading the source I spotted that this is just a sample module so I commented out all references to MODULE in the Makefile of the root build directory.

Built fine and runs.