Page 1 of 3

unable to monitor windows server 2016 server using SNMP

Posted: Fri Aug 30, 2019 5:07 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Fri Aug 30, 2019 8:49 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Sat Aug 31, 2019 1:45 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Tue Sep 03, 2019 7:26 am
by scottwilkerson
Did you enable SNMP on the Windows server?

Here is an Internet Guide
https://www.dtonias.com/install-configu ... e-windows/

Re: unable to monitor windows server 2016 server using SNMP

Posted: Fri Sep 06, 2019 4:45 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Fri Sep 06, 2019 6:57 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Mon Sep 09, 2019 8:01 am
by sudakarman
Dear Scott,
Thanks for your quick reply. Unable to integrate in nagios web console.

Regards
Sudakar

Re: unable to monitor windows server 2016 server using SNMP

Posted: Mon Sep 09, 2019 8:03 am
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?

Re: unable to monitor windows server 2016 server using SNMP

Posted: Wed Sep 11, 2019 12:30 am
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

Re: unable to monitor windows server 2016 server using SNMP

Posted: Wed Sep 11, 2019 6:28 am
by scottwilkerson
Can you zip them up and attach them? We need to see the contents