Nagstamon 没有显示在 Ubuntu 12.04 中?

Nagstamon 没有显示在 Ubuntu 12.04 中?

nagstamon我正在尝试在 Ubuntu 12.04 上完成这项工作,但在设置我的设置后credentials only,我保留默认设置,它没有在任何地方显示。我确定它正在运行,因为它向ps aux | grep nagstamon我显示了正在运行的内容以及当某些状态发生变化时它发出的声音。

知道如何修复这个问题吗?

答案1

对于那些也遇到这个问题的人,我可以通过.nagstamon.conf从机器上获取centOS并改变来解决这个username问题password

因此,要解决这个问题,请像平常一样将 放在 的第一个屏幕上,然后点击settingscredentials它不会打开,对吗?nagstamonOK

现在将字段usernamepassword、、以及configfile类似的内容复制并粘贴到某处:debug_fileapp_ssh_options

username = eJwFwdEOaiAUANWP6iTEWfmo4VVg11NlL .. // and go on
password = aJwdawadsfcaErfdEtqWfdffaere .. // and go on
configfile = /home/username/.nagstamon.conf
debug_file = /home/username/nagstamon.log
app_ssh_options = -l username

现在,终止该进程:

ps aux | grep nagstamon

.nagstamon.conf在您的主文件夹中创建一个新文件。

vim ~/.nagstamon.conf
chmod 664 ~/.nagstamon.conf

现在复制并粘贴下面的配置并替换上面提到的字段:

[Nagstamon]
connect_by_dns_yes = False
color_down_text = #ffffffffffff
notify_if_unreachable = True
statusbar_systray = False
app_ssh_bin = /usr/bin/gnome-terminal -x ssh
color_ok_background = #000064640000
filter_services_on_hosts_in_maintenance = False
default_color_ok_text = #FFFFFF
color_warning_text = #000000000000
update_interval = 1
color_unknown_text = #000000000000
default_color_warning_text = #000000
notification_custom_sound_warning = None
long_display = False
filter_acknowledged_hosts_services = False
color_unknown_background = #ffffa5a50000
debug_mode = False
notify_if_warning = True
filter_services_on_down_hosts = False
notify_if_unknown = True
default_color_critical_background = #FF0000
color_critical_background = #ffff00000000
notification_custom_sound = False
color_critical_text = #ffffffffffff
configfile = /home/<replace>/.nagstamon.conf
notification_sound = True
notification = True
debug_to_file = False
filter_hosts_services_disabled_notifications = False
filter_services_on_acknowledged_hosts = False
default_color_critical_text = #FFFFFF
notify_if_down = True
notify_if_critical = True
popup_details_hover = False
re_service_reverse = False
show_grid = True
re_service_pattern = 
default_color_error_text = #000000
debug_file = /home/<replace>/nagstamon.log
app_rdp_options = -g 1024x768
color_warning_background = #ffffffff0000
unconfigured = False
color_unreachable_background = #8b8b00000000
default_color_unreachable_text = #FFFFFF
notification_custom_sound_critical = None
re_service_enabled = True
default_color_down_background = #000000
default_color_down_text = #FFFFFF
filter_hosts_services_maintenance = False
filter_services_on_unreachable_hosts = False
filter_all_warning_services = False
filter_all_unreachable_hosts = False
default_color_warning_background = #FFFF00
filter_all_down_hosts = False
re_host_reverse = False
color_ok_text = #ffffffffffff
popup_details_clicking = True
re_host_enabled = False
short_display = True
app_vnc_bin = /usr/bin/vncviewer
check_for_new_version = False
re_host_pattern = 
position_y = 4
default_color_ok_background = #006400
position_x = 2164
default_color_unknown_background = #FFA500
notification_default_sound = True
app_ssh_options = -l <replace>
color_error_text = #000000000000
default_color_unknown_text = #000000
filter_all_unknown_services = False
icon_in_systray = False
default_color_error_background = #D3D3D3
default_color_unreachable_background = #8B0000
color_unreachable_text = #ffffffffffff
statusbar_floating = True
notification_custom_sound_down = None
color_error_background = #d3d3d3d3d3d3
notification_flashing = True
filter_hosts_services_disabled_checks = False
app_rdp_bin = /usr/bin/rdesktop
notification_sound_repeat = False
color_down_background = #000000000000
filter_all_critical_services = False
filter_services_in_soft_state = False
connect_by_dns_no = True
app_vnc_options = 
[Server_Default]
username = <replace>
use_proxy = False
name = Default
nagios_cgi_url = <replace>
enabled = True
nagios_url = <replace>
proxy_password = <replace>
save_password = True
proxy_username = <replace>
proxy_address = http://proxy:port/
password = <replace>
type = Nagios
use_proxy_from_os = False

如果还有任何疑问,我会把它放在.nagstamon.conf下面,这样你就能看到它应该是什么样子:

    [Nagstamon]
connect_by_dns_yes = False
color_down_text = #ffffffffffff
notify_if_unreachable = True
statusbar_systray = False
app_ssh_bin = /usr/bin/gnome-terminal -x ssh
color_ok_background = #000064640000
filter_services_on_hosts_in_maintenance = False
default_color_ok_text = #FFFFFF
color_warning_text = #000000000000
update_interval = 1
color_unknown_text = #000000000000
default_color_warning_text = #000000
notification_custom_sound_warning = None
long_display = False
filter_acknowledged_hosts_services = False
color_unknown_background = #ffffa5a50000
debug_mode = False
notify_if_warning = True
filter_services_on_down_hosts = False
notify_if_unknown = True
default_color_critical_background = #FF0000
color_critical_background = #ffff00000000
notification_custom_sound = False
color_critical_text = #ffffffffffff
configfile = /home/valter.silva/.nagstamon.conf
notification_sound = True
notification = True
debug_to_file = False
filter_hosts_services_disabled_notifications = False
filter_services_on_acknowledged_hosts = False
default_color_critical_text = #FFFFFF
notify_if_down = True
notify_if_critical = True
popup_details_hover = False
re_service_reverse = False
show_grid = True
re_service_pattern = ^OPS
default_color_error_text = #000000
debug_file = /home/valter.silva/nagstamon.log
app_rdp_options = -g 1024x768
color_warning_background = #ffffffff0000
unconfigured = False
color_unreachable_background = #8b8b00000000
default_color_unreachable_text = #FFFFFF
notification_custom_sound_critical = None
re_service_enabled = True
default_color_down_background = #000000
default_color_down_text = #FFFFFF
filter_hosts_services_maintenance = False
filter_services_on_unreachable_hosts = False
filter_all_warning_services = False
filter_all_unreachable_hosts = False
default_color_warning_background = #FFFF00
filter_all_down_hosts = False
re_host_reverse = False
color_ok_text = #ffffffffffff
popup_details_clicking = True
re_host_enabled = False
short_display = True
app_vnc_bin = /usr/bin/vncviewer
check_for_new_version = False
re_host_pattern = 
position_y = 4
default_color_ok_background = #006400
position_x = 2164
default_color_unknown_background = #FFA500
notification_default_sound = True
app_ssh_options = -l valter.silva
color_error_text = #000000000000
default_color_unknown_text = #000000
filter_all_unknown_services = False
icon_in_systray = False
default_color_error_background = #D3D3D3
default_color_unreachable_background = #8B0000
color_unreachable_text = #ffffffffffff
statusbar_floating = True
notification_custom_sound_down = None
color_error_background = #d3d3d3d3d3d3
notification_flashing = True
filter_hosts_services_disabled_checks = False
app_rdp_bin = /usr/bin/rdesktop
notification_sound_repeat = False
color_down_background = #000000000000
filter_all_critical_services = False
filter_services_in_soft_state = False
connect_by_dns_no = True
app_vnc_options = 
[Server_Default]
username = MG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYN=
use_proxy = False
name = Default
nagios_cgi_url = http://nagios.company.com/nagios/cgi-bin
enabled = True
nagios_url = http://nagios.company.com
proxy_password = MG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYN/f0C8W
save_password = True
proxy_username = MG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYN==
proxy_address = http://proxy:port/
password = MG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYNMG24QxTk8TYN ==
type = Nagios
use_proxy_from_os = False

答案2

那里是一个新的稳定版本,具有额外的 Ubuntu Unity 支持。

相关内容