Cacti 1.2.5 and weathermap standalone

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
oneDot
Posts: 16
Joined: Fri Sep 21, 2012 2:24 am

Cacti 1.2.5 and weathermap standalone

#1 Post by oneDot » Thu Aug 01, 2019 2:45 am

Hi all,

Is possible to run weathermap as standalone version (Command-Line Tool Only) on Windows with Cacti 1.2.5?

1.

oneDot
Posts: 16
Joined: Fri Sep 21, 2012 2:24 am

Re: Cacti 1.2.5 and weathermap standalone

#2 Post by oneDot » Thu Aug 01, 2019 7:55 am

Any ideas how to avoid this problem?

C:\inetpub\wwwroot\cacti\plugins\weathermap>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested PHP extension ext-posix * is missing from your system. Install or enable PHP's posix extension.
Problem 2
- Installation request for lstrojny/phpunit-clever-and-smart ^0.5.0 -> satisfiable by lstrojny/phpunit-clever-and-smart[0.5.0].
- lstrojny/phpunit-clever-and-smart 0.5.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system.
Problem 3
- theseer/phpdox dev-master requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.9.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.7.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.5 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.3 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.12.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- Installation request for theseer/phpdox * -> satisfiable by theseer/phpdox[0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.4.1, 0.6.5, 0.6.6, 0.6.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.1.1, 0.9.0, dev-master].

To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

C:\inetpub\wwwroot\cacti\plugins\weathermap>

netniV
Cacti Guru User
Posts: 2796
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.2.5 and weathermap standalone

#3 Post by netniV » Fri Aug 02, 2019 4:43 am

Yes, install those php extensions and you should be good to go (assuming that aren't other missing dependancies - you did check the installation requirements right?!

Note, the gui for 1.2.5 isn't in a full working state.. In fact, Howie is currently transitioning it to a point where I can make it work properly with Cacti's core.

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Cacti 1.2.5 and weathermap standalone

#4 Post by Howie » Sat Aug 03, 2019 8:03 am

To run weathermap, you don't need to touch composer. Just download the zip as usual, from the releases section. Composer (and npm) is there to install all the junk I use to test Weathermap and build the final zips.

The only php extensions that weathermap itself needs are php-gd, php-snmp (if you use the snmp plugin) and php-mysql (if you want to pull data from the Cacti database (not RRD files) - but you will already have that for Cacti to work).
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

oneDot
Posts: 16
Joined: Fri Sep 21, 2012 2:24 am

Re: Cacti 1.2.5 and weathermap standalone

#5 Post by oneDot » Tue Aug 06, 2019 9:06 am

I have problem with installing posix-ext on Windows

C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install --global --production windows-build-tools

no errors


C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install posix-ext

> [email protected] install C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
> node-gyp rebuild


C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
posix.cc
win_delay_load_hook.cc
c:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\src\posix.cc(2): fatal error C1083: Cannot open include
file: 'unistd.h': No such file or directory [C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\build\posix
.vcxproj]

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
gyp ERR! node -v v10.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log

C:\inetpub\wwwroot\cacti\plugins\weathermap>



C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'posix-ext' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session ffa4aed83a78f2d6
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/posix-ext 859ms (from cache)
8 silly pacote tag manifest for [email protected] fetched in 875ms
9 timing stage:loadCurrentTree Completed in 937ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 16ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/bindings 93ms (from cache)
18 silly pacote range manifest for [email protected]~1.3.0 fetched in 93ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/posix 109ms (from cache)
21 silly pacote range manifest for [email protected]^4.1.1 fetched in 109ms
22 silly resolveWithNewModule [email protected] checking installable status
23 http fetch GET 304 https://registry.npmjs.org/nan 109ms (from cache)
24 silly pacote range manifest for [email protected]~2.10.0 fetched in 109ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 304 https://registry.npmjs.org/npm-platform-dependencies 828ms (from cache)
27 silly pacote range manifest for [email protected]~0.1.0 fetched in 828ms
28 silly resolveWithNewModule [email protected] checking installable status
29 http fetch GET 304 https://registry.npmjs.org/cross-spawn 62ms (from cache)
30 silly pacote range manifest for [email protected]^4.0.0 fetched in 62ms
31 silly resolveWithNewModule [email protected] checking installable status
32 http fetch GET 200 https://registry.npmjs.org/lru-cache 32ms (from cache)
33 silly pacote range manifest for [email protected]^4.0.1 fetched in 32ms
34 silly resolveWithNewModule [email protected] checking installable status
35 http fetch GET 304 https://registry.npmjs.org/which 47ms (from cache)
36 silly pacote range manifest for [email protected]^1.2.9 fetched in 63ms
37 silly resolveWithNewModule [email protected] checking installable status
38 http fetch GET 200 https://registry.npmjs.org/yallist 15ms (from cache)
39 silly pacote range manifest for [email protected]^2.1.2 fetched in 15ms
40 silly resolveWithNewModule [email protected] checking installable status
41 http fetch GET 304 https://registry.npmjs.org/pseudomap 78ms (from cache)
42 silly pacote range manifest for [email protected]^1.0.2 fetched in 78ms
43 silly resolveWithNewModule [email protected] checking installable status
44 http fetch GET 304 https://registry.npmjs.org/isexe 63ms (from cache)
45 silly pacote range manifest for [email protected]^2.0.0 fetched in 63ms
46 silly resolveWithNewModule [email protected] checking installable status
47 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1094ms
48 timing stage:loadIdealTree Completed in 1110ms
49 silly currentTree [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- n[email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree +-- [email protected]
49 silly currentTree `-- [email protected]
50 silly idealTree [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree +-- [email protected]
50 silly idealTree `-- [email protected]
51 silly install generateActionsToTake
52 timing stage:generateActionsToTake Completed in 15ms
53 silly diffTrees action count 2
54 silly diffTrees add [email protected]
55 silly diffTrees add [email protected]
56 silly decomposeActions action count 16
57 silly decomposeActions fetch [email protected]
58 silly decomposeActions extract [email protected]
59 silly decomposeActions preinstall [email protected]
60 silly decomposeActions build [email protected]
61 silly decomposeActions install [email protected]
62 silly decomposeActions postinstall [email protected]
63 silly decomposeActions finalize [email protected]
64 silly decomposeActions refresh-package-json [email protected]
65 silly decomposeActions fetch [email protected]
66 silly decomposeActions extract [email protected]
67 silly decomposeActions preinstall [email protected]
68 silly decomposeActions build [email protected]
69 silly decomposeActions install [email protected]
70 silly decomposeActions postinstall [email protected]
71 silly decomposeActions finalize [email protected]
72 silly decomposeActions refresh-package-json [email protected]
73 silly install executeActions
74 silly doSerial global-install 16
75 verbose correctMkdir C:\Users\usertst\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
76 verbose lock using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
77 silly doParallel extract 2
78 silly extract [email protected]
79 silly extract [email protected]
80 silly tarball trying [email protected]^4.1.1 by hash: sha512-R1YLMO0tDKuWVRQfcL3dbfv9LvLmB4W6oh+yE2qwlGG0Otkgz1KDIZjnqcs/v+RZfuvDLpCDZs9MQgbcyjppCg==
81 silly tarball trying [email protected] by hash: sha512-sdNDmR07GyduWi+h9BBYHzPMwtsGkmhGJXR3x2IzDWVHrJvUijEz2oVuBCwE1Ntg84QdkFM3J1rnpKuSzPRtzg==
82 silly extract [email protected]^4.1.1 extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-593fca2a (109ms)
83 silly extract [email protected] extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-ext-f866b3d7 (109ms)
84 timing action:extract Completed in 109ms
85 silly doReverseSerial unbuild 16
86 silly doSerial remove 16
87 silly doSerial move 16
88 silly doSerial finalize 16
89 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
90 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
91 timing action:finalize Completed in 16ms
92 silly doParallel refresh-package-json 2
93 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
94 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
95 timing action:refresh-package-json Completed in 0ms
96 silly doParallel preinstall 2
97 silly preinstall [email protected]
98 info lifecycle [email protected]~preinstall: [email protected]
99 silly preinstall [email protected]
100 info lifecycle [email protected]~preinstall: [email protected]
101 timing action:preinstall Completed in 15ms
102 silly doSerial build 16
103 silly build [email protected]
104 info linkStuff [email protected]
105 silly linkStuff [email protected] has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
106 silly build [email protected]
107 info linkStuff [email protected]
108 silly linkStuff [email protected] has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
109 timing action:build Completed in 0ms
110 silly doSerial global-link 16
111 silly doParallel update-linked 0
112 silly doSerial install 16
113 silly install [email protected]
114 info lifecycle [email protected]~install: [email protected]
115 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
116 verbose lifecycle [email protected]~install: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\node_modules\.bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\net-snmp\bin;C:\php;C:\Program Files\nodejs\;C:\ProgramData\ComposerSetup\bin;C:\Users\usertst\AppData\Local\Microsoft\WindowsApps;C:\Users\usertst\AppData\Roaming\npm;C:\Users\usertst\AppData\Roaming\Composer\vendor\bin
117 verbose lifecycle [email protected]~install: CWD: C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
118 silly lifecycle [email protected]~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
119 timing audit submit Completed in 360ms
120 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/sec ... dits/quick 360ms
121 timing audit body Completed in 0ms
122 silly lifecycle [email protected]~install: Returned: code: 1 signal: null
123 info lifecycle [email protected]~install: Failed to exec install script
124 timing action:install Completed in 4953ms
125 verbose unlock done using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
126 timing stage:rollbackFailedOptional Completed in 32ms
127 timing stage:runTopLevelLifecycles Completed in 7203ms
128 silly saveTree [email protected]
128 silly saveTree +-- [email protected]
128 silly saveTree `-- [email protected]
128 silly saveTree +-- [email protected]
128 silly saveTree +-- [email protected]
128 silly saveTree +-- [email protected]
128 silly saveTree | `-- [email protected]
128 silly saveTree | +-- [email protected]
128 silly saveTree | | +-- [email protected]
128 silly saveTree | | `-- [email protected]
128 silly saveTree | `-- [email protected]
128 silly saveTree | `-- [email protected]
128 silly saveTree `-- [email protected]
129 verbose stack Error: [email protected] install: `node-gyp rebuild`
129 verbose stack Exit status 1
129 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
129 verbose stack at EventEmitter.emit (events.js:198:13)
129 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
129 verbose stack at ChildProcess.emit (events.js:198:13)
129 verbose stack at maybeClose (internal/child_process.js:982:16)
129 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
130 verbose pkgid [email protected]
131 verbose cwd C:\inetpub\wwwroot\cacti\plugins\weathermap
132 verbose Windows_NT 10.0.14393
133 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "posix-ext"
134 verbose node v10.16.1
135 verbose npm v6.9.0
136 error code ELIFECYCLE
137 error errno 1
138 error [email protected] install: `node-gyp rebuild`
138 error Exit status 1
139 error Failed at the [email protected] install script.
139 error This is probably not a problem with npm. There is likely additional logging output above.
140 verbose exit [ 1, true ]

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Cacti 1.2.5 and weathermap standalone

#6 Post by Howie » Sat Aug 10, 2019 5:07 am

Howie wrote:To run weathermap, you don't need to touch composer.
Or npm!

If you just download the release version zip, you don't need to do anything with node, npm, composer, bower, phpunit, make etc.

(you might need to enable the php-gd module, but run

Code: Select all

php check.php
and it will tell you if you do)
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Cacti 1.2.5 and weathermap standalone

#7 Post by Howie » Sat Aug 10, 2019 5:10 am

(also, to explain your actual error - ext-posix is a PHP extension. npm installs Javascript modules for nodejs. It will never work. To enable PHP extensions, usually you edit php.ini, if they are standard extensions like posix or gd)
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

oneDot
Posts: 16
Joined: Fri Sep 21, 2012 2:24 am

Re: Cacti 1.2.5 and weathermap standalone

#8 Post by oneDot » Mon Aug 26, 2019 5:22 am

netniV wrote:
Fri Aug 02, 2019 4:43 am

Note, the gui for 1.2.5 isn't in a full working state.. In fact, Howie is currently transitioning it to a point where I can make it work properly with Cacti's core.
Do you have any estimated date about?

Post Reply