Subversion Repositories vnag

Compare Revisions

No changes between revisions

Regard whitespace Rev 81 → Rev 82

/trunk/bin/net2ftp_version.phar.conf
File deleted
/trunk/bin/ping.phar.conf
File deleted
/trunk/bin/hp_smartarray.phar.conf
File deleted
/trunk/bin/4images_version.phar.conf
File deleted
/trunk/bin/webreader.phar.conf
File deleted
/trunk/bin/wordpress_version.phar.conf
File deleted
/trunk/bin/nextcloud_version.phar.conf
File deleted
/trunk/bin/phpmyadmin_version.phar.conf
File deleted
/trunk/bin/file_timestamp.phar.conf
File deleted
/trunk/bin/gitlab_version.phar.conf
File deleted
/trunk/bin/x509_expire.phar.conf
File deleted
/trunk/bin/open_deleted_files.phar.conf
File deleted
/trunk/bin/mdstat.phar.conf
File deleted
/trunk/bin/joomla_version.phar.conf
File deleted
/trunk/bin/megaraid.phar.conf
File deleted
/trunk/bin/mediawiki_version.phar.conf
File deleted
/trunk/bin/owncloud_version.phar.conf
File deleted
/trunk/bin/minecraft_java_version.phar.conf
File deleted
/trunk/bin/pmwiki_version.phar.conf
File deleted
/trunk/bin/openbugbounty.phar.conf
File deleted
/trunk/bin/virtual_mem.phar.conf
File deleted
/trunk/bin/smart.phar.conf
File deleted
/trunk/bin/phpbb_version.phar.conf
File deleted
/trunk/bin/viewvc_version.phar.conf
File deleted
/trunk/bin/websvn_version.phar.conf
File deleted
/trunk/bin/roundcube_version.phar.conf
File deleted
/trunk/bin/nocc_version.phar.conf
File deleted
/trunk/bin/disk_running.phar.conf
File deleted
/trunk/bin/ipfm.phar.conf
File deleted
/trunk/bin/aastra_430_voicemail.phar.conf
File deleted
/trunk/bin/last.phar.conf
File deleted
/trunk/bin/4images_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_4images_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/4images_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_4images_version_dir$"
description = "Location where the 4images installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_4images_version" {
// import "generic-service"
// check_command = "vnag_4images_version"
// vars = {
// vnag_4images_version_dir = "/var/www/website1/4images/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_4images_version" {
// import "generic-service"
// check_command = "vnag_4images_version"
// vars = {
// vnag_4images_version_dir = "/var/www/website2/4images/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_4images_version" {
// import "generic-service"
// check_command = "vnag_4images_version"
// vars = {
// vnag_4images_version_dir = "/var/www/website3/4images/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/aastra_430_voicemail.conf
0,0 → 1,42
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_aastra_430_voicemail" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/aastra_430_voicemail.phar" ]
 
arguments = {
"-H" = {
value = "$vnag_aastra_430_voicemail_ftphostname$"
description = "The FTP hostname"
required = true
}
"-u" = {
value = "$vnag_aastra_430_voicemail_ftpusername$"
description = "The FTP username (usually 'admin')"
}
"-p" = {
value = "$vnag_aastra_430_voicemail_ftppassword$"
description = "The FTP password"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_voicemail" {
// import "generic-service"
// check_command = "vnag_aastra_430_voicemail"
// vars = {
// vnag_aastra_430_voicemail_ftphostname = ""
// vnag_aastra_430_voicemail_ftpusername = ""
// vnag_aastra_430_voicemail_ftppassword = ""
// }
// assign where host.name == NodeName
// }
/trunk/bin/disk_running.conf
0,0 → 1,36
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_disk_running" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/disk_running.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_disk_running_disks$"
description = "Disks to be monitored; can be comma separated, e.g. 'sda,sdb'"
required = true
}
"-v" = {
set_if = "$vnag_disk_running_verbose$"
description = "Additionally list drives which are OK, not just the drives which are offline."
}
}
}
 
// Example usage:
//
// apply Service "example_disk_running" {
// import "generic-service"
// check_command = "vnag_disk_running"
// vars = {
// vnag_disk_running_disks = "sda,sdb"
// vnag_disk_running_verbose = false
// }
// assign where host.name == NodeName
// }
/trunk/bin/file_timestamp.conf
0,0 → 1,72
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_file_timestamp" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/file_timestamp.phar" ]
 
arguments = {
"-f" = {
value = "$vnag_file_timestamp_file$"
description = "File or filemask to be checked. There are two possible checking modes: If you put a # in front of the file mask, only the youngest file of each group will be checked (use this mode e.g. if you want to check if a downloader is regularly downloading files into a download directory). Otherwise, all files of the file group are checked."
repeat_key = true
required = true
}
"-w" = {
value = "$vnag_file_timestamp_warn$"
description = "Max age of file (warning range). You must use a Nagios compatible unit of measure (i.e. seconds)."
}
"-c" = {
value = "$vnag_file_timestamp_crit$"
description = "Max age of file (critical range). You must use a Nagios compatible unit of measure (i.e. seconds)."
}
"-v" = {
set_if = "$vnag_file_timestamp_verbose$"
description = "Additionally list files which are OK, not just the files which are out of the time range."
}
}
}
 
// Example usage:
//
// apply Service "example_daily_backup_timestamp" {
// import "generic-service"
// check_command = "vnag_file_timestamp"
// vars = {
// vnag_file_timestamp_file = [ "/backup/automatic/timestamps/ts_daily_rsync", "/backup/automatic/timestamps/ts_daily_mysqldump" ]
// vnag_file_timestamp_warn = "86400s" // 24h
// vnag_file_timestamp_crit = "144000s" // 40h
// vnag_file_timestamp_verbose = false
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_3month_backup_timestamp" {
// import "generic-service"
// check_command = "vnag_file_timestamp"
// vars = {
// vnag_file_timestamp_file = [ "/backup/automatic/timestamps/ts_raspberry_rsync" ]
// vnag_file_timestamp_warn = "7776000s" // 3 Months
// vnag_file_timestamp_crit = "15552000s" // 6 Months
// vnag_file_timestamp_verbose = false
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_downloader_timestamp" {
// import "generic-service"
// check_command = "vnag_file_timestamp"
// // the prepending hashtag means 'check only the youngest file'
// vars = {
// vnag_file_timestamp_file = [ "#/home/test/my_downloader/downloaded_files/*.jpg" ]
// vnag_file_timestamp_warn = "86400s" // 24h
// vnag_file_timestamp_crit = "144000s" // 40h
// vnag_file_timestamp_verbose = false
// }
// assign where host.name == NodeName
// }
/trunk/bin/gitlab_version.conf
0,0 → 1,31
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_gitlab_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/gitlab_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_gitlab_version_dir$"
description = "Location where the GitLab installation (file version-manifest.txt) is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_gitlab_version" {
// import "generic-service"
// check_command = "vnag_gitlab_version"
// vars = {
// vnag_gitlab_version_dir = "/opt/gitlab/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/hp_smartarray.conf
0,0 → 1,43
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
// ATTENTION!
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
// nagios ALL=(root) NOPASSWD:/daten/vnag/bin/hp_smartarray.phar
// You MUST make sure that the script check_hp_smartarray and all other VNag scripts are
// owned by root, otherwise the owner could change the code, and it would be executed with
// root privileges!
 
object CheckCommand "vnag_hp_smartarray" {
command = [
"/usr/bin/sudo",
 
// PLEASE ADJUST THIS PATH
"/daten/vnag/bin/hp_smartarray.phar"
]
 
arguments = {
"-s" = {
value = "$vnag_hp_smartarray_slot$"
description = "The slot where the HP Smart Array RAID controller is installed"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_hp_smartarray_slot3" {
// import "generic-service"
// check_command = "vnag_hp_smartarray"
// check_interval = 15m
// vars = {
// vnag_hp_smartarray_slot = 3
// }
// assign where host.name == NodeName
// }
/trunk/bin/ipfm.conf
0,0 → 1,47
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_ipfm" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/ipfm.phar" ]
 
arguments = {
"-w" = {
value = "$vnag_ipfm_currentWarn$,$vnag_ipfm_expectedWarn$"
description = "<currentTraffic>GB,<expectedTraffic>GB (Warning range)"
}
"-c" = {
value = "$vnag_ipfm_currentCrit$,$vnag_ipfm_expectedCrit$"
description = "<currentTraffic>GB,<expectedTraffic>GB (Critical range)"
}
"-l" = {
value = "$vnag_ipfm_limit$"
description = "The monthly limit of your provider (just for optical measurement)"
}
"-L" = {
value = "$vnag_ipfm_logDir$"
description = "Directory of the ipfm log files (default /var/log/ipfm)"
}
}
}
 
// Example usage:
//
// apply Service "example_eth0_ipfm" {
// import "generic-service"
// check_command = "vnag_ipfm"
// vars = {
// vnag_ipfm_currentWarn = "6TB"
// vnag_ipfm_currentCrit = "8TB"
// vnag_ipfm_expectedWarn = "8TB"
// vnag_ipfm_expectedCrit = "15TB"
// vnag_ipfm_limit = "10TB"
// vnag_ipfm_logDir = "/var/log/ipfm"
// }
// assign where host.name == NodeName
// }
/trunk/bin/joomla_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_joomla_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/joomla_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_joomla_version_dir$"
description = "Location where the Joomla installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_joomla_version" {
// import "generic-service"
// check_command = "vnag_joomla_version"
// vars = {
// vnag_joomla_version_dir = "/var/www/website1/joomla/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_joomla_version" {
// import "generic-service"
// check_command = "vnag_joomla_version"
// vars = {
// vnag_joomla_version_dir = "/var/www/website2/joomla/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_joomla_version" {
// import "generic-service"
// check_command = "vnag_joomla_version"
// vars = {
// vnag_joomla_version_dir = "/var/www/website3/joomla/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/last.conf
0,0 → 1,64
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_last" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/last.phar" ]
 
arguments = {
"-u" = {
value = "$vnag_last_user$"
description = "The Linux username. If the argument is missing, all users will be checked."
}
"-R" = {
value = "$vnag_last_regex$"
description = "The regular expression (in PHP: preg_match) which is applied on IP, Hostname, Country, AS number or ISP name. If the regular expression matches, the login will be accepted, otherweise an alert will be triggered. Example: /^DE$/ismU or /Telekom/ismU"
}
"-v" = {
set_if = "$vnag_last_verbose$"
description = "Additionally list logins which are OK, not just the logins which are suspicious."
}
"-f" = {
value = "$vnag_last_wtmp_file_mask$"
description = "Filemask of the wtmp file (important if you use logrotate), e.g. '/var/log/wtmp*'"
}
"-e" = {
set_if = "$vnag_last_emptyok$"
description = "Treat an empty result (e.g. empty wtmp file after rotation) as success; otherwise treat it as status 'Unknown'"
}
"--ipInfoToken" = {
value = "$vnag_ipinfo_token$"
description = "If you have a token for ipinfo.io, please enter it here. Without token, you can query the service approx 1,000 times per day (which should be enough)"
}
}
}
 
// Example usage:
//
// apply Service "example_john_logins" {
// import "generic-service"
// check_command = "vnag_last"
// vars = {
// vnag_last_user = "john"
// vnag_last_regex = "/Telekom/ismU"
// vnag_last_wtmp_file_mask = "/var/log/wtmp*"
// vnag_last_emptyok = true
// }
// assign where host.name == NodeName
// }
// apply Service "example_mike_logins" {
// import "generic-service"
// check_command = "vnag_last"
// vars = {
// vnag_last_user = "mike"
// vnag_last_regex = "/\\.unitymediagroup\\.de/ismU"
// vnag_last_wtmp_file_mask = "/var/log/wtmp*"
// vnag_last_emptyok = false
// }
// assign where host.name == NodeName
// }
/trunk/bin/mdstat.conf
0,0 → 1,30
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_mdstat" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/mdstat.phar" ]
 
arguments = {
"-v" = {
set_if = "$vnag_mdstat_verbose$"
description = "Additionally list drives which are OK, not just the drives which have failed."
}
}
}
 
// Example usage:
//
// apply Service "example_mdstat" {
// import "generic-service"
// check_command = "vnag_mdstat"
// vars = {
// vnag_mdstat_verbose = false
// }
// assign where host.name == NodeName
// }
/trunk/bin/mediawiki_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_mediawiki_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/mediawiki_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_mediawiki_version_dir$"
description = "Location where the MediaWiki installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_mediawiki_version" {
// import "generic-service"
// check_command = "vnag_mediawiki_version"
// vars = {
// vnag_mediawiki_version_dir = "/var/www/website1/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_mediawiki_version" {
// import "generic-service"
// check_command = "vnag_mediawiki_version"
// vars = {
// vnag_mediawiki_version_dir = "/var/www/website2/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_mediawiki_version" {
// import "generic-service"
// check_command = "vnag_mediawiki_version"
// vars = {
// vnag_mediawiki_version_dir = "/var/www/website3/mediawiki/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/megaraid.conf
0,0 → 1,37
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
// ATTENTION!
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
// nagios ALL=(root) NOPASSWD:/daten/vnag/bin/megaraid.phar
// You MUST make sure that the script check_megaraid and all other VNag scripts are
// owned by root, otherwise the owner could change the code, and it would be executed with
// root privileges!
 
object CheckCommand "vnag_megaraid" {
command = [
"/usr/bin/sudo",
 
// PLEASE ADJUST THIS PATH
"/daten/vnag/bin/megaraid.phar"
]
 
arguments = {
}
}
 
// Example usage:
//
// apply Service "example_megaraid" {
// import "generic-service"
// check_command = "vnag_megaraid"
// check_interval = 15m
// vars = {
// }
// assign where host.name == NodeName
// }
/trunk/bin/minecraft_java_version.conf
0,0 → 1,31
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_minecraft_java_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/minecraft_java_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_minecraft_java_version_dir$"
description = "Location where the Minecraft for Java server.jar is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_server1_minecraft_java_version" {
// import "generic-service"
// check_command = "vnag_minecraft_java_version"
// vars = {
// vnag_minecraft_java_version_dir = "/home/minecraft/minecraft*/server.jar"
// }
// assign where host.name == NodeName
// }
/trunk/bin/net2ftp_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_net2ftp_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/net2ftp_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_net2ftp_version_dir$"
description = "Location where the net2ftp installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_net2ftp_version" {
// import "generic-service"
// check_command = "vnag_net2ftp_version"
// vars = {
// vnag_net2ftp_version_dir = "/var/www/website1/net2ftp/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_net2ftp_version" {
// import "generic-service"
// check_command = "vnag_net2ftp_version"
// vars = {
// vnag_net2ftp_version_dir = "/var/www/website2/net2ftp/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_net2ftp_version" {
// import "generic-service"
// check_command = "vnag_net2ftp_version"
// vars = {
// vnag_net2ftp_version_dir = "/var/www/website3/net2ftp/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/nextcloud_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_nextcloud_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/nextcloud_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_nextcloud_version_dir$"
description = "Location where the Nextcloud installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_nextcloud_version" {
// import "generic-service"
// check_command = "vnag_nextcloud_version"
// vars = {
// vnag_nextcloud_version_dir = "/var/www/website1/nextcloud/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_nextcloud_version" {
// import "generic-service"
// check_command = "vnag_nextcloud_version"
// vars = {
// vnag_nextcloud_version_dir = "/var/www/website2/nextcloud/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_nextcloud_version" {
// import "generic-service"
// check_command = "vnag_nextcloud_version"
// vars = {
// vnag_nextcloud_version_dir = "/var/www/website3/nextcloud/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/nocc_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_nocc_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/nocc_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_nocc_version_dir$"
description = "Location where the NOCC installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_nocc_version" {
// import "generic-service"
// check_command = "vnag_nocc_version"
// vars = {
// vnag_nocc_version_dir = "/var/www/website1/nocc/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_nocc_version" {
// import "generic-service"
// check_command = "vnag_nocc_version"
// vars = {
// vnag_nocc_version_dir = "/var/www/website2/nocc/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_nocc_version" {
// import "generic-service"
// check_command = "vnag_nocc_version"
// vars = {
// vnag_nocc_version_dir = "/var/www/website3/nocc/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/open_deleted_files.conf
0,0 → 1,53
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
// ATTENTION!
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
// nagios ALL=(root) NOPASSWD:/daten/vnag/bin/open_deleted_files.phar
// You MUST make sure that the script check_hp_smartarray and all other VNag scripts are
// owned by root, otherwise the owner could change the code, and it would be executed with
// root privileges!
 
object CheckCommand "vnag_open_deleted_files" {
command = [
"/usr/bin/sudo",
 
// PLEASE ADJUST THIS PATH
"/daten/vnag/bin/open_deleted_files.phar"
]
 
arguments = {
"-d" = {
value = "$vnag_open_deleted_files_dir$"
description = "Directory to check (e.g. /tmp)"
}
"-w" = {
value = "$vnag_open_deleted_files_warn$"
description = "absoluteKB (Warning range)"
}
"-c" = {
value = "$vnag_open_deleted_files_crit$"
description = "absoluteKB (Critical range)"
}
}
}
 
// Example usage:
//
// apply Service "example_server1_open_deleted_files" {
// import "generic-service"
// check_command = "vnag_open_deleted_files"
//
// vars = {
// vnag_open_deleted_files_dir = "/tmp"
// vnag_open_deleted_files_warn = "300MB"
// vnag_open_deleted_files_crit = "700MB"
// }
//
// assign where host.name == NodeName
// }
/trunk/bin/openbugbounty.conf
0,0 → 1,56
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_openbugbounty" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/openbugbounty.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_openbugbounty_domain$"
description = "Domain(s) or subdomain(s), separated by comma, to be checked or a file containing the domain names"
required = false // Note: either "-d" or "-p" is required
}
"-p" = {
value = "$vnag_openbugbounty_privateapi$"
description = "Private API URL (cannot be used together with domain-argument)"
required = false // Note: either "-d" or "-p" is required
}
 
"-i" = {
value = "$vnag_openbugbounty_ignoredids$"
description = "Comma separated list of submission IDs that shall be defined as fixed (because OpenBugBounty often does not mark fixed bugs as fixed, even if you tell them that you have fixed them...)"
required = false
}
 
"-v" = {
set_if = "$vnag_openbugbounty_verbose$"
description = "When checking multiple domains, also show details about domains which have 0 unfixed issues."
}
}
}
 
// Example usage:
//
// apply Service "example_website1_openbugbounty" {
// import "generic-service"
// check_command = "vnag_openbugbounty"
// vars = {
// vnag_openbugbounty_domain = "example.org"
// }
// assign where host.name == NodeName
// }
// apply Service "example_websites_openbugbounty" {
// import "generic-service"
// check_command = "vnag_openbugbounty"
// vars = {
// vnag_openbugbounty_privateapi = "https://www.openbugbounty.org/api/2/.../"
// vnag_openbugbounty_ignoredids = "12345,98765,555555"
// }
// assign where host.name == NodeName
// }
/trunk/bin/owncloud_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_owncloud_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/owncloud_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_owncloud_version_dir$"
description = "Location where the ownCloud installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_owncloud_version" {
// import "generic-service"
// check_command = "vnag_owncloud_version"
// vars = {
// vnag_owncloud_version_dir = "/var/www/website1/owncloud/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_owncloud_version" {
// import "generic-service"
// check_command = "vnag_owncloud_version"
// vars = {
// vnag_owncloud_version_dir = "/var/www/website2/owncloud/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_owncloud_version" {
// import "generic-service"
// check_command = "vnag_owncloud_version"
// vars = {
// vnag_owncloud_version_dir = "/var/www/website3/owncloud/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/phpbb_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_phpbb_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/phpbb_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_phpbb_version_dir$"
description = "Location where the phpBB installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_phpbb_version" {
// import "generic-service"
// check_command = "vnag_phpbb_version"
// vars = {
// vnag_phpbb_version_dir = "/var/www/website1/phpbb/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_phpbb_version" {
// import "generic-service"
// check_command = "vnag_phpbb_version"
// vars = {
// vnag_phpbb_version_dir = "/var/www/website2/phpbb/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_phpbb_version" {
// import "generic-service"
// check_command = "vnag_phpbb_version"
// vars = {
// vnag_phpbb_version_dir = "/var/www/website3/phpbb/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/phpmyadmin_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_phpmyadmin_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/phpmyadmin_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_phpmyadmin_version_dir$"
description = "Location where the phpMyAdmin installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_phpmyadmin_version" {
// import "generic-service"
// check_command = "vnag_phpmyadmin_version"
// vars = {
// vnag_phpmyadmin_version_dir = "/var/www/website1/phpmyadmin/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_phpmyadmin_version" {
// import "generic-service"
// check_command = "vnag_phpmyadmin_version"
// vars = {
// vnag_phpmyadmin_version_dir = "/var/www/website2/phpmyadmin/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_phpmyadmin_version" {
// import "generic-service"
// check_command = "vnag_phpmyadmin_version"
// vars = {
// vnag_phpmyadmin_version_dir = "/var/www/website3/phpmyadmin/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/ping.conf
0,0 → 1,30
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_ping" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/ping.phar" ]
 
arguments = {
"-H" = {
value = "$vnag_ping_hostname$"
description = "Hostname or IP address to be pinged"
}
}
}
 
// Example usage:
//
// apply Service "example_ping" {
// import "generic-service"
// check_command = "vnag_ping"
// vars = {
// vnag_ping_hostname = "example.com"
// }
// assign where host.name == NodeName
// }
/trunk/bin/pmwiki_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_pmwiki_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/pmwiki_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_pmwiki_version_dir$"
description = "Location where the PmWiki installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website1/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website2/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website3/mediawiki/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/roundcube_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_roundcube_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/roundcube_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_roundcube_version_dir$"
description = "Location where the Roundcube installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_roundcube_version" {
// import "generic-service"
// check_command = "vnag_roundcube_version"
// vars = {
// vnag_roundcube_version_dir = "/var/www/website1/roundcube/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_roundcube_version" {
// import "generic-service"
// check_command = "vnag_roundcube_version"
// vars = {
// vnag_roundcube_version_dir = "/var/www/website2/roundcube/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_roundcube_version" {
// import "generic-service"
// check_command = "vnag_roundcube_version"
// vars = {
// vnag_roundcube_version_dir = "/var/www/website3/roundcube/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/smart.conf
0,0 → 1,55
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
// ATTENTION!
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
// nagios ALL=(root) NOPASSWD:/daten/vnag/bin/smart.phar
// You MUST make sure that the script check_hp_smartarray and all other VNag scripts are
// owned by root, otherwise the owner could change the code, and it would be executed with
// root privileges!
 
object CheckCommand "vnag_smart" {
command = [
"/usr/bin/sudo",
 
// PLEASE ADJUST THIS PATH
"/daten/vnag/bin/smart.phar"
]
 
arguments = {
"-v" = {
set_if = "$vnag_smart_verbose$"
description = "Additionally list drives which are OK, not just the drives which have failed."
}
"-T" = {
set_if = "$vnag_smart_type$"
description = "Explicit drive type e.g. for RAID devices 'sat+cciss,0' for drive 0."
}
}
}
 
// Example usage:
//
// apply Service "example_smart" {
// import "generic-service"
// check_command = "vnag_smart"
// vars = {
// vnag_smart_verbose = false
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_smart_raid" {
// import "generic-service"
// check_command = "vnag_smart"
// vars = {
// vnag_smart_verbose = false
// vnag_smart_type = "sat+cciss,0"
// }
// assign where host.name == NodeName
// }
/trunk/bin/viewvc_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_viewvc_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/viewvc_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_viewvc_version_dir$"
description = "Location where the ViewVC installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_viewvc_version" {
// import "generic-service"
// check_command = "vnag_viewvc_version"
// vars = {
// vnag_viewvc_version_dir = "/var/www/website1/viewvc/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_viewvc_version" {
// import "generic-service"
// check_command = "vnag_viewvc_version"
// vars = {
// vnag_viewvc_version_dir = "/var/www/website2/viewvc/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_viewvc_version" {
// import "generic-service"
// check_command = "vnag_viewvc_version"
// vars = {
// vnag_viewvc_version_dir = "/var/www/website3/viewvc/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/virtual_mem.conf
0,0 → 1,37
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_virtual_mem" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/virtual_mem.phar" ]
 
arguments = {
"-w" = {
value = "$vnag_virtual_mem_warn$"
description = "absoluteKB or relative% (Warning range)"
}
"-c" = {
value = "$vnag_virtual_mem_crit$"
description = "absoluteKB or relative% (Critical range)"
}
}
}
 
// Example usage:
//
// apply Service "example_server1_virtual_mem" {
// import "generic-service"
// check_command = "vnag_virtual_mem"
//
// vars = {
// vnag_virtual_mem_warn = "10GB"
// vnag_virtual_mem_crit = "4GB"
// }
//
// assign where host.name == NodeName
// }
/trunk/bin/webreader.conf
0,0 → 1,47
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_webreader" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/webreader.phar" ]
 
arguments = {
"-u" = {
value = "$vnag_webreader_url$"
description = "The URI of the page that contains an embedded machine readable VNag output"
required = true
}
"-i" = {
value = "$vnag_webreader_id$"
description = "The ID (serial or individual name) of the embedded Nagios output. Usually '0' if only one monitor is used without individual names"
}
"-b" = {
value = "$vnag_webreader_basicAuth$"
description = "In case the target website requires Basic Auth, please pass username and password, divided by double-colon, into this argument"
}
"-p" = {
value = "$vnag_webreader_password$"
description = "In case the machine readable VNag output is encrypted, enter the password here"
}
"-k" = {
value = "$vnag_webreader_signPubKey$"
description = "In case the machine readable VNag output is signed, enter the filename of the public key (PEM) file here, to verify the signature of the output"
}
}
}
 
// Example usage:
//
// apply Service "example_remote_ipfm" {
// import "generic-service"
// check_command = "vnag_webreader"
// vars = {
// vnag_webreader_url = "https://www.example.com/vnag/ipfm/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/websvn_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_websvn_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/websvn_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_websvn_version_dir$"
description = "Location where the WebSVN installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_websvn_version" {
// import "generic-service"
// check_command = "vnag_websvn_version"
// vars = {
// vnag_websvn_version_dir = "/var/www/website1/websvn/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_websvn_version" {
// import "generic-service"
// check_command = "vnag_websvn_version"
// vars = {
// vnag_websvn_version_dir = "/var/www/website2/websvn/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_websvn_version" {
// import "generic-service"
// check_command = "vnag_websvn_version"
// vars = {
// vnag_websvn_version_dir = "/var/www/website3/websvn/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/wordpress_version.conf
0,0 → 1,49
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_wordpress_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/wordpress_version.phar" ]
 
arguments = {
"-d" = {
value = "$vnag_wordpress_version_dir$"
description = "Location where the WordPress installation is located"
required = true
}
}
}
 
// Example usage:
//
// apply Service "example_website1_wordpress_version" {
// import "generic-service"
// check_command = "vnag_wordpress_version"
// vars = {
// vnag_wordpress_version_dir = "/var/www/website1/wordpress/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_wordpress_version" {
// import "generic-service"
// check_command = "vnag_wordpress_version"
// vars = {
// vnag_wordpress_version_dir = "/var/www/website2/wordpress/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_wordpress_version" {
// import "generic-service"
// check_command = "vnag_wordpress_version"
// vars = {
// vnag_wordpress_version_dir = "/var/www/website3/wordpress/"
// }
// assign where host.name == NodeName
// }
/trunk/bin/x509_expire.conf
0,0 → 1,47
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-10-14
 
object CheckCommand "vnag_x509_expire" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/x509_expire.phar" ]
 
arguments = {
"-f" = {
value = "$vnag_x509_expire_file$"
description = "File or filemask to be checked. There are two possible checking modes: If you put a # in front of the file mask, only the oldest file of each group will be checked (use this mode e.g. if you have a directory which contains old backups of certificates beside the current working certificate). Otherwise, all files of the file group are checked."
repeat_key = true
required = true
}
"-w" = {
value = "$vnag_x509_expire_warn$"
description = "Max age of file (warning range). You must use a Nagios compatible unit of measure (i.e. seconds)."
}
"-c" = {
value = "$vnag_x509_expire_crit$"
description = "Max age of file (critical range). You must use a Nagios compatible unit of measure (i.e. seconds)."
}
"-v" = {
set_if = "$vnag_x509_expire_verbose$"
description = "Additionally list files which are OK, not just the files which are out of the time range."
}
}
}
 
// Example usage:
//
// apply Service "example_letsencrypt_expiration" {
// import "generic-service"
// check_command = "vnag_x509_expire"
// vars = {
// vnag_x509_expire_file = [ "/daten/ssl/letsencrypt/*/certificate.pem" ]
// vnag_x509_expire_warn = "86400s" // 24h
// vnag_x509_expire_crit = "144000s" // 40h
// vnag_x509_expire_verbose = false
// }
// assign where host.name == NodeName
// }
/trunk/create_conf_symlinks.phps
0,0 → 1,15
#!/usr/bin/php
<?php
 
/*
* VNag - Nagios Framework for PHP
* Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
* Licensed under the terms of the Apache 2.0 license
*
* Revision 2023-10-14
*/
 
foreach (glob(__DIR__.'/bin/*.conf') as $a) {
$a = basename($a);
echo "cd /etc/icinga2/conf.d/ && ln -s ".__DIR__."/bin/$a vnag_$a\n";
}
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/set_chmod.sh
13,3 → 13,4
setexec "$DIR"/set_chmod.sh
setexec "$DIR"/bin/*.phar
setexec "$DIR"/src/plugins/ipfm/dygraph/update-dygraph.sh
setexec "$DIR"/create_conf_symlinks.phps
/trunk/src/build.phps
1,3 → 1,4
#!/usr/bin/php
<?php
 
/*
11,7 → 12,7
function vnag_make_phar($plugin) {
$filename = __DIR__.'/../bin/'.$plugin.'.phar';
 
copy(__DIR__.'/plugins/'.$plugin.'/icinga2.conf', $filename.'.conf');
copy(__DIR__.'/plugins/'.$plugin.'/icinga2.conf', __DIR__.'/../bin/'.$plugin.'.conf');
 
# ---