New Cacti Install 0.8.8c on Centos7
Moderators: Developers, Moderators
New Cacti Install 0.8.8c on Centos7
I decided to create a new local cacti server using virtual box and test out some graphs a bit. I followed this document to the letter (link below), my webserver and php seem to be working great. However, I'm not sure, usually I can see the local host right away, uptime and memory and what not, but this time I cannot. I made sure "cacti" user had rights to the rrd and log folder using chmod...Usually when I see a device showing as unknown, I found it to be a rights issue on the folder(s) that you specified for the cacti user.
When I run debug on any localhost graph, I get the RRD error below. Restarting the poller cache and httpd service didn't seem help much. I made sure spine was installed and was changed over in the poller section. Anything you can see that I missed?
"ERROR: opening '/var/www/html/cacti-0.8.8c/rra/localhost_mem_buffers_3.rrd': No such file or directory"
Used this install tutorial- http://blog.network-outsourcing.de/cact ... ing-cacti/
Poller= spine (enabled), RRDTool-1.4x, NET-SNMP 5x, disabled selinux
Thanks,
Andrew
When I run debug on any localhost graph, I get the RRD error below. Restarting the poller cache and httpd service didn't seem help much. I made sure spine was installed and was changed over in the poller section. Anything you can see that I missed?
"ERROR: opening '/var/www/html/cacti-0.8.8c/rra/localhost_mem_buffers_3.rrd': No such file or directory"
Used this install tutorial- http://blog.network-outsourcing.de/cact ... ing-cacti/
Poller= spine (enabled), RRDTool-1.4x, NET-SNMP 5x, disabled selinux
Thanks,
Andrew
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
Does your cron job run and what does /etc/cron.d/cacti contain ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
It contains this line: */5 * * * * cacti php /var/www/html/cacti/poller.php &>/dev/null
I just checked the rrd file permissions, is this supposed to show 0 files? Should I just kill this install and start over using another walkthough?
[root@localhost rra]# ls -l
total 0
And this doesn't look right either...it was after I ran this cmd below. Tried going to that file to change it, but didn't see a line 165, only goes up to
[root@localhost cacti]# php -q poller.php
PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/cacti-0.8.8c/include/global_constants.php on line 165
[root@localhost log]# cat cacti.log
03/15/2015 06:03:33 PM - CMDPHP: Poller[0] WARNING: Cacti Master Poller process terminated by user
I just checked the rrd file permissions, is this supposed to show 0 files? Should I just kill this install and start over using another walkthough?
[root@localhost rra]# ls -l
total 0
And this doesn't look right either...it was after I ran this cmd below. Tried going to that file to change it, but didn't see a line 165, only goes up to
[root@localhost cacti]# php -q poller.php
PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/cacti-0.8.8c/include/global_constants.php on line 165
[root@localhost log]# cat cacti.log
03/15/2015 06:03:33 PM - CMDPHP: Poller[0] WARNING: Cacti Master Poller process terminated by user
Last edited by bcooldude on Sun Mar 15, 2015 1:35 pm, edited 1 time in total.
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
Well I know this work as I wrote it
what are the permissions of your rrd and log dir ?
what are the permissions of your rrd and log dir ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
Lol, nice dude..I totally didn't know it was your tutorial.
So, below are permission results:
[root@localhost log]# ls -l
total 4
-rw-r--r--. 1 cacti apache 99 Mar 15 11:03 cacti.log
[root@localhost rra]# ls -l
total 0
So, below are permission results:
[root@localhost log]# ls -l
total 4
-rw-r--r--. 1 cacti apache 99 Mar 15 11:03 cacti.log
[root@localhost rra]# ls -l
total 0
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
that's the content, show me the following:
ls -l /var/www/html/cacti
Especially check that the rra and log dir are owned by the cacti user.
If they are, then call this manually/from the CLI:
ls -l /var/www/html/cacti
Especially check that the rra and log dir are owned by the cacti user.
If they are, then call this manually/from the CLI:
php /var/www/html/cacti/poller.php
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
I just setup a vm on a sandbox I have here at the office, followed your instructions again and was able to fix the issue. It must have been something I did or an extra step I took somewhere. Below are the permissions on both folders, however, I just have null stats at the moment. Looks like its something with the poller.
[root@localhost cacti]# ls -l /var/www/html/cacti/rra
total 332
-rw-r--r--. 1 cacti cacti 141640 Mar 16 13:40 localhost_load_1min_5.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_mem_buffers_3.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_mem_swap_4.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_proc_7.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_users_6.rrd
[root@localhost cacti]# ls -l /var/www/html/cacti/log
total 4
-rw-r--r--. 1 cacti apache 292 Mar 16 13:40 cacti.log
Would the cron script folder need to be owned by the cacti user as well?
[root@localhost etc]# ls -l /etc/cron.d/cacti
-rw-r--r--. 1 root root 65 Mar 16 13:27 /etc/cron.d/cacti
Cacti logs:
03/16/2015 08:55:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '299', Max Runtime '298', Poller Runs: '1'
03/16/2015 08:50:02 PM - SYSTEM STATS: Time:0.2031 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Time: 0.0967 s, Theads: N/A, Hosts: 1
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/html/cacti-0.8.8c/scripts/unix_processes.pl, output: 107
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/html/cacti-0.8.8c/scripts/unix_users.pl , output: 2
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/html/cacti-0.8.8c/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.01 10min:0.05
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/html/cacti-0.8.8c/scripts/linux_memory.pl SwapFree:, output: 837680
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/html/cacti-0.8.8c/scripts/linux_memory.pl MemFree:, output: 41940
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
03/16/2015 08:50:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '301', Max Runtime '298', Poller Runs: '1'
Appreciate the help btw!
[root@localhost cacti]# ls -l /var/www/html/cacti/rra
total 332
-rw-r--r--. 1 cacti cacti 141640 Mar 16 13:40 localhost_load_1min_5.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_mem_buffers_3.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_mem_swap_4.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_proc_7.rrd
-rw-r--r--. 1 cacti cacti 47992 Mar 16 13:40 localhost_users_6.rrd
[root@localhost cacti]# ls -l /var/www/html/cacti/log
total 4
-rw-r--r--. 1 cacti apache 292 Mar 16 13:40 cacti.log
Would the cron script folder need to be owned by the cacti user as well?
[root@localhost etc]# ls -l /etc/cron.d/cacti
-rw-r--r--. 1 root root 65 Mar 16 13:27 /etc/cron.d/cacti
Cacti logs:
03/16/2015 08:55:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '299', Max Runtime '298', Poller Runs: '1'
03/16/2015 08:50:02 PM - SYSTEM STATS: Time:0.2031 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Time: 0.0967 s, Theads: N/A, Hosts: 1
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/html/cacti-0.8.8c/scripts/unix_processes.pl, output: 107
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/html/cacti-0.8.8c/scripts/unix_users.pl , output: 2
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/html/cacti-0.8.8c/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.01 10min:0.05
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/html/cacti-0.8.8c/scripts/linux_memory.pl SwapFree:, output: 837680
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/html/cacti-0.8.8c/scripts/linux_memory.pl MemFree:, output: 41940
03/16/2015 08:50:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
03/16/2015 08:50:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '301', Max Runtime '298', Poller Runs: '1'
Appreciate the help btw!
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
Everything looks fine from the logs.
If the stats/graph do not show anything, can you enable DEBUG logging and check for CACTI2RRD entries in the Log ? They actually show the rrd update commands being executed.
If the stats/graph do not show anything, can you enable DEBUG logging and check for CACTI2RRD entries in the Log ? They actually show the rrd update commands being executed.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
Sure, below are the DEBUG messages.
03/16/2015 10:15:05 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti-0.8.8c/plugins/hmib/poller_graphs.php]
03/16/2015 10:15:05 PM - SYSTEM HMIB STATS: time:5.1500 processes:10 hosts:1
03/16/2015 10:15:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: 0 1]
03/16/2015 10:15:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/16/2015 10:15:00 PM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
03/16/2015 10:15:00 PM - POLLER: Poller[0] Network Discover is now running
03/16/2015 10:15:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti-0.8.8c/plugins/hmib/poller_hmib.php --host-id=1 --start=1426544100.3041 --seed=1355362239 --key=464749919]
03/16/2015 10:15:00 PM - SYSTEM STATS: Time:298.6661 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
03/16/2015 10:15:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
03/16/2015 10:10:05 PM - SYSTEM HMIB STATS: time:5.1500 processes:10 hosts:1
03/16/2015 10:10:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/16/2015 10:10:00 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'127.0.0.1', and OID:'.1.3.6.1.2.1.25.3.3.1.2'
03/16/2015 10:15:05 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti-0.8.8c/plugins/hmib/poller_graphs.php]
03/16/2015 10:15:05 PM - SYSTEM HMIB STATS: time:5.1500 processes:10 hosts:1
03/16/2015 10:15:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: 0 1]
03/16/2015 10:15:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/16/2015 10:15:00 PM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
03/16/2015 10:15:00 PM - POLLER: Poller[0] Network Discover is now running
03/16/2015 10:15:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti-0.8.8c/plugins/hmib/poller_hmib.php --host-id=1 --start=1426544100.3041 --seed=1355362239 --key=464749919]
03/16/2015 10:15:00 PM - SYSTEM STATS: Time:298.6661 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
03/16/2015 10:15:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
03/16/2015 10:10:05 PM - SYSTEM HMIB STATS: time:5.1500 processes:10 hosts:1
03/16/2015 10:10:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/16/2015 10:10:00 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'127.0.0.1', and OID:'.1.3.6.1.2.1.25.3.3.1.2'
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
That's only a partial poller run, I would need a complete run to analyze it.
Nevertheless, this is not what it should be:
03/16/2015 10:15:00 PM - SYSTEM STATS: Time:298.6661 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
03/16/2015 10:15:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
So your 2 hosts manage to stall Cacti so it's exceeding the 5 minutes of max time for a poller run.
What did you install after the base installation ?
Nevertheless, this is not what it should be:
03/16/2015 10:15:00 PM - SYSTEM STATS: Time:298.6661 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
03/16/2015 10:15:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
So your 2 hosts manage to stall Cacti so it's exceeding the 5 minutes of max time for a poller run.
What did you install after the base installation ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
I went through a yum update, after that I loaded all your recommended installs. Later, I installed wget for spine and some pluggins. This install I opted out on phpmyadmin. Do you think was something from the yum updates or maybe using this install on a virtualbox vm? I can try doing the install using a small raspberry PI and see if I get the same results maybe?
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Re: New Cacti Install 0.8.8c on Centos7
Strange, this morning, everything is just working.
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: New Cacti Install 0.8.8c on Centos7
Self-Healing Software ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: New Cacti Install 0.8.8c on Centos7
Indeed!
I'll just accept it and move on, thanks for the help through! Have a good rest of the day.
I'll just accept it and move on, thanks for the help through! Have a good rest of the day.
Cheers,
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Andrew
_________________
Cacti 0.8.8h
Spine 0.8.8h
CentOS 6.8 Final
Who is online
Users browsing this forum: No registered users and 0 guests