Page 3 of 3
Re: unable to monitor windows server 2016 server using SNMP
Posted: Sat Sep 14, 2019 12:21 am
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$
}
Re: unable to monitor windows server 2016 server using SNMP
Posted: Sat Sep 14, 2019 6:27 am
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.
Re: unable to monitor windows server 2016 server using SNMP
Posted: Mon Sep 16, 2019 6:42 am
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?
Re: unable to monitor windows server 2016 server using SNMP
Posted: Mon Sep 16, 2019 9:50 am
by sudakarman
Dear Scott,
Thanks for your reply please find attachment
Re: unable to monitor windows server 2016 server using SNMP
Posted: Mon Sep 16, 2019 10:07 am
by scottwilkerson
I can see the plugins exist, but you need to create command definitions for them in the nagios configuration files.
Re: unable to monitor windows server 2016 server using SNMP
Posted: Mon Sep 16, 2019 10:14 am
by sudakarman
can you please share one command definition for memory monitor
Re: unable to monitor windows server 2016 server using SNMP
Posted: Mon Sep 16, 2019 10:20 am
by scottwilkerson
sudakarman wrote:can you please share one command definition for memory monitor
http://nagios.manubulon.com/index_commands.html#mem
Re: unable to monitor windows server 2016 server using SNMP
Posted: Wed Sep 18, 2019 6:51 am
by sudakarman
Dear Scott,
Thanks for your reply . Please find attached image getting community warning critical please suggest
Regards
sudakar
Re: unable to monitor windows server 2016 server using SNMP
Posted: Wed Sep 18, 2019 7:05 am
by scottwilkerson
Can you show the command definition you have for this along with the service definition?