It appears as though you do not have permission to view the log file di Nagios3

Masalah ini terjadi setelah saya berhasil login ke Nagios3, namun tidak diberikan izin untuk mengakses log file dan fitur2 yang ada di Nagios. Jika masalah ini terjadi maka akan terlihat seperti hasil screenshot berikut ini:
error permission

Mungkin ada yang bertanya, mengapa hal ini terjadi? Jawabannya adalah karena pada nagios3 user defaultnya adalah nagiosadmin namun ketika menyeting password untuk user saya udah ganti usernya menjadi abrao sehingga bukan nagiosadmin lagi. Hasil screenshotnya seperti ini:
nagios3

Untuk  bisa mengakses file log, saya harus edit file cgi.cfg  yang ada di /etc/nagios3:

# SYSTEM/PROCESS INFORMATION ACCESS
authorized_for_system_information=nagiosadmin

# CONFIGURATION INFORMATION ACCESS
authorized_for_configuration_information=nagiosadmin

# SYSTEM/PROCESS COMMAND ACCESS
authorized_for_system_commands=nagiosadmin

# GLOBAL HOST/SERVICE VIEW ACCESS
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin

# GLOBAL HOST/SERVICE COMMAND ACCESS
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin

Menjadi

# SYSTEM/PROCESS INFORMATION ACCESS
authorized_for_system_information=abrao

# CONFIGURATION INFORMATION ACCESS
authorized_for_configuration_information=abrao

# SYSTEM/PROCESS COMMAND ACCESS
authorized_for_system_commands=abrao

# GLOBAL HOST/SERVICE VIEW ACCESS
authorized_for_all_services=abrao
authorized_for_all_hosts=abrao

# GLOBAL HOST/SERVICE COMMAND ACCESS
authorized_for_all_service_commands=abrao
authorized_for_all_host_commands=abrao

kalau sudah selesai maka hasilnya akan terlihat seperti pada screenshot berikut:
hasil nagios3

Sumber:
http://cyruslab.net
http://linuxindetails.wordpress.com

This entry was posted in LINUX, SECURITY, Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s