Rhel 5 false alerts on nagios core 4.4.5

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Rajagopal.d
Posts: 2
Joined: Thu Sep 24, 2020 7:36 am

Rhel 5 false alerts on nagios core 4.4.5

Post by Rajagopal.d »

Hi,

Can anyone help me with nagios check issue

Created shell script to monitor the root password expiry, The plugin working fine on the nrpe client server below is the output

Code: Select all

/usr/lib64/nagios/plugins/check_pwd_expire
WARNING: Days until root password expiry = 57
When i try to call the same nrpe command from the nagios server, its throwing a false alert in server as well as on nagios Dashboard

Below is the false output from nagios server (check_pwd is the nrpe command for above script)

Code: Select all

/usr/lib64/nagios/plugins/check_nrpe -H <HostName> -c check_pwd
OK: Days until root password expiry =
Can anyone help me to fix this issue

Thanks in advance
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Rhel 5 false alerts on nagios core 4.4.5

Post by gormank »

Are you testing the check as root or nagios? You may need to add it to a file in /etc/sudoers.d if it fails as nagios.
Rajagopal.d
Posts: 2
Joined: Thu Sep 24, 2020 7:36 am

Re: Rhel 5 false alerts on nagios core 4.4.5

Post by Rajagopal.d »

Hi Gormank,

Thanks, the issue is resolved now, i have added the nagios user in sudoers file. Its working fine now.

Thanks alot
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Rhel 5 false alerts on nagios core 4.4.5

Post by scottwilkerson »

Rajagopal.d wrote:Hi Gormank,

Thanks, the issue is resolved now, i have added the nagios user in sudoers file. Its working fine now.

Thanks alot
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked