Hello Support,
We've been trying to setup watchdog but without success. We are using version 5.2.
What have tested watchdog_mail_script.sh and its working fine with our postfix but when we try to run watchdog_event_hook.sh manually we are getting errors below :
----------------------------------------------------------------------------(
[root@magija bin]# ./watchdog_event_hook.sh 36804 EventScannerDown /usr/local/FlashphonerWebCallServer
Params: PID: 36804 EVENT: EventScannerDown APPHOME: /usr/local/FlashphonerWebCallServer
REPORT_DIR: /usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40
mkdir: cannot create directory ‘/usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40’: No such file or directory
./watchdog_event_hook.sh: line 17: cd: /usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40: No such file or directory
mkdir: cannot create directory ‘logs_snapshot’: File exists
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/flashphoner_manager.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/gc-core.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/gc-manager.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/error[0-9]*.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/*.netstat’: No such file or directory
mkdir: cannot create directory ‘conf’: File exists
mkdir: cannot create directory ‘bin’: File exists
./watchdog_event_hook.sh: line 61: cd: /usr/local/FlashphonerWebCallServer/logs/watchdog: No such file or directory
tar: report-19-10-24-21_28_40: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
------------------------------------------------------------)
We noticed that there are no watchdog logs at all :
------------------------------------------------------------(
[root@magija FlashphonerWebCallServer]# grep -r 'watchdog' logs/
[root@magija FlashphonerWebCallServer]#
------------------------------------------------------------)
Important content of /FlashphonerWebCallServer/conf/watchdog.properties is below :
------------------------------------------------------------------------------(
wcs_core_pid=/var/run/FlashphonerMainWebCallServer.pid
client.jmx_port=50999
client.jmx_login=admin
client.jmx_password=admin
client.max_failure_count=2
client.handle_failure_interval=60000
client.failure_check_interval=60000
client.notification.email=head@gobuddies.tech
client.notify_only=true
watchdog_events=CoreProcessDown,EventScannerDown,SIPRegDoesNotWork
on_watchdog_event=watchdog_event_hook.sh
watchdog_autorun=true
server.registration.credentials=login:login,authenticationName:authenticationName,passwordassword,domain:domain,outboundProxyutboundProxy,port:5060
server.registration.credentials.delimiter1=,
server.registration.credentials.delimiter2=:
notify_only=true
sendmail_script=watchdog_mail_script.sh
--------------------------------------------------------)
Can you please asssit ?
Regards,
Srdjan I.
We've been trying to setup watchdog but without success. We are using version 5.2.
What have tested watchdog_mail_script.sh and its working fine with our postfix but when we try to run watchdog_event_hook.sh manually we are getting errors below :
----------------------------------------------------------------------------(
[root@magija bin]# ./watchdog_event_hook.sh 36804 EventScannerDown /usr/local/FlashphonerWebCallServer
Params: PID: 36804 EVENT: EventScannerDown APPHOME: /usr/local/FlashphonerWebCallServer
REPORT_DIR: /usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40
mkdir: cannot create directory ‘/usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40’: No such file or directory
./watchdog_event_hook.sh: line 17: cd: /usr/local/FlashphonerWebCallServer/logs/watchdog/report-19-10-24-21_28_40: No such file or directory
mkdir: cannot create directory ‘logs_snapshot’: File exists
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/flashphoner_manager.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/gc-core.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/gc-manager.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/error[0-9]*.log’: No such file or directory
cp: cannot stat ‘/usr/local/FlashphonerWebCallServer/logs/*.netstat’: No such file or directory
mkdir: cannot create directory ‘conf’: File exists
mkdir: cannot create directory ‘bin’: File exists
./watchdog_event_hook.sh: line 61: cd: /usr/local/FlashphonerWebCallServer/logs/watchdog: No such file or directory
tar: report-19-10-24-21_28_40: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
------------------------------------------------------------)
We noticed that there are no watchdog logs at all :
------------------------------------------------------------(
[root@magija FlashphonerWebCallServer]# grep -r 'watchdog' logs/
[root@magija FlashphonerWebCallServer]#
------------------------------------------------------------)
Important content of /FlashphonerWebCallServer/conf/watchdog.properties is below :
------------------------------------------------------------------------------(
wcs_core_pid=/var/run/FlashphonerMainWebCallServer.pid
client.jmx_port=50999
client.jmx_login=admin
client.jmx_password=admin
client.max_failure_count=2
client.handle_failure_interval=60000
client.failure_check_interval=60000
client.notification.email=head@gobuddies.tech
client.notify_only=true
watchdog_events=CoreProcessDown,EventScannerDown,SIPRegDoesNotWork
on_watchdog_event=watchdog_event_hook.sh
watchdog_autorun=true
server.registration.credentials=login:login,authenticationName:authenticationName,passwordassword,domain:domain,outboundProxyutboundProxy,port:5060
server.registration.credentials.delimiter1=,
server.registration.credentials.delimiter2=:
notify_only=true
sendmail_script=watchdog_mail_script.sh
--------------------------------------------------------)
Can you please asssit ?
Regards,
Srdjan I.