Category Archives: Без рубрики

Centreon import

./centreon -u admin -p pass -o CMD -a show | awk -F\; ‘NR > 2 { print «—select=\»CMD;» $2 «\»» }’ | xargs —verbose php ./centreon -u admin -p pass -e

./centreon -u admin -p pass -e —filter-type=’^(HOST|SERVICE)$’

./centreon -u admin -p pass -o CMD -a show
./centreon -u admin -p pass -e —select=’CMD’
./centreon -u admin -p centreon -e —select=’INSTANCE;Central’

./centreon -u admin -p pass -e —select=’HOST;srv-mssql-01′ —filter-type=’^(HOST|SERVICE)$’

OBJECT;AACTION;Parameter1;Parameter2;Parameter3;…

id;name;alias;email;pager;gui access;admin;activate
1;Alex_LanS;admin;alexlans@mclaut.com;0935450505;1;1;1

CONTACT;ADD;Alex_LanS;admin;alexlans@mclaut.com;4d2d19ca4;1;1;en_US;local
CONTACT;setparam;admin;hostnotifperiod;24×7
CONTACT;setparam;admin;svcnotifperiod;24×7
CONTACT;setparam;admin;hostnotifopt;d,u,r
CONTACT;setparam;admin;servicenotifopt;w,u,c,r
CONTACT;setparam;admin;contact_pager;0935450505
CONTACT;setparam;admin;contact_js_effects;0
CONTACT;setparam;admin;contact_enable_notifications;1
CONTACT;setparam;admin;contact_activate;1
CONTACT;setparam;admin;hostnotifcmd;host-notify-by-telegram
CONTACT;setparam;admin;svcnotifcmd;service-notify-by-telegram
CONTACT;ADD;Support;support;noc@2mcl.com;1d40cd4a47d79e7;0;1;en_US;local
CONTACT;setparam;support;hostnotifperiod;24×7
CONTACT;setparam;support;svcnotifperiod;24×7
CONTACT;setparam;support;contact_js_effects;0
CONTACT;setparam;support;contact_enable_notifications;0
CONTACT;setparam;support;contact_activate;1
CONTACT;setparam;support;hostnotifcmd;host-notify-by-email
CONTACT;setparam;support;svcnotifcmd;host-notify-by-email

 


 

$USER1$=/usr/lib64/nagios/plugins
$CENTREONPLUGINS$=/usr/lib/centreon/plugins/

echo «date.timezone = Europe/Kiev» > /etc/opt/rh/rh-php71/php.d/php-timezone.ini

[root@centreon bin]

# ./centreon -u admin -p -pass -i /home/clapi-export.txt