snmp read community

Toto Capuccino shoktai at gmail.com
Tue Jan 31 17:10:59 CET 2006


Hi all,

concerned by security, i tried to insert the snmp community name for read
access inside resources.cfg (with permissions 600 on it) in macro $USER3$=
myUnbre at kablepass
It didn't work at all, now all nagios is RED sending alerts. Although, It is
said in resource.cfg that USER3 is for storing some usernames and passwords
(hidden from the CGIs)
(hidden from the CGIs) maybe that's where the issue began

Actually what i did is to use this macro inside my checks as follows :

In checkcommands.cfg  :

# 'check_printerstatus' command definiton
define command{
        command_name    check_printerstatus
        command_line    $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ -C
$USER3$
        }
-C stands for Community
-H hostname
-o snmp OID
-s string

In services.cfg :

check_command
check_printerstatus!10.2.20.20!iso.3.6.1.2.1.43.16.5.1.2.1.1!'"Ready -
Select Features to scan your job."'

But it's a nightmare everything's RED even the check_ping, check_host_alive.
Can you help please !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060131/0f0632e1/attachment.html>


More information about the Users mailing list