[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cacti-user
Subject:    Re: [cacti-user] Device Status Unknown
From:       Reinhard Scheck <Reinhard.Scheck () team-scheck ! de>
Date:       2008-11-11 18:25:19
Message-ID: 4919CE0F.9040202 () team-scheck ! de
[Download RAW message or body]

Eduardo Antonio Bortolini wrote:
> I did this steps:
>      ll /usr/bin/php
> this shows
> drwxrwxrwx  3 cactiuser  cactiuser   512 Oct 30 10:53 .channels
> -rwxrwxrwx  1 cactiuser  cactiuser  2459 Oct 30 10:53 .depdb
> -rwxrwxrwx  1 cactiuser  cactiuser     0 Oct 30 10:53 .depdblock
> -rwxrwxrwx  1 cactiuser  cactiuser     6 Oct 30 10:53 .filemap
> -rwxrwxrwx  1 cactiuser  cactiuser     0 Oct 30 10:53 .lock
> drwxrwxrwx  4 cactiuser  cactiuser   512 Oct 30 10:53 .registry
> 
> in the logs of /tmp/poller
> 
> /usr/bin/php: Permission denied
Then provide permissions to php for cactiuser, please

Reinhard


> 
> I am using /etc/crontab

> 
> 
> 
> 
> 
> 2008/11/10 Reinhard Scheck <Reinhard.Scheck@team-scheck.de>
> 
>> Eduardo Antonio Bortolini wrote:
>>> Dear,
>>>
>>> I did many tests and I concluded that when I run cmd.php and poller.php
>> the
>>> device is up and the graphs is showed, but without data....
>>>
>>> I think that crontab is not work properly
>>>
>>> I created the user cactiuser and put this line in crontab
>>>
>>> */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
>> Try
>> */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /tmp/poller.log
>> 2>&1
>> and look at that file.
>> Crond activity is normally logged to /var/log/messages
>> so looking at this file may help as well
>> Assuming, php is at /usr/bin/php,
>> */5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php >
>> /dev/null 2>&1
>> may be better.
>> Please know, that the crontab entry will differ if you use the crontab of
>> the
>> cactiuser instead of /etc/crontab!
>>
>> Reinhard
>>  >
>>>  I don't know more what to do...
>>>
>>>
>>>
>>>
>>>
>>> 2008/11/7, Teada, Brian (NIH/NLM/NCBI) [C] <teadab@ncbi.nlm.nih.gov>:
>>>> Have you checked the cacti poller logs to make sure it is running
>> properly?
>>>> -----Original Message-----
>>>> From: Eduardo Antonio Bortolini [mailto:ebortolini@gmail.com]
>>>> Sent: Friday, November 07, 2008 11:00 AM
>>>> To: Support requests/questions about cacti
>>>> Subject: Re: [cacti-user] Device Status Unknown
>>>>
>>>> I tried to do it,
>>>>
>>>> but the same old old problem occur:
>>>>
>>>> RRDTool Says:
>>>>
>>>>
>>>> ERROR: opening '/usr/local/share/cacti/rra/bsd_errors_in_44.rrd': No
>>>> such file or directory
>>>>
>>>>
>>>> my steps were:
>>>>
>>>> I tried to run php /usr/local/www/data/cacti/poller.php
>>>> But the responde īs /usr/bin/php: Permission denied
>>>>
>>>> I think that this is the problem, but I can't to solve. I set the
>> correct
>>>> permission for rra/ and log/
>>>>
>>>> I don't know what to do....
>>>>
>>>>
>>>> 2008/11/7, Teada, Brian (NIH/NLM/NCBI) [C] <teadab@ncbi.nlm.nih.gov>:
>>>>> Usually adding graphs to the host changes status from unknown to Up.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Eduardo Antonio Bortolini [mailto:ebortolini@gmail.com]
>>>>> Sent: Friday, November 07, 2008 8:55 AM
>>>>> To: cacti-user@lists.sourceforge.net
>>>>> Subject: [cacti-user] Device Status Unknown
>>>>>
>>>>> Dear,
>>>>>
>>>>> I am using cacti at first time. Seems is working well, but me problems
>>>>> are
>>>>> with graph generate. I add a device and the SNMP is ok, SNMP
>> information
>>>>> is
>>>>> OK. But the status devide is down. I tested the device with snmpwalk
>> and
>>>>> it's ok too.
>>>>>
>>>>> Does somebody have some ideia?
>>>>>
>>>>> Best Regards, Eduardo


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cacti-user mailing list
cacti-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cacti-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic