Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Feb 21, 2019 3:15 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: new cacti +weathermap install; weathermap "no INFO file"
PostPosted: Tue Sep 18, 2018 7:01 am 
Offline

Joined: Tue Sep 18, 2018 6:50 am
Posts: 5
I've used cacti and weathermap extensively before (about 5 years ago) in previous role, with old versions of both. so I'm familiar with how it all works. I have not touched either since then so I'm out of date. Now, I've just installed a new cacti box for a project at a new job. solely for the purpose of running weathermap. cacti installed from packages, just fine, I have a working cacti - latest version 1.1.38. I pulled down weathermap 0.98 zip file, when trying to install this in the plugin management, I get an error "Plugin does not contain an INFO file" from cacti.

after a lot of reading around I gather there has been a lot of changes in versions in the last few years and there may be some incompatibilities between the weathermap plugin and cacti now. so I am suspecting that's what I've hit. But after several hours searching, I can't find anywhere an FAQ for "if you want a working cacti + weathermap, use this version and/or make these config changes" or any information about this info file. I read some references to a weathermap version 1.0 existing, but I can't find that either.
can someone help please? I just want a working setup with minimal hacking, no compiling or whatnot, I'm a network operator not a developer.
thanks in advance


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 7:30 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
There isn't a working version for Cacti 1.x yet. It's still in development.

I thought I'd clearly marked that on the website though - so that's a documentation failure on me. Where did you download from?


Attachments:
2018-09-18 13_28_19-Network Weathermap _ Open Source Network Visualisation.png
2018-09-18 13_28_19-Network Weathermap _ Open Source Network Visualisation.png [ 12.43 KiB | Viewed 709 times ]

_________________
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!)
Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 7:59 am 
Offline

Joined: Tue Sep 18, 2018 6:50 am
Posts: 5
downloaded it from the network weathermap site, but I might have got the link to the install zip from somewhere else I can't recall.
however you're absolutely correct it clearly does say that, my bad. I went through the exercise of building the cacti side first (with the latest) and then went to do weathermap , reread the weathermap plugin method install docs, and just quickly went to the page to pull down the latest of that too so I missed the "not compatible with 1.0" pointer. perhaps - due to the 5 year break - I didn't twig that actually meant "not compatible the latest version that you've just installed".

Is there any workaround given that I've just made the effort to get a working cacti 1.x (I thought I'd seen people's sigfiles in this forum indicating they are running cacti 1.x and weathermap 0.98, but I could be wrong). or is the only way to downgrade the cacti? if so, to which version ?

perhaps that only thing you could change in the warning wording would be that "please use cacti version X.Y" with this plugin?


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 8:09 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
I've just updated the notes on the github Releases page to also mention that it's only for 0.8.8 (there wasn't anything there before).

There isn't a workaround that I'm aware of - if there was, I wouldn't be writing new code :-)

It'd also be cool if the Cacti plugin installer thingy explained what "no INFO file" might mean - that it's not a Cacti 1.x plugin. I might ask them about that.

If you did decide to go the downgrade route - any version of Cacti 0.8.8 will work. If you have PHP 7.x though, you will also want the test-release of Weathermap 0.98a, which is 0.98 modified to use with PHP 7's database functions. You can get that here: http://www.network-weathermap.com/files ... -test4.zip

Weathermap 0.98 (what you already have) works fine with Cacti 0.8.8 (any version) and PHP 5.

I have pointed a few people at it, asking for feedback, but haven't really had any. No news is good news? It works for me, as much as I've tested it.

_________________
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!)


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 9:21 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2073
The message should probably be updated as it's not really that clear. Having no INFO file basically means that it was pre-1.x and therefore very likely to be uncompatible with 1.x without modifications (it was first introduced in 1.0.0). I do agree, message is not very clear on that so I think I'll get that updated in v1.2 since I've just been tampering with the plugin code anyway ;-)

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 11:52 am 
Offline

Joined: Tue Sep 18, 2018 6:50 am
Posts: 5
thanks both. I have a working box now with cacti 0.8.8 and weathermap 0.98. over and out..


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 3:38 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2073
Some people are running the dev version of weathermaps with cacti 1.x (including the 1.2.0 - Beta 0 that's so close to release i'll collapse when it goes beta!). 0.8.8 works but it's so old support for it is a lot harder to come by and any fixes have to be done manually.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Tue Sep 18, 2018 4:17 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
Speaking of support - if you create issues saying that parts of the dev version don't work, and it's not a specific issue with a specific thing that's actually supposed to work, there's no support there either! It isn't finished. "I can't use it" isn't a bug (yet).

(For release versions, it's totally different - I consider anything that isn't clear from the manual a documentation bug, as well as any actual operational issues. But please accept that the dev version isn't just new stuff, it's half-complete and at your own risk)

_________________
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!)


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 4:42 am 
Offline

Joined: Tue Sep 18, 2018 6:50 am
Posts: 5
well, I spoke too soon. on editing any map file, I get this in /var/log/httpd/error_log
Code:
[Wed Sep 19 09:30:40.439406 2018] [:error] [pid 113724] [client 10.133.0.80:56498] PHP Warning:  fopen(configs/simple.conf): failed to open stream: Permission denied in /var/www/html/cacti-0.8.8h/plugins/weathermap/lib/Weathermap.class.php on line 2908, referer: http://10.3.0.4/cacti/plugins/weathermap/weathermap-cacti-plugin-editor.php?action=nothing&mapname=simple.conf
WARNING: Couldn't open config file configs/simple.conf for writing

seems many others have had this error and its usually down to permissions.

But I've done all the permissions in the configs map directory (unless I missed something obvious) and I even went as far as 666 and it still doesn't work

Code:
[[email protected] configs]# ls -al
total 16
drwxrwxrwx.  2 apache apache   59 Sep 19 09:32 .
drwxrwxr-x. 11 cacti  apache 4096 Sep 18 15:28 ..
-rwxrwxr-x.  1 cacti  apache   33 May 24  2016 .htaccess
-rw-rw-r--.  1 cacti  apache   59 May 24  2016 index.php
-rw-rw-rw-.  1 cacti  apache 1267 May 29  2016 simple.conf
[[email protected] configs]#

httpd is running as user apache
Code:
[[email protected] configs]# ps -ef | grep http
apache    24093 106698  0 08:51 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND


weathermap has no problem writing the map itself:

Code:
09/19/2018 09:40:16 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.98 run complete - Wed, 19 Sep 18 09:40:16 +0000: 1 maps were run in 1 seconds with 0 warnings.
09/19/2018 09:40:16 AM - WEATHERMAP: Poller[0] [Map 3] simple.conf: Wrote map to /var/www/html/cacti-0.8.8h/plugins/weathermap/output/519f159e9b2feef374a1.png and /var/www/html/cacti-0.8.8h/plugins/weathermap/output/519f159e9b2feef374a1.thumb.png


stumped...


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 5:07 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
smells like maybe selinux? Check /var/log/audit/audit.log

_________________
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!)


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 6:22 am 
Offline

Joined: Tue Sep 18, 2018 6:50 am
Posts: 5
yes it was selinux.
I've never really got my head round selinux, my *nix use goes way back before its invention, so it its not something that comes to mind automatically as a thing to check.

thank you.


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 6:31 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
44sandyman wrote:
yes it was selinux.
I've never really got my head round selinux, my *nix use goes way back before its invention, so it its not something that comes to mind automatically as a thing to check.

thank you.


Don't worry, I know how you feel :-) Someday I'll figure out the right extra policy so that you can still run with it enforcing.

It's always selinux, systemd or networkmanager that makes my life hard, lately!

_________________
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!)


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 8:52 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2073
Yeah, SELinux is designed to secure things... anytime anything touches security, things break. Cacti has problems with SELinux enabled especially if httpd_can_network_connect is set to false (I think that was the option). Like Howie, I haven't had time to sit down and work out what would need adding.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 9:33 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
Yeah, I assume it at least breaks Realtime, since that's the webserver writing into the web directory.

_________________
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!)


Top
 Profile  
 
 Post subject: Re: new cacti +weathermap install; weathermap "no INFO file
PostPosted: Wed Sep 19, 2018 1:37 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2073
Or things trying to send SMTP email directly is another one.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group