summaryrefslogtreecommitdiffstats
path: root/config/old/objects/printer.cfg
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
commitb74ea32070492c251943d69a09265463cc9866ed (patch)
tree080bd9c8eb0b53491e118bdfed29f7cd61126bfe /config/old/objects/printer.cfg
downloadpdvnagios-master.tar.gz
pdvnagios-master.tar.bz2
pdvnagios-master.tar.xz
pdvnagios-master.zip
Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scriptsHEADmaster
Diffstat (limited to 'config/old/objects/printer.cfg')
-rw-r--r--config/old/objects/printer.cfg85
1 files changed, 85 insertions, 0 deletions
diff --git a/config/old/objects/printer.cfg b/config/old/objects/printer.cfg
new file mode 100644
index 0000000..1de8855
--- /dev/null
+++ b/config/old/objects/printer.cfg
@@ -0,0 +1,85 @@
+###############################################################################
+# PRINTER.CFG - SAMPLE CONFIG FILE FOR MONITORING A NETWORK PRINTER
+#
+# Last Modified: 10-03-2007
+#
+# NOTES: This config file assumes that you are using the sample configuration
+# files that get installed with the Nagios quickstart guide.
+#
+###############################################################################
+
+
+
+
+###############################################################################
+###############################################################################
+#
+# HOST DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Define a host for the printer we'll be monitoring
+# Change the host_name, alias, and address to fit your situation
+
+define host{
+ use generic-printer ; Inherit default values from a template
+ host_name hplj2605dn ; The name we're giving to this printer
+ alias HP LaserJet 2605dn ; A longer name associated with the printer
+ address 192.168.1.30 ; IP address of the printer
+ hostgroups network-printers ; Host groups this printer is associated with
+ }
+
+
+
+
+###############################################################################
+###############################################################################
+#
+# HOST GROUP DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# A hostgroup for network printers
+
+define hostgroup{
+ hostgroup_name network-printers ; The name of the hostgroup
+ alias Network Printers ; Long name of the group
+ }
+
+
+
+
+###############################################################################
+###############################################################################
+#
+# SERVICE DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Create a service for monitoring the status of the printer
+# Change the host_name to match the name of the host you defined above
+# If the printer has an SNMP community string other than "public", change the check_command directive to reflect that
+
+define service{
+ use generic-service ; Inherit values from a template
+ host_name hplj2605dn ; The name of the host the service is associated with
+ service_description Printer Status ; The service description
+ check_command check_hpjd!-C public ; The command used to monitor the service
+ normal_check_interval 10 ; Check the service every 10 minutes under normal conditions
+ retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
+ }
+
+
+# Create a service for "pinging" the printer occassionally. Useful for monitoring RTA, packet loss, etc.
+
+define service{
+ use generic-service
+ host_name hplj2605dn
+ service_description PING
+ check_command check_ping!3000.0,80%!5000.0,100%
+ normal_check_interval 10
+ retry_check_interval 1
+ }