unable to monitor windows server 2016 server using SNMP
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
unable to monitor windows server 2016 server using SNMP
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
[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
-
- 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
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
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
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
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
Thanks in advance
sudakar
-
- 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
Did you enable SNMP on the Windows server?
Here is an Internet Guide
https://www.dtonias.com/install-configu ... e-windows/
Here is an Internet Guide
https://www.dtonias.com/install-configu ... e-windows/
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
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
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
-
- 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
In the first command you have the community string set to myserver
In the second, you have it set to public
The second one seems to be working and has a proper response
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
Code: Select all
[root@nagiosserver libexec]# ./check_snmp -H 192.168.10.17 -C public -o sysUpTime.0 -t 1:3 -e 5 -vvv
Code: Select all
SNMP OK - 59618012 | DISMAN-EVENT-MIB::sysUpTimeInstance=59618012
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
Dear Scott,
Thanks for your quick reply. Unable to integrate in nagios web console.
Regards
Sudakar
Thanks for your quick reply. Unable to integrate in nagios web console.
Regards
Sudakar
-
- 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
Did you create the nagios configuration files?sudakarman wrote:Dear Scott,
Thanks for your quick reply. Unable to integrate in nagios web console.
Regards
Sudakar
Can you share what you created?
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
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
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
-
- 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
Can you zip them up and attach them? We need to see the contents