Page 1 of 2
Windows Server SNMP Agentless Monitoring
Posted: Wed Dec 05, 2012 5:46 am
by wipro-cloud-services
Team,
I am trying for windows machine agentless monitoring. Can you please let me know the steps to perform after installing and starting SNMP service in windows machine.
Re: Windows Server SNMP Agentless Monitoring
Posted: Wed Dec 05, 2012 12:14 pm
by mguthrie
Once the service is started, you can simply run the Windows SNMP monitoring wizard against that host. If you don't have that wizard installed, you can get it from the Nagios Exchange.
http://exchange.nagios.org/directory/Ad ... rd/details
Re: Windows Server SNMP Agentless Monitoring
Posted: Wed Dec 05, 2012 12:20 pm
by abrist
I would start with the SNMP monitoring wizard in XI as it is probably the easiest way.
Food for thought: if these devices are a on an insecure or public facing network, do NOT use the public community. Make your own though it must be configured on the client and server.
Re: Windows Server SNMP Agentless Monitoring
Posted: Thu Dec 06, 2012 12:30 am
by wipro-cloud-services
After installing SNMP service in windows server, I have run Windows SNMP config wizard. I receive below error. Can you pls check and update.....
Re: Windows Server SNMP Agentless Monitoring
Posted: Thu Dec 06, 2012 1:23 pm
by abrist
Can you post the out put of the following command:
Code: Select all
root@localhost$ ls -la /usr/local/nagios/libexec | grep snmp
If you downloaded the windows snmp wizard from mguthrie's post, the perl scripts may not have executable permissions.
Re: Windows Server SNMP Agentless Monitoring
Posted: Fri Dec 07, 2012 5:46 am
by wipro-cloud-services
[root@ip-10-194-25-11 ~]# ls -la /usr/local/nagios/libexec | grep snmp
-rwxr-xr-x. 1 root root 408607 Nov 2 03:02 check_snmp
-rw-r--r--. 1 root root 10951 Nov 2 03:03 check_snmp_boostedge.pl
-rw-r--r--. 1 root root 17866 Nov 2 03:03 check_snmp_cpfw.pl
-rw-r--r--. 1 root root 8747 Nov 2 03:03 check_snmp_css_main.pl
-rw-r--r--. 1 root root 16786 Nov 2 03:03 check_snmp_css.pl
-rw-r--r--. 1 root root 33562 Nov 2 03:03 check_snmp_env.pl
-rwxr-xr-x. 1 root root 23464 Nov 2 03:04 check_snmp_generic.pl
-rw-r--r--. 1 root root 31919 Nov 2 03:03 check_snmp_int.pl
-rw-r--r--. 1 root root 10108 Nov 2 03:03 check_snmp_linkproof_nhr.pl
-rwxr-xr-x. 1 root root 22839 Nov 2 03:04 check_snmp_load.pl
-rwxr-xr-x. 1 root root 22845 Nov 2 03:04 check_snmp_load_wizard.pl
-rw-r--r--. 1 root root 18734 Nov 2 03:03 check_snmp_mem.pl
-rw-r--r--. 1 root root 11898 Nov 2 03:03 check_snmp_nsbox.pl
-rwxr-xr-x. 1 root root 26182 Nov 2 03:04 check_snmp_process.pl
-rwxr-xr-x. 1 root root 26183 Nov 2 03:04 check_snmp_process_wizard.pl
-rwxr-xr-x. 1 root root 25483 Nov 2 03:04 check_snmp_storage.pl
-rwxr-xr-x. 1 root root 25484 Nov 2 03:04 check_snmp_storage_wizard.pl
-rw-r--r--. 1 root root 14489 Nov 2 03:03 check_snmp_vrrp.pl
-rwxr-xr-x. 1 root root 12058 Nov 2 03:04 check_snmp_win.pl
-rwxr-xr-x. 1 root root 7065 Nov 2 03:04 check_win_snmp_disk.pl
Shall i change the permission to Read-write to all ?
Re: Windows Server SNMP Agentless Monitoring
Posted: Fri Dec 07, 2012 10:16 am
by yancy
winpro-cloud-services,
change owner to nagios:nagios
Also, there are agentless solutions for using WMI as well.
Re: Windows Server SNMP Agentless Monitoring
Posted: Mon Dec 10, 2012 11:43 pm
by wipro-cloud-services
As suggested, permission are set to Read-write to all SNMP
# chmod a+x check_snmp*
# ls -la /usr/local/nagios/libexec | grep snmp
-rwxr-xr-x. 1 nagios nagios 408607 Nov 2 03:02 check_snmp
-rwxr-xr-x. 1 nagios nagios 10951 Nov 2 03:03 check_snmp_boostedge.pl
-rwxr-xr-x. 1 nagios nagios 17866 Nov 2 03:03 check_snmp_cpfw.pl
-rwxr-xr-x. 1 nagios nagios 8747 Nov 2 03:03 check_snmp_css_main.pl
-rwxr-xr-x. 1 nagios nagios 16786 Nov 2 03:03 check_snmp_css.pl
-rwxr-xr-x. 1 nagios nagios 33562 Nov 2 03:03 check_snmp_env.pl
-rwxr-xr-x. 1 nagios nagios 23464 Nov 2 03:04 check_snmp_generic.pl
-rwxr-xr-x. 1 nagios nagios 31919 Nov 2 03:03 check_snmp_int.pl
-rwxr-xr-x. 1 nagios nagios 10108 Nov 2 03:03 check_snmp_linkproof_nhr.pl
-rwxr-xr-x. 1 nagios nagios 22839 Nov 2 03:04 check_snmp_load.pl
-rwxr-xr-x. 1 nagios nagios 22845 Nov 2 03:04 check_snmp_load_wizard.pl
-rwxr-xr-x. 1 nagios nagios 18734 Nov 2 03:03 check_snmp_mem.pl
-rwxr-xr-x. 1 nagios nagios 11898 Nov 2 03:03 check_snmp_nsbox.pl
-rwxr-xr-x. 1 nagios nagios 26182 Nov 2 03:04 check_snmp_process.pl
-rwxr-xr-x. 1 nagios nagios 26183 Nov 2 03:04 check_snmp_process_wizard.pl
-rwxr-xr-x. 1 nagios nagios 25483 Nov 2 03:04 check_snmp_storage.pl
-rwxr-xr-x. 1 nagios nagios 25484 Nov 2 03:04 check_snmp_storage_wizard.pl
-rwxr-xr-x. 1 nagios nagios 14489 Nov 2 03:03 check_snmp_vrrp.pl
-rwxr-xr-x. 1 nagios nagios 12058 Nov 2 03:04 check_snmp_win.pl
-rwxr-xr-x. 1 nagios nagios 7065 Nov 2 03:04 check_win_snmp_disk.pl
Permissions are changed to Read, Write & execute. And also changed the file owner using command
# chown nagios:nagios *snmp*
Still issue remains same. Now even the ping is not happening.
Re: Windows Server SNMP Agentless Monitoring
Posted: Tue Dec 11, 2012 11:54 am
by scottwilkerson
This is a different error than above, this one is giving the equivenent of either a bad community string or SNMP not running on the remote machine or not having Net-SNMP.
Can you run the following from the XI command line replacing COMMUNITY_STRING IP_ADDRESS
Code: Select all
snmpget -v 1 -c COMMUNITY_STRING IP_ADDRESS sysUpTime.0
Re: Windows Server SNMP Agentless Monitoring
Posted: Tue Dec 11, 2012 12:04 pm
by lmiltchev
The ping check has nothing to do with SNMP. Make sure your server is up and that you can ping it. This check uses the "xiwizard_windowsserver_ping_service" template, and it's probably defined this way: $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5