>grep -i 'nag' /etc/group
nagios

501:nagios
nagcmd

502:nagios,apache
>ls -lv /usr/local/nagios/sbin
-rwxrwxr-x 1 nagios nagios 244832 Sep 5 19:24 avail.cgi
-rwxrwxr-x 1 nagios nagios 239352 Sep 5 19:24 cmd.cgi
-rwxrwxr-x 1 nagios nagios 211992 Sep 5 19:24 config.cgi
-rwxrwxr-x 1 nagios nagios 252992 Sep 5 19:24 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 208152 Sep 5 19:24 histogram.cgi
-rwxrwxr-x 1 nagios nagios 187464 Sep 5 19:24 history.cgi
-rwxrwxr-x 1 nagios nagios 183344 Sep 5 19:24 notifications.cgi
-rwxrwxr-x 1 nagios nagios 179216 Sep 5 19:24 outages.cgi
-rwxrwxr-x 1 nagios nagios 179728 Sep 5 19:24 showlog.cgi
-rwxrwxr-x 1 nagios nagios 244992 Sep 5 19:24 status.cgi
-rwxrwxr-x 1 nagios nagios 204128 Sep 5 19:24 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 199776 Sep 5 19:24 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 183376 Sep 5 19:24 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 204480 Sep 5 19:24 summary.cgi
-rwxrwxr-x 1 nagios nagios 195688 Sep 5 19:24 tac.cgi
-rwxrwxr-x 1 nagios nagios 212256 Sep 5 19:24 trends.cgi
>ls -lv /usr/local/nagios/share
-rw-rw-r-- 1 nagios nagios 576 Sep 5 19:24 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Sep 5 19:24 contexthelp
drwxrwxr-x 3 nagios nagios 4096 Sep 5 19:24 docs
drwxrwxr-x 3 nagios nagios 4096 Sep 5 19:24 images
drwxrwxr-x 2 nagios nagios 4096 Sep 5 19:24 includes
-rw-rw-r-- 1 nagios nagios 1440 Sep 5 19:24 index.php
drwxr-xr-x 4 root root 4096 Sep 5 19:37 locale
-rw-rw-r-- 1 nagios nagios 3440 Sep 5 19:24 main.php
drwxrwxr-x 2 nagios nagios 4096 Sep 5 19:24 media
-rw-rw-r-- 1 nagios nagios 26 Sep 5 19:24 robots.txt
-rw-rw-r-- 1 nagios nagios 5714 Sep 5 19:24 side.php
drwxrwxr-x 2 nagios nagios 4096 Sep 5 19:24 ssi
drwxrwxr-x 2 nagios nagios 4096 Sep 5 19:24 stylesheets
>tail -n 20 /usr/local/nagios/var/nagios.log
[1378824422] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378824422] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 14:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378825782] Auto-save of retention data completed successfully.
[1378828022] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378828022] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 15:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378829382] Auto-save of retention data completed successfully.
[1378831622] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378831622] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 16:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378832982] Auto-save of retention data completed successfully.
[1378835222] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378835222] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 17:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378836582] Auto-save of retention data completed successfully.
[1378838822] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378838822] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 18:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378840182] Auto-save of retention data completed successfully.
[1378842422] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378842422] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 19:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1378843782] Auto-save of retention data completed successfully.
[1378846022] SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
[1378846022] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 20:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
>tail -n 20 /var/log/messages
Sep 10 14:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 14:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 15:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 15:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 15:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 15:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 16:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 16:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 16:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 16:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 17:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 17:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 17:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 17:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 18:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 18:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 18:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 18:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 19:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 19:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 19:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 19:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 20:09:42 ip-10-224-12-200 nagios: Auto-save of retention data completed successfully.
Sep 10 20:47:02 ip-10-224-12-200 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Swap Usage;CRITICAL;notify-service-by-email;SWAP CRITICAL - 100% free (0 MB out of 0 MB)
Sep 10 20:47:02 ip-10-224-12-200 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Swap Usage\nHost: localhost\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Tue Sept 10 20:47:02 UTC 2013\n\nAdditional Info:\n\nSWAP CRITICAL - 100% free (0 MB out of 0 MB)\n" | /bin/mail -s "** PROBLEM Service Alert: localhost/Swap Usage is CRITICAL **"
[email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Sep 10 20:50:06 ip-10-224-12-200 auditd[1049]: Audit daemon rotating log files
#not sure if it's relevant, but I had to do the last command as the root user.