Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syslogs error logs "sflowmgrd is not running" #5025

Open
banagiri opened this issue Jul 23, 2020 · 2 comments
Open

syslogs error logs "sflowmgrd is not running" #5025

banagiri opened this issue Jul 23, 2020 · 2 comments
Assignees
Labels
Bug 🐛 Triaged this issue has been triaged

Comments

@banagiri
Copy link
Contributor

Description

monit tool is logging error logs in syslog as "sflowd is not running", which is causing the log analyzer from ptf to fail

Steps to reproduce the issue:

  1. config reload or reboot

Describe the results you received:
Error logs
sonic ERR monit[377]: 'sflowmgrd' process is not running

root@sonic:/home/admin# systemctl status sflow
● sflow.service
   Loaded: masked (Reason: Unit sflow.service is masked.)
   Active: inactive (dead) since Fri 2019-02-15 05:26:42 UTC; 10min ago
Main PID: 14583 (code=exited, status=0/SUCCESS)

Describe the results you expected:
No errors to be logged

Additional information you deem important (e.g. issue happens only occasionally):
This relates to
#4137
sonic-net/sonic-utilities#944

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
@banagiri banagiri changed the title syslogs error logs "sflowd is not running" syslogs error logs "sflowmgrd is not running" Jul 23, 2020
@banagiri
Copy link
Contributor Author

@jleveque @yozhao101

This can be fixed by enabling sflow service in init_cfg.json.j2.
But need to know what is the reason for disabling sflow? was it causing delayed startup or any ?
Why the monit script is checking for a disabled service?

@yozhao101
Copy link
Contributor

yozhao101 commented Jul 23, 2020

Why the monit script is checking for a disabled service?

The Monit to monitor the processes in sflow container is merged into repo before sflow service is disabled. Right now I am working on the solution which will not monitor the processes in the service according to whether such service is enabled or disabled in configuration file.

@yxieca yxieca added Bug 🐛 Triaged this issue has been triaged labels Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

3 participants