generic agent not running automatically

Moderator: crythias

Locked
manikambalva
Znuny newbie
Posts: 8
Joined: 06 Sep 2010, 13:47
Znuny Version: 2.4.7
Real Name: Manikam

generic agent not running automatically

Post by manikambalva »

Hi,

i've configured through web interface a generic agent task to run every 1 minute.

it tuns fine when i execute manually, but does not run automatically.

i edited the files in /var/cron/
Pending_jobs :
*/1 * * * * $HOME/bin/PendingJobs.pl >> /dev/null
generic_agent-database :
*/1 * * * * $HOME/bin/GenericAgent.pl -c db >> /dev/null
and verified the cron task on my server and they are the same as the cronjobs on otrs

i runed
./Cron.sh start otrs

but nothing runs and in see this error on log file :
Mon Dec 5 18:41:07 2011 error OTRS-GenericAgent-10 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Mon Dec 5 18:41:07 2011 error OTRS-PMAccount-10 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Mon Dec 5 18:41:07 2011 error OTRS-PendingJobs-10 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


is there any solution?
thank you
Manikam
OTRS 2.4.7
ITSM 2.0.3
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: generic agent not running automatically

Post by crythias »

Basically, it indicates inability to use sockets to communicate with MySQL, so that's either generally true (check your my.ini) or a misconfiguration...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
manikambalva
Znuny newbie
Posts: 8
Joined: 06 Sep 2010, 13:47
Znuny Version: 2.4.7
Real Name: Manikam

Re: generic agent not running automatically

Post by manikambalva »

Hi,

Finally i could resolve the matter. In fact the errors was due to two things.

1- i haven't choosen all intervalls of hours :( an minutes seemed to me to be evry minute but it was at 10 mn interval and actions were based on tickets aged 1mn and i had other jobs shifting the tickets from one priority to an other:)
once i found out the issue that i was a bit silly and dumb, every thing worked well when i paid more attention to simple things.

2- the mail werent fetching, but this is a real issue :)

in fact using fetchmail is not stable, but when i erase the fetchmail from cron jobs, and juste use postmaster_mailbox every thing work perfect in receiving mails and applying filters.

Thnks a lot to every one who helped me.
OTRS 2.4.7
ITSM 2.0.3
Locked