Windows Server SNMP Agentless Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Windows Server SNMP Agentless Monitoring

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Windows Server SNMP Agentless Monitoring

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Windows Server SNMP Agentless Monitoring

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: Windows Server SNMP Agentless Monitoring

Post 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.....
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Windows Server SNMP Agentless Monitoring

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: Windows Server SNMP Agentless Monitoring

Post 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 ?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Windows Server SNMP Agentless Monitoring

Post by yancy »

winpro-cloud-services,

change owner to nagios:nagios

Code: Select all

 chown nagios:nagios *snmp* 
Also, there are agentless solutions for using WMI as well.
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: Windows Server SNMP Agentless Monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows Server SNMP Agentless Monitoring

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows Server SNMP Agentless Monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked