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$
}
unable to monitor windows server 2016 server using SNMP
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
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.
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.
-
- 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
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?
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?
-
- 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 reply please find attachment
Thanks for your reply please find attachment
-
- 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
I can see the plugins exist, but you need to create command definitions for them in the nagios configuration files.
-
- Posts: 15
- Joined: Tue Aug 13, 2019 5:08 am
Re: unable to monitor windows server 2016 server using SNMP
can you please share one command definition for memory monitor
-
- 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
http://nagios.manubulon.com/index_commands.html#memsudakarman wrote:can you please share one command definition for memory monitor
-
- 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 reply . Please find attached image getting community warning critical please suggest
Regards
sudakar
Thanks for your reply . Please find attached image getting community warning critical please suggest
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 show the command definition you have for this along with the service definition?