check_users: list the users?

Hari Sekhon hpsekhon at googlemail.com
Fri Apr 18 10:22:55 CEST 2008


Jay R. Ashworth wrote:
> I've just installed Nagios 3 and begun to configure it for my network
> (25ish servers, all but 2 running Linux, 250ish workstations, all but
> about 25 running Ubuntu), and after slogging through "SSL error" on
> check_nrpe -- which means about 3 different things having nothing to do
> with SSL -- and the ever popular "audio embeds *aren't*
> application/wav; they're audio/x-wav, just ask my mime.types file"
> problems, I'm now up to the possibly uncommon way I want to use
> check_users...
>
> I'm setting check_users (via nrpe) to warn at 1 and CRIT at 3 users --
> I'm putting this on servers that, typically, have no humans logged in
> at all.
>
> Since that's true, I'd like to have the list of users from who -q
> returned as part of the status message.
>
> a) Is this a not uncommon usage, and when I patch the program, should I
> therefore post and or submit a patch to do this?
>
> b) How long can that status message become without breaking 1) nagios
> and 2) nrpe?
>
> Anyone have opinions, answers, or pointers?
>
> Cheers,
> -- jra
>   
See my show_users plugin on nagiosexchange.org, it's written in bash so 
will work on all Linux boxen as well as FreeBSD or any other unicies 
that you can install Bash on.

It can take whitelists/blacklists of users, (I recommend the whitelist) 
which I use to successfully catch developers or anyone else logging in 
to any of my *nix servers that aren't on my shortlist.

You can find it here:

http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1415.html

-h

-- 
Hari Sekhon


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list