Saminnet-Search Article Wiki Forum Piwigo SNS Cloud vtiger Sugar
Cacti 繧辰LI縺ァ謫堺ス

  • Oracle
    • WebLogic Reset (198) Tue04,11:01am

      WebLogic襍キ蜍輔☆繧九◆縺ウ縺ォ繝ヲ繝シ繧カ蜷阪→繝代せ繝ッ繝シ繝峨r閨槭>縺ヲ縺阪※辣ゥ繧上@縺九▲縺溘ョ縺ァ蝗樣∩縺励◆繝。繝「縲 ツツツ security繝輔か繝ォ繝繧剃ス懈 ツツツ $ mkdir $DOMAIN_HOME/servers/AdminServer/security ツツツ boot.properties繧剃ス懈青ツツ boot.properties ツツツ username=weblogicツツツ password=password ツツツ 窶サ蟷ウ譁縺ァOK ツツツ nohup & 縺ァWeblogic繧定オキ蜍 ツツツ $ nohup sh $DOMAIN_HOME/startWebLogic.sh & ツツツ 窶サnohup.out縺ォ蜷舌°繧後k縺ョ縺後>繧縺縺」縺溘i驕ゥ蠖薙↓繝ェ繝繧、繝ャ繧ッ繝医&縺帙k ツツツ boot.properties縺梧囓蜿キ蛹悶&繧後※繧九%縺ィ繧堤「コ隱 ツツツ $ ca…

      Read More...

Cacti 繧辰LI縺ァ謫堺ス

Cacti 繧偵CLI縲縺ァ謫堺ス懊@縺ヲ縺ソ繧


Cacti縺ッ縺薙l縺セ縺ァWEB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺九i縺ョ縺ソ繝繝舌う繧ケ縺ョ霑ス蜉縲√げ繝ゥ繝輔ョ菴懈舌√Θ繝シ繧カ縺ョ讓ゥ髯千ョ。逅繧定。後▲縺ヲ縺翫j縺セ縺励◆縺後
Cacti 0.8.7 繧医j繧ウ繝槭Φ繝峨Λ繧、繝ウ繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺後ヱ繝繧ア繝シ繧ク縺ォ繝槭シ繧ク縺輔l縺セ縺励◆縲

WEB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺ッ縺サ縺ィ繧薙←繝槭え繧ケ縺ョ謫堺ス懊□縺代〒謇ア縺医k縺ョ縺ッ讌ス縺ァ縺吶′縲
WEB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺後昴シ繝医ヵ繧ゥ繝ッ繝シ繝峨@縺ェ縺縺ィ蜿らァ縺ァ縺阪↑縺縲
譁ー隕乗。井サカ縺ァ蟇セ雎。繝帙せ繝医′縺翫♀縺上∝腰邏比ス懈・ュ縺瑚セ帙>縺ィ縺縺」縺溷エ蜷医ッ
cli 縺ョ譁ケ縺梧・ス縺縺」縺溘j縺励∪縺吶(莠コ縺昴l縺槭l縺ァ縺励g縺縺娯ヲ)

cacti縺ョ繝医ャ繝励ョ繧」繝ャ繧ッ繝医Μ縺ォ cli 縺ィ縺縺繧オ繝悶ョ繧」繝ャ繧ッ繝医Μ縺後≠繧
荳玖ィ倥ョphp繝輔ぃ繧、繝ォ縺後≠繧翫∪縺吶

rpm 縺ァ繧、繝ウ繧ケ繝医シ繝ォ縺励※縺繧九→縲/var/www/cacti/cli縺ォ縺ェ繧翫∪縺吶

- add_data_query.php
- add_device.php
- add_graph_template.php
- add_graphs.php
- add_perms.php
- add_tree.php
- copy_user.php
- host_update_template.php
- import_template.php
- poller_data_sources_reapply_names.php
- poller_graphs_reapply_names.php
- poller_output_empty.php
- poller_reindex_hosts.php
- rebuild_poller_cache.php
- repair_database.php
- repair_templates.php
- structure_rra_paths.php
- upgrade_database.php


荳願ィ倥ョ蜀縲鬆サ郢√↓豢サ逕ィ縺吶k蜿ッ閭ス諤ァ縺ョ縺ゅk縺ョ縺ッ縲
譁ー隕冗屮隕門ッセ雎。繧定ソス蜉縺吶k縺ィ縺阪ョ菴ソ逕ィ縺吶k

- add_device.php
- add_graphs.php
- add_tree.phpツ

縺ョ3縺、縺ォ縺ェ繧九→諤昴>縺セ縺吶

譁ー隕上ョ繝舌う繧ケ縺ョ霑ス蜉

繧ウ繝槭Φ繝峨Λ繧、繝ウ縺九i縺ョ逶」隕門ッセ雎。縺ョ霑ス蜉繧呈・ス縺ォ陦後≧縺溘a縺ォ繧ゅ√≠縺九i縺倥a縲仝EB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ繧医j縲?ost Templates 繧定ィュ螳壹@縺ヲ縺翫″縺セ縺吶

譁ー縺溘↓繝帙せ繝医ユ繝ウ繝励Ξ繝シ繝医r菴懈舌@縺溷エ蜷医∽ク玖ィ倥ョ繧ウ繝槭Φ繝峨〒繝繝ウ繝励Ξ繝シ繝id繧堤「コ隱阪@縺セ縺吶つ

[root@test cli]# php ./add_device.php --list-host-templates

Valid Host Templates: (id, name)
0 None
1 Generic SNMP-enabled Host
3 ucd/net SNMP Host
4 Karlnet Wireless Bridge
5 Cisco Router
6 Netware 4/5 Server
7 Windows 2000/XP Host
8 Local Linux Machine

菴ソ逕ィ縺励◆縺繝繝ウ繝励Ξ繝シ繝id縺後o縺九▲縺溘i縲∫カ壹>縺ヲ繝繝舌う繧ケ縺ョ霑ス蜉繧定。後>縺セ縺吶つ

[root@test cli]# php ./add_device.php \
--description=test \
--ip=192.168.0.1 \
--template=3 \
--avail=snmp \
--version=2 \
--community=testpub

荳願ィ倥r荳翫°繧蛾逡ェ縺ォ隱ャ譏弱@縺ヲ縺縺上→
test縺ィ縺縺繝帙せ繝亥錐縺ァ
192.168.0.1縺ョIP繧「繝峨Ξ繧ケ繧偵b縺」縺ヲ縺縺セ縺吶
ucd/net SNMP Host縺ョ繝帙せ繝医ユ繝ウ繝励Ξ繝シ繝医r縺、縺九>縺セ縺吶
繝繝舌う繧ケ縺ョ豁サ豢サ繝√ぉ繝繧ッ縺ォ縺ッ縲《nmp繧剃スソ縺縲
snmp縺ョ繝舌シ繧ク繝ァ繝ウ縺ッ 2縺ァ
testpub縺ィ縺縺繧ウ繝溘Η繝九ユ繧」蜷阪r菴ソ縺縺セ縺吶つ

繧ー繝ゥ繝輔ョ菴懈

邯壹>縺ヲ繧ー繝ゥ繝輔ョ菴懈舌〒縺吶′縲√さ繝槭Φ繝峨Λ繧、繝ウ縺九i陦後≧蝣エ蜷医
逋サ骭イ繝代ち繝シ繝ウ縺瑚、髮代↑縺ョ縺ァ縲√Γ繝ェ繝繝医′縺ゅj縺セ縺帙s縲
縺薙%縺ッWEB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺九i陦後▲縺滓婿縺梧・ス縺ァ縺吶

繝繝ェ繝シ縺ク縺ョ逋サ骭イ

莉・荳九ッ繝帙せ繝亥腰菴阪〒繝繝ェ繝シ縺ク逋サ骭イ縺吶k蝣エ蜷医〒縺吶

縺セ縺壹∝医⊇縺ゥ繝繝舌う繧ケ繧堤匳骭イ縺励◆繝帙せ繝医ョ繝帙せ繝id繧堤「コ隱阪@縺セ縺吶つ

[root@test cli]# php ./add_tree.php --list-hosts

Known Hosts: (id, hostname, template, description)
1 127.0.0.1 8 Localhost
2 192.168.0.1 3 test

邯壹>縺ヲ縲∫匳骭イ縺励◆縺繝繝ェ繝シ縺ョid繧ら「コ隱阪@縺セ縺吶

[root@test cli]# php ./add_tree.php --list-trees

Known Trees:
id sort method name
1 Manual Ordering (No Sorting) Default Tree

蜈医⊇縺ゥ菴懈舌@縺溘帙せ繝医r繝繝輔か繝ォ繝医ヤ繝ェ繝シ縺ォ逋サ骭イ縺吶k蝣エ蜷医ッ莉・荳九↓縺ェ繧翫∪縺吶

[root@test cli]# php ./add_tree.phpツ
--type=nodeツ
--node-type=hostツ
--tree-id=1ツ
--host-id=2

WEB繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ縺九i譁ー縺励>繝帙せ繝医′霑ス蜉縺輔l縺ヲ縺繧九%縺ィ繧堤「コ隱阪〒縺阪k縺ィ諤昴>縺セ縺吶つ

菴ソ逕ィ縺励◆繧ケ繧ッ繝ェ繝励ヨ縺ョhelp

譁ー隕上帙せ繝医ョ逋サ骭イ縺ョ豬√l繧定ェャ譏弱@縺セ縺励◆縺後∽サ・荳九ッ縺昴ョ髫帙↓菴ソ逕ィ縺励◆繧ケ繧ッ繝ェ繝励ヨ縺ョ繝倥Ν繝励〒縺吶

- add_device.php

# php ./add_device.php

Add Device Script 1.0, Copyright 2004-2009 - The Cacti Group

A simple command line utility to add a device in Cacti

usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable]
[--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_retries=[2]
[--version=[1|2|3]] [--community=] [--port=161] [--timeout=500]
[--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=]
[--quiet]

Required:
--description the name that will be displayed by Cacti in the graphs
--ip self explanatory (can also be a FQDN)
Optional:
--template 0, is a number (read below to get a list of templates)
--notes '', General information about this host. Must be enclosed using double quotes.
--disable 0, 1 to add this host but to disable checks and 0 to enable it
--avail pingsnmp, [ping][none, snmp, pingsnmp]
--ping_method tcp, icmp|tcp|udp
--ping_port '', 1-65534
--ping_retries 2, the number of time to attempt to communicate with a host
--version 1, 1|2|3, snmp version
--community '', snmp community string for snmpv1 and snmpv2. Leave blank for no community
--port 161
--timeout 500
--username '', snmp username for snmpv3
--password '', snmp password for snmpv3
--authproto '', snmp authentication protocol for snmpv3
--privpass '', snmp privacy passphrase for snmpv3
--privproto '', snmp privacy protocol for snmpv3
--context '', snmp context for snmpv3
--max_oids 10, 1-60, the number of OID's that can be obtained in a single SNMP Get request

List Options:
--list-host-templates
--list-communities
--quiet - batch mode value return

- add_tree.php

# php ./add_tree.php

Add Tree Script 1.0, Copyright 2004-2009 - The Cacti Group

A simple command line utility to add objects to a tree in Cacti

usage: add_tree.php --type=[tree|node] [type-options] [--quiet]

Tree options:
--name=[Tree Name]
--sort-method=[manual|alpha|natural|numeric]

Node options:
--node-type=[header|host|graph]
--tree-id=[ID]
[--parent-node=[ID] [Node Type Options]]

Header node options:
--name=[Name]

Host node options:
--host-id=[ID]
[--host-group-style=[1|2]]
(host group styles:
1 = Graph Template,
2 = Data Query Index)

Graph node options:
--graph-id=[ID]
[--rra-id=[ID]]

List Options:
--list-hosts
--list-trees
--list-nodes --tree-id=[ID]
--list-rras
--list-graphs --host-id=[ID]

Comments   

 
0 #1 Guest 2018-01-16 07:20
Keep on writing, great job!

Here is my blog post: Free Shipping
Quote
 

Articles by Date

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email