SELinux problem after running audit2allow
Moderators: Developers, Moderators
Other suggestions?
I've followed these instructions for updating SELinux to allow Cacti to run and rebooted but I am still not getting graphs generated and now `audit2allow -d' displays nothing but the output of `php poller.php' is the same as it was before.
Any other suggestions?
Any other suggestions?
--myo
Re: Other suggestions?
Can you paste the output of php poller.php?myo wrote:I've followed these instructions for updating SELinux to allow Cacti to run and rebooted but I am still not getting graphs generated and now `audit2allow -d' displays nothing but the output of `php poller.php' is the same as it was before.
Any other suggestions?
- Mathieu
poller.php output
[08:05:38][root@narsil:(/var/www/html/cacti)]# php /var/www/html/cacti/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.11
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 0]
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
Waiting on 2/2 pollers.
Waiting on 1/2 pollers.
Waiting on 1/2 pollers.
05/26/2005 08:05:44 AM - SYSTEM STATS: Time: 3.0476 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
Content-type: text/html
X-Powered-By: PHP/4.3.11
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 0]
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
Waiting on 2/2 pollers.
Waiting on 1/2 pollers.
Waiting on 1/2 pollers.
05/26/2005 08:05:44 AM - SYSTEM STATS: Time: 3.0476 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
--myo
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Split from annoucement for easier support.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
cacti.log for the last run...
05/26/2005 08:05:16 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 0]
05/26/2005 08:05:16 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
05/26/2005 08:05:16 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www/html/cacti
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/html/cacti
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/html/cacti/script_server.php
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/26/2005 08:05:16 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Host[3] PING: Host is Alive
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond to SNMP
05/26/2005 08:05:18 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Time: 2.2572 s, Theads: N/A, Hosts: 105/26/2005 08:05:19 AM - SYSTEM STATS: Time: 3.0484 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 0]
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
05/26/2005 08:05:41 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www/html/cacti
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/html/cacti
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/html/cacti/script_server.php
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/26/2005 08:05:42 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Host[3] PING: Host is Alive
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond to SNMP
05/26/2005 08:05:44 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Time: 2.2597 s, Theads: N/A, Hosts: 105/26/2005 08:05:44 AM - SYSTEM STATS: Time: 3.0476 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/26/2005 08:05:16 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
05/26/2005 08:05:16 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www/html/cacti
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/html/cacti
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/html/cacti/script_server.php
05/26/2005 08:05:16 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/26/2005 08:05:16 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Host[3] PING: Host is Alive
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond to SNMP
05/26/2005 08:05:18 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/26/2005 08:05:18 AM - CMDPHP: Poller[0] Time: 2.2572 s, Theads: N/A, Hosts: 105/26/2005 08:05:19 AM - SYSTEM STATS: Time: 3.0484 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 0]
05/26/2005 08:05:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 3 3]
05/26/2005 08:05:41 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www/html/cacti
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/html/cacti
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/html/cacti/script_server.php
05/26/2005 08:05:42 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/26/2005 08:05:42 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Host[3] PING: Host is Alive
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond to SNMP
05/26/2005 08:05:44 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/26/2005 08:05:44 AM - CMDPHP: Poller[0] Time: 2.2597 s, Theads: N/A, Hosts: 105/26/2005 08:05:44 AM - SYSTEM STATS: Time: 3.0476 s, Method: cmd.php, Processes: 15, Threads: N/A, Hosts: 2, Hosts/Process: 1
--myo
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Sorry, you posted on the announcement and I couldn't merge this reply onto this message. So I had to quote it.myo wrote:$CACTI_HOME/rra is still empty.
As i said,outputs nothing and after having runCode: Select all
audit2allow -d
a few times since rebooting,Code: Select all
php poller.php
now gives no output as well. Is there somewhere else that I could be looking for clues as to what the problem might be?Code: Select all
grep "avc: denied" /var/log/messages
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Re: cacti.log for the last run...
You might want to review your configuration.myo wrote:05/26/2005 08:05:16 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
- Mathieu
Yes....
I saw this and thought that might be the problem but polling is enabled...unless I am misreading Settings->Poller:
Poller Enabled {checked}
Poller Type {cmd.php}
Am I missing something else?
Poller Enabled {checked}
Poller Type {cmd.php}
Am I missing something else?
--myo
Re: Yes....
Looks ok. Try System Utilities->View Poller Cache and Clear Poller Cache and post your results.myo wrote:I saw this and thought that might be the problem but polling is enabled...unless I am misreading Settings->Poller:
Poller Enabled {checked}
Poller Type {cmd.php}
Am I missing something else?
- Mathieu
View poller cache
Code: Select all
Data Source: narsil - Memory - Free
RRD: /var/www/html/cacti/rra/narsil_mem_buffers_25.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:
Data Source: narsil - Memory - Free Swap
RRD: /var/www/html/cacti/rra/narsil_mem_swap_26.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:
Data Source: narsil - Load Average
RRD: /var/www/html/cacti/rra/narsil_load_1min_27.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/loadavg_multi.pl
Data Source: narsil - Logged in Users
RRD: /var/www/html/cacti/rra/narsil_users_28.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/unix_users.pl
Data Source: narsil - Ping Host
RRD: /var/www/html/cacti/rra/narsil_ping_29.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/ping.pl localhost
Data Source: narsil - Processes
RRD: /var/www/html/cacti/rra/narsil_proc_30.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/unix_processes.pl
Data Source: narsil - Free Space - /dev/mapper/Vol
RRD: /var/www/html/cacti/rra/narsil_hdd_free_31.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/query_unix_partitions.pl get available /dev/mapper/VolGroup00-LogVol00
Data Source: narsil - Free Space - /dev/mapper/Vol
RRD: /var/www/html/cacti/rra/narsil_hdd_free_31.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/query_unix_partitions.pl get used /dev/mapper/VolGroup00-LogVol00
Data Source: narsil - Free Space - /dev/sda1
RRD: /var/www/html/cacti/rra/narsil_hdd_free_32.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/query_unix_partitions.pl get used /dev/sda1
Data Source: narsil - Free Space - /dev/sda1
RRD: /var/www/html/cacti/rra/narsil_hdd_free_32.rrd
Action: 1, Script: perl /var/www/html/cacti/scripts/query_unix_partitions.pl get available /dev/sda1
Thanks for the quick responses on this!!
--myo
Re: View poller cache
Well, Clear Poller Cache should work. As for Clear Cacti Log, it doesn't work for me either but it's expected as the Apache user has no right to clear/remove it!myo wrote:And it appears that neither Clear Poller Cache nor Clear Cacti Log are working for me through the web interface.
Correct make sure the cacti user has write permissions to it though.I assume I can echo "" into the cacti log to clear it
In mysql, database cacti, run "truncate table poller_item".but how might I manually clear the poller cache?
- Mathieu
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Just run clear poller cache... The name is a little miss leading, because it clears it then rebuilds it. So seeing output is normal.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Well...
I tried all of these suggestions and my situation is right back to where this began: no graphs, nothing in $CACTI/rra, no errors that i can find, and no clue what to do next...should I just turn around and re-install?
Thanks again for all of the suggestions!
Thanks again for all of the suggestions!
--myo
Re: Well...
And you're not getting anything at all? Same error if you run poller.cmd?myo wrote:I tried all of these suggestions and my situation is right back to where this began: no graphs, nothing in $CACTI/rra, no errors that i can find, and no clue what to do next...should I just turn around and re-install?
- Mathieu
Who is online
Users browsing this forum: No registered users and 1 guest