Page 1 of 1

Rhel 5 false alerts on nagios core 4.4.5

Posted: Thu Sep 24, 2020 8:13 am
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

Re: Rhel 5 false alerts on nagios core 4.4.5

Posted: Thu Sep 24, 2020 12:20 pm
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.

Re: Rhel 5 false alerts on nagios core 4.4.5

Posted: Fri Sep 25, 2020 8:16 am
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

Re: Rhel 5 false alerts on nagios core 4.4.5

Posted: Fri Sep 25, 2020 8:27 am
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