check_snmp_printer problem
Posted: Tue Apr 02, 2019 2:04 pm
Dear Forum!
I have installed a Nagios Core on Ubuntu 16.04 .
I would like monitoring my printers (Xerox).
I follow this site steps: https://ittutorials.net/open-source/nag ... th-nagios/ , but when I check nagios site then i get this:
http://www.kepfeltoltes.eu/view.php?fil ... 9error.jpg
after i type this lines in printer.cfg:
define service{
use generic-service
hostgroup_name printers
service_description Check Model
check_command check_snmp_printer!public!"MODEL"
}
define service{
use generic-service
hostgroup_name printers
service_description Check Toner
check_command check_snmp_printer!public!"CONSUM ALL"!5!2
}
....but again i get a problem:
http://www.kepfeltoltes.eu/view.php?fil ... error2.jpg
If I type example this lines on the ubuntu then i get perfect answer.
./check_snmp_printer -H 10.0.0.5 -C public -t MODEL
./check_snmp_printer -h 10.0.0.5 -t
./check_snmp_printer -H 10.0.0.5 -C public -t "CONSUM ALL" -w 25 -c 10
./check_snmp_printer -H 10.0.0.5 -C public -t "CONSUM ALL" -w 25 -c 10./check_snmp_printer -H 10.0.0.5 -C public -t PAGECOUNT
snmpwalk -v 2c -c public 10.0.0.5
Please help me for this problem solved and please tell me step by step how to can I install the check_snmp_printer.
Thanks!
I have installed a Nagios Core on Ubuntu 16.04 .
I would like monitoring my printers (Xerox).
I follow this site steps: https://ittutorials.net/open-source/nag ... th-nagios/ , but when I check nagios site then i get this:
http://www.kepfeltoltes.eu/view.php?fil ... 9error.jpg
after i type this lines in printer.cfg:
define service{
use generic-service
hostgroup_name printers
service_description Check Model
check_command check_snmp_printer!public!"MODEL"
}
define service{
use generic-service
hostgroup_name printers
service_description Check Toner
check_command check_snmp_printer!public!"CONSUM ALL"!5!2
}
....but again i get a problem:
http://www.kepfeltoltes.eu/view.php?fil ... error2.jpg
If I type example this lines on the ubuntu then i get perfect answer.
./check_snmp_printer -H 10.0.0.5 -C public -t MODEL
./check_snmp_printer -h 10.0.0.5 -t
./check_snmp_printer -H 10.0.0.5 -C public -t "CONSUM ALL" -w 25 -c 10
./check_snmp_printer -H 10.0.0.5 -C public -t "CONSUM ALL" -w 25 -c 10./check_snmp_printer -H 10.0.0.5 -C public -t PAGECOUNT
snmpwalk -v 2c -c public 10.0.0.5
Please help me for this problem solved and please tell me step by step how to can I install the check_snmp_printer.
Thanks!