Solved FreeBSD11 nagios4 pkg doesn't install check_snmp

Hello -

I've installed a fresh FreeBSD11 and then nagios4 using pkg but it doesn't install the check_snmp plugin.


I've tried installing the following additional packages using pkg
nagios-snmp-plugins
nagios-snmp-plugins-extras

But still no check_snmp plugin under /usr/local/libexec/nagios

I read somewhere you need net-snmp installed before installing nagios4 so I started from scratch and installed net-snmp first then nagios4 but no joy.

Doesn't anyone have any suggestions on what to try now.

Cheers
Matt
 
Check the files that are installed with net-mgmt/nagios-snmp-plugins: https://svnweb.freebsd.org/ports/he...plugins/pkg-plist?revision=411020&view=markup

Note the files:
Code:
libexec/nagios/check_snmp_disk
libexec/nagios/check_snmp_load
libexec/nagios/check_snmp_proc
libexec/nagios/check_snmp_swap

I read somewhere you need net-snmp installed before installing nagios4 so I started from scratch and installed net-snmp first then nagios4 but no joy.
If something is required by a port it will automatically be installed.
 
Thanks for your replies.

Yes I have tried installing the following using pkg
snmp4nagios
nagios-snmp-plugins
nagios-snmp-plugins-extras
nagios-check_netsnmp

Still no check_snmp

By all accounts it seems check_snmp is part of nagios-plugins which installs automatically when I install nagios4

If I look in the pkg-plist check_snmp is listed but it has %%NETSNMP%% prepended
https://svnweb.freebsd.org/ports/head/net-mgmt/nagios-plugins/pkg-plist?revision=376834&view=markup

Does anyone know the significance of the %%NETSNMP%% prepend? Is it saying I need to set a variable NETSNMP to something before I run pkg install [package]?
 
If I look in the pkg-plist check_snmp is listed but it has %%NETSNMP%% prepended
https://svnweb.freebsd.org/ports/head/net-mgmt/nagios-plugins/pkg-plist?revision=376834&view=markup

Does anyone know the significance of the %%NETSNMP%% prepend? Is it saying I need to set a variable NETSNMP to something before I run pkg install [package]?
To answer your question, it corresponds to checking the box when choosing options for "SNMP support (check_snmp)".

However as you installed a package, you don't get to choose those options and by default SNMP is off. You'll need to install from ports, so you can choose the options you want.
 

Attachments

  • nagios-plugins-options.png
    nagios-plugins-options.png
    90.8 KB · Views: 767
Back
Top