Megint Nagios :)

Fórumok

Sziasztok!

Lenne egy kis gondom Nagios nyomtató beüzemelésnél... a ping megy de a Printer Status:

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_hpjd, ...) failed. errno is 2: No such file or directory

 

A rendszer frissen telepítettett

 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

A nagiost így telepítettem
https://computingforgeeks.com/install-and-configure-nagios-on-debian-10…

A modulok: nagios-plugins-2.4.2.tar.gz

A modulokat telepítettem rootként

cd nagios-plugins-$VER

./configure --with-nagios-user=nagios --with-nagios-group=nagios 

make

make install

És a libexec-ből hiányzik a check_hpjd...

Megnéztem a check_hpjd.c ott van, csak nem fordul le... Tud valaki tanácsot adni?

Hozzászólások

Most sikerült lefordítani a check_hpjd-t de ez a hiba:

Igaz ez egy xerox 7830 nyomtató... 

snmpwalk -v 2c  -c public 192.168.1.xxx működik...

Printer Status
CRITICAL 11-18-2022 07:44:06 1d 18h 32m 45s 3/3 Error in packet : Timeout from host 192.168.1.129 

Egyáltalán magában a printerben engedélyezve van az SNMP publc lekérdezés? Ha igen milyen verzión ? v1/2 vagy v3 , stb ?

ps.: jah közben látom hogy snmpwalk az megy konzolból, akkor esetleg a nagios pluginba szétnézni hogy milyen verzióval akarja megszólítani ? Bár a HP nem is biztos hogy SNMP-n szólogatja a saját vackait ..

ps2.: bár pluginbe belenézve SNMP-n át akar beszélgetni .. ugyan arról a gépről futtattad le az snmpwalkot amiről et a hpigj* nagios is futna ? Esetleg selinux/apparmor/vagy bármi egyéb nem játszik ami megfogja magát ezt a plugint hogy egyáltalán ellásson a 161-es snmp portra ?

Szerkesztve: 2022. 11. 22., k – 18:46

REQUIREMENTS file reszlet:

Nagios Plugin Requirements
--------------------------

Some plugins require that you have additional programs and/or
libraries installed on your system before they can be used.  Plugins
that are dependent on other programs/libraries that are missing are
usually not compiled.  Requirements for various plugins are listed
below...

...

check_hpjd:
    - Requires the NET-SNMP package available from
      http://net-snmp.sourceforge.net/
      The snmpget binary is all that is required.

szerk:

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/mon…

The check_hpjd plugin will only get compiled and installed if you have the net-snmp and net-snmp-utils packages installed on your system. Make sure the plugin exists in /usr/local/nagios/libexec before you continue. If it doesn't, install net-snmp and net-snmp-utils and recompile/reinstall the Nagios plugins.