ddurieux / glpi_monitoring

19 stars 20 forks source link

Timeperiod 24x7 don't work #205

Open Sismic opened 8 years ago

Sismic commented 8 years ago

capture i have 24x7 for all my components and in fact command are send with calendar working day.

camlafit commented 8 years ago

Hi

I redo a fresh plugin install, and see a pb with timeperiods export webeservices. Have you try a call to monitoring.shinkenTimeperiods ? Without any more information, would be an empty array() I you try before with a monitoring.shinkenServices call, array would be populate.

I presume problem with webservice method/call, all timesperiods are set in PHP session. In some case session looks empty.

In my case I've re-enable my timeperiods.cfg file to get a full timeperiods.

ddurieux commented 8 years ago

Have you shinken modyle "import-glpi" up to date?

camlafit commented 8 years ago

Hi

In my case done with shinken update import-glpi. From import-glpi 0 timeperiods are imported, with call rest on glpi, I can obtain these with this couple query (monitoring.shinkenServices before monitoring.shinkenTimeperiods). Alone array timepreriods is empty.

hahahafr commented 8 years ago

Have you solved this ? Did you try changing the actual timeperiod hours in glpi ? It's in Accueil > Configuration > Intitulés > Calendriers or /glpi/front/calendar.php directly.

Jm0u commented 8 years ago

i've the same problem with fresh install. import-glpi up to date to and timeperiod.cfg is empty. i test the import with file get-config.php i've you got solution?

hahahafr commented 8 years ago

Try to modify the actual time periods hours in glpi, the link is in the previous post. If it doesn't work you have a bug then. On Mar 29, 2016 5:57 PM, "Jm0u" notifications@github.com wrote:

i've the same problem with fresh install. import-glpi up to date to and timeperiod.cfg is empty. i test the import with file get-config.php i've you got solution?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ddurieux/glpi_monitoring/issues/205#issuecomment-202972676

Jm0u commented 8 years ago

I test this solution but not work. so i used file template.cfg directly from shinken

ddurieux commented 8 years ago

Yes, it's because you need load timeperiods in the end (so after get host, services...)