Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 26, 2017 9:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: pooler_bottom, not calling plug in anymore
PostPosted: Fri Apr 21, 2017 7:44 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
It's look like I have a problem with the plugin hock for poller_bottom
since the upgrade to 1.1.2 it's look like this function exec_background($command_string, $extra_args); inside poller_bottom, is not called correctly

And I have it under monitor or my own plugin, all acting the same.

I find that in the log:
2017-04-21 14:39:39 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: /usr/share/cacti-1/plugins/linkdiscovery/findhosts.php > /tmp/findhost.php]
2017-04-21 14:39:39 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /usr/share/cacti-1/plugins/monitor/poller_monitor.php > /tmp/monitor.php]

but nothing more, even if i put an error inside eache file called (poller_monitor.php or findhost.php) nothing is displayed oin any log (cacti.log, php_errror or httpd/error_log)

but if i call, at least findhost.php, from the command line it's working.

How can i trace more of this call ?
i try the args to php -q, -e but nothing more to explain what happen

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: pooler_bottom, not calling plug in anymore
PostPosted: Fri Apr 28, 2017 5:36 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2562
Location: B/CS Texas
SELinux?

All my plugins seem to be called just fine.

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: pooler_bottom, not calling plug in anymore
PostPosted: Wed May 03, 2017 6:08 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
no, centos

And i can't find why.
i event try that:
into monitor/setup.php, on function monitor_poller_bottom()
I add the following line:
exec_background($command_string, '/usr/share/cacti-1/plugins/linkdiscovery/test.php');

and the test.php his like that:
<?php

print 'test php';

?>

And nothing come out on cacti.log

I can't figure out what is wrong with my system !!
On the same server I have a version 0.8.8h in another directory who is working fine, the user right access is setup correctly all the way arround (to apache:apache)
and on my log nothing, nothing on error_log

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: pooler_bottom, not calling plug in anymore
PostPosted: Wed May 03, 2017 6:39 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
I setup my login in DEBUG mode, and I think in this level I should see this messages:
cacti_log("DEBUG: About to Spawn a Remote Process [CMD: $filename, ARGS: $args]", true, 'POLLER', ($debug ? POLLER_VERBOSITY_NONE:POLLER_VERBOSITY_DEBUG));


from the axec_background call, but nothing show up on the cacti log, how come ?

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: pooler_bottom, not calling plug in anymore
PostPosted: Wed May 03, 2017 5:44 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2562
Location: B/CS Texas
Rno wrote:
no, centos

No, my query about SELinux is whether SELinux is enabled under Centos.
cat /etc/sysconfig/selinux

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: pooler_bottom, not calling plug in anymore
PostPosted: Thu May 04, 2017 3:04 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
Sorry

here it is:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

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:  
cron

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