Modify or get contact pager number using external command ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
fgilain
Posts: 8
Joined: Tue Nov 22, 2011 5:01 am

Modify or get contact pager number using external command ?

Post by fgilain »

Hello all,

I'm looking for a way to get the actual value of a contact attribute (pager number) using "external command".

But i'm unable to understand the documentation even if it seems to be possible...could someone help me ?

URL i found about it : http://old.nagios.org/developerinfo/ext ... ndlist.php

I forgot to tell that my main goal is to be able to modify that value...

Thanks a lot

Florent
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Modify or get contact pager number using external comman

Post by abrist »

The pager directive is not accessible through the external command pipe. You would have to create a script that changes the the pager line in the contact config.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Modify or get contact pager number using external comman

Post by scottwilkerson »

The only way to do this in Core is to modify the contact configuration object and restart nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fgilain
Posts: 8
Joined: Tue Nov 22, 2011 5:01 am

Re: Modify or get contact pager number using external comman

Post by fgilain »

ok, thanks.
Locked