Hi Everyone,
I am hoping that someone can help me here. I am trying to setup Opsview
so that I have an On Call Rotation schedule and Escalation path. I have
googled it and found a suggestion to edit the nagconfgen.pl and insert a
cfg_dir=local.d and put the new timeperiod.cfg and other custom files in
there since I am trying to do something like this:
define timeperiod {
timeperiod_name admin1-oncall ; alias Amin1's oncall
rotation
2010-11-15 / 2 17:00-24:00
2010-11-16 / 2 00:00-08:00
}
define timeperiod {
timeperiod_name admin2-oncall ; alias Amin2's oncall
rotation
2010-11-16 / 2 17:00-24:00
2010-11-17 / 2 00:00-08:00
}
But when I go to reload Opsview I get an error about not being able to
create the local.d directory in the tmp folder. I added a section in
the nagconfgen.pl to create this folder, but its not working:
# Create custom local.d directory
my $local_dir = "$configfilepath/local.d";
if ( !-d $local_dir ) {
mkdir $local_dir or die "Cannot create $local_dir: $!";
}
I put this right below the conf.d directory create section.
I am wanting the first X number of alarms to go to the person on call
and if they don't respond then I want it to be escalated to the rest of
the group.
Has anyone set this up? Can you share how you did it?
Thanks
Joe
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users