Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Error Argument “v6.0.1” isn’t numeric in numeric lt in Nagios

Leer en espanol
Error Argument “v6.0.1” isn’t numeric in numeric lt in Nagios

Table of contents

Yes ex ===

We can solve this error by replacing the version check of the libnet-snmp-perl package (in which it checks that it is less than 4) with the string comparison "LT".

If we execute the command we get the following error:

Bash
root@nagios:/usr/lib/nagios/plugins# ./check_snmp_process.pl -H 192.168.1.111 -C redorbita -n mysqld -c-1,50 -w-1,50

Argument «v6.0.1» isn’t numeric in numeric lt (<) at ./check_snmp_process.pl line 524.

2 process matching mysqld (> -1) (<= 50):

We access the plugin and go to the line that it mentions (In my case 524) which will appear something like this:

text
$result = (Net::SNMP->VERSION < 4) ?

We replace it with the following:

text
$result = (Net::SNMP->VERSION lt 4) ?

If we now run the command again we see that it does not show us any errors.

Bash
root@nagios:/usr/lib/nagios/plugins# ./check_snmp_process.pl -H 192.168.1.111 -C redorbita -n mysqld -c-1,50 -w-1,50

2 process matching mysqld (> -1) (<= 50):OK

Greetings, rokitoh!

Comments