Project

General

Profile

Edit Actions

操作問い合わせ #1789

closed

Zabbix連携アイコンのエラーについて

Added by Anonymous almost 10 years ago. Updated over 4 years ago.

Status:
終了
Priority:
通常
Assignee:
-
Start date:
03/16/2015

Description

担当者どの

お世話になります。
最新版(2.1.0)をテスト導入し、動作検証を実施しております。
その中で、「Zabbix連携」アイコンを検証しようと、アイコンをドラッグ追加し、コンテキストメニューより"編集"を選択したところ、「データベース実行エラーが発生しました。システム管理者にご連絡ください。」とポップアップ画面が出ます。100%再現します。

データベース(PostgreSQL)のログには、以下のメッセージが出ています。
< 2015-03-16 11:54:46.153 JST >ERROR: 列hosts.flagsは存在しません(文字位置 273)
< 2015-03-16 11:54:46.153 JST >ステートメント: select groups.groupid, groups.name as group_name, hosts.hostid, hosts.host, '3' as permission from groups inner join hosts_groups on groups.groupid = hosts_groups.groupid inner join hosts on hosts_groups.hostid = hosts.hostid where (hosts.status=0 or hosts.status=1) and (hosts.flags=0 or hosts.flags=4) and groups.groupid = '1' order by host ASC

原因と対策について、ご教示ください。

環境は以下通りです。
JOBARG Server 2.1.0 / Agent 2.1.0 / Manager 2.1.0
PostgreSQL 9.3.2

※1.4.1からアップグレードしました。
※DBの更新は以下の通り実施し、特にエラーは出ませんでした。
psql -U zabbix zabbix < PostgreSQL_JA_UPGRADE_TABLE-1.4.1-1.4.2.sql
psql -U zabbix zabbix < PostgreSQL_JA_UPGRADE_TABLE-1.4.2-2.0.0.sql
psql -U zabbix zabbix < PostgreSQL_JA_UPGRADE_TABLE-2.0.0-2.1.0.sql

よろしくお願いします。

Updated by Anonymous almost 10 years ago

Zabbix Versionをご確認ください。

【対象ファイルパス】 C:\Program Files\FitechForce\Job Arranger Manager\conf
【対象ファイル】 jobarg_manager.conf
JaZabbixVersion

Zabbixのバージョンを指定します。パラメータ省略時は「zabbix 1.8系」となります。
1 - zabbix 1.8系
2 - zabbix 2.0系
3 - zabbix 2.2系

Updated by Anonymous almost 10 years ago

担当者どの

お世話になります。回答ありがとうございました。

ご指摘のパラメータについて、"3"となっていましたので、正しく"2"に修正したところ、「Zabbix連携アイコンの設定」画面まで開けるようになりました。
しかし、トリガーを選択し、ホスト名を選択すると、「予期せぬエラーが発生しました。システム管理者にご連絡ください。」のポップアップが出力されるホストがあります。正常に選択でき、トリガー名も選択できるホストもあります。

原因と対策について、ご教示ください。
トリガー数の制限などがありますでしょうか?

よろしくお願いします。

Updated by Anonymous almost 10 years ago

  • Status changed from 新規登録 to 受付完了

Job Arranger for Zabbixのご利用ありがとうございます。
お問い合わせの件を受付ました。

速やかな返信のためにサポート契約をご検討頂ければ幸甚です。
宜しくお願い致します

Updated by Anonymous almost 10 years ago

  • Status changed from 受付完了 to 回答中

しばらく時間を経てしまいまして恐縮です。

本件ですがまだ問合せ事象が解消していませんでしたら、
事象発生時のジョブマネージャーのLOGエラー状況を見せて頂けますか?
発生時の出力部分をテキストで張り付けてください。

よろしくお願いします。

Updated by Anonymous almost 10 years ago

担当者どの

お世話になります。ご連絡ありがとうございます。

メッセージは、以下の通りです。
よろしくお願いします。

2015-04-28 19:38:08.680688 T092276 予期せぬエラーが発生しました。システム管理者にご連絡ください。
2015-04-28 19:38:08.691688 System.FormatException:入力文字列の形式が正しくありません。
2015-04-28 19:38:08.693688 場所 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
場所 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
場所 jp.co.ftf.jobcontroller.JobController.Form.JobEdit.CooperationSetting.setcomboItemAndTrigger2(String selectedHostId)
場所 jp.co.ftf.jobcontroller.JobController.Form.JobEdit.CooperationSetting.combHostName_SelectionChanged(Object sender, SelectionChangedEventArgs e)
場所 System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
場所 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
場所 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
場所 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
場所 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
場所 System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
場所 System.Windows.Controls.ComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
場所 System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
場所 System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
場所 System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
場所 System.Windows.Controls.ComboBox.NotifyComboBoxItemMouseUp(ComboBoxItem comboBoxItem)
場所 System.Windows.Controls.ComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
場所 System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
場所 System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
場所 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
場所 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
場所 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
場所 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
場所 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
場所 System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
場所 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
場所 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
場所 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
場所 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
場所 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
場所 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
場所 System.Windows.Input.InputManager.ProcessStagingArea()
場所 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
場所 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
場所 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
場所 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
場所 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
場所 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
場所 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Updated by Anonymous almost 10 years ago

Zabbixのhostsテーブルのhostidカラムが文字コードになっているように見受けられます。
Hostsテーブルのhostidの文字列の形式をご確認お願いいたします。

Updated by Anonymous almost 10 years ago

担当者どの

お世話になります。ご回答ありがとうございます。

Zabbixのhostsテーブルのhostidカラムが文字コードになっているように見受けられます。

"文字コードになっている"とは、どういったことでしょうか?

Hostsテーブルのhostidの文字列の形式をご確認お願いいたします。

何を確認したら良いでしょうか?

hostsテーブルをダンプしてみましたが、hostidに問題はないように見受けられます。
因みに、hostidは内部で発番される番号で操作(編集)できないですよね?

以下がダンプ結果(抜粋)です。

hostid      proxy_hostid                    host                     status 
10084 vnk1172 0
10085 vnk5197 0
10108 hnk5087 0
10113 vnk1151 0

※vnk1172,vnk5197は、ホストを選択すると予期せぬエラーとなります。
 hnk5087,vnk1151は、正常に設定できます。
 他のカラムも含めて、特に差異は見受けられません。
 アイテム数、トリガー数なども、特に問題となるようなことは見受けられません。

よろしくお願いします。

Actions #8

Updated by Anonymous about 8 years ago

  • Status changed from 回答中 to 終了
Edit Actions

Also available in: Atom PDF