Hi:
I am trying to run weathermap from CLI outside of cacti, when I am still tweaking my config files. But, it does not seem to work. This is the command I use.
php /var/www/cacti/plugins/weathermap/weathermap --debug --config /var/www/cacti/plugins/weathermap/configs/wx.conf --output /var/www/cacti/plugins/weathermap/output/wx.png --
htmloutput /var/www/cacti/plugins/weathermap/output/wx.html
But, neither .html nor .png file gets created. I have to wait for the cacti poller to run every 5 min for me to see the changes to config file I made.
what am I doing wrong ?
Thanks
running weathemap from CLI ?
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: running weathemap from CLI ?
Do you get an error message? What user are you running as and which user owns the output directory?
(also, the way I do this is: even though I'm not editing in the editor, I use it as a live preview. Edit as you are now, but also load the map into the web-based editor. After any change, click the "Do Nothing" button at the bottom, and the map will update with your change, as a "live" preview)
(also, the way I do this is: even though I'm not editing in the editor, I use it as a live preview. Edit as you are now, but also load the map into the web-based editor. After any change, click the "Do Nothing" button at the bottom, and the map will update with your change, as a "live" preview)
Weathermap 0.98a 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!)
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!)
Re: running weathemap from CLI ?
Howie:
thank you for the response, I am currently testing this out as root, and the directory permissions are checked. Ok, I will try your suggestion. My final intent is to pepare some maps, that is outside of the cacti environment. So, I will not be using the cacti interface.
This used to work a year+ ago, as I had made shell scripts that would get me what I wanted. Somehow, something changed from then to now, I don't get anything nor any error
below is a simple session
#
[root]# more weathermap.conf
#
# A minimal config file to get you started.
# - see also the docs/example folder.
# - and configs/simple.conf
HTMLSTYLE overlib
WIDTH 800
HEIGHT 600
#HTMLOUTPUTFILE /tmp/weathermap.html
#IMAGEOUTPUTFILE /tmp/weathermap.png
NODE node1
POSITION 200 200
LABEL node1
NODE node2
POSITION 500 200
LABEL node2
LINK firstlink
NODES node1 node2
BANDWIDTH 30M
[root]# php /var/www/cacti/plugins/weathermap/weathermap --debug --config /var/www/cacti/plugins/weathermap/weathermap.conf --output /tmp/test.png --htmloutput /tmp/test.html
[root]# ls -l /tmp/test.*
ls: cannot access /tmp/test.*: No such file or directory
thank you for the response, I am currently testing this out as root, and the directory permissions are checked. Ok, I will try your suggestion. My final intent is to pepare some maps, that is outside of the cacti environment. So, I will not be using the cacti interface.
This used to work a year+ ago, as I had made shell scripts that would get me what I wanted. Somehow, something changed from then to now, I don't get anything nor any error
below is a simple session
#
[root]# more weathermap.conf
#
# A minimal config file to get you started.
# - see also the docs/example folder.
# - and configs/simple.conf
HTMLSTYLE overlib
WIDTH 800
HEIGHT 600
#HTMLOUTPUTFILE /tmp/weathermap.html
#IMAGEOUTPUTFILE /tmp/weathermap.png
NODE node1
POSITION 200 200
LABEL node1
NODE node2
POSITION 500 200
LABEL node2
LINK firstlink
NODES node1 node2
BANDWIDTH 30M
[root]# php /var/www/cacti/plugins/weathermap/weathermap --debug --config /var/www/cacti/plugins/weathermap/weathermap.conf --output /tmp/test.png --htmloutput /tmp/test.html
[root]# ls -l /tmp/test.*
ls: cannot access /tmp/test.*: No such file or directory
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: running weathemap from CLI ?
What's your current directory when you run it? I'm wondering if something has relative paths from the weathermap main directory... I would expect to see error messages then, though!
Weathermap 0.98a 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!)
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!)
Re: running weathemap from CLI ?
CWD/ contains weathermap and weathermap.conf
I am running the command from /var/www/cacti/plugins/weathermap
yes, Agree. I am not seeing any debug messages, whereas weathermap run from cacti poller works perfectly fine.
I am running the command from /var/www/cacti/plugins/weathermap
yes, Agree. I am not seeing any debug messages, whereas weathermap run from cacti poller works perfectly fine.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: running weathemap from CLI ?
Not sure where to go further with this... what OS, weathermap, Php version etc is it, so that I can try to recreate?
It's not a general issue - I use the CLI weathermap very regularly.
It's not a general issue - I use the CLI weathermap very regularly.
Weathermap 0.98a 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!)
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!)
Re: running weathemap from CLI ?
RHEL 6.8
odd, it does not even spit out the help menu when weathermap is invoked with --help switch.
odd, it does not even spit out the help menu when weathermap is invoked with --help switch.
Who is online
Users browsing this forum: No registered users and 5 guests