You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vars.snmp_process[ "x" ] = {
display_name = "x"
snmp_process_name = "x"
snmp_crit = "-1,3"
snmp_warn = "-1,2"
snmp_process_mem_usage = true
snmp_process_cpu_usage = true
notes = ""
}
And get the following error:
Plugin Output
Unknown option: 1
Unknown option: ,
Unknown option: 3
Unknown option: 1
Unknown option: ,
Use of uninitialized value $num in pattern match (m//) at /usr/lib/nagios/plugins/check_snmp_process.pl line 93.
Numerical values for warning and critical
Usage: /usr/lib/nagios/plugins/check_snmp_process.pl [-v] -H <host> -C <snmp_community> [-2]
This is caused by '-c' '-1,3' '-w' '-1,2'.
The correct form as stated by check_snmp_process.pl -h should be '-c-1,3' '-w-1,2' and works on the command line. It would be great if the ITL could catch this.
Operating System and version: Debian GNU/Linux 9 (stretch)
Version of check plugin apt show nagios-snmp-plugins:
apt show nagios-snmp-plugins
Package: nagios-snmp-plugins
Version: 2.0.0-1
Priority: optional
Section: net
Maintainer: Debian Nagios Maintainer Group <[email protected]>
Installed-Size: 626 kB
Depends: libnet-snmp-perl, monitoring-plugins-common | nagios-plugins-basic (>= 1.4.5-2), perl-base (>= 5.8.4-8), ucf, perl:any
Recommends: libcrypt-des-perl, libcrypt-rijndael-perl
Homepage: http://www.manubulon.com/nagios/index_snmp.html
Tag: admin::monitoring, implemented-in::perl, protocol::snmp, role::plugin,
role::program, use::monitor, works-with::network-traffic
Download-Size: 75.0 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.ch.debian.org/debian stretch/main amd64 Packages
Description: SNMP Plugins for nagios
A set of Nagios plugins to check hosts/devices using snmp protocol
.
The general idea of these scripts is to check as many things as possible with
snmp (how do you install NRPE on Cisco or AS/400 ?) : disks, memory, load,
interface, running procsses, etc...
.
The other idea is to select disks, interfaces, process using regular
expressions
N: There is 1 additional record. Please use the '-a' switch to see it```
The text was updated successfully, but these errors were encountered:
That's not possible with the way we escape shell arguments. Omitting the space between argument opts is somehow not within the spec for parsing command arguments.
In order to solve this, you'd have to create your own CheckCommand and only use the command array without arguments.
Not sure if that works though. Best is to ask on the community forums on how others solve that. For the ITL, we don't aim to fix this special behavior.
It would be great if the Icinga team could bring this up with the manubulon developers.
I just had a look at the source forge page and it looks like it's dead and your GitHub repository is the second hit on DuckDuckGo. Are you the maintainer and willing to fix this problem in the plugin if not in the ITL?
The -1 attribute is useful to monitor resource usage of transient processes. In our case there is a service that starts 2 processes periodically for imports, that could to crazy.
I'm not actively maintaining this project anymore as stated in its README - mainly due to time and resource issues, I cannot do everything. You can always bring this up at my repo, create issues, pull requests and even become a maintainer.
Describe the bug
I try to monitor a transient process.
And get the following error:
This is caused by
'-c' '-1,3' '-w' '-1,2'
.The correct form as stated by
check_snmp_process.pl -h
should be'-c-1,3' '-w-1,2'
and works on the command line. It would be great if the ITL could catch this.To Reproduce
Try to ignore missing process as documented at http://nagios.manubulon.com/snmp_process.html and
check_snmp_process.pl -h
- see config sniped above.Your Environment
icinga2 --version
): 2.11.2-1.stretch from http://packages.icinga.org/debian icinga-stretch/main amd64 Packagesapt show nagios-snmp-plugins
:The text was updated successfully, but these errors were encountered: