Monitoring Windows With Nagios

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.
Locked
AlbertM
Posts: 2
Joined: Wed Dec 28, 2016 7:14 am

Monitoring Windows With Nagios

Post by AlbertM »

Hello

I'm trying monitrize my Windows with nagios but when y try monitorize the Ram and Storage nagios let me 2 warnings.

Image

This are my documents.

Storage:

define command{
command_name check_disk_snmp
command_line /usr/bin/perl $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -s $ARG1$ -d $ARG2$ -u $ARG3$ -w $ARG4$ -c $ARG5$
}

define service {
use windows-srv
host_name cpd_19X.XXX.XXX.XXX
service_description Disco C:
check_command check_disk_snmp!XXX!C!MB!1527!898
}

RAM

define command{
command_name check_winmem_snmp
command_line /usr/bin/perl $USER1$/check_snmp_mem.pl -H $HOSTADDRESS$ -C $ARG1$
}

define service {
use windows-srv
host_name cpd_19x.xxx.xxx.xxx
service_description Uso MEM
check_command check_winmem_snmp!xxx!80%!90%
}
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring Windows With Nagios

Post by mcapra »

It looks as if your service checks are missing required parameters for the check_snmp_storage.pl. From this plugin's usage:

Code: Select all

Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -m <name in desc_oid> [-q storagetype] -w <warn_level> -c <crit_level> [-t <timeout>] [-T pl|pu|bl|bu ] [-r -s -i -G] [-e] [-S 0|1[,1,<car>]] [-o <octet_length>] [-R <% reserved>]
In the case of your check_disk_snmp command definition, you don't appear to be providing a community string (-C) or credentials (-l, -x, -L, -X, etc).
Former Nagios employee
https://www.mcapra.com/
AlbertM
Posts: 2
Joined: Wed Dec 28, 2016 7:14 am

Re: Monitoring Windows With Nagios

Post by AlbertM »

mcapra wrote:It looks as if your service checks are missing required parameters for the check_snmp_storage.pl. From this plugin's usage:

Code: Select all

Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -m <name in desc_oid> [-q storagetype] -w <warn_level> -c <crit_level> [-t <timeout>] [-T pl|pu|bl|bu ] [-r -s -i -G] [-e] [-S 0|1[,1,<car>]] [-o <octet_length>] [-R <% reserved>]
In the case of your check_disk_snmp command definition, you don't appear to be providing a community string (-C) or credentials (-l, -x, -L, -X, etc).

Thank You I'm trying fixed this error but now appear another message

Code: Select all

**ePN /usr/lib/nagios/plugins/check_snmp_storage.pl: "Argument "v6.0.1" isn't numeric in numeric lt (<) at (eval 1) line 408,".
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring Windows With Nagios

Post by mcapra »

Can you show the full check_command definition or what you're executing from the CLI?
Former Nagios employee
https://www.mcapra.com/
Locked