Nagiosはプラグインを利用することで、様々なリソースを柔軟に監視することが出来ます。

[root@test01 ~]# vi /usr/local/nagios/etc/objects/localhost.cfg

define service{
        use                             generic-service
        host_name                       localhost
        service_description             Current Users
        check_command                   check_local_users!3!5
        }

例えばcheck_local_usersというプラグインを利用することで、ログインユーザ数の監視を行なうことが出来ます。
「check_local_users!3!5」とは3ユーザー以上でwarning、5ユーザー以上でcriticalという意味です。

[root@test01 ~]# vi /usr/local/nagios/etc/objects/commands.cfg

define command{
        command_name    check_ntp
        command_line    $USER1$/check_ntp -H $ARG1$ -w $ARG2$ -c $ARG3$
        }

[root@test01 ~]# vi /usr/local/nagios/etc/objects/localhost.cfg

define service{
        use                             generic-service
        host_name                       localhost
        service_description             NTP
        check_command                   check_ntp!ntp.nict.jp!1!2
        }

また、check_ntpというプラグインを利用することで、時間の監視を行なうことが出来ます。
「check_ntp!ntp.nict.jp!1!2」とはntp.nict.jpというNTPサーバを参照し、1秒以上ずれていたらwarning、2秒以上ずれていたらcriticalという意味です。

[root@test01 ~]# vi /usr/local/nagios/etc/objects/commands.cfg

define command{
        command_name    check_ssh
        command_line    $USER1$/check_ssh -t $ARG1$ $HOSTADDRESS$
        }

[root@test01 ~]# vi /usr/local/nagios/etc/objects/localhost.cfg

define service{
        use                             generic-service
        host_name                       localhost
        service_description             SSH
        check_command                   check_ssh!2
        } 

また、SSHサービスの監視を行なうことも出来ます。
「check_ssh!2」とは2秒間SSH接続が出来なかった場合に警告があがります。