I need to create a bunch of dashboards and would like to know where whatever defines a dashboard is saved. Ideally I'd like to automate defining them since the ones I'm creating are very similar.
I've been looking at docs and searching the internet, but nothing seems discuss anything other than pointing and clicking to define them.
Nagios XI dashboard definition location?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI dashboard definition location?
There is no way to easily do this, these are stored in the nagiosxi db in the xi_usermeta table with a keyname 'dashboards' for each user whereas the keyvalue is a serialized array that contains all the dashboards for a particual user.... For example a user with just a couple dashboards would have the following in the keyvalue field:gormank wrote:I need to create a bunch of dashboards and would like to know where whatever defines a dashboard is saved. Ideally I'd like to automate defining them since the ones I'm creating are very similar.
I've been looking at docs and searching the internet, but nothing seems discuss anything other than pointing and clicking to define them.
Code: Select all
a:8:{i:0;a:4:{s:2:"id";s:4:"home";s:5:"title";s:9:"Home Page";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:8:{i:1;a:5:{s:2:"id";s:8:"t70nntm8";s:4:"name";s:19:"xicore_server_stats";s:5:"t
itle";s:12:"Server Stats";s:4:"opts";a:7:{s:3:"top";s:2:"22";s:4:"left";s:3:"774";s:6:"zindex";s:2:"26";s:6:"pinned";i:1;s:6:"height";i:503;s:5:"width";i:286;s:9:"showtitle";i:1;}s:4:"args";a:0:{}}i:8;a:5:{s:
2:"id";s:8:"jfrc3euk";s:4:"name";s:29:"xicore_service_status_summary";s:5:"title";s:22:"Service Status Summary";s:4:"opts";a:6:{s:4:"left";s:3:"361";s:3:"top";s:2:"32";s:6:"zindex";s:2:"25";s:6:"pinned";i:1;s
:6:"height";i:176;s:5:"width";i:307;}s:4:"args";a:9:{s:4:"host";s:0:"";s:9:"hostgroup";s:0:"";s:12:"servicegroup";s:0:"";s:8:"hostattr";i:0;s:11:"serviceattr";i:0;s:15:"hoststatustypes";i:0;s:18:"servicestatu
stypes";i:0;s:4:"show";s:5:"hosts";s:3:"nsp";s:32:"6b5864a8a1423bf2d54764e2dfe148e3";}}i:9;a:5:{s:2:"id";s:8:"8r6tg89i";s:4:"name";s:26:"xicore_host_status_summary";s:5:"title";s:19:"Host Status Summary";s:4:
"opts";a:6:{s:4:"left";s:2:"16";s:3:"top";s:3:"554";s:6:"zindex";s:1:"6";s:6:"pinned";i:0;s:6:"height";i:173;s:5:"width";i:263;}s:4:"args";a:9:{s:4:"host";s:0:"";s:9:"hostgroup";s:0:"";s:12:"servicegroup";s:0
:"";s:8:"hostattr";i:0;s:11:"serviceattr";i:0;s:15:"hoststatustypes";i:0;s:18:"servicestatustypes";i:0;s:4:"show";s:5:"hosts";s:3:"nsp";s:32:"6b5864a8a1423bf2d54764e2dfe148e3";}}i:11;a:5:{s:2:"id";s:8:"is90es
no";s:4:"name";s:21:"xicore_perfdata_chart";s:5:"title";s:22:"localhost Current Load";s:4:"opts";a:7:{s:4:"left";s:3:"858";s:3:"top";s:3:"553";s:6:"zindex";s:2:"14";s:6:"pinned";i:0;s:6:"height";i:224;s:5:"wi
dth";i:580;s:9:"showtitle";i:0;}s:4:"args";a:10:{s:8:"hostname";s:9:"localhost";s:11:"servicename";s:12:"Current Load";s:10:"service_id";s:2:"85";s:6:"source";s:1:"1";s:10:"sourcename";s:3:"ds1";s:14:"sourcet
emplate";s:16:"check_local_load";s:4:"view";s:1:"2";s:5:"width";s:3:"250";s:4:"mode";s:1:"3";s:3:"nsp";s:32:"aa31e06cb41b30c153e9cdcc0aa73e5e";}}i:12;a:5:{s:2:"id";s:8:"QaCuVAMp";s:4:"name";s:29:"xicore_servi
ce_status_summary";s:5:"title";s:22:"Service Status Summary";s:4:"opts";a:5:{s:5:"width";i:300;s:6:"height";i:165;s:4:"left";s:4:"1090";s:3:"top";s:2:"60";s:6:"zindex";s:1:"9";}s:4:"args";a:1:{s:3:"nsp";s:64:
"e112e95e6b088284cdb4431aec7eb4e8551400bc632ed30bb2a1f759268fd266";}}i:13;a:5:{s:2:"id";s:8:"s4B04KVR";s:4:"name";s:26:"xicore_host_status_summary";s:5:"title";s:19:"Host Status Summary";s:4:"opts";a:5:{s:5:"
width";s:3:"250";s:6:"height";s:3:"125";s:4:"left";s:3:"520";s:3:"top";s:3:"600";s:6:"zindex";s:2:"14";}s:4:"args";a:9:{s:4:"host";s:0:"";s:9:"hostgroup";s:0:"";s:12:"servicegroup";s:0:"";s:8:"hostattr";s:1:"
0";s:11:"serviceattr";s:1:"0";s:15:"hoststatustypes";s:1:"0";s:18:"servicestatustypes";s:1:"0";s:4:"show";s:8:"services";s:3:"nsp";s:64:"d64b14d675b63eda672b9ba9a4ca74fc9c945475eeb5b349489b4df43f9d0abe";}}i:1
4;a:5:{s:2:"id";s:8:"H0sNIks3";s:4:"name";s:6:"gauges";s:5:"title";s:13:"Gauge Dashlet";s:4:"opts";a:5:{s:5:"width";s:3:"120";s:6:"height";s:3:"180";s:4:"left";s:3:"450";s:3:"top";s:3:"360";s:6:"zindex";s:2:"
14";}s:4:"args";a:4:{s:4:"host";s:0:"";s:7:"service";s:0:"";s:2:"ds";s:0:"";s:3:"nsp";s:64:"d64b14d675b63eda672b9ba9a4ca74fc9c945475eeb5b349489b4df43f9d0abe";}}i:15;a:5:{s:2:"id";s:8:"Tm634Wpf";s:4:"name";s:3
2:"xicore_hostgroup_status_overview";s:5:"title";s:25:"Hostgroup Status Overview";s:4:"opts";a:5:{s:5:"width";i:390;s:6:"height";i:125;s:4:"left";s:2:"10";s:3:"top";s:1:"0";s:6:"zindex";s:2:"14";}s:4:"args";a
:4:{s:9:"hostgroup";s:13:"linux-servers";s:15:"hostgroup_alias";s:13:"Linux Servers";s:5:"style";s:8:"overview";s:3:"nsp";s:64:"79383c9731695162c16fffb862ee8ed26dd0b8e30f3fd75d5b7bb586605414bb";}}}}i:1;a:4:{s
:2:"id";s:8:"d7mccig7";s:5:"title";s:15:"Empty Dashboard";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:0:{}}i:2;a:4:{s:2:"id";s:6:"screen";s:5:"title";s:10:"[ Screen ]";s:4:"opts";N;s:8:"d
ashlets";a:0:{}}i:3;a:4:{s:2:"id";s:8:"rlE7U0b4";s:5:"title";s:6:"server";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:2:{i:0;a:5:{s:2:"id";s:8:"GhQUW2tc";s:4:"name";s:26:"xicore_host_stat
us_summary";s:5:"title";s:19:"Host Status Summary";s:4:"opts";a:5:{s:5:"width";i:370;s:6:"height";i:165;s:4:"left";i:30;s:3:"top";i:30;s:6:"zindex";s:1:"1";}s:4:"args";a:1:{s:3:"nsp";s:64:"2f91ad1f601246a97e2
4468a3a95b7a5260823ed8c069a5d8358a2c48e87400d";}}i:1;a:5:{s:2:"id";s:8:"4mOiVIFG";s:4:"name";s:12:"availability";s:5:"title";s:18:"Availability Graph";s:4:"opts";a:5:{s:5:"width";s:3:"400";s:6:"height";s:3:"3
00";s:4:"left";s:3:"440";s:3:"top";s:2:"30";s:6:"zindex";s:1:"3";}s:4:"args";a:9:{s:8:"dashtype";s:8:"hostdata";s:9:"startdate";s:0:"";s:7:"enddate";s:0:"";s:12:"reportperiod";s:11:"last24hours";s:5:"title";s
:25:"Host Disponibilità media";s:8:"subtitle";s:14:"Tutti gli host";s:4:"data";s:33:"98.310033333333,1.6899666666667,0";s:6:"export";s:1:"0";s:3:"nsp";s:64:"2f91ad1f601246a97e24468a3a95b7a5260823ed8c069a5d835
8a2c48e87400d";}}}}i:4;a:4:{s:2:"id";s:8:"hMPAJlYa";s:5:"title";s:4:"test";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:0:{}}i:5;a:4:{s:2:"id";s:8:"dBSY7cvF";s:5:"title";s:5:"test4";s:4:"o
pts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:0:{}}i:6;a:4:{s:2:"id";s:8:"IYDIUphv";s:5:"title";s:6:"tomcat";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:0:{}}i:7;a:4:{s:2:"id
";s:8:"eDcc5phh";s:5:"title";s:4:"tst3";s:4:"opts";a:1:{s:10:"background";s:6:"ffffff";}s:8:"dashlets";a:1:{i:0;a:5:{s:2:"id";s:8:"XOSjGuse";s:4:"name";s:29:"xicore_service_status_summary";s:5:"title";s:22:"S
ervice Status Summary";s:4:"opts";a:4:{s:5:"width";s:3:"250";s:6:"height";s:3:"125";s:4:"left";i:30;s:3:"top";i:30;}s:4:"args";a:1:{s:3:"nsp";s:64:"e112e95e6b088284cdb4431aec7eb4e8551400bc632ed30bb2a1f759268f
d266";}}}}}
Re: Nagios XI dashboard definition location?
Ok. It was worth a shot...
Thanks
Thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI dashboard definition location?
No problemgormank wrote:Ok. It was worth a shot...
Thanks
Locking thread