unable to monitor windows server 2016 server using SNMP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sudakarman
Posts: 15
Joined: Tue Aug 13, 2019 5:08 am

unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

unable to configure windows 2016 server using SNMP can please help me resolve this issue like.. files to edit or any config changes

[root@nagios libexec]# ./check_snmp -H 192.168.10.17 -C myserver -p 161 -o 1.3.6.1.2.1.1.3.0
CRITICAL - Plugin timed out while executing system call
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to monitor windows server 2016 server using SNMP

Post by scottwilkerson »

Did you enable SNMP and set the community string and start the service on the Windows Server?

See 1:40 of the video here
https://support.nagios.com/kb/article/n ... p-661.html

Also, make sure the Firewall isn't blocking port 161 UDP to that server
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sudakarman
Posts: 15
Joined: Tue Aug 13, 2019 5:08 am

Re: unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

thanks a lot scott for your quick reply as am using nagios core nagios-4.3.1 am not using nagios XI is there any possibility to monitor windows servers in core 4.3.1 cause am new bee very first time i am installing nagios core 4.3.1 i am able to monitor using NSClient++ but unable to monitor snmp please guide me.

Thanks in advance
sudakar
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to monitor windows server 2016 server using SNMP

Post by scottwilkerson »

Did you enable SNMP on the Windows server?

Here is an Internet Guide
https://www.dtonias.com/install-configu ... e-windows/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sudakarman
Posts: 15
Joined: Tue Aug 13, 2019 5:08 am

Re: unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

Dear Scott,

Thnaks a lot for your reply please find the output of the windows server but in webgui unable to monitor the server

[root@nagiosserver libexec]# ./check_snmp -H 192.168.10.17 -C myserver -p 161 -o 1.3.6.1.2.1.1.3.0
CRITICAL - Plugin timed out while executing system call

another command output

[root@nagiosserver libexec]# ./check_snmp -H 192.168.10.17 -C public -o sysUpTime.0 -t 1:3 -e 5 -vvv
/usr/bin/snmpget -Le -t 1 -r 5 -m ALL -v 1 [context] [authpriv] 192.168.10.17:161 sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (59618012) 6 days, 21:36:20.12
Processing oid 1 (line 1)
oidname: DISMAN-EVENT-MIB::sysUpTimeInstance
response: Timeticks: (59618012) 6 days, 21:36:20.12
SNMP OK - 59618012 | DISMAN-EVENT-MIB::sysUpTimeInstance=59618012
[root@nagiosserver libexec]#


Please help to resolve this issue

Regards
Sudakar
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to monitor windows server 2016 server using SNMP

Post by scottwilkerson »

In the first command you have the community string set to myserver

Code: Select all

[root@nagiosserver libexec]# ./check_snmp -H 192.168.10.17 -C myserver -p 161 -o 1.3.6.1.2.1.1.3.0
In the second, you have it set to public

Code: Select all

[root@nagiosserver libexec]# ./check_snmp -H 192.168.10.17 -C public -o sysUpTime.0 -t 1:3 -e 5 -vvv
The second one seems to be working and has a proper response

Code: Select all

SNMP OK - 59618012 | DISMAN-EVENT-MIB::sysUpTimeInstance=59618012
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sudakarman
Posts: 15
Joined: Tue Aug 13, 2019 5:08 am

Re: unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

Dear Scott,
Thanks for your quick reply. Unable to integrate in nagios web console.

Regards
Sudakar
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to monitor windows server 2016 server using SNMP

Post by scottwilkerson »

sudakarman wrote:Dear Scott,
Thanks for your quick reply. Unable to integrate in nagios web console.

Regards
Sudakar
Did you create the nagios configuration files?

Can you share what you created?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sudakarman
Posts: 15
Joined: Tue Aug 13, 2019 5:08 am

Re: unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

Dear Scott,
Please find below config files

[root@nagiosserver ~]# cd /usr/local/nagios/etc/
[root@nagiosserver etc]# ll
total 112
-rw-rw-r--. 1 nagios nagios 12998 Sep 9 13:22 cgi.cfg
-rw-r--r-- 1 root root 199 Aug 31 16:17 commands.cfg
-rw-r--r-- 1 root root 121 Sep 9 18:57 hosts.cfg
-rwxr-xr-x. 1 nagios nagcmd 50 Aug 13 11:48 htpasswd.users
-rw-rw-r--. 1 nagios nagios 45010 Sep 9 19:47 nagios.cfg
drwxrwxr-x. 2 nagios nagios 4096 Sep 9 13:09 objects
-rw-rw----. 1 nagios nagios 1312 Aug 13 11:21 resource.cfg
drwxr-xr-x. 2 nagios nagios 40 Sep 9 17:36 servers
-rw-r--r-- 1 root root 245 Sep 9 19:41 services.cfg
-rw-r--r-- 1 root root 1843 Sep 9 15:57 windows-hosts.cfg
-rw-r--r-- 1 root root 2531 Sep 9 16:05 windows-services.cfg

Regards
Sudakar
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to monitor windows server 2016 server using SNMP

Post by scottwilkerson »

Can you zip them up and attach them? We need to see the contents
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked