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

Re: unable to monitor windows server 2016 server using SNMP

Post by sudakarman »

Dear Scott,

Please find attached nagios cfg files and kindly do the needful.

Regards
sudakar
Attachments
nagios zip for forum.rar
nagios config files
(31.87 KiB) Downloaded 134 times
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 »

I just looked at some of the services under the windows-services.cfg and you have commands like this:

Code: Select all

define service{
        use                     generic-service
        host_name               WIN-75VUOLNHJMG
        service_description     CPU Load
        check_command           check_snmp!CPULOAD!-l 5,80,90
        }
Why would you define the check_command like this? It looks like you are mixing the check_snmp command with the arguments from check_nt which is for the NSClient++ agent.

Here's some basic documentation
https://assets.nagios.com/downloads/nag ... nners.html
https://assets.nagios.com/downloads/nag ... tions.html

You may want to consider Nagios XI if you are just getting started and would like to be able to setup the configuration files automatically for these types of checks with easy to use Wizards
https://www.nagios.com/products/nagios-xi/
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,

Finally i am able to add the Hosts but problem is unable to add the services can you please suggest how to add the services. please do the needful
Attachments
host add.JPG
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 »

It looks like you have services there, click the icon with the magnifying glass next to the UP word.
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 the quick reply.

can you please share the sample service group file how to add the services in service group
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 the quick reply.

can you please share the sample service group file how to add the services in service group
https://assets.nagios.com/downloads/nag ... rvicegroup
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 »

getting this error please help to resolve this on


Checking objects...
Error: Service check command 'snmp_load_15m!-C private' specified in service 'CPU load Fifteen Minute Interval' for host 'myserver' not defined anywhere!
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 »

do you have the command snmp_load_15m defined?
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 attachment and do the needful can you please give example command
Attachments
ngs.JPG
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 »

scottwilkerson wrote:do you have the command snmp_load_15m defined?
Is this in your configuration? Please share the command
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked