I am getting following error while restarting the nagios3 service:
Error: Service check command 'check_pgactivity -U nagios_dispatcher -s bgwriter -w 80% -c 95%' specified in service 'check_pgactivity' for host 'localhost' not defined anywhere!
I have following entry in postgresql.cgf
define service {
host_name localhost
service_description check_pgactivity
check_command check_pgactivity -U nagios_dispatcher -s bgwriter -w 80% -c 95%
max_check_attempts 3
check_interval 3
retry_interval 3
check_period 24x7
}
Error: Service check command 'check_pgactivity -U nagios_dis
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Error: Service check command 'check_pgactivity -U nagios
I think you need a command definition like this:
Then your service would be defined like:
Code: Select all
define command {
command_name check_pgactivity
command_line $USER1$/check_pgactivity $ARG1$
}
Code: Select all
define service {
host_name localhost
service_description check_pgactivity
check_command check_pgactivity!-U nagios_dispatcher -s bgwriter -w 80% -c 95%
max_check_attempts 3
check_interval 3
retry_interval 3
check_period 24x7
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Error: Service check command 'check_pgactivity -U nagios
I can restart the nagios service successfully after making the changes. Now the problem is I cannot see the service on OPM UI.
Re: Error: Service check command 'check_pgactivity -U nagios
OPM isn't our product, so it's hard to say what the issue is. Your best bet is contacting them for support.
Former Nagios Employee
Re: Error: Service check command 'check_pgactivity -U nagios
But, from OPM they are saying that it is the problem in Nagios end.
Re: Error: Service check command 'check_pgactivity -U nagios
Closing this one, we will continue in your other thread. http://support.nagios.com/forum/viewtop ... 850#193267
Former Nagios Employee