Finding locked accounts.
Posted: Mon Oct 03, 2016 3:12 pm
Anyone have any ideas on best/easiest way to check for any locked accounts on Linux? red hat 5/6 specifically
I see this one out there :
https://exchange.nagios.org/directory/P ... expiration
But that gives me:
So not sure if I can use that with NagiosXI or not.
Yes it seems that module is there though ..
[root@apmnp002 ~]# find / -type f -name Plugin.pm
/usr/local/share/perl5/Nagios/Monitoring/Plugin.pm
Although:
[root@apmnp002 ~]# rpm -qa | grep -i perl-Nagios-Plugin
[root@apmnp002 ~]#
[root@apmnp002 ~]#
[root@apmnp002 ~]# yum search perl-Nagios-Plugin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: lug.mtu.edu
* epel: mirror.steadfast.net
* extras: ftp.linux.ncsu.edu
* rpmforge: mirror1.hs-esslingen.de
* updates: mirrors.arsc.edu
============================================================== N/S Matched: perl-Nagios-Plugin ===============================================================
perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
perl-Nagios-Plugin-WWW-Mechanize.noarch : Login to a web page as a user and get data as a Nagios plugin
So do I need to install that? will it work with NagiosXI ?
Thanks!
I see this one out there :
https://exchange.nagios.org/directory/P ... expiration
But that gives me:
Code: Select all
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_passwd_expiration.pl line 18.
BEGIN failed--compilation aborted at ./check_passwd_expiration.pl line 18.
Yes it seems that module is there though ..
[root@apmnp002 ~]# find / -type f -name Plugin.pm
/usr/local/share/perl5/Nagios/Monitoring/Plugin.pm
Although:
[root@apmnp002 ~]# rpm -qa | grep -i perl-Nagios-Plugin
[root@apmnp002 ~]#
[root@apmnp002 ~]#
[root@apmnp002 ~]# yum search perl-Nagios-Plugin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: lug.mtu.edu
* epel: mirror.steadfast.net
* extras: ftp.linux.ncsu.edu
* rpmforge: mirror1.hs-esslingen.de
* updates: mirrors.arsc.edu
============================================================== N/S Matched: perl-Nagios-Plugin ===============================================================
perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
perl-Nagios-Plugin-WWW-Mechanize.noarch : Login to a web page as a user and get data as a Nagios plugin
So do I need to install that? will it work with NagiosXI ?
Thanks!