Inheritance Override

Inheritance Override

Inheritance Override

Hello there, first post for me. I have setup Centreon with a couple of satellite servers and I love it so far

I hope this is the correct forum for this.. please move it if I am wrong. Here is my question, and I'm sorry and ashamed if it's an easy one

I want to have the following configuration for SNMP:

1. Have a default SNMP community. I am doing this with $USER2$ macro in my service templates.
2. *Override* this community string for particular hosts, without having to create new service checks or templates.

Hopefully the outline below will make this more clear. I want to use the *same* service checks templates, but use the HOSTSNMPCOMMUNITY string *if it is set*

- Default for all hosts: snmp_community_default
- Host aaaa: community_futbol
- Host bbbb: community_futbol
- Host argh: community_not_secure

All of the hosts in these host groups will be Linux servers. I want to share the same SNMP service checks between them (e.g. CPU, Disk-/, Memory). But if any of the hosts have the "SNMP Community and Version" fields filled in, I want to use those values in the service checks, *instead of $USER2$*

The reason I need to do this: use a different community string for insecure hosts.. in case they are compromised, that community string cannot be used to query secure hosts. And do this without having to make lots of duplicate service checks.

Right now, if I use $_HOSTSNMPCOMMUNITY$ in a command, it will be correct if a host has a configured community. But if it doesn't, the macro defaults to 'public' *instead* of $USER2$.

I tried doing things like putting backtick bash script and perl -e in command definitions to do things like this:

perl -e 'print "$_HOSTSNMPCOMMUNITY$" eq "" ? "$USER2$" : "$_HOSTSNMPCOMMUNITY$"'

However, the $_HOSTSNMPCOMMUNITY$ is "public" if the host does not have a specified community Even though $USER2$ is "snmp_community_default".


I need $_HOSTSNMPCOMMUNITY$ to be "" if the host community is blank. Is it possible to do something like this?


Thanks for any help!


Hello there, first post for me. I have setup Centreon with a couple of satellite servers and I love it so far

I hope this is the correct forum for this.. please move it if I am wrong. Here is my question, and I'm sorry and ashamed if it's an easy one

I want to have the following configuration for SNMP:

1. Have a default SNMP community. I am doing this with $USER2$ macro in my service templates.
2. *Override* this community string for particular hosts, without having to create new service checks or templates.

Hopefully the outline below will make this more clear. I want to use the *same* service checks templates, but use the HOSTSNMPCOMMUNITY string *if it is set*

- Default for all hosts: snmp_community_default
- Host aaaa: community_futbol
- Host bbbb: community_futbol
- Host argh: community_not_secure

All of the hosts in these host groups will be Linux servers. I want to share the same SNMP service checks between them (e.g. CPU, Disk-/, Memory). But if any of the hosts have the "SNMP Community and Version" fields filled in, I want to use those values in the service checks, *instead of $USER2$*

The reason I need to do this: use a different community string for insecure hosts.. in case they are compromised, that community string cannot be used to query secure hosts. And do this without having to make lots of duplicate service checks.

Right now, if I use $_HOSTSNMPCOMMUNITY$ in a command, it will be correct if a host has a configured community. But if it doesn't, the macro defaults to 'public' *instead* of $USER2$.

I tried doing things like putting backtick bash script and perl -e in command definitions to do things like this:

perl -e 'print "$_HOSTSNMPCOMMUNITY$" eq "" ? "$USER2$" : "$_HOSTSNMPCOMMUNITY$"'

However, the $_HOSTSNMPCOMMUNITY$ is "public" if the host does not have a specified community Even though $USER2$ is "snmp_community_default".


I need $_HOSTSNMPCOMMUNITY$ to be "" if the host community is blank. Is it possible to do something like this?


Thanks for any help!


  • What Is Inheritance

    Definition of INHERITANCE. 1. a: the act of inheriting property b: the reception of genetic qualities by transmission from parent to offspring c: the acquisition of a ...

  • Multifactorial Inheritance

    Multifactorial diseases, such as coronary artery disease, can be as complex as their name suggests. How much can we hope to understand about diseases with such variation ...

  • Particulate Inheritance

    Mendelian inheritance (or Mendelian genetics or Mendelism) is a scientific description of how hereditary characteristics are passed from parent organisms to their offspring ...

  • Inheritance Computer Science Free Trial Spyware Remover

    Free Software Downloads - DVD Ripper, DVD Copy, Registry Cleaner, MP3 Software, Screensaver Maker, Spyware Remover

  • Cheats For Pippa Funnell The Stud Farm Inheritance

    First, Follow Rose's insructions about turning left on leaving the stud farm Follow that trail until you reach the c.., Pippa Funnell: The Stud Farm Inheritance PC