You are here

nsca password

2 posts / 0 new
Last post
stevenbrs
stevenbrs's picture
nsca password

It is not possible to set a separate nsca-password. The nagconfgen.pl-script automatically uses the dbpasswd as nsca_password.

A nice solution would be the addition of $nsca_password in opsview.conf.

stevenbrs
stevenbrs's picture
Re: nsca password

Changes to implement a separate password:

/usr/local/nagios/etc/opsview.conf:
- add : $nsca_password = “<passwd>”;

/usr/local/nagios/lib/Opsview/Config.pm
- add : sub nsca_password { return $Settings::nsca_password }

/usr/local/nagios/bin/nagconfgen.pl
- change : my $passwd = Opsview::Config->dbpasswd;
- by : my $passwd = Opsview::Config->nsca_password;
in 2 routines: write_nscacfg() and write_send_nscacfg()