[Nagiosplug-devel] plugin to check logged in user

Subhendu Ghosh sghosh at sghosh.org
Tue Jun 10 14:51:08 CEST 2003


On Tue, 10 Jun 2003, ramog wrote:

>  I created a small unix script to check if a user is currently "logged
> in" or "not logged in" in one console ( say, tty10) of one of the
> systems we're monitoring. Nagios is checking this using the nrpe plugin
> but only as information. Can anybody tell me if there is any plugin out
> there or any ideas to have Nagios check this script and would report to
> be critical if a "user" or an "account" is not currently log in and "OK"
> state if a "user" is currently log in.
> 
> Any help is greatly appreciated.... 
> 

Nagios will report state based on the "exit code" of the plugin.

See http://nagiosplug.sourceforge.net/ for developer guidelines

look at check_oracle for a sample shell plugin..

-- 
-sg





More information about the Devel mailing list