error in cacti.conf

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Nothing just same web log ...

this is the output of /var/www/cacti/log/cacti.log
Attachments
cacti_log_output.png
cacti_log_output.png (76.25 KiB) Viewed 1692 times
cacti_log.png
cacti_log.png (52.31 KiB) Viewed 1692 times
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

It looks like you aren't running the poller.
Can you check your crontab to make sure have the poller running?
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Here is a screen for cron ...
Attachments
cacti_cron.png
cacti_cron.png (45.4 KiB) Viewed 1692 times
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Alright,
So do 2 things. First in your technical support page give me a screenshot like the one I provided.
Then run the php /var/www/cacti/poller.php manually.
By the way, I suspect that you might need to call out the full path of php instead of just the name. You could also take off the &>/dev/null and output to >/tmp/poller.log. You'll see if you get any errors executing the command.
-Dan
Attachments
Untitled.png
Untitled.png (13.1 KiB) Viewed 1692 times
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Here the informations ...
Attachments
cacti_php_command_and_output.png
cacti_php_command_and_output.png (42.54 KiB) Viewed 1692 times
cacti_poller_information.png
cacti_poller_information.png (11.17 KiB) Viewed 1692 times
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Well I find it odd that you don't get any logs for a poller cycle when you have debug on, but your poller is obviously running.

Try the debugging steps in this link: http://docs.cacti.net/manual:087:4_help ... #debugging


I can't really do much to help unless I can see what the poller is doing.
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Thanks for you help and time , i remark on your poller information screen the type was in spine and mine is in cmd ? it doesn't afect anything ?
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

You only need spine for larger installations. cmd.php should work just fine.
Can you post your cacti.log file here? it's located in the log directory of cacti.
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

09/06/2012 10:45:08 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '7', Max Runtime '298', Poller Runs: '1'

09/06/2012 10:45:08 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 7 seconds have passed since the poller last ran.
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

That's all that's in your entire cacti.log file?

Did you update the path on the crontab for php to be the full path?
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

i ve change in the cron ... here is the output and another i would like to ask is that the is no cactiuser in the system there is any probleme with that ...?

09/06/2012 11:15:58 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '657', Max Runtime '298', Poller Runs: '1'
09/06/2012 11:15:58 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 657 seconds have passed since the last poll!
09/06/2012 11:15:58 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/cmd.php" 0 2]
09/06/2012 11:15:58 AM - CMDPHP: Poller[0] Host[1] PING: UDP Ping Success (0.04 ms)
09/06/2012 11:15:58 AM - CMDPHP: Poller[0] Host[1] DS[8] CMD: perl /var/www/cacti/scripts/ping.pl 127.0.0.1, output: 0.009
09/06/2012 11:15:58 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_ping_8.rrd --template ping 1346922958:0.009
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'-', and OID:'.1.3.6.1.2.1.1.3.0'
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Host[2] PING: ICMP Ping Success (1.392 ms)
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Host[2] SNMP: Host did not respond to SNMP
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Time: 1.0151 s, Theads: N/A, Hosts: 2
09/06/2012 11:15:59 AM - SYSTEM STATS: Time:1.1258 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:6 RRDsProcessed:1
09/06/2012 11:17:33 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '95', Max Runtime '298', Poller Runs: '1'
09/06/2012 11:17:33 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 95 seconds have passed since the poller last ran.
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

If there's no cacti user on the system then why are you running the cron as cacti user?

How did you install this system? Manually? or through a repository?

Did you follow the install instructions?
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

sorry when i was reading the manual that u send so i confuse with cactiuser and cacti the cacti (is the user of cacti) ...

i have install from through a repository via yum...

i just remark that the cron job was not in the crontab -e file i have add it manualy ...

but the cacti.log file nothing have change ... still the same ...


[root@ns2 cacti]# tail -f /var/www/cacti/log/cacti.log
09/06/2012 11:15:58 AM - CMDPHP: Poller[0] Host[1] PING: UDP Ping Success (0.04 ms)
09/06/2012 11:15:58 AM - CMDPHP: Poller[0] Host[1] DS[8] CMD: perl /var/www/cacti/scripts/ping.pl 127.0.0.1, output: 0.009
09/06/2012 11:15:58 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_ping_8.rrd --template ping 1346922958:0.009
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'41.186.3.166', and OID:'.1.3.6.1.2.1.1.3.0'
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Host[2] PING: ICMP Ping Success (1.392 ms)
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Host[2] SNMP: Host did not respond to SNMP
09/06/2012 11:15:59 AM - CMDPHP: Poller[0] Time: 1.0151 s, Theads: N/A, Hosts: 2
09/06/2012 11:15:59 AM - SYSTEM STATS: Time:1.1258 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:6 RRDsProcessed:1
09/06/2012 11:17:33 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '95', Max Runtime '298', Poller Runs: '1'
09/06/2012 11:17:33 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 95 seconds have passed since the poller last ran.

but on the cron log i can see that it executing the poller.php

Sep 6 10:35:01 ns2 crond[10214]: (cacti) CMD (/usr/bin/php /var/www/cacti/poller.php &>/tmp/poller.log)
Sep 6 10:35:40 ns2 crontab[10171]: (root) REPLACE (root)
Sep 6 10:35:40 ns2 crontab[10171]: (root) END EDIT (root)
Sep 6 10:35:47 ns2 crond[10236]: (CRON) STARTUP (V5.0)
Sep 6 10:35:47 ns2 crond[10236]: (CRON) @reboot jobs will be run at computer's startup. ()
Sep 6 10:40:01 ns2 crond[10277]: (cacti) CMD (/usr/bin/php /var/www/cacti/poller.php &>/tmp/poller.log)
Sep 6 10:40:01 ns2 crond[10278]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

I think you just accidentally added it to another cron.

You have to be careful, because crons are per user.

Do a crontab -l -u cacti
and then crontab -l, unless your terminal happens to be logged in as cacti.
I bet you have it in there twice.
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

sorry i win is just once ... lol but it very strange on webmin is the but no crontab?
Attachments
cron_cacti.png
cron_cacti.png (44.04 KiB) Viewed 1677 times
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests