lconf ldif helper for centreon and nagios plugins

To be used with Lconf config, as it relates to the use of the centreon and nagios icinga plugins.

$USER2$ is the community string for SNMP declared in /etc/icinga/resource.cfg.

ldapadd -h localhost -x -D "cn=Manager,dc=icinga,dc=cfg" -f ~/more_plugins.ldif -w ldap_PASSWORD

The contents of more_plugins.ldif should be:

version: 1

#
# LDAPv3
# base <ou=LConf,dc=icinga,dc=cfg> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# _plugins, IcingaConfig, LConf, icinga.cfg
dn: ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
ou: _plugins
objectClass: lconfStructuralObject

# centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
ou: centreon_plugins
objectClass: lconfStructuralObject

# nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
ou: nagios_plugins
objectClass: lconfStructuralObject

# check_ftp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ftp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
cn: check_ftp
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_hpjd, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_hpjd,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$
cn: check_hpjd
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_snmp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_snmp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
cn: check_snmp
objectClass: lconfCommand

# check_http, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_http,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_http
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_ssh, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ssh,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ssh -H $HOSTADDRESS$ $ARG1$
cn: check_ssh
objectClass: lconfCommand

# check_dhcp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_dhcp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_dhcp $ARG1$
cn: check_dhcp
objectClass: lconfCommand

# check_ping, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ping,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
cn: check_ping
objectClass: lconfCommand

# check_pop, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_pop,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$
cn: check_pop
objectClass: lconfCommand

# check_imap, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_imap,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_imap -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_imap
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_smtp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_smtp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
cn: check_smtp
objectClass: lconfCommand

# check_tcp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_tcp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
cn: check_tcp
objectClass: lconfCommand

# check_udp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_udp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
cn: check_udp
objectClass: lconfCommand

# check_nt, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_nt,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_nt
objectClass: lconfCommand

# check_centreon_cpu, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_cpu,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_centreon_snmp_cpu -H $HOSTADDRESS$ -v 2 -C $ARG1$ -c $ARG2$ -w $ARG3$
cn: check_centreon_cpu
objectClass: lconfCommand
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEkVVNFUjIkITgwITkwIDskQVJHMSQJCQkJY29tbXVuaXR5IDskQVJHMiQJCQkJY3JpdGljYWwgOyRBUkczJAkJCQl3YXJuaW5n

# check_centreon_dummy, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_dummy,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEwIU9LIDskQVJHMSQJCQkJc3RhdHVzIDskQVJHMiQJCQkJb3V0cHV0
lconfCommandline: $USER1$/check_centreon_dummy -s $ARG1$ -o $ARG2$
cn: check_centreon_dummy
objectClass: lconfCommand

# check_centreon_load_average, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_load_average,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSExIXB1YmxpYyE0LDMsMiE2LDUsNCA7JEFSRzEkCQkJCVNOTVAgdmVyc2lvbiA7JEFSRzIkCQkJCWNvbW11bml0eSA7JEFSRzMkCQkJCXdhcm5pbmcgOyRBUkc0JAkJCQljcml0aWNhbA==
lconfCommandline: $USER1$/check_centreon_snmp_loadaverage -H $HOSTADDRESS$ -v $ARG1$ -C $ARG2$ -w $ARG3$ -c $ARG4$
cn: check_centreon_load_average
objectClass: lconfCommand

# check_centreon_memory, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_memory,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEkVVNFUjIkITgwITkwIDskQVJHMSQJCQkJY29tbXVuaXR5IDskQVJHMiQJCQkJY3JpdGljYWwgOyRBUkczJAkJCQl3YXJuaW5n
lconfCommandline: $USER1$/check_centreon_snmp_memory -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$
cn: check_centreon_memory
objectClass: lconfCommand

# check_centreon_nb_connections, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_nb_connections,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSE4MCE3MCExMDAgOyRBUkcxJAkJCQlwb3J0IDskQVJHMiQJCQkJd2FybmluZyA7JEFSRzMkCQkJCWNyaXRpY2Fs
lconfCommandline: $USER1$/check_centreon_TcpConn -H $HOSTADDRESS$ -C $USER2$ -v 1 -p $ARG1$ -w $ARG2$ -c $ARG3$
cn: check_centreon_nb_connections
objectClass: lconfCommand

# check_centreon_nt, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_nt,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: OyRBUkcxJAkJCQl2YXJpYWJsZSA7JEFSRzIkCQkJCXBhcmFtcyA7JEFSRzMkCQkJCXBhc3N3b3JkIDskQVJHNCQJCQkJd2FybmluZyA7JEFSRzUkCQkJCWNyaXRpY2Fs
lconfCommandline: $USER1$/check_centreon_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ -l $ARG2$ -s $ARG3$ -w $ARG4$ -c $ARG5$
cn: check_centreon_nt
objectClass: lconfCommand

# check_centreon_ping, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_ping,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEzITIwMCwyMCUhNDAwLDUwJSA7JEFSRzEkCQkJCWNvdW50IDskQVJHMiQJCQkJd2FybmluZyA7JEFSRzMkCQkJCWNyaXRpY2Fs
lconfCommandline: $USER1$/check_centreon_ping -H $HOSTADDRESS$ -n $ARG1$ -w $ARG2$ -c $ARG3$
cn: check_centreon_ping
objectClass: lconfCommand

# check_centreon_process, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_process,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEyYyEkVVNFUjIkIWh0dHBkIDskQVJHMSQJCQkJU05NUCB2ZXJzaW9uIDskQVJHMiQJCQkJY29tbXVuaXR5IDskQVJHMyQJCQkJcHJvY2VzcyBuYW1l
lconfCommandline: $USER1$/check_centreon_snmp_process -H $HOSTADDRESS$ -v $ARG1$ -C $ARG2$ -n -p $ARG3$
cn: check_centreon_process
objectClass: lconfCommand

# check_centreon_remote_storage, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_remote_storage,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSEvITgwITkwISRVU0VSMiQhMSA7JEFSRzEkCQkJCWRpc2sgbnVtYmVyIDskQVJHMSQJCQkJd2FybmluZyA7JEFSRzIkCQkJCXdhcm5pbmcgOyRBUkcyJAkJCQljcml0aWNhbCA7JEFSRzMkCQkJCWNyaXRpY2FsIDskQVJHMyQJCQkJcGF0aCwgcGFydGl0aW9uIDskQVJHNCQJCQkJY29tbXVuaXR5IDskQVJHNSQJCQkJU05NUCB2ZXJzaW9u
lconfCommandline: $USER1$/check_centreon_snmp_remote_storage -H $HOSTADDRESS$ -n -d $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ -v $ARG5$
cn: check_centreon_remote_storage
objectClass: lconfCommand

# check_centreon_snmp_proc_detailed, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_snmp_proc_detailed,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSFhcGFjaGUhMjAsNTAgOyRBUkcxJAkJCQlwcm9jZXNzIG5hbWUgOyRBUkcyJAkJCQltZW1vcnkgdGhyZXNob2xkcw==
lconfCommandline: $USER1$/check_centreon_snmp_process_detailed -H $HOSTADDRESS$ -C $USER2$ -n $ARG1$ -m $ARG2$
cn: check_centreon_snmp_proc_detailed
objectClass: lconfCommand

# check_centreon_snmp_value, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_snmp_value,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSFwdWJsaWMhMSExLjMuNi4xLjQuMS43MDUuMS44LjEuMCExOTAhMjEwIDskQVJHMSQJCQkJY29tbXVuaXR5IDskQVJHMiQJCQkJU05NUCB2ZXJzaW9uIDskQVJHMyQJCQkJT0lEIDskQVJHNCQJCQkJd2FybmluZyA7JEFSRzUkCQkJCWNyaXRpY2Fs
lconfCommandline: $USER1$/check_centreon_snmp_value -H $HOSTADDRESS$ -C $ARG1$ -v $ARG2$ -o $ARG3$ -w $ARG4$  -c $ARG5$
cn: check_centreon_snmp_value
objectClass: lconfCommand

# check_centreon_traffic, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_traffic,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_centreon_snmp_traffic -H $HOSTADDRESS$ -n -i $ARG1$ -w $ARG2$ -c $ARG3$ -C $USER2$ -v $ARG4$
cn: check_centreon_traffic
objectClass: lconfCommand
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSFldGgwITgwITkwITEgOyRBUkcxJAkJCQlpbnRlcmZhY2UgOyRBUkcyJAkJCQl3YXJuaW5nIDskQVJHMyQJCQkJY3JpdGljYWwgOyRBUkc0JAkJCQlTTk1QIHZlcnNpb24g

# check_centreon_traffic_limited, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_traffic_limited,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description:: O2NvbW1hbmRfZXhhbXBsZQkJCSFldGgwITgwITkwISRVU0VSMiQhMSEyIDskQVJHMSQJCQkJaW50ZXJmYWNlIDskQVJHMiQJCQkJd2FybmluZyA7JEFSRzMkCQkJCWNyaXRpY2FsIDskQVJHNCQJCQkJY29tbXVuaXR5IDskQVJHNSQJCQkJU05NUCB2ZXJzaW9uIDskQVJHNiQJCQkJTWF4IGJhbmR3aWR0aCA=
lconfCommandline: $USER1$/check_centreon_snmp_traffic -H $HOSTADDRESS$ -n -i $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ -v $ARG5$ -T $ARG6$
cn: check_centreon_traffic_limited
objectClass: lconfCommand

# check_centreon_uptime, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_centreon_uptime,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_centreon_snmp_uptime -H $HOSTADDRESS$ -C $USER2$ -v 2 -d
cn: check_centreon_uptime
objectClass: lconfCommand

# check_breeze, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_breeze,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_breeze -H $HOSTNAME$ -C $USER2$ -w $ARG1$ -c $ARG2$
cn: check_breeze
objectClass: lconfCommand

# check_by_ssh, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_by_ssh,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: $ARG3$ can be any and all additional parameters
lconfCommandline: $USER1$/check_by_ssh -H $HOSTNAME$ -C $USER2$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_by_ssh
objectClass: lconfCommand

# check_clamd, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_clamd,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_clamd -H $HOSTNAME$ -C $USER2$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_clamd
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_disk_smb, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_disk_smb,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_disk_smb -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ -s $ARG3$ $ARG4$
cn: check_disk_smb
objectClass: lconfCommand
description: $ARG4$ can be any and all additional parameters

# check_dummy, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_dummy,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_dummy 0
cn: check_dummy
objectClass: lconfCommand

# check_icmp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_icmp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_icmp
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_ifoperstatus, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ifoperstatus,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ifoperstatus -H $HOSTNAME$ -C $USER2$ -v 2 $ARG1$
cn: check_ifoperstatus
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_ifstatus, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ifstatus,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ifstatus -H $HOSTNAME$ -C $USER2$ -v 2 $ARG1$
cn: check_ifstatus
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_ircd, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ircd,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ircd -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_ircd
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_jabber, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_jabber,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_jabber -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_jabber
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
ou: !check_locals
objectClass: lconfStructuralObject
description: These commands are present to for prominence.  Most of them should be used on remote servers via some remote polling technique, such as using check_nrpe.

# check_local_apt, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_apt,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_apt -H $HOSTNAME$ $ARG1$
cn: check_local_apt
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_local_ide_smart, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_ide_smart,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ide_smart $ARG1$
cn: check_local_ide_smart
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_local_log, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_log,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_log $ARG1$
cn: check_local_log
objectClass: lconfCommand

# check_local_load, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_load,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_load -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_load
objectClass: lconfCommand
description: $ARG1$ and $ARG2$ should be a comma-separated list of three fields: 1 minute, 5 minute, 10 minute load average thresholds for warning and critical (respectively).  $ARG3$ should be explicitly '-r' (no quotes), if you wish to divide the load averages by the number of CPUs (where possible).

# check_local_mrtgtraf, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_mrtgtraf,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$
cn: check_local_mrtgtraf
objectClass: lconfCommand

# check_local_procs, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_procs,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ $ARG4$
cn: check_local_procs
objectClass: lconfCommand

# check_local_swap, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_swap,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_swap -w $ARG1$ -c $ARG2$
cn: check_local_swap
objectClass: lconfCommand

# check_local_users, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_users,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_users -w $ARG1$ -c $ARG2$
cn: check_local_users
objectClass: lconfCommand

# check_local_cluster, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_cluster,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_cluster -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_cluster
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_local_flexlm, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_flexlm,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_flexlm $ARG1$
cn: check_local_flexlm
objectClass: lconfCommand
description: $ARG1$ can be any and all additional parameters

# check_local_disk, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_disk,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
cn: check_local_disk
objectClass: lconfCommand

# check_local_file_age, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_file_age,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_file_age -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_file_age
objectClass: lconfCommand
description: $ARG3$ can be any and all additional parameters

# check_local_mailq, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_mailq,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_mailq -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_mailq
objectClass: lconfCommand

# check_meta_service, centreon_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_meta_service,ou=centreon_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: This will only really work with Centreon, but the script is present so that you can tear it apart, if you wish.
lconfCommandline: $USER1$/check_meta_service $ARG1$
cn: check_meta_service
objectClass: lconfCommand

# check_local_mrtg, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_mrtg,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_mrtg -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_mrtg
objectClass: lconfCommand

# check_local_mrtgtraff, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_mrtgtraff,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_mrtgtraff -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_mrtgtraff
objectClass: lconfCommand

# check_local_nagios, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_nagios,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: $ARG1$ is the nagios log file, $ARG2$ is the threshold of update time to the log file, $ARG3$ is any and all additional parameters
lconfCommandline: $USER1$/check_nagios -F $ARG1$ -e $ARG2$ $ARG3$
cn: check_local_nagios
objectClass: lconfCommand

# check_nntp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_nntp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: $ARG1$, $ARG2$: warning, critical respectively.  $ARG3$ can be all additional arguments
lconfCommandline: $USER1$/check_nntp -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_nntp
objectClass: lconfCommand

# check_nntps, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_nntps,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: $ARG1$, $ARG2$: warning, critical respectively.  $ARG3$ can be all additional arguments
lconfCommandline: $USER1$/check_nntps -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_nntps
objectClass: lconfCommand

# check_ntp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ntp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ntp -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_ntp
objectClass: lconfCommand

# check_ntp_peer, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ntp_peer,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ntp_peer -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_ntp_peer
objectClass: lconfCommand

# check_local_ntp_time, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_ntp_time,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ntp_time -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_local_ntp_time
objectClass: lconfCommand

# check_nwstat, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_nwstat,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_nwstat -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_nwstat
objectClass: lconfCommand

# check_oracle, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_oracle,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: This is a very advanced plugin that targets remote and local oracle instances, refer to documentation.
lconfCommandline: $USER1$/check_oracle $ARG1$
cn: check_oracle
objectClass: lconfCommand

# check_overcr, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_overcr,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_overcr -H $HOSTNAME$ -v $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
cn: check_overcr
objectClass: lconfCommand

# check_real, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_real,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_real -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_real
objectClass: lconfCommand

# check_rpc, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_rpc,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: $ARG1$ is the RPC command to check, $ARG4$ are other arguments
lconfCommandline: $USER1$/check_rpc -H $HOSTNAME$ -C $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
cn: check_rpc
objectClass: lconfCommand

# check_local_sensors, !check_locals, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_local_sensors,ou=!check_locals,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_sensors
cn: check_local_sensors
objectClass: lconfCommand

# check_simap, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_simap,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_simap -h $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_simap
objectClass: lconfCommand

# check_spop, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_spop,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_spop -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_spop
objectClass: lconfCommand

# check_ssmtp, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ssmtp,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_ssmtp -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_ssmtp
objectClass: lconfCommand

# check_time, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_time,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_time -H $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3
cn: check_time
objectClass: lconfCommand

# check_ups, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_ups,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
description: relies on www.networkupstools.org
lconfCommandline: $USER1$/check_ups -h $HOSTNAME$ -w $ARG1$ -c $ARG2$ $ARG3$
cn: check_ups
objectClass: lconfCommand

# check_wave, nagios_plugins, _plugins, IcingaConfig, LConf, icinga.cfg
dn: cn=check_wave,ou=nagios_plugins,ou=_plugins,ou=IcingaConfig,ou=LConf,dc=icinga,dc=cfg
lconfCommandline: $USER1$/check_wave -h $HOSTNAME$ -w $ARG1$ -c $ARG2$
cn: check_wave
objectClass: lconfCommand
  1. nemame
    September 18, 2013 at 2:15 pm

    man i love you
    use this after ctrl+c ctrl+v

    #delete space at start of line
    sed -i ‘s/^ //g’ checks.ldif

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: