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 the command below

define command{
command_name snmp_load_15m
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.10.1.3.3 -H $HOSTADDRESS$ $ARG1$
}
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 help to resolve this issue

Checking objects...
Error: Service check command 'check_snmp_storage.pl!USEDDISKSPACE!-l c -w 80 -c 90' specified in service 'C: Drive Space' for host 'myserver' not defined anywhere!
Error: Service check command 'check_snmp_load.pl!CPULOAD!-l 5,80,90' specified in service 'CPU Load' for host 'myserver' not defined anywhere!
Error: Service check command 'check_snmp_mem.pl!MEMUSE!-w 80 -c 90' specified in service 'Memory Usage' for host 'myserver' not defined anywhere!
Error: Service check command 'check_uptime!UPTIME' specified in service 'Uptime' for host 'myserver' not defined anywhere!
Checked 13 services.
Checked 3 hosts.
Checked 2 host groups.
Checked 1 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 28 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 3 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 4

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
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 »

This looks like you don't have commands defined for these for check_commands you have defined
check_snmp_storage.pl
check_snmp_load.pl
check_snmp_mem.pl
check_uptime

Do you have these commands defined in your nagios configuration files?
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 reply please find attachment
Attachments
libexce.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 »

I can see the plugins exist, but you need to create command definitions for them in the nagios configuration files.
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 »

can you please share one command definition for memory monitor
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:can you please share one command definition for memory monitor
http://nagios.manubulon.com/index_commands.html#mem
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 reply . Please find attached image getting community warning critical please suggest

Regards
sudakar
Attachments
forum-cpu load.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 »

Can you show the command definition you have for this along with the service definition?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked