Giter VIP home page Giter VIP logo

wl-nagiosplugins's People

Contributors

giner avatar goochjj avatar helmo avatar jccomputing avatar rbroemeling avatar willixix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wl-nagiosplugins's Issues

check_redis - matching a string as a threshold

I'm trying to get pretty fancy with my redis cluster monitoring and have a check --check:"NAME:role" which I'd like to verify is either master or slave depending on the server. Is it possible to set the plugin to identify a string as the only acceptable value and throw a critical otherwise?

check_snmp_netint for low traffic

Hi! I'm testing this plugins and work well but now i want to monitor a Linux interface and alert when the inbound traffic its below than certain value. For example warning below 200kbps and critical when 20kbps. I tried with -w 200: -c 20: but i get this error: Can't parse warning level: 200:

Could you help me with this ?

thanks

check_netstat.pl performance data

I have integrated the plugin in my Nagios installation on Ubuntu server and the data is displayed correctly

Now, I am trying to use performance data with Nagios & PNP4Nagios but without success.

Example output:
user@nagios:# /usr/local/nagios/libexec/check_nrpe -H remote_server -c check_smtp_connections
OK - smtp_in is 3 | smtp_in=3;
:3;~:5

At the remote_server the command is defined in /usr/local/nagios/etc/nrpe.cfg
command[check_smtp_connections]=/usr/local/nagios/libexec/check_netstat.pl -p "<smtp" -w ">3" -c ">5" -f

The graph in Nagios/PNP4Nagios cannot be displayed. It seams the format of performance data is not correct comparing with http://docs.pnp4nagios.org/pnp-0.6/perfdata_format

Can you help me to resolve this problem?

check_redis doesn't support SSL

Hello,

First of all thank you for the plugin. It has been pretty useful.
I however hit a wall when trying to connect to servers using SSL ERROR: Alarm signal (Nagios time-out).

It'd be great if SSL were supported.
Were this in another language, maybe I could've helped, but I don't know perl :P

Cheers

Check_redis says 'has 0 databases ()' while 100 databases are in place

Hi,
First of all: Thanks for sharing this nice nagios check!
Please help me solving this issue: What am I doing wrong when the check returns that 0 db's are in place while redis-cli returns 100?

~ # redis-cli -h redisserver -p 6379 config get databases
1) "databases"
2) "100"
~ # ./check_redis -H redisserver -p6379 --connected_client=WARN:">850",CRIT:">950"
# (I also get this warning which I do not understand)
Odd number of elements in anonymous hash at /usr/share/perl5/Redis.pm line 222, <GEN1> line 2.
OK: REDIS  on redisserver:6379 has 0 databases () - connected_clients is 810

check_files.pl - -a without WARNING value always returns WARNING

Running check_files.pl with the -a (age) option and specifying ~ as warning value, the check always returns WARNING if there's no file exceeding the CRITICAL age:

$ ./check_files.pl -D /mnt/myfolder/ -F "*.mxf" -a ~,300 -c 20 -f -T files
WARNING - testfile.mxf  is 6 (more than ) seconds old | '*.mxf'=1;;20 age_oldest=6s;;300 age_newest=6s

check_redis.pl password

Auth is broken if the password starts with + and password on the command line instead of a file

Can't get bandwidth

I'm trying to get the bandwidth with check_netint but the temp file isn't created and thus it's not able to calculate it.

$ ./check_netint.pl -n bond0 -P -f -k -z
bond0:UP (1 UP): OK | 'bond0_in_octet'=24069935348334c 'bond0_out_octet'=8983940043793c ptime=1469816133

check_memcached.pl rate perfdata issue

when running checks on new hosts where there isnt already perf data I get this error
"Calculating rate variable such as &cmd_get requires previous performance data. Please add '-P $SERVICEPERFDATA$' to your nagios command line." and or others like it, then it exits.
This is a chicken or the egg issue since there is no perf data to start with it cant generate the the perfdata. instead it should return a Warning or Critical state and indicate that the perfdata to calculate the rate accurately was unavailable then maybe do something like divide the total by the uptime for the initial status return

check_redis.pl

Trying to call check_redis.pl like this:
./check_redis.pl -H localhost -M 2G -m WARN:500

Causes this error:
CRITICAL: memory_utilization data is missing - REDIS on localhost:6379 has 1 databases (db0) with 132 keys

Any idea why?

Redis 2.8.3
check_redis.pl 0.73

Cheers,
-Robin-

Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.

I'm currently trying to implement a check based on your check_netint.pl script.

I'm still experimenting and am just trying to list interfaces right now, using ./check_netint.pl -C public -H SRV-PDC. This produces the following warning:

Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.

Someone seemed to get the same message on Nagios Exchange, where you said you wanted the full output of the command with the -v parameter. Here is that output:

Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Use of uninitialized value within @oid_perf_inoct in hash element at ./check_netint.pl line 2023.
Alarm at 15 + 5
SNMP v1 login
Getting Interfaces Description Table (1.3.6.1.2.1.2.2.1.2):
 OID : 1.3.6.1.2.1.2.2.1.2.1, Clean Desc : Software Loopback Interface 1, Raw Desc: Software Loopback Interface 1
 OID : 1.3.6.1.2.1.2.2.1.2.14, Clean Desc : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d516f53205061636b6574205363686564756c65722d3030303000, Raw Desc: 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d516f53205061636b6574205363686564756c65722d3030303000
 OID : 1.3.6.1.2.1.2.2.1.2.16, Clean Desc : WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000, Raw Desc: WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
 OID : 1.3.6.1.2.1.2.2.1.2.18, Clean Desc : WAN Miniport (IPv6)-QoS Packet Scheduler-0000, Raw Desc: WAN Miniport (IPv6)-QoS Packet Scheduler-0000
 OID : 1.3.6.1.2.1.2.2.1.2.12, Clean Desc : Microsoft-ISATAP-Adapter, Raw Desc: Microsoft-ISATAP-Adapter
 OID : 1.3.6.1.2.1.2.2.1.2.17, Clean Desc : WAN Miniport (IP)-QoS Packet Scheduler-0000, Raw Desc: WAN Miniport (IP)-QoS Packet Scheduler-0000
 OID : 1.3.6.1.2.1.2.2.1.2.3, Clean Desc : WAN Miniport (L2TP), Raw Desc: WAN Miniport (L2TP)
 OID : 1.3.6.1.2.1.2.2.1.2.2, Clean Desc : WAN Miniport (SSTP), Raw Desc: WAN Miniport (SSTP)
 OID : 1.3.6.1.2.1.2.2.1.2.7, Clean Desc : WAN Miniport (Network Monitor), Raw Desc: WAN Miniport (Network Monitor)
 OID : 1.3.6.1.2.1.2.2.1.2.9, Clean Desc : RAS Async Adapter, Raw Desc: RAS Async Adapter
 OID : 1.3.6.1.2.1.2.2.1.2.13, Clean Desc : Teredo Tunneling Pseudo-Interface, Raw Desc: Teredo Tunneling Pseudo-Interface
 OID : 1.3.6.1.2.1.2.2.1.2.6, Clean Desc : WAN Miniport (IPv6), Raw Desc: WAN Miniport (IPv6)
 OID : 1.3.6.1.2.1.2.2.1.2.4, Clean Desc : WAN Miniport (PPTP), Raw Desc: WAN Miniport (PPTP)
 OID : 1.3.6.1.2.1.2.2.1.2.10, Clean Desc : WAN Miniport (IKEv2), Raw Desc: WAN Miniport (IKEv2)
 OID : 1.3.6.1.2.1.2.2.1.2.15, Clean Desc : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d574650204c696768745765696768742046696c7465722d3030303000, Raw Desc: 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d574650204c696768745765696768742046696c7465722d3030303000
 OID : 1.3.6.1.2.1.2.2.1.2.8, Clean Desc : WAN Miniport (IP), Raw Desc: WAN Miniport (IP)
 OID : 1.3.6.1.2.1.2.2.1.2.5, Clean Desc : WAN Miniport (PPPOE), Raw Desc: WAN Miniport (PPPOE)
 OID : 1.3.6.1.2.1.2.2.1.2.11, Clean Desc : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d42757300, Raw Desc: 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d42757300
Name : Software Loopback Interface 1, Index : 1
Name : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d516f53205061636b6574205363686564756c65722d3030303000, Index : 14
Name : WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000, Index : 16
Name : WAN Miniport (IPv6)-QoS Packet Scheduler-0000, Index : 18
Name : Microsoft-ISATAP-Adapter, Index : 12
Name : WAN Miniport (IP)-QoS Packet Scheduler-0000, Index : 17
Name : WAN Miniport (L2TP), Index : 3
Name : WAN Miniport (SSTP), Index : 2
Name : WAN Miniport (Network Monitor), Index : 7
Name : RAS Async Adapter, Index : 9
Name : Teredo Tunneling Pseudo-Interface, Index : 13
Name : WAN Miniport (IPv6), Index : 6
Name : WAN Miniport (PPTP), Index : 4
Name : WAN Miniport (IKEv2), Index : 10
Name : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d574650204c696768745765696768742046696c7465722d3030303000, Index : 15
Name : WAN Miniport (IP), Index : 8
Name : WAN Miniport (PPPOE), Index : 5
Name : 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d42757300, Index : 11
Doing snmp request on status table OIDs: 1.3.6.1.2.1.2.2.1.8.1 1.3.6.1.2.1.2.2.1.8.14 1.3.6.1.2.1.2.2.1.8.16 1.3.6.1.2.1.2.2.1.8.18 1.3.6.1.2.1.2.2.1.8.12 1.3.6.1.2.1.2.2.1.8.17 1.3.6.1.2.1.2.2.1.8.3 1.3.6.1.2.1.2.2.1.8.2 1.3.6.1.2.1.2.2.1.8.7 1.3.6.1.2.1.2.2.1.8.9 1.3.6.1.2.1.2.2.1.8.13 1.3.6.1.2.1.2.2.1.8.6 1.3.6.1.2.1.2.2.1.8.4 1.3.6.1.2.1.2.2.1.8.10 1.3.6.1.2.1.2.2.1.8.15 1.3.6.1.2.1.2.2.1.8.8 1.3.6.1.2.1.2.2.1.8.5 1.3.6.1.2.1.2.2.1.8.11
Finished SNMP request. Result contains 18 entries:
 1.3.6.1.2.1.2.2.1.8.5 = 1
 1.3.6.1.2.1.2.2.1.8.11 = 1
 1.3.6.1.2.1.2.2.1.8.17 = 1
 1.3.6.1.2.1.2.2.1.8.7 = 1
 1.3.6.1.2.1.2.2.1.8.15 = 1
 1.3.6.1.2.1.2.2.1.8.10 = 2
 1.3.6.1.2.1.2.2.1.8.6 = 1
 1.3.6.1.2.1.2.2.1.8.4 = 1
 1.3.6.1.2.1.2.2.1.8.16 = 1
 1.3.6.1.2.1.2.2.1.8.12 = 2
 1.3.6.1.2.1.2.2.1.8.9 = 1
 1.3.6.1.2.1.2.2.1.8.14 = 1
 1.3.6.1.2.1.2.2.1.8.18 = 1
 1.3.6.1.2.1.2.2.1.8.1 = 1
 1.3.6.1.2.1.2.2.1.8.13 = 2
 1.3.6.1.2.1.2.2.1.8.3 = 1
 1.3.6.1.2.1.2.2.1.8.2 = 1
 1.3.6.1.2.1.2.2.1.8.8 = 1
Software Loopback Interface 1:UP, 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d516f53205061636b6574205363686564756c65722d3030303000:UP, WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000:UP, WAN Miniport (IPv6)-QoS Packet Scheduler-0000:UP, Microsoft-ISATAP-Adapter:DOWN, WAN Miniport (IP)-QoS Packet Scheduler-0000:UP, WAN Miniport (L2TP):UP, WAN Miniport (SSTP):UP, WAN Miniport (Network Monitor):UP, RAS Async Adapter:UP, Teredo Tunneling Pseudo-Interface:DOWN, WAN Miniport (IPv6):UP, WAN Miniport (PPTP):UP, WAN Miniport (IKEv2):DOWN, 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d4275732d574650204c696768745765696768742046696c7465722d3030303000:UP, WAN Miniport (IP):UP, WAN Miniport (PPPOE):UP, 0x4e65747a7765726b6b6172746520668172204d6963726f736f6674205669727475616c204d616368696e652d42757300:UP: 3 int NOK : CRITICAL

I'm using the latest revision from your master.

no usable data

Hello,

I found this plugin and trying to make it work but without success...
Always I get 'no usable data' when trying to check eth0 on my proxmox machine from my nagios server.

May be I doing something wrong and I need help with that.

So what I want and what I do...

I want for example to check eth0 on proxmox or other interfaces on device like mikrotik routers if traffic warning is 100 Mbit/s and critical if traffic is more than 200 Mbit/s (not MegaBytes ) and I want to got performance data for pnp4nagios for traffic - in/out and errors.

in Nagios commands.cfg I have added:

define command {
        command_name    check_snmp_netint
        # check eth0 speed in/out warning - 100 Mbit/s , critical 200 Mbit/s
        # check_snmp_netint!eth0!100,100,0,0,0,0!200,200,0,0,0,0
#       command_line    $USER1$/check_snmp_netint.pl -H $HOSTADDRESS$ -l $USER3$ -x "$USER4$" -X "$USER5$" -L sha,aes -N 1.3.6.1.2.1.31.1.1.1.1 -n "$ARG1$" --label -g -f -k -e -q -Y -B -M -w "$ARG2$" -c "$ARG3$" -P -T "$LASTSERVICECHECK$" -d 0
        command_line    $USER1$/check_snmp_netint.pl -H $HOSTADDRESS$ -l $USER3$ -x "$USER4$" -X "$USER5$" -L sha,aes -N 1.3.6.1.2.1.31.1.1.1.1 -n "$ARG1$" -w "$ARG2$" -c "$ARG3$" -f -q -k -e -y -M -B -P "$SERVICEPERFDATA$" -T "$LASTSERVICECHECK$ -d 120"
#       command_line    $USER1$/check_snmp_netint.pl -H $HOSTADDRESS$ -l $USER3$ -x "$USER4$" -X "$USER5$" -L sha,aes -N 1.3.6.1.2.1.31.1.1.1.1 -n "$ARG1$" -w "$ARG2$" -c "$ARG3$" -d 120 -f -q -k -e -y -M -B -P
}

in checks for my proxmox machine I have added:

define service {
        use                             generic-service,srv-pnp           ; Name of service template to use
        host_name                       pve
        service_description             TEST - eth0
        check_interval                  1
        retry_interval                  1
        max_check_attempts              5
        contact_groups                  sysadmins
        check_command                   check_snmp_netint!eth0!100,100,0,0,0,0!200,200,0,0,0,0
}

in nagios webinterface for host pve and service "TEST - eth0" I see:

--
Status Information: | eth0:UP (no usable data - 1 rows) :(1 UP): OK
--
Performance Data: | 'eth0_in_octet'=3110170352c 'eth0_out_octet'=1681965768c 'eth0_in_error'=13c 'eth0_in_discard'=76c 'eth0_out_error'=0c 'eth0_out_discard'=0c ptime=1675520736
--

As you can see: "eth0:UP (no usable data - 1 rows) :(1 UP): OK" -

In pnp4nagios i have modified php template to graph:

eth0_in_octet
eth0_out_octet
eth0_in_error
eth0_in_discard
eth0_out_error
eth0_out_discard

so here the modified php tepmplate:

<?php
#
# Plugin: check_snmp_netint.pl (COUNTER, PERCENT, and errors)
#   by William Leibzon - http://william.leibzon.org/nagios/
# (based on pnp4nagios template for check_iftraffic.pl by Joerg Linge)
# Output based on Bits/s
#
$ds_name[1] = "Network Interface Traffic (bps)";
$opt[1] = " --vertical-label \"traffic bps\" -b 1000 --title \"Network Data Traffic for $hostname\" ";
$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE " ;
$def[1] .= "DEF:var2=$RRDFILE[2]:$DS[2]:AVERAGE " ;
$def[1] .= "CDEF:in_bits=var1,8,* ";
$def[1] .= "CDEF:out_bits=var2,8,* ";
$def[1] .= "LINE1:in_bits#0000ff:\"in  \" " ;
$def[1] .= "GPRINT:in_bits:LAST:\"%7.2lf %Sbit/s last\" " ;
$def[1] .= "GPRINT:in_bits:AVERAGE:\"%7.2lf %Sbit/s avg\" " ;
$def[1] .= "GPRINT:in_bits:MAX:\"%7.2lf %Sbit/s max\\n\" " ;
$def[1] .= "LINE1:out_bits#00ff00:\"out \" " ;
$def[1] .= "GPRINT:out_bits:LAST:\"%7.2lf %Sbit/s last\" " ;
$def[1] .= "GPRINT:out_bits:AVERAGE:\"%7.2lf %Sbit/s avg\" " ;
$def[1] .= "GPRINT:out_bits:MAX:\"%7.2lf %Sbit/s max\\n\" ";
if($this->MACRO['TIMET'] != ""){
    $def[1] .= "VRULE:".$this->MACRO['TIMET']."#000000:\"Last Service Check \\n\" ";
}
if ($WARN[1] != "") {
    $def[1] .= "HRULE:$WARN[1]#FF8C00:\"In-Traffic Warning on $WARN[1] \" ";
}
if ($WARN[2] != "") {
    $def[1] .= "HRULE:$WARN[2]#FFFF00:\"Out-Traffic Warning on $WARN[2] \" ";
}
if ($CRIT[1] != "") {
    $def[1] .= "HRULE:$CRIT[1]#FF008C:\"In-Traffic Critical on $CRIT[1] \" ";
}
if ($CRIT[2] != "") {
    $def[1] .= "HRULE:$CRIT[2]#FF0000:\"In-Traffic Critical on $CRIT[2] \" ";
}

$ds_name[3] = "Network Interface Errors";
$opt[3] = " --vertical-label \"# errors\" -b 1000 --title \"Network Errors for $hostname\" ";
$def[3] = "DEF:in_error=$RRDFILE[3]:$DS[3]:AVERAGE " ;
$def[3] .= "DEF:in_discard=$RRDFILE[4]:$DS[4]:AVERAGE " ;
$def[3] .= "DEF:out_error=$RRDFILE[5]:$DS[5]:AVERAGE ";
$def[3] .= "DEF:out_discard=$RRDFILE[6]:$DS[6]:AVERAGE ";
$def[3] .= "LINE1:in_error#0000ff:\"in error \\t\" " ;
$def[3] .= "GPRINT:in_error:LAST:\"%4.1lf last\" " ;
$def[3] .= "GPRINT:in_error:AVERAGE:\"%4.1lf avg\" " ;
$def[3] .= "GPRINT:in_error:MAX:\"%4.1lf max\\n\" " ;
$def[3] .= "LINE1:out_error#00ff00:\"out error \\t\" " ;
$def[3] .= "GPRINT:out_error:LAST:\"%4.1lf last\" " ;
$def[3] .= "GPRINT:out_error:AVERAGE:\"%4.1lf avg\" " ;
$def[3] .= "GPRINT:out_error:MAX:\"%4.1lf max\\n\" ";
$def[3] .= "LINE1:in_discard#ff008c:\"in discard \\t\" " ;
$def[3] .= "GPRINT:in_discard:LAST:\"%4.1lf last\" " ;
$def[3] .= "GPRINT:in_discard:AVERAGE:\"%4.1lf avg\" " ;
$def[3] .= "GPRINT:in_discard:MAX:\"%4.1lf max\\n\" " ;
$def[3] .= "LINE1:out_discard#ffff00:\"out discard \\t\" " ;
$def[3] .= "GPRINT:out_discard:LAST:\"%4.1lf last\" " ;
$def[3] .= "GPRINT:out_discard:AVERAGE:\"%4.1lf avg\" " ;
$def[3] .= "GPRINT:out_discard:MAX:\"%4.1lf max\\n\" " ;


?>

and with that I have graphics for interface eth0 on my pve server, but "no usable data - X rows" if present -

I unable to get information about the speed and there are not warning and critical states... So how can I fix that?

check_netsnmp_memory: Version Check is Numeric

Hello,
I connect from a CentOS Linux v7.5 to a Windows server, running Net-SNMP with the following command:
./check_netsnmp_memory.pl '--hostname=10.25.96.81 --login=… --passwd=… --perf_attributes="*" --attributes="%avail_real,%used_real,%avail_swap,%used_swap,%user_real" --warn=",,^<6,," --critical=",,<2,,"'

The reply is always:
Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/lib64/perl5/check_snmp_attributes.pl line 1176.

I see, that in line 1176, it checks the Net-SNMP version:
$resultat = (Net::SNMP->VERSION < 4) ?

Apparently, it wants a numeric value and not an alphanumeric like v6.0.1.
Would be so great having that corrected, so that we could use it also for Windows servers.
Thanks

Redis warn hitrate

check_redis.pl
Hi,

Thank you for plugins.
Could you explain me, please? I have set hitrate warning to 50, I mean that if the hitrate lower this value I should get a warn. However, I have got warn because hitrate is 95%.

Regards,
Rostyslav

check_nrpe with check_redis.pl fails

from nagios server:
[root@nagios-server ~]# /usr/local/nagios/libexec/check_nrpe -H $appserver -t 30 -c check_redis -a '-H $appserver -p 26379'
Can't locate Redis.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_redis.pl line 421.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_redis.pl line 421.

locally on the appserver:
[root@$APPSERVER libexec]# /usr/local/nagios/libexec/check_redis.pl -H $APPSERVERl -p 26379
OK: REDIS 5.0.3 on $APPSERVER has 1 databases (db0) with 70 keys, up 13 days 8 minutes

[root@$APPSERVER libexec]# cpan -l | grep -i redis
Redis 1.995
Redis::Hash 1.995
Redis::List 1.995
Redis::Sentinel 1.995

Question: why is my check from nagios server failing

nagios:snmp error

Usage check_mrtgtraf -F <log_file> -a <AVG
-c <critical_pair> [-e expire_minutes]

I have tried your script for getting the bandwidth but im getting error.

./check_snmp_netint.pl: line 7: syntax error near unexpected token newline' ./check_snmp_netint.pl: line 7: '

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.