Giter Site home page Giter Site logo

nems-plugins's People

Contributors

deece avatar nemslinux avatar

Watchers

 avatar

Forkers

deece

nems-plugins's Issues

Unsupported Characters in Passwords

When utilizing the check_win_xxx commands if the account password utilized for WMI has a ")" or "(" in it, it throws the error: "(No output on stdout) stderr: /bin/sh: 1: Syntax error: "(" unexpected"

check_dhtxx missing GPIO info

when check_dhtxx is used NEMS returns error: (Service check timed out after 120.09 seconds)

Command executed: /usr/lib/nagios/plugins/check_dhtxx 35 40 75 80 temp

Looking at check_dhtxx I see lines 13 and 15 are calling nems-info but are failing to pass a second argument which specify which GPIO pin is in use. nems-info doesn't have a default value for the GPIO pin so the command eventually times out.

line 13: $dht = json_decode(shell_exec('/usr/local/bin/nems-info dht22'));

needs to be changed to: $dht = json_decode(shell_exec('/usr/local/bin/nems-info dht22 18'));

or ideally NConf should prompt for GPIO pin and pass it as an argument to check_dhtxx.

Check_SNMP ---rate path doesn't exists

Nems Linux version
1.6

Platform
Raspberry Pi 3B+ (but I'll guess any platform has this)

Priority
Low - workaround available

Description:
I want to use the --rate option in check_snmp, this feature writes a small text file of the last state and next time it runs it shows the difference between the last value and the new value, like old value is 100 and the new value is 80 the result will be -20%.

Issue
Check_SNMP by default wants to create the folders in /usr/var/1001/check_snmp and create text files here, to remember the last state of the service. This path doesn't exist, and permissions are not set to correctly to create the files. But as the /usr folder is not very much in use, I guess you might want to configure it to set to the correct destination, but that's up to you.

Workaround
Create the needed folders and set the correct permissions so the plugin can create the necessary files.

Issue with check_esxi_hardware in 1.6 (RasPi)

It looks like check_esxi_hardware requires python3 but when it is running, it is using python 2.

 user@nems:/usr/lib/nagios/plugins $ python check_esxi_hardware.py
 Traceback (most recent call last):
   File "check_esxi_hardware.py", line 267, in <module>
     import pywbem
 ImportError: No module named pywbem

 user@nems:/usr/lib/nagios/plugins $ python3 check_esxi_hardware.py
 no parameters specified

  Usage: check_esxi_hardware.py -H hostname -U username -P password [-C port -V system -v -p -I XX]
 ...

 user@nems:/usr/lib/nagios/plugins $ which python
 /usr/bin/python

 user@nems:/usr/lib/nagios/plugins $ /usr/bin/python --version
 Python 2.7.18

I can run it using python3 manually and it works fine.

Issue with NEMS 1.6 check_win_desk and check_win_mem

when trying to use check_win_desk and check_win_mem I am getting the following error.

(No output on stdout) stderr: Can't locate Number/Format.pm in @inc (you may need to install the Number::Format module) (@inc contains: /usr/lib64/nagios/plugins /usr/lib/nagios/plugins /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at /usr/lib/nagios/plugins/check_wmi_plus.pl line 54.

BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/check_wmi_plus.pl line 54.

DHT Sensors not working as of 2023-08.

Adafruit has deprecated the Adafruit Python DHT Sensor Library and replaced it with the Adafruit CircuitPython DHT Library leaving DHT sensors unable to be detected on modern NEMS Servers.

Reported by Enzo_Sous_Lean on Discord.

Configure custom Repeat messages

Currently when a service/host is Down, the repeating messages are identical to the initial alert message.
It would be nice to distinguish the repeat messages from new alert messages.

Would also be nice if the new plugin is compatible with plain Nagios, for those who don't run Nems.
Just thinking this last part out loud, may the idea fall where it may. :-)

Problem with Check command for IBM i.

As per: NEMSLinux/nems-admin#8

ChrisHird commented on Jul 21, 2021
Does not run, the following is the output.
Problem with the check_ibmi_disk. cannot find the class.
(No output on stdout) stderr: java.lang.ClassNotFoundException: com.ibm.nagios.service.impl.DiskUtiliz
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.ibm.nagios.util.ActionFactory.get(ActionFactory.java:13)
at com.ibm.nagios.client.CheckIBMiStatus.main(CheckIBMiStatus.java:49)
java.lang.NullPointerException
at com.ibm.nagios.client.CheckIBMiStatus.main(CheckIBMiStatus.java:73)

NEMSLinux commented on Jan 3, 2023
Noting your post here for future review: IBM/nagios-for-i#17

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.